Open xuliudong opened 2 months ago
// 你的答案
`
interface ButtonProps { type?: 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default' }
const props = withDefaults(defineProps(), { type: 'default' })
`
interface ButtonProps { type?: 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default' }
const props = withDefaults(defineProps(), {
type: 'default'
})
`