forked from opentiny/tiny-vue
Co-authored-by: chenguang <guang_chen@huacenav.com>
This commit is contained in:
parent
0036fcb203
commit
eec4713a35
|
@ -213,6 +213,9 @@ export const getActiveButtonIndex =
|
|||
}
|
||||
|
||||
const calcCurrentValue = ({ currentValue, props, state }) => {
|
||||
if(Array.isArray(currentValue)){
|
||||
currentValue = currentValue[state.activeIndex]
|
||||
}
|
||||
if (currentValue <= props.min) {
|
||||
currentValue = props.min
|
||||
} else if (currentValue >= props.max) {
|
||||
|
|
Loading…
Reference in New Issue