We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15725ef commit 891f2feCopy full SHA for 891f2fe
1 file changed
src/ui/Button.vue
@@ -156,12 +156,12 @@ const typeClasses = computed(() => {
156
}
157
158
159
- return styles[type]?.[variant] || styles.primary.solid
+ return styles[type as keyof typeof styles]?.[variant] || styles.primary.solid
160
})
161
162
// 图标样式
163
const iconClasses = computed(() => {
164
- const hasText = props.text || !!props.$slots?.default
+ const hasText = props.text || !!(props as any).$slots?.default
165
const sizeMap = {
166
xs: 'w-3 h-3',
167
sm: 'w-4 h-4',
0 commit comments