diff --git a/src/components/Dropdown/Dropdown.vue b/src/components/Dropdown/Dropdown.vue index 8ac6545..15f54ed 100644 --- a/src/components/Dropdown/Dropdown.vue +++ b/src/components/Dropdown/Dropdown.vue @@ -10,7 +10,7 @@ - +
@@ -41,8 +41,8 @@ const props = defineProps({ default: '', }, transition: { - type: String , - default: '', + type: [String, null] as PropType, + default: null, }, }) @@ -54,7 +54,7 @@ const placementTransitionMap: Record = { } const transitionName = computed(() => { - if(!props.transition) return placementTransitionMap[props.placement] + if(props.transition === null) return placementTransitionMap[props.placement] return props.transition })