Closed AcWrong02 closed 10 months ago
Bot detected the issue body's language is not English, translate it automatically.
Title: 🐛 [Bug]: When the v-model of the Slider component is an array, when the value of the array is changed, the range of the slider will not change accordingly.
playground好像失效了 @AcWrong02
playground好像失效了 @AcWrong02
不知道为什么playground链接复制过来有问题,我把代码复制到下面了,还麻烦您复制到playground看一下效果
<template>
<tiny-slider v-model="value3"></tiny-slider>
<button @click="handleClick">
click
</button>
</template>
<script setup lang="jsx">
import { ref } from 'vue'
import { Slider as TinySlider } from '@opentiny/vue'
const value3 = ref([20, 40])
const handleClick = ()=>{
value3.value = [10,50]
}
</script>
这个问题我来修复
Bot detected the issue body's language is not English, translate it automatically.
I'll fix this problem
这个问题我来修复
让我学习学习,哈哈^v^
Bot detected the issue body's language is not English, translate it automatically.
Let me fix this problem
Let me learn, haha^v^
Version
latest
Vue Version
latest
Link to minimal reproduction
https://opentiny.design/vue-playground?mode=pc&theme=default#3.11|eyJzcmMvQXBwLnZ1ZSI6IjxzY3JpcHQgbGFuZz1cInRzeFwiPlxyXG4vLyDlvJXlhaUgQG9wZW50aW55L3Z1ZSDnu4Tku7ZcclxuaW1wb3J0IHsgQnV0dG9uLCBMaW5rIH0gZnJvbSAnQG9wZW50aW55L3Z1ZSdcclxuXHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICBjb21wb25lbnRzOiB7XHJcbiAgICBUaW55QnV0dG9uOiBCdXR0b24sXHJcbiAgICBUaW55TGluazogTGlua1xyXG4gIH0sXHJcbiAgZGF0YSgpIHtcclxuICAgIHJldHVybiB7XHJcbiAgICAgIG1zZzogJ2hlbGxvIHdvcmxkISdcclxuICAgIH1cclxuICB9XHJcbn1cclxuPC9zY3JpcHQ+XHJcblxyXG48dGVtcGxhdGU+XHJcbiAgPFRpbnlCdXR0b24+56Gu5a6aPC9UaW55QnV0dG9uPlxyXG4gIDxoMT57eyBtc2cgfX08L2gxPlxyXG4gIDxkaXYgY2xhc3M9XCJ0aW55dnVlXCI+XHJcbiAgICA8ZGl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着变化才对
What is actually happening
点击完click之后,范围应该没变,在鼠标悬浮上去之后才会变化
Any additional comments (optional)
No response