mirror of
https://github.com/palxiao/poster-design.git
synced 2025-07-28 04:10:31 +08:00
fix: setting numberSlider
This commit is contained in:
parent
c95d513f4d
commit
abb2a034b5
@ -50,6 +50,7 @@ const props = withDefaults(defineProps<TProps>(), {
|
||||
const emit = defineEmits<TEmits>()
|
||||
|
||||
const innerValue = ref<number>(props.minValue)
|
||||
innerValue.value = props.modelValue
|
||||
|
||||
watch(
|
||||
() => innerValue.value,
|
||||
@ -67,10 +68,6 @@ watch(
|
||||
}
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
innerValue.value = props.modelValue
|
||||
})
|
||||
|
||||
function changeValue(value: number | number[]) {
|
||||
emit('finish', value)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user