简体中文
Appearance
By Lov`u`e @heappynd
请验证Button组件的Prop类型 ,使它只接收: primary | ghost | dashed | link | text | default ,且默认值为default。
Button
Prop
primary | ghost | dashed | link | text | default
default
<script setup> defineProps({ type: {}, }) </script> <template> <button>Button</button> </template>