20260916231505
This commit is contained in:
1 parent
de05498552
commit
182ed86966
126 files changed
+5900
-766
No files matched your search
@@ -5,17 +5,17 @@ import { Loader } from '@lucide/vue'
|
||||
/* ---------- props / emits / slots ---------- */
|
||||
/**
|
||||
* 按钮视觉变体
|
||||
* @typedef {'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'link'} ButtonType
|
||||
* @typedef {'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'link' | 'icon'} ButtonType
|
||||
*/
|
||||
|
||||
const props = defineProps({
|
||||
/** 视觉变体 */
|
||||
/** 视觉变体;icon 为工具条 / 面板头部动作位的正方形描边图标按钮 */
|
||||
type: {
|
||||
/** @type {ButtonType} */
|
||||
type: String,
|
||||
default: 'primary',
|
||||
validator: (value) =>
|
||||
['primary', 'secondary', 'outline', 'ghost', 'danger', 'link'].includes(value),
|
||||
['primary', 'secondary', 'outline', 'ghost', 'danger', 'link', 'icon'].includes(value),
|
||||
},
|
||||
/** 禁用态 */
|
||||
disabled: {
|
||||
|
||||
Reference in new issue
Block a user