straw-ui-vue 0.1.39 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-CbzDZgPw.js → array-Ch8Uq7R-.js} +391 -412
- package/dist/components/st-addon/index.d.ts +3 -0
- package/dist/components/st-addon/st-addon.d.ts +1 -0
- package/dist/components/st-addon/types/st-addon.d.ts +3 -0
- package/dist/components/st-button/base.d.ts +243 -35
- package/dist/components/st-button/index.d.ts +18 -12
- package/dist/components/st-button/st-button-group.d.ts +3 -2
- package/dist/components/st-button/types/st-button-group.d.ts +12 -7
- package/dist/components/st-button/types/st-button.d.ts +79 -75
- package/dist/components/st-button/useButtonStyle.d.ts +3 -2
- package/dist/components/st-cascade/desktop/st-cascade-desktop.d.ts +1 -0
- package/dist/components/st-cascade/desktop/types/st-cascade-desktop.d.ts +3 -0
- package/dist/components/st-cascade/index.d.ts +12 -0
- package/dist/components/st-cascade/phone/st-cascade-phone.d.ts +1 -0
- package/dist/components/st-cascade/phone/types/st-cascade-phone.d.ts +3 -0
- package/dist/components/st-cascade/types/st-cascade.d.ts +43 -43
- package/dist/components/st-checkbox/index.d.ts +9 -0
- package/dist/components/st-checkbox/st-checkbox-group.d.ts +1 -0
- package/dist/components/st-checkbox/st-checkbox.d.ts +2 -0
- package/dist/components/st-checkbox/types/st-checkbox-group.d.ts +3 -0
- package/dist/components/st-checkbox/types/st-checkbox.d.ts +4 -0
- package/dist/components/st-color-picker/index.d.ts +23 -20
- package/dist/components/st-color-picker/st-color-picker-panel.d.ts +7 -3
- package/dist/components/st-color-picker/st-color-picker.d.ts +2 -3
- package/dist/components/st-color-picker/types/st-color-picker-panel.d.ts +0 -4
- package/dist/components/st-color-picker/types/st-color-picker.d.ts +0 -4
- package/dist/components/st-date-picker/index.d.ts +5 -5
- package/dist/components/st-date-picker/st-date-picker.d.ts +2 -2
- package/dist/components/st-date-picker/types/st-date-picker.d.ts +0 -2
- package/dist/components/st-datetime-picker/index.d.ts +5 -5
- package/dist/components/st-datetime-picker/st-datetime-picker.d.ts +2 -2
- package/dist/components/st-datetime-picker/types/st-datetime-picker.d.ts +0 -2
- package/dist/components/st-dialog/types/st-dialog-context.d.ts +15 -15
- package/dist/components/st-dialog/types/st-dialog-group-body.d.ts +18 -18
- package/dist/components/st-dialog/types/st-dialog-group-draggable.d.ts +14 -14
- package/dist/components/st-dialog/types/st-dialog-group-overlay.d.ts +17 -17
- package/dist/components/st-dialog/types/st-dialog-group.d.ts +24 -24
- package/dist/components/st-input/index.d.ts +92 -941
- package/dist/components/st-input/st-input-group.d.ts +1 -0
- package/dist/components/st-input/st-input.d.ts +2 -99
- package/dist/components/st-input/st-textarea.d.ts +2 -96
- package/dist/components/st-input/types/st-input-group.d.ts +8 -1
- package/dist/components/st-input/types/st-input-number.d.ts +59 -56
- package/dist/components/st-input/types/st-input.d.ts +3 -0
- package/dist/components/st-input/types/st-textarea.d.ts +3 -0
- package/dist/components/st-input/useInputGroupState.d.ts +2 -0
- package/dist/components/st-pagination/index.d.ts +3 -0
- package/dist/components/st-pagination/st-pagination.d.ts +2 -0
- package/dist/components/st-pagination/types/st-pagination.d.ts +3 -0
- package/dist/components/st-popover/index.d.ts +33 -30
- package/dist/components/st-popover/st-popover-container.d.ts +10 -5
- package/dist/components/st-popover/st-popover.d.ts +2 -4
- package/dist/components/st-popover/types/st-popover-container.d.ts +1 -5
- package/dist/components/st-popover/types/st-popover.d.ts +1 -5
- package/dist/components/st-radio/index.d.ts +9 -0
- package/dist/components/st-radio/st-radio-group.d.ts +1 -0
- package/dist/components/st-radio/st-radio.d.ts +2 -0
- package/dist/components/st-radio/types/st-radio-context.d.ts +3 -0
- package/dist/components/st-radio/types/st-radio-group.d.ts +3 -0
- package/dist/components/st-radio/types/st-radio.d.ts +3 -0
- package/dist/components/st-scrollbar/desktop/types/index.d.ts +2 -2
- package/dist/components/st-scrollbar/desktop/types/st-scrollbar-desktop.d.ts +15 -15
- package/dist/components/st-scrollbar/phone/types/index.d.ts +3 -3
- package/dist/components/st-scrollbar/types/index.d.ts +12 -12
- package/dist/components/st-scrollbar/types/st-scrollbar-context.d.ts +62 -62
- package/dist/components/st-scrollbar/types/st-scrollbar-group-nav-button.d.ts +11 -11
- package/dist/components/st-scrollbar/useVirtualScrollbar.d.ts +4 -0
- package/dist/components/st-select/desktop/st-select-desktop.d.ts +3 -2
- package/dist/components/st-select/desktop/types/st-select-desktop.d.ts +3 -2
- package/dist/components/st-select/index.d.ts +61 -37
- package/dist/components/st-select/phone/st-select-phone.d.ts +3 -2
- package/dist/components/st-select/phone/types/st-select-phone-footer.d.ts +3 -0
- package/dist/components/st-select/phone/types/st-select-phone.d.ts +3 -2
- package/dist/components/st-select/st-select-container.d.ts +7 -3
- package/dist/components/st-select/st-select-trigger.d.ts +1 -0
- package/dist/components/st-select/st-select.d.ts +2 -2
- package/dist/components/st-select/types/st-select-container.d.ts +0 -4
- package/dist/components/st-select/types/st-select-trigger.d.ts +3 -0
- package/dist/components/st-select/useSelectContainerState.d.ts +4 -5
- package/dist/components/st-select/useSelectState.d.ts +2 -2
- package/dist/components/st-sidebar/types/st-sidebar.d.ts +2 -4
- package/dist/components/st-skeleton/types/st-skeleton-item.d.ts +17 -17
- package/dist/components/st-skeleton/types/st-skeleton.d.ts +23 -23
- package/dist/components/st-slider/index.d.ts +8 -8
- package/dist/components/st-slider/st-slider.d.ts +3 -3
- package/dist/components/st-slider/types/st-slider.d.ts +0 -2
- package/dist/components/st-splitter/index.d.ts +47 -22
- package/dist/components/st-splitter/st-splitter-group-collapse.d.ts +6 -0
- package/dist/components/st-splitter/st-splitter-group.d.ts +1 -0
- package/dist/components/st-splitter/st-splitter-panel.d.ts +6 -1
- package/dist/components/st-splitter/st-splitter.d.ts +1 -0
- package/dist/components/st-splitter/types/index.d.ts +6 -3
- package/dist/components/st-splitter/types/st-splitter-context.d.ts +188 -158
- package/dist/components/st-splitter/types/st-splitter-group-collapse.d.ts +23 -0
- package/dist/components/st-splitter/types/st-splitter-group-handle.d.ts +9 -9
- package/dist/components/st-splitter/types/st-splitter-group.d.ts +64 -60
- package/dist/components/st-splitter/types/st-splitter-panel.d.ts +46 -50
- package/dist/components/st-splitter/types/st-splitter.d.ts +121 -98
- package/dist/components/st-splitter/useSplitter.d.ts +3 -2
- package/dist/components/st-switch/index.d.ts +3 -0
- package/dist/components/st-switch/st-switch.d.ts +2 -0
- package/dist/components/st-switch/types/st-switch.d.ts +3 -0
- package/dist/components/st-table/index.d.ts +1102 -0
- package/dist/components/st-table/st-table-group-body.d.ts +11 -0
- package/dist/components/st-table/st-table-group-cell.d.ts +17 -0
- package/dist/components/st-table/st-table-group-check-all.d.ts +15 -0
- package/dist/components/st-table/st-table-group-check.d.ts +15 -0
- package/dist/components/st-table/st-table-group-column.d.ts +15 -0
- package/dist/components/st-table/st-table-group-drag.d.ts +15 -0
- package/dist/components/st-table/st-table-group-empty.d.ts +11 -0
- package/dist/components/st-table/st-table-group-expand.d.ts +15 -0
- package/dist/components/st-table/st-table-group-header.d.ts +11 -0
- package/dist/components/st-table/st-table-group-row.d.ts +15 -0
- package/dist/components/st-table/st-table-group.d.ts +111 -0
- package/dist/components/st-table/st-table.d.ts +79 -0
- package/dist/components/st-table/tableStyle.d.ts +19 -0
- package/dist/components/st-table/types/index.d.ts +13 -0
- package/dist/components/st-table/types/st-table-context.d.ts +219 -0
- package/dist/components/st-table/types/st-table-group-body.d.ts +18 -0
- package/dist/components/st-table/types/st-table-group-cell.d.ts +26 -0
- package/dist/components/st-table/types/st-table-group-check-all.d.ts +18 -0
- package/dist/components/st-table/types/st-table-group-check.d.ts +18 -0
- package/dist/components/st-table/types/st-table-group-column.d.ts +24 -0
- package/dist/components/st-table/types/st-table-group-drag.d.ts +18 -0
- package/dist/components/st-table/types/st-table-group-empty.d.ts +15 -0
- package/dist/components/st-table/types/st-table-group-expand.d.ts +18 -0
- package/dist/components/st-table/types/st-table-group-header.d.ts +15 -0
- package/dist/components/st-table/types/st-table-group-row.d.ts +24 -0
- package/dist/components/st-table/types/st-table-group.d.ts +22 -0
- package/dist/components/st-table/types/st-table.d.ts +269 -0
- package/dist/components/st-table/useTableColumnResize.d.ts +27 -0
- package/dist/components/st-table/useTableDrag.d.ts +37 -0
- package/dist/components/st-table/useTableFlatten.d.ts +30 -0
- package/dist/components/st-table/useTableLazy.d.ts +25 -0
- package/dist/components/st-table/useTableMerge.d.ts +32 -0
- package/dist/components/st-table/useTableSelection.d.ts +33 -0
- package/dist/components/st-table/useTableSort.d.ts +27 -0
- package/dist/components/st-table/useTableState.d.ts +6 -0
- package/dist/components/st-table/useTableVirtual.d.ts +67 -0
- package/dist/components/st-tabs/desktop/types/st-tabs-desktop-group-panel.d.ts +10 -10
- package/dist/components/st-tabs/desktop/types/st-tabs-desktop.d.ts +10 -10
- package/dist/components/st-tabs/phone/types/st-tabs-phone-group-panel.d.ts +15 -15
- package/dist/components/st-tabs/phone/types/st-tabs-phone.d.ts +13 -13
- package/dist/components/st-tabs/types/st-tabs-context.d.ts +66 -66
- package/dist/components/st-tabs/types/st-tabs-group-line.d.ts +13 -13
- package/dist/components/st-tag/index.d.ts +6 -0
- package/dist/components/st-tag/st-tag.d.ts +3 -0
- package/dist/components/st-tag/tagTone.d.ts +10 -0
- package/dist/components/st-tag/types/st-tag.d.ts +8 -2
- package/dist/components/st-time-picker/index.d.ts +23 -17
- package/dist/components/st-time-picker/st-time-picker-panel.d.ts +7 -3
- package/dist/components/st-time-picker/st-time-picker.d.ts +2 -2
- package/dist/components/st-time-picker/types/st-time-picker-panel.d.ts +0 -4
- package/dist/components/st-time-picker/types/st-time-picker.d.ts +0 -2
- package/dist/components/st-toggle/index.d.ts +8 -8
- package/dist/components/st-toggle/st-toggle.d.ts +4 -4
- package/dist/components/st-toggle/types/st-toggle.d.ts +3 -4
- package/dist/components/st-tooltip/index.d.ts +5 -5
- package/dist/components/st-tooltip/st-tooltip.d.ts +2 -2
- package/dist/components/st-tooltip/types/st-tooltip.d.ts +0 -4
- package/dist/components/st-tree/types/st-tree-context.d.ts +47 -47
- package/dist/components/st-tree/types/st-tree-group-arrow.d.ts +16 -16
- package/dist/components/st-tree/types/st-tree-group-children.d.ts +15 -15
- package/dist/components/st-tree/types/st-tree-group-label.d.ts +13 -13
- package/dist/components/st-tree/types/st-tree-group-node.d.ts +20 -20
- package/dist/components/st-tree/types/st-tree-group.d.ts +32 -32
- package/dist/components/st-tree/types/st-tree-node.d.ts +39 -39
- package/dist/components/st-tree/types/st-tree-sub-group.d.ts +23 -23
- package/dist/components/st-tree/types/st-tree.d.ts +85 -85
- package/dist/composables/use-choice-control.d.ts +9 -0
- package/dist/constants/size.d.ts +37 -0
- package/dist/global.d.ts +190 -177
- package/dist/index.d.ts +24 -1
- package/dist/straw-ui.js +5933 -3626
- package/dist/types/color.d.ts +7 -0
- package/dist/types/device.d.ts +4 -4
- package/dist/types/size.d.ts +7 -0
- package/dist/types.d.ts +2 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/z-index.d.ts +23 -8
- package/dist/utils.js +3 -3
- package/dist/variables.css +127 -127
- package/package.json +8 -8
|
@@ -4,6 +4,7 @@ export declare const StAddon: {
|
|
|
4
4
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
5
|
click: (event: MouseEvent) => any;
|
|
6
6
|
}, import('vue').PublicProps, {
|
|
7
|
+
size: import('../../types.ts').StSize;
|
|
7
8
|
align: import('./index.ts').StAddonAlign;
|
|
8
9
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
9
10
|
P: {};
|
|
@@ -15,6 +16,7 @@ export declare const StAddon: {
|
|
|
15
16
|
}, Readonly<import('./index.ts').StAddonProps> & Readonly<{
|
|
16
17
|
onClick?: (event: MouseEvent) => any;
|
|
17
18
|
}>, {}, {}, {}, {}, {
|
|
19
|
+
size: import('../../types.ts').StSize;
|
|
18
20
|
align: import('./index.ts').StAddonAlign;
|
|
19
21
|
}>;
|
|
20
22
|
__isFragment?: never;
|
|
@@ -25,6 +27,7 @@ export declare const StAddon: {
|
|
|
25
27
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
28
|
click: (event: MouseEvent) => any;
|
|
27
29
|
}, string, {
|
|
30
|
+
size: import('../../types.ts').StSize;
|
|
28
31
|
align: import('./index.ts').StAddonAlign;
|
|
29
32
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
30
33
|
$slots: {
|
|
@@ -8,6 +8,7 @@ declare const __VLS_base: import('vue').DefineComponent<StAddonProps, {}, {}, {}
|
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<StAddonProps> & Readonly<{
|
|
9
9
|
onClick?: (event: MouseEvent) => any;
|
|
10
10
|
}>, {
|
|
11
|
+
size: import('../../types.ts').StSize;
|
|
11
12
|
align: StAddonAlign;
|
|
12
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { VNodeChild } from 'vue';
|
|
2
|
+
import type { StSize } from '@/types/size.d.ts';
|
|
2
3
|
|
|
3
4
|
/** StAddon 对齐类型 */
|
|
4
5
|
export type StAddonAlign = 'inline-start' | 'inline-end' | 'block-start' | 'block-end';
|
|
@@ -7,6 +8,8 @@ export type StAddonAlign = 'inline-start' | 'inline-end' | 'block-start' | 'bloc
|
|
|
7
8
|
export interface StAddonProps {
|
|
8
9
|
/** 对齐方式 */
|
|
9
10
|
align?: StAddonAlign;
|
|
11
|
+
/** 尺寸(不传则不产出尺寸类,完全交由外层控制) */
|
|
12
|
+
size?: StSize;
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
/** StAddon 组件插槽接口 */
|
|
@@ -1,41 +1,114 @@
|
|
|
1
1
|
export declare const base = "inline-flex items-center justify-center transition-all duration-150 ease-in-out border-none outline-none select-none";
|
|
2
|
-
/**
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
default: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
};
|
|
13
|
-
/** 图标按钮复合变体(type=icon 时补齐同刻度宽度并抹除水平内边距,保证正方形形态) */
|
|
14
|
-
export declare const iconCompoundVariants: readonly [{
|
|
2
|
+
/** 图标按钮复合变体(shape=square 时补齐同刻度宽度并抹除水平内边距,保证正方形形态) */
|
|
3
|
+
export declare const shapeCompoundVariants: readonly [{
|
|
4
|
+
readonly variants: {
|
|
5
|
+
readonly shape: "square";
|
|
6
|
+
readonly size: "xxs";
|
|
7
|
+
};
|
|
8
|
+
readonly className: "w-xxs px-0";
|
|
9
|
+
}, {
|
|
15
10
|
readonly variants: {
|
|
16
|
-
readonly
|
|
17
|
-
readonly size: "
|
|
11
|
+
readonly shape: "square";
|
|
12
|
+
readonly size: "xs";
|
|
13
|
+
};
|
|
14
|
+
readonly className: "w-xs px-0";
|
|
15
|
+
}, {
|
|
16
|
+
readonly variants: {
|
|
17
|
+
readonly shape: "square";
|
|
18
|
+
readonly size: "sm";
|
|
18
19
|
};
|
|
19
20
|
readonly className: "w-sm px-0";
|
|
20
21
|
}, {
|
|
21
22
|
readonly variants: {
|
|
22
|
-
readonly
|
|
23
|
+
readonly shape: "square";
|
|
23
24
|
readonly size: "default";
|
|
24
25
|
};
|
|
25
26
|
readonly className: "w-default px-0";
|
|
26
27
|
}, {
|
|
27
28
|
readonly variants: {
|
|
28
|
-
readonly
|
|
29
|
-
readonly size: "
|
|
29
|
+
readonly shape: "square";
|
|
30
|
+
readonly size: "lg";
|
|
30
31
|
};
|
|
31
32
|
readonly className: "w-lg px-0";
|
|
33
|
+
}, {
|
|
34
|
+
readonly variants: {
|
|
35
|
+
readonly shape: "square";
|
|
36
|
+
readonly size: "xl";
|
|
37
|
+
};
|
|
38
|
+
readonly className: "w-xl px-0";
|
|
39
|
+
}, {
|
|
40
|
+
readonly variants: {
|
|
41
|
+
readonly shape: "square";
|
|
42
|
+
readonly size: "xxl";
|
|
43
|
+
};
|
|
44
|
+
readonly className: "w-xxl px-0";
|
|
32
45
|
}];
|
|
33
|
-
/**
|
|
34
|
-
export declare const
|
|
46
|
+
/** 按钮组容器尺寸映射(横向组定高、纵向组定宽,交叉轴尺寸由子按钮撑开) */
|
|
47
|
+
export declare const groupAxisSizeMap: {
|
|
48
|
+
readonly horizontal: {
|
|
49
|
+
readonly xxs: "h-xxs";
|
|
50
|
+
readonly xs: "h-xs";
|
|
51
|
+
readonly sm: "h-sm";
|
|
52
|
+
readonly default: "h-default";
|
|
53
|
+
readonly lg: "h-lg";
|
|
54
|
+
readonly xl: "h-xl";
|
|
55
|
+
readonly xxl: "h-xxl";
|
|
56
|
+
};
|
|
57
|
+
readonly vertical: {
|
|
58
|
+
readonly xxs: "w-xxs";
|
|
59
|
+
readonly xs: "w-xs";
|
|
60
|
+
readonly sm: "w-sm";
|
|
61
|
+
readonly default: "w-default";
|
|
62
|
+
readonly lg: "w-lg";
|
|
63
|
+
readonly xl: "w-xl";
|
|
64
|
+
readonly xxl: "w-xxl";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
/** 语义色样式映射(基础填充样式,不含交互状态) */
|
|
68
|
+
export declare const colorMap: {
|
|
35
69
|
primary: string;
|
|
36
70
|
default: string;
|
|
71
|
+
success: string;
|
|
72
|
+
warning: string;
|
|
73
|
+
danger: string;
|
|
74
|
+
};
|
|
75
|
+
/** 填充层次样式映射(solid 为默认填充态,不产出类;ghost 抹除填充色,语义文字色由 compound 变体补齐) */
|
|
76
|
+
export declare const variantMap: {
|
|
77
|
+
solid: string;
|
|
37
78
|
ghost: string;
|
|
38
79
|
};
|
|
80
|
+
/** 层次 × 语义色复合变体(ghost 叠加 color 时保留对应语义文字色) */
|
|
81
|
+
export declare const colorVariantCompoundVariants: readonly [{
|
|
82
|
+
readonly variants: {
|
|
83
|
+
readonly color: "primary";
|
|
84
|
+
readonly variant: "ghost";
|
|
85
|
+
};
|
|
86
|
+
readonly className: "text-primary";
|
|
87
|
+
}, {
|
|
88
|
+
readonly variants: {
|
|
89
|
+
readonly color: "default";
|
|
90
|
+
readonly variant: "ghost";
|
|
91
|
+
};
|
|
92
|
+
readonly className: "text-secondary-foreground";
|
|
93
|
+
}, {
|
|
94
|
+
readonly variants: {
|
|
95
|
+
readonly color: "success";
|
|
96
|
+
readonly variant: "ghost";
|
|
97
|
+
};
|
|
98
|
+
readonly className: "text-success";
|
|
99
|
+
}, {
|
|
100
|
+
readonly variants: {
|
|
101
|
+
readonly color: "warning";
|
|
102
|
+
readonly variant: "ghost";
|
|
103
|
+
};
|
|
104
|
+
readonly className: "text-warning";
|
|
105
|
+
}, {
|
|
106
|
+
readonly variants: {
|
|
107
|
+
readonly color: "danger";
|
|
108
|
+
readonly variant: "ghost";
|
|
109
|
+
};
|
|
110
|
+
readonly className: "text-danger";
|
|
111
|
+
}];
|
|
39
112
|
export declare const disabledMap: {
|
|
40
113
|
true: string;
|
|
41
114
|
false: string;
|
|
@@ -45,21 +118,156 @@ export declare const loadingMap: {
|
|
|
45
118
|
false: string;
|
|
46
119
|
};
|
|
47
120
|
export declare const groupMap: {
|
|
121
|
+
none: string;
|
|
48
122
|
vertical: string;
|
|
49
123
|
horizontal: string;
|
|
50
|
-
false: string;
|
|
51
|
-
};
|
|
52
|
-
/** 桌面端交互态映射(hover) */
|
|
53
|
-
export declare const hoverMap: {
|
|
54
|
-
primary: string;
|
|
55
|
-
default: string;
|
|
56
|
-
ghost: string;
|
|
57
|
-
disabled: string;
|
|
58
|
-
};
|
|
59
|
-
/** 移动端交互态映射(active) */
|
|
60
|
-
export declare const activeMap: {
|
|
61
|
-
primary: string;
|
|
62
|
-
default: string;
|
|
63
|
-
ghost: string;
|
|
64
|
-
disabled: string;
|
|
65
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* 桌面端 hover 态复合变体(color × variant 两个独立轴的配合;disabled 显式门控,禁用态不产出 hover 类)
|
|
127
|
+
* - solid:在原填充色上加深
|
|
128
|
+
* - ghost:叠加对应语义的半透明底色,default 走中性 accent
|
|
129
|
+
* 类名需保持字面量,供 UnoCSS 静态扫描收集
|
|
130
|
+
* */
|
|
131
|
+
export declare const hoverCompoundVariants: readonly [{
|
|
132
|
+
readonly variants: {
|
|
133
|
+
readonly color: "primary";
|
|
134
|
+
readonly variant: "solid";
|
|
135
|
+
readonly disabled: false;
|
|
136
|
+
};
|
|
137
|
+
readonly className: "hover:bg-primary/90";
|
|
138
|
+
}, {
|
|
139
|
+
readonly variants: {
|
|
140
|
+
readonly color: "default";
|
|
141
|
+
readonly variant: "solid";
|
|
142
|
+
readonly disabled: false;
|
|
143
|
+
};
|
|
144
|
+
readonly className: "hover:bg-secondary/80";
|
|
145
|
+
}, {
|
|
146
|
+
readonly variants: {
|
|
147
|
+
readonly color: "success";
|
|
148
|
+
readonly variant: "solid";
|
|
149
|
+
readonly disabled: false;
|
|
150
|
+
};
|
|
151
|
+
readonly className: "hover:bg-success/90";
|
|
152
|
+
}, {
|
|
153
|
+
readonly variants: {
|
|
154
|
+
readonly color: "warning";
|
|
155
|
+
readonly variant: "solid";
|
|
156
|
+
readonly disabled: false;
|
|
157
|
+
};
|
|
158
|
+
readonly className: "hover:bg-warning/90";
|
|
159
|
+
}, {
|
|
160
|
+
readonly variants: {
|
|
161
|
+
readonly color: "danger";
|
|
162
|
+
readonly variant: "solid";
|
|
163
|
+
readonly disabled: false;
|
|
164
|
+
};
|
|
165
|
+
readonly className: "hover:bg-danger/90";
|
|
166
|
+
}, {
|
|
167
|
+
readonly variants: {
|
|
168
|
+
readonly color: "primary";
|
|
169
|
+
readonly variant: "ghost";
|
|
170
|
+
readonly disabled: false;
|
|
171
|
+
};
|
|
172
|
+
readonly className: "hover:bg-primary/10";
|
|
173
|
+
}, {
|
|
174
|
+
readonly variants: {
|
|
175
|
+
readonly color: "default";
|
|
176
|
+
readonly variant: "ghost";
|
|
177
|
+
readonly disabled: false;
|
|
178
|
+
};
|
|
179
|
+
readonly className: "hover:bg-accent";
|
|
180
|
+
}, {
|
|
181
|
+
readonly variants: {
|
|
182
|
+
readonly color: "success";
|
|
183
|
+
readonly variant: "ghost";
|
|
184
|
+
readonly disabled: false;
|
|
185
|
+
};
|
|
186
|
+
readonly className: "hover:bg-success/10";
|
|
187
|
+
}, {
|
|
188
|
+
readonly variants: {
|
|
189
|
+
readonly color: "warning";
|
|
190
|
+
readonly variant: "ghost";
|
|
191
|
+
readonly disabled: false;
|
|
192
|
+
};
|
|
193
|
+
readonly className: "hover:bg-warning/10";
|
|
194
|
+
}, {
|
|
195
|
+
readonly variants: {
|
|
196
|
+
readonly color: "danger";
|
|
197
|
+
readonly variant: "ghost";
|
|
198
|
+
readonly disabled: false;
|
|
199
|
+
};
|
|
200
|
+
readonly className: "hover:bg-danger/10";
|
|
201
|
+
}];
|
|
202
|
+
/** 移动端按压态复合变体(active:门控与配色规则同 hoverCompoundVariants) */
|
|
203
|
+
export declare const activeCompoundVariants: readonly [{
|
|
204
|
+
readonly variants: {
|
|
205
|
+
readonly color: "primary";
|
|
206
|
+
readonly variant: "solid";
|
|
207
|
+
readonly disabled: false;
|
|
208
|
+
};
|
|
209
|
+
readonly className: "active:bg-primary/90";
|
|
210
|
+
}, {
|
|
211
|
+
readonly variants: {
|
|
212
|
+
readonly color: "default";
|
|
213
|
+
readonly variant: "solid";
|
|
214
|
+
readonly disabled: false;
|
|
215
|
+
};
|
|
216
|
+
readonly className: "active:bg-secondary/80";
|
|
217
|
+
}, {
|
|
218
|
+
readonly variants: {
|
|
219
|
+
readonly color: "success";
|
|
220
|
+
readonly variant: "solid";
|
|
221
|
+
readonly disabled: false;
|
|
222
|
+
};
|
|
223
|
+
readonly className: "active:bg-success/90";
|
|
224
|
+
}, {
|
|
225
|
+
readonly variants: {
|
|
226
|
+
readonly color: "warning";
|
|
227
|
+
readonly variant: "solid";
|
|
228
|
+
readonly disabled: false;
|
|
229
|
+
};
|
|
230
|
+
readonly className: "active:bg-warning/90";
|
|
231
|
+
}, {
|
|
232
|
+
readonly variants: {
|
|
233
|
+
readonly color: "danger";
|
|
234
|
+
readonly variant: "solid";
|
|
235
|
+
readonly disabled: false;
|
|
236
|
+
};
|
|
237
|
+
readonly className: "active:bg-danger/90";
|
|
238
|
+
}, {
|
|
239
|
+
readonly variants: {
|
|
240
|
+
readonly color: "primary";
|
|
241
|
+
readonly variant: "ghost";
|
|
242
|
+
readonly disabled: false;
|
|
243
|
+
};
|
|
244
|
+
readonly className: "active:bg-primary/10";
|
|
245
|
+
}, {
|
|
246
|
+
readonly variants: {
|
|
247
|
+
readonly color: "default";
|
|
248
|
+
readonly variant: "ghost";
|
|
249
|
+
readonly disabled: false;
|
|
250
|
+
};
|
|
251
|
+
readonly className: "active:bg-accent";
|
|
252
|
+
}, {
|
|
253
|
+
readonly variants: {
|
|
254
|
+
readonly color: "success";
|
|
255
|
+
readonly variant: "ghost";
|
|
256
|
+
readonly disabled: false;
|
|
257
|
+
};
|
|
258
|
+
readonly className: "active:bg-success/10";
|
|
259
|
+
}, {
|
|
260
|
+
readonly variants: {
|
|
261
|
+
readonly color: "warning";
|
|
262
|
+
readonly variant: "ghost";
|
|
263
|
+
readonly disabled: false;
|
|
264
|
+
};
|
|
265
|
+
readonly className: "active:bg-warning/10";
|
|
266
|
+
}, {
|
|
267
|
+
readonly variants: {
|
|
268
|
+
readonly color: "danger";
|
|
269
|
+
readonly variant: "ghost";
|
|
270
|
+
readonly disabled: false;
|
|
271
|
+
};
|
|
272
|
+
readonly className: "active:bg-danger/10";
|
|
273
|
+
}];
|
|
@@ -31,10 +31,11 @@ export declare const StButton: {
|
|
|
31
31
|
}) & {
|
|
32
32
|
StButtonGroup: {
|
|
33
33
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./index.ts').StButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
34
|
-
size: import('
|
|
35
|
-
type: import('./index.ts').StButtonType;
|
|
34
|
+
size: import('../../types.ts').StSize;
|
|
36
35
|
variant: import('./index.ts').StButtonVariant;
|
|
36
|
+
color: import('../../types.ts').StColor;
|
|
37
37
|
disabled: boolean;
|
|
38
|
+
shape: import('./index.ts').StButtonShape;
|
|
38
39
|
loading: boolean;
|
|
39
40
|
direction: import('./index.ts').StButtonGroupDirection;
|
|
40
41
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -45,10 +46,11 @@ export declare const StButton: {
|
|
|
45
46
|
M: {};
|
|
46
47
|
Defaults: {};
|
|
47
48
|
}, Readonly<import('./index.ts').StButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
48
|
-
size: import('
|
|
49
|
-
type: import('./index.ts').StButtonType;
|
|
49
|
+
size: import('../../types.ts').StSize;
|
|
50
50
|
variant: import('./index.ts').StButtonVariant;
|
|
51
|
+
color: import('../../types.ts').StColor;
|
|
51
52
|
disabled: boolean;
|
|
53
|
+
shape: import('./index.ts').StButtonShape;
|
|
52
54
|
loading: boolean;
|
|
53
55
|
direction: import('./index.ts').StButtonGroupDirection;
|
|
54
56
|
}>;
|
|
@@ -56,10 +58,11 @@ export declare const StButton: {
|
|
|
56
58
|
__isTeleport?: never;
|
|
57
59
|
__isSuspense?: never;
|
|
58
60
|
} & import('vue').ComponentOptionsBase<Readonly<import('./index.ts').StButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
59
|
-
size: import('
|
|
60
|
-
type: import('./index.ts').StButtonType;
|
|
61
|
+
size: import('../../types.ts').StSize;
|
|
61
62
|
variant: import('./index.ts').StButtonVariant;
|
|
63
|
+
color: import('../../types.ts').StColor;
|
|
62
64
|
disabled: boolean;
|
|
65
|
+
shape: import('./index.ts').StButtonShape;
|
|
63
66
|
loading: boolean;
|
|
64
67
|
direction: import('./index.ts').StButtonGroupDirection;
|
|
65
68
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -120,10 +123,11 @@ export declare const StButton: {
|
|
|
120
123
|
};
|
|
121
124
|
export declare const StButtonGroup: {
|
|
122
125
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./index.ts').StButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
123
|
-
size: import('
|
|
124
|
-
type: import('./index.ts').StButtonType;
|
|
126
|
+
size: import('../../types.ts').StSize;
|
|
125
127
|
variant: import('./index.ts').StButtonVariant;
|
|
128
|
+
color: import('../../types.ts').StColor;
|
|
126
129
|
disabled: boolean;
|
|
130
|
+
shape: import('./index.ts').StButtonShape;
|
|
127
131
|
loading: boolean;
|
|
128
132
|
direction: import('./index.ts').StButtonGroupDirection;
|
|
129
133
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
@@ -134,10 +138,11 @@ export declare const StButtonGroup: {
|
|
|
134
138
|
M: {};
|
|
135
139
|
Defaults: {};
|
|
136
140
|
}, Readonly<import('./index.ts').StButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
137
|
-
size: import('
|
|
138
|
-
type: import('./index.ts').StButtonType;
|
|
141
|
+
size: import('../../types.ts').StSize;
|
|
139
142
|
variant: import('./index.ts').StButtonVariant;
|
|
143
|
+
color: import('../../types.ts').StColor;
|
|
140
144
|
disabled: boolean;
|
|
145
|
+
shape: import('./index.ts').StButtonShape;
|
|
141
146
|
loading: boolean;
|
|
142
147
|
direction: import('./index.ts').StButtonGroupDirection;
|
|
143
148
|
}>;
|
|
@@ -145,10 +150,11 @@ export declare const StButtonGroup: {
|
|
|
145
150
|
__isTeleport?: never;
|
|
146
151
|
__isSuspense?: never;
|
|
147
152
|
} & import('vue').ComponentOptionsBase<Readonly<import('./index.ts').StButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
148
|
-
size: import('
|
|
149
|
-
type: import('./index.ts').StButtonType;
|
|
153
|
+
size: import('../../types.ts').StSize;
|
|
150
154
|
variant: import('./index.ts').StButtonVariant;
|
|
155
|
+
color: import('../../types.ts').StColor;
|
|
151
156
|
disabled: boolean;
|
|
157
|
+
shape: import('./index.ts').StButtonShape;
|
|
152
158
|
loading: boolean;
|
|
153
159
|
direction: import('./index.ts').StButtonGroupDirection;
|
|
154
160
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -4,10 +4,11 @@ type __VLS_Slots = {} & {
|
|
|
4
4
|
default?: (props: typeof __VLS_1) => any;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_base: import('vue').DefineComponent<StButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StButtonGroupProps> & Readonly<{}>, {
|
|
7
|
-
size: import('
|
|
8
|
-
type: import('./index.ts').StButtonType;
|
|
7
|
+
size: import('../../types.ts').StSize;
|
|
9
8
|
variant: import('./index.ts').StButtonVariant;
|
|
9
|
+
color: import('../../types.ts').StColor;
|
|
10
10
|
disabled: boolean;
|
|
11
|
+
shape: import('./index.ts').StButtonShape;
|
|
11
12
|
loading: boolean;
|
|
12
13
|
direction: StButtonGroupDirection;
|
|
13
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type { ComputedRef, VNodeChild } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { StColor } from '@/types/color.d.ts';
|
|
3
|
+
import type { StSize } from '@/types/size.d.ts';
|
|
4
|
+
import type { StButtonShape, StButtonVariant } from './st-button.d.ts';
|
|
3
5
|
|
|
4
6
|
/** 按钮组排列方向类型 */
|
|
5
7
|
export type StButtonGroupDirection = 'horizontal' | 'vertical';
|
|
6
8
|
|
|
7
9
|
/** 按钮组注入上下文接口 */
|
|
8
10
|
export interface StButtonGroupContext {
|
|
11
|
+
color: ComputedRef<StColor>;
|
|
9
12
|
variant: ComputedRef<StButtonVariant>;
|
|
10
|
-
|
|
11
|
-
size: ComputedRef<
|
|
13
|
+
shape: ComputedRef<StButtonShape>;
|
|
14
|
+
size: ComputedRef<StSize>;
|
|
12
15
|
disabled: ComputedRef<boolean>;
|
|
13
16
|
loading: ComputedRef<boolean>;
|
|
14
17
|
inGroup: ComputedRef<boolean>;
|
|
@@ -16,12 +19,14 @@ export interface StButtonGroupContext {
|
|
|
16
19
|
}
|
|
17
20
|
/** 按钮组组件属性 */
|
|
18
21
|
export interface StButtonGroupProps {
|
|
19
|
-
/**
|
|
22
|
+
/** 按钮语义色 */
|
|
23
|
+
color?: StColor;
|
|
24
|
+
/** 按钮填充层次 */
|
|
20
25
|
variant?: StButtonVariant;
|
|
21
|
-
/**
|
|
22
|
-
|
|
26
|
+
/** 按钮形态 */
|
|
27
|
+
shape?: StButtonShape;
|
|
23
28
|
/** 按钮尺寸 */
|
|
24
|
-
size?:
|
|
29
|
+
size?: StSize;
|
|
25
30
|
/** 是否禁用 */
|
|
26
31
|
disabled?: boolean;
|
|
27
32
|
/** 是否显示加载状态 */
|
|
@@ -1,75 +1,79 @@
|
|
|
1
|
-
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
export {}
|
|
1
|
+
import type { ClassValue, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import type { StColor } from '@/types/color.d.ts';
|
|
3
|
+
import type { DeviceType } from '@/types/device.d.ts';
|
|
4
|
+
import type { StSize } from '@/types/size.d.ts';
|
|
5
|
+
import type {
|
|
6
|
+
StButtonDesktopEmits,
|
|
7
|
+
StButtonDesktopProps,
|
|
8
|
+
StButtonDesktopSlots,
|
|
9
|
+
} from '../desktop/types/st-button-desktop.d.ts';
|
|
10
|
+
import type { StButtonPhoneEmits, StButtonPhoneProps, StButtonPhoneSlots } from '../phone/types/st-button-phone.d.ts';
|
|
11
|
+
|
|
12
|
+
/** 按钮填充层次 */
|
|
13
|
+
export type StButtonVariant = 'solid' | 'ghost';
|
|
14
|
+
|
|
15
|
+
/** 按钮形态 */
|
|
16
|
+
export type StButtonShape = 'default' | 'square';
|
|
17
|
+
|
|
18
|
+
/** 原生 button 类型 */
|
|
19
|
+
export type StButtonType = 'button' | 'submit' | 'reset';
|
|
20
|
+
|
|
21
|
+
/** 按钮组件基础属性 */
|
|
22
|
+
export interface StButtonBaseProps {
|
|
23
|
+
/** 按钮语义色 */
|
|
24
|
+
color?: StColor;
|
|
25
|
+
/** 按钮填充层次 */
|
|
26
|
+
variant?: StButtonVariant;
|
|
27
|
+
/** 按钮形态 */
|
|
28
|
+
shape?: StButtonShape;
|
|
29
|
+
/** 原生 button 类型 */
|
|
30
|
+
type?: StButtonType;
|
|
31
|
+
/** 按钮尺寸 */
|
|
32
|
+
size?: StSize;
|
|
33
|
+
/** 是否禁用 */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** 是否显示加载状态 */
|
|
36
|
+
loading?: boolean;
|
|
37
|
+
/** 前缀图标名称 */
|
|
38
|
+
prefixIcon?: string;
|
|
39
|
+
/** 后缀图标名称 */
|
|
40
|
+
suffixIcon?: string;
|
|
41
|
+
/** 前缀图标类名 */
|
|
42
|
+
prefixIconClass?: ClassValue;
|
|
43
|
+
/** 前缀图标样式 */
|
|
44
|
+
prefixIconStyle?: StyleValue;
|
|
45
|
+
/** 后缀图标类名 */
|
|
46
|
+
suffixIconClass?: ClassValue;
|
|
47
|
+
/** 后缀图标样式 */
|
|
48
|
+
suffixIconStyle?: StyleValue;
|
|
49
|
+
/** loading图标类名 */
|
|
50
|
+
loadingIconClass?: ClassValue;
|
|
51
|
+
/** loading图标样式 */
|
|
52
|
+
loadingIconStyle?: StyleValue;
|
|
53
|
+
}
|
|
54
|
+
/** 按钮组件基础插槽 */
|
|
55
|
+
export interface StButtonBaseSlots {
|
|
56
|
+
/** 默认插槽 */
|
|
57
|
+
default?: () => VNodeChild;
|
|
58
|
+
/** 前缀图标插槽 */
|
|
59
|
+
prefixIcon?: () => VNodeChild;
|
|
60
|
+
/** 后缀图标插槽 */
|
|
61
|
+
suffixIcon?: () => VNodeChild;
|
|
62
|
+
}
|
|
63
|
+
/** 按钮组件基础事件 */
|
|
64
|
+
export interface StButtonBaseEmits {
|
|
65
|
+
/** 点击事件 */
|
|
66
|
+
click: [event: MouseEvent];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** 按钮组件属性 */
|
|
70
|
+
export interface StButtonProps extends StButtonDesktopProps, StButtonPhoneProps {
|
|
71
|
+
/** 设备类型 */
|
|
72
|
+
deviceType?: DeviceType | 'auto';
|
|
73
|
+
}
|
|
74
|
+
/** 按钮组件插槽类型 */
|
|
75
|
+
export interface StButtonSlots extends StButtonDesktopSlots, StButtonPhoneSlots {}
|
|
76
|
+
/** 按钮组件事件类型 */
|
|
77
|
+
export interface StButtonEmits extends StButtonDesktopEmits, StButtonPhoneEmits {}
|
|
78
|
+
|
|
79
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComputedRef, EmitFn } from 'vue';
|
|
2
|
-
import { StButtonBaseEmits, StButtonBaseProps, StButtonBaseSlots } from './types/st-button.d.ts';
|
|
2
|
+
import { StButtonBaseEmits, StButtonBaseProps, StButtonBaseSlots, StButtonType } from './types/st-button.d.ts';
|
|
3
3
|
/**
|
|
4
4
|
* 按钮交互态轴
|
|
5
5
|
* - hover:桌面端(鼠标悬浮)
|
|
@@ -18,7 +18,8 @@ export type ButtonInteraction = 'hover' | 'active';
|
|
|
18
18
|
export declare function useButtonStyle(props: StButtonBaseProps, interaction: ButtonInteraction, emit: EmitFn<StButtonBaseEmits>, attrs: Record<string, unknown>, slots: StButtonBaseSlots): {
|
|
19
19
|
buttonClasses: ComputedRef<string>;
|
|
20
20
|
isDisabled: ComputedRef<boolean>;
|
|
21
|
-
|
|
21
|
+
isIconOnly: ComputedRef<boolean>;
|
|
22
|
+
nativeType: ComputedRef<StButtonType>;
|
|
22
23
|
hasPrefixIcon: ComputedRef<boolean>;
|
|
23
24
|
hasSuffixIcon: ComputedRef<boolean>;
|
|
24
25
|
actualLoading: ComputedRef<boolean>;
|