完善分销功能
This commit is contained in:
@@ -22,7 +22,7 @@ const props = defineProps({
|
||||
}
|
||||
})
|
||||
|
||||
const emits = defineEmits(['update:modelValue'])
|
||||
const emits = defineEmits(['update:modelValue', 'change'])
|
||||
|
||||
const modelValue = defineModel('modelValue', {
|
||||
type: [String, Number],
|
||||
@@ -40,6 +40,8 @@ function changeHandle(index) {
|
||||
}
|
||||
})
|
||||
leftValue.value = left + gap.value * index
|
||||
|
||||
emits('change', index)
|
||||
}
|
||||
|
||||
const itemRefs = ref([])
|
||||
|
||||
Reference in New Issue
Block a user