all
This commit is contained in:
@@ -32,11 +32,16 @@ const _sfc_main = defineComponent({
|
||||
const props = __props;
|
||||
const currentValue = ref(props.modelValue);
|
||||
const tempValue = ref(currentValue.value);
|
||||
const isHalf = computed(() => props.half && Math.round(currentValue.value) !== currentValue.value);
|
||||
watch(() => props.modelValue, () => {
|
||||
currentValue.value = props.modelValue;
|
||||
tempValue.value = props.modelValue;
|
||||
});
|
||||
const isHalf = computed(
|
||||
() => props.half && Math.round(currentValue.value) !== currentValue.value
|
||||
);
|
||||
watch(
|
||||
() => props.modelValue,
|
||||
() => {
|
||||
currentValue.value = props.modelValue;
|
||||
tempValue.value = props.modelValue;
|
||||
}
|
||||
);
|
||||
const getValue = function(index2, event) {
|
||||
if (!props.half) {
|
||||
return index2;
|
||||
|
||||
Reference in New Issue
Block a user