20260819101952

This commit is contained in:
oneao committed 2026-08-19 10:19:56 +08:00
1 parent e91fd1d8de
commit 1ffc8e1ac9
14 files changed
+258 -886

No files matched your search

@@ -5,7 +5,7 @@ import { Loader } from '@lucide/vue'
/* ---------- props / emits / slots ---------- */
/**
* 按钮视觉变体
* @typedef {'default' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'link'} ButtonType
* @typedef {'primary' | 'secondary' | 'outline' | 'ghost' | 'danger' | 'link'} ButtonType
*/
const props = defineProps({
@@ -13,9 +13,9 @@ const props = defineProps({
type: {
/** @type {ButtonType} */
type: String,
default: 'default',
default: 'primary',
validator: (value) =>
['default', 'secondary', 'outline', 'ghost', 'danger', 'link'].includes(value),
['primary', 'secondary', 'outline', 'ghost', 'danger', 'link'].includes(value),
},
/** 禁用态 */
disabled: {