diff --git a/src/components/common/PreviewSelect.vue b/src/components/common/PreviewSelect.vue index b28d086..506a704 100644 --- a/src/components/common/PreviewSelect.vue +++ b/src/components/common/PreviewSelect.vue @@ -3,8 +3,7 @@ {{ title }} (); -const emit = defineEmits<{ - 'update:modelValue': [value: string | number]; -}>(); - -const handleSelectChange = (value: string | number) => { - emit('update:modelValue', value); -}; +const model = defineModel(); const isObjectArray = computed(() => { return props.options.length > 0 && typeof props.options[0] === 'object'; diff --git a/src/demo/Animations/AnimatedContentDemo.vue b/src/demo/Animations/AnimatedContentDemo.vue index bf827ef..b59d078 100644 --- a/src/demo/Animations/AnimatedContentDemo.vue +++ b/src/demo/Animations/AnimatedContentDemo.vue @@ -25,29 +25,9 @@ - { - direction = val as 'vertical' | 'horizontal'; - forceRerender(); - } - " - /> + - { - ease = val as string; - forceRerender(); - } - " - /> +