20260921231313
This commit is contained in:
1 parent
ac710c1801
commit
583984c24f
81 files changed
+2523
-288
No files matched your search
@@ -5,7 +5,7 @@ import { Loader } from '@lucide/vue'
|
||||
/* ---------- props / emits / slots ---------- */
|
||||
/**
|
||||
* 按钮视觉变体
|
||||
* @typedef {'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'link' | 'icon'} ButtonType
|
||||
* @typedef {'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'danger-outline' | 'link' | 'icon'} ButtonType
|
||||
*/
|
||||
|
||||
const props = defineProps({
|
||||
@@ -15,7 +15,16 @@ const props = defineProps({
|
||||
type: String,
|
||||
default: 'primary',
|
||||
validator: (value) =>
|
||||
['primary', 'secondary', 'outline', 'ghost', 'danger', 'link', 'icon'].includes(value),
|
||||
[
|
||||
'primary',
|
||||
'secondary',
|
||||
'outline',
|
||||
'ghost',
|
||||
'danger',
|
||||
'danger-outline',
|
||||
'link',
|
||||
'icon',
|
||||
].includes(value),
|
||||
},
|
||||
/** 禁用态 */
|
||||
disabled: {
|
||||
|
||||
Reference in new issue
Block a user