@a2simcode/ui 0.0.71 → 0.0.73
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/.cursor/skills/ui-component-helper/README.md +43 -43
- package/.cursor/skills/ui-component-helper/SKILL.md +81 -81
- package/LICENSE +53 -53
- package/README.md +156 -156
- package/dist/components/button/index.d.ts +10 -190
- package/dist/components/button/src/button.vue.d.ts +39 -226
- package/dist/components/buttons/index.d.ts +7 -6
- package/dist/components/buttons/src/interface.d.ts +13 -10
- package/dist/components/index.d.ts +2 -1
- package/dist/simcode-ui.es.js +388 -470
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/dist/ui.css +1 -1
- package/docs/components/autocomplete.md +89 -89
- package/docs/components/barcode.md +101 -101
- package/docs/components/button-select.md +24 -24
- package/docs/components/button.md +117 -117
- package/docs/components/buttons.md +119 -119
- package/docs/components/cascader-select.md +114 -114
- package/docs/components/checkbox.md +114 -114
- package/docs/components/code-mirror.md +85 -85
- package/docs/components/collapse.md +26 -26
- package/docs/components/comp.md +71 -71
- package/docs/components/count-up.md +24 -24
- package/docs/components/count.md +24 -24
- package/docs/components/data-panel.md +24 -24
- package/docs/components/date.md +76 -76
- package/docs/components/dialog-full.md +112 -112
- package/docs/components/dialog.md +127 -127
- package/docs/components/divider.md +24 -24
- package/docs/components/drawer.md +127 -127
- package/docs/components/dynamic-layer.md +118 -118
- package/docs/components/echarts.md +72 -72
- package/docs/components/editor.md +24 -24
- package/docs/components/form.md +27 -27
- package/docs/components/guid.md +39 -39
- package/docs/components/hpanel.md +24 -24
- package/docs/components/icon.md +56 -56
- package/docs/components/input-button.md +24 -24
- package/docs/components/input-code.md +24 -24
- package/docs/components/input-color.md +114 -114
- package/docs/components/input-layer.md +26 -26
- package/docs/components/input-rows.md +370 -370
- package/docs/components/input-tag.md +50 -50
- package/docs/components/input.md +129 -129
- package/docs/components/layer-form.md +61 -61
- package/docs/components/layer.md +127 -127
- package/docs/components/layout.md +132 -132
- package/docs/components/map.md +24 -24
- package/docs/components/menu.md +121 -121
- package/docs/components/meta/buttons.ts +61 -56
- package/docs/components/meta/date.ts +256 -275
- package/docs/components/meta/echarts.ts +64 -64
- package/docs/components/meta/form.ts +160 -160
- package/docs/components/meta/input-cards.ts +112 -112
- package/docs/components/meta/input-color.ts +243 -243
- package/docs/components/meta/input-rows.ts +113 -113
- package/docs/components/meta/layer-form.ts +56 -56
- package/docs/components/meta/map.ts +68 -68
- package/docs/components/meta/panel.ts +152 -152
- package/docs/components/meta/slider.ts +270 -270
- package/docs/components/meta/table.ts +363 -363
- package/docs/components/meta/tabs.ts +136 -136
- package/docs/components/meta/tree-select.ts +199 -199
- package/docs/components/meta/workflow-viewer.ts +55 -55
- package/docs/components/meta/workflow.ts +113 -113
- package/docs/components/number.md +124 -124
- package/docs/components/page.md +57 -57
- package/docs/components/panel.md +37 -37
- package/docs/components/radio.md +87 -87
- package/docs/components/rate.md +71 -71
- package/docs/components/select.md +133 -133
- package/docs/components/slider-captcha.md +41 -41
- package/docs/components/slider.md +101 -101
- package/docs/components/switch.md +90 -90
- package/docs/components/table-panel.md +218 -218
- package/docs/components/table.md +319 -319
- package/docs/components/tabs.md +26 -26
- package/docs/components/title.md +24 -24
- package/docs/components/tree.md +207 -207
- package/docs/components/upload.md +117 -117
- package/docs/components/workflow-viewer.md +21 -21
- package/docs/components/workflow.md +21 -21
- package/docs/examples/autocomplete/advanced.vue +35 -35
- package/docs/examples/autocomplete/basic.vue +32 -32
- package/docs/examples/autocomplete/clearable.vue +33 -33
- package/docs/examples/autocomplete/custom-template.vue +49 -49
- package/docs/examples/autocomplete/disabled.vue +33 -33
- package/docs/examples/autocomplete/icon.vue +37 -37
- package/docs/examples/barcode/all-types.vue +380 -380
- package/docs/examples/barcode/basic.vue +14 -14
- package/docs/examples/barcode/props-appearance.vue +243 -243
- package/docs/examples/barcode/props-geometry.vue +143 -143
- package/docs/examples/barcode/props-logic.vue +216 -216
- package/docs/examples/barcode/props-symbology.vue +199 -199
- package/docs/examples/barcode/props-text.vue +268 -268
- package/docs/examples/button/basic.vue +7 -7
- package/docs/examples/button/danger-ghost.vue +17 -17
- package/docs/examples/button/disabled.vue +10 -10
- package/docs/examples/button/loading.vue +6 -6
- package/docs/examples/button/shape.vue +7 -7
- package/docs/examples/button/size.vue +14 -14
- package/docs/examples/button/type.vue +9 -9
- package/docs/examples/button-select/basic.vue +19 -19
- package/docs/examples/buttons/basic.vue +45 -45
- package/docs/examples/buttons/disabled.vue +36 -36
- package/docs/examples/buttons/dropdown.vue +63 -63
- package/docs/examples/buttons/group.vue +52 -52
- package/docs/examples/buttons/link.vue +47 -47
- package/docs/examples/buttons/popup.vue +39 -39
- package/docs/examples/buttons/size.vue +45 -45
- package/docs/examples/cascader-select/basic.vue +28 -28
- package/docs/examples/cascader-select/clearable.vue +34 -34
- package/docs/examples/cascader-select/disabled.vue +43 -43
- package/docs/examples/cascader-select/filterable.vue +37 -37
- package/docs/examples/cascader-select/methods.vue +84 -84
- package/docs/examples/cascader-select/multiple.vue +38 -38
- package/docs/examples/cascader-select/slot.vue +45 -45
- package/docs/examples/checkbox/basic.vue +18 -18
- package/docs/examples/checkbox/button.vue +19 -19
- package/docs/examples/checkbox/color.vue +25 -25
- package/docs/examples/checkbox/disabled.vue +17 -17
- package/docs/examples/checkbox/min-max.vue +20 -20
- package/docs/examples/checkbox/mixed.vue +56 -56
- package/docs/examples/checkbox/size.vue +28 -28
- package/docs/examples/code-mirror/basic.vue +11 -11
- package/docs/examples/code-mirror/events.vue +42 -42
- package/docs/examples/code-mirror/height.vue +25 -25
- package/docs/examples/code-mirror/mode.vue +33 -33
- package/docs/examples/code-mirror/readonly.vue +14 -14
- package/docs/examples/collapse/basic.vue +82 -82
- package/docs/examples/comp/basic.vue +7 -7
- package/docs/examples/comp/collapse.vue +38 -38
- package/docs/examples/comp/tabs.vue +38 -38
- package/docs/examples/count/basic.vue +54 -54
- package/docs/examples/count-up/basic.vue +89 -89
- package/docs/examples/data-panel/basic.vue +110 -110
- package/docs/examples/date/basic.vue +73 -73
- package/docs/examples/date/default-value.vue +59 -59
- package/docs/examples/date/format.vue +75 -75
- package/docs/examples/date/range.vue +66 -66
- package/docs/examples/date/types.vue +79 -79
- package/docs/examples/dialog/basic.vue +36 -36
- package/docs/examples/dialog/custom-buttons.vue +44 -44
- package/docs/examples/dialog/fullscreen.vue +23 -23
- package/docs/examples/dialog/no-mask.vue +17 -17
- package/docs/examples/dialog/size.vue +44 -44
- package/docs/examples/dialog/steps.vue +57 -57
- package/docs/examples/dialog-full/basic.vue +29 -29
- package/docs/examples/dialog-full/custom-buttons.vue +45 -45
- package/docs/examples/dialog-full/no-buttons.vue +18 -18
- package/docs/examples/dialog-full/no-header.vue +27 -27
- package/docs/examples/dialog-full/steps.vue +71 -71
- package/docs/examples/divider/basic.vue +52 -52
- package/docs/examples/drawer/basic.vue +35 -35
- package/docs/examples/drawer/custom-buttons.vue +34 -34
- package/docs/examples/drawer/direction.vue +47 -47
- package/docs/examples/drawer/mask.vue +36 -36
- package/docs/examples/drawer/no-buttons.vue +20 -20
- package/docs/examples/drawer/size.vue +28 -28
- package/docs/examples/dynamic-layer/basic.vue +33 -33
- package/docs/examples/dynamic-layer/custom-buttons.vue +43 -43
- package/docs/examples/dynamic-layer/form.vue +73 -73
- package/docs/examples/dynamic-layer/steps.vue +52 -52
- package/docs/examples/dynamic-layer/types.vue +40 -40
- package/docs/examples/echarts/basic.vue +31 -31
- package/docs/examples/echarts/dynamic.vue +43 -43
- package/docs/examples/echarts/line.vue +46 -46
- package/docs/examples/echarts/pie.vue +44 -44
- package/docs/examples/editor/basic.vue +15 -15
- package/docs/examples/form/basic.vue +450 -450
- package/docs/examples/guid/basic.vue +10 -10
- package/docs/examples/guid/size.vue +13 -13
- package/docs/examples/hpanel/basic.vue +79 -79
- package/docs/examples/icon/basic.vue +9 -9
- package/docs/examples/icon/rotate-flip.vue +9 -9
- package/docs/examples/icon/size.vue +7 -7
- package/docs/examples/input/basic.vue +10 -10
- package/docs/examples/input/clearable.vue +12 -12
- package/docs/examples/input/disabled.vue +6 -6
- package/docs/examples/input/icon.vue +23 -23
- package/docs/examples/input/password.vue +18 -18
- package/docs/examples/input/size.vue +13 -13
- package/docs/examples/input/textarea.vue +25 -25
- package/docs/examples/input/word-limit.vue +28 -28
- package/docs/examples/input-button/basic.vue +33 -33
- package/docs/examples/input-code/basic.vue +29 -29
- package/docs/examples/input-color/basic.vue +10 -10
- package/docs/examples/input-color/disabled.vue +13 -13
- package/docs/examples/input-color/format.vue +17 -17
- package/docs/examples/input-color/no-alpha.vue +13 -13
- package/docs/examples/input-color/only-button.vue +15 -15
- package/docs/examples/input-color/predefine.vue +31 -31
- package/docs/examples/input-color/size.vue +15 -15
- package/docs/examples/input-layer/basic.vue +69 -69
- package/docs/examples/input-rows/basic.vue +73 -73
- package/docs/examples/input-rows/drag.vue +48 -48
- package/docs/examples/input-rows/layer-form.vue +85 -85
- package/docs/examples/input-rows/nested.vue +91 -91
- package/docs/examples/input-tag/basic.vue +27 -27
- package/docs/examples/input-tag/colors.vue +23 -23
- package/docs/examples/input-tag/readonly.vue +17 -17
- package/docs/examples/layer/basic.vue +43 -43
- package/docs/examples/layer/custom-buttons.vue +61 -61
- package/docs/examples/layer/drawer.vue +37 -37
- package/docs/examples/layer/full.vue +38 -38
- package/docs/examples/layer/modal.vue +34 -34
- package/docs/examples/layer/steps.vue +46 -46
- package/docs/examples/layer-form/basic.vue +76 -76
- package/docs/examples/layer-form/config.vue +82 -82
- package/docs/examples/layer-form/size.vue +72 -72
- package/docs/examples/layout/basic.vue +36 -36
- package/docs/examples/layout/custom-size.vue +50 -50
- package/docs/examples/layout/disable-move.vue +37 -37
- package/docs/examples/layout/hide-mid-when-narrow.vue +96 -96
- package/docs/examples/layout/min-size.vue +73 -73
- package/docs/examples/layout/percent-size.vue +80 -80
- package/docs/examples/layout/simple.vue +22 -22
- package/docs/examples/layout/top-side.vue +34 -34
- package/docs/examples/map/basic.vue +22 -22
- package/docs/examples/menu/basic.vue +58 -58
- package/docs/examples/menu/collapsed.vue +49 -49
- package/docs/examples/menu/horizontal.vue +44 -44
- package/docs/examples/menu/selection-test.vue +104 -104
- package/docs/examples/menu/theme.vue +46 -46
- package/docs/examples/menu/vertical.vue +46 -46
- package/docs/examples/number/advanced.vue +143 -143
- package/docs/examples/number/basic.vue +63 -63
- package/docs/examples/number/disabled.vue +49 -49
- package/docs/examples/number/size.vue +42 -42
- package/docs/examples/number/slots.vue +123 -123
- package/docs/examples/number/step-strictly.vue +41 -41
- package/docs/examples/number/step.vue +47 -47
- package/docs/examples/page/basic.vue +41 -41
- package/docs/examples/page/init.vue +87 -87
- package/docs/examples/page/log.vue +453 -439
- package/docs/examples/panel/tool-buttons.vue +18 -18
- package/docs/examples/radio/basic.vue +17 -17
- package/docs/examples/radio/button.vue +17 -17
- package/docs/examples/radio/color.vue +18 -18
- package/docs/examples/radio/disabled.vue +17 -17
- package/docs/examples/radio/size.vue +29 -29
- package/docs/examples/rate/basic.vue +24 -24
- package/docs/examples/rate/half.vue +24 -24
- package/docs/examples/rate/readonly.vue +11 -11
- package/docs/examples/rate/text.vue +32 -32
- package/docs/examples/select/basic.vue +16 -16
- package/docs/examples/select/clearable.vue +22 -22
- package/docs/examples/select/disabled.vue +31 -31
- package/docs/examples/select/filterable.vue +24 -24
- package/docs/examples/select/group.vue +23 -23
- package/docs/examples/select/icon.vue +16 -16
- package/docs/examples/select/multiple.vue +18 -18
- package/docs/examples/select/size.vue +39 -39
- package/docs/examples/slider/basic.vue +42 -42
- package/docs/examples/slider/disabled.vue +17 -17
- package/docs/examples/slider/marks.vue +30 -30
- package/docs/examples/slider/size.vue +37 -37
- package/docs/examples/slider/tooltip.vue +36 -36
- package/docs/examples/slider/vertical.vue +26 -26
- package/docs/examples/slider-captcha/basic.vue +44 -44
- package/docs/examples/slider-captcha/custom.vue +48 -48
- package/docs/examples/switch/basic.vue +16 -16
- package/docs/examples/switch/disabled.vue +13 -13
- package/docs/examples/switch/loading.vue +13 -13
- package/docs/examples/switch/size.vue +15 -15
- package/docs/examples/switch/text.vue +13 -13
- package/docs/examples/table/actions.vue +116 -116
- package/docs/examples/table/add-row.vue +103 -103
- package/docs/examples/table/basic.vue +168 -168
- package/docs/examples/table/custom-layout.vue +115 -115
- package/docs/examples/table/editable.vue +263 -263
- package/docs/examples/table/field-selection.vue +87 -87
- package/docs/examples/table/frozen-column.vue +140 -140
- package/docs/examples/table/height-mode.vue +99 -99
- package/docs/examples/table/icon.vue +85 -85
- package/docs/examples/table/link.vue +66 -66
- package/docs/examples/table/multiple.vue +178 -178
- package/docs/examples/table/pagination.vue +151 -151
- package/docs/examples/table/single-selection.vue +64 -64
- package/docs/examples/table/sub-table-lazy.vue +97 -97
- package/docs/examples/table/sub-table.vue +103 -103
- package/docs/examples/table/tag.vue +43 -43
- package/docs/examples/table/tree-column.vue +119 -119
- package/docs/examples/table/tree-data.vue +141 -141
- package/docs/examples/table/tree-lazy.vue +80 -80
- package/docs/examples/table-panel/basic.vue +228 -228
- package/docs/examples/table-panel/batch-operations.vue +285 -285
- package/docs/examples/table-panel/filter.vue +219 -219
- package/docs/examples/table-panel/multiple-selection.vue +243 -243
- package/docs/examples/table-panel/pagination.vue +133 -133
- package/docs/examples/table-panel/sub-table-lazy.vue +118 -118
- package/docs/examples/tabs/basic.vue +98 -98
- package/docs/examples/title/basic.vue +80 -80
- package/docs/examples/tree/accordion.vue +46 -46
- package/docs/examples/tree/basic.vue +50 -50
- package/docs/examples/tree/buttons.vue +53 -53
- package/docs/examples/tree/checkable.vue +52 -52
- package/docs/examples/tree/custom-keys.vue +39 -39
- package/docs/examples/tree/default-expanded.vue +52 -52
- package/docs/examples/tree/draggable.vue +29 -29
- package/docs/examples/tree/expand-on-click.vue +39 -39
- package/docs/examples/tree/flat-data.vue +20 -20
- package/docs/examples/tree/icon.vue +40 -40
- package/docs/examples/tree/load-data.vue +37 -37
- package/docs/examples/tree/methods.vue +74 -74
- package/docs/examples/tree/theme.vue +33 -33
- package/docs/examples/upload/accept.vue +31 -31
- package/docs/examples/upload/basic.vue +12 -12
- package/docs/examples/upload/drag.vue +11 -11
- package/docs/examples/upload/image.vue +17 -17
- package/docs/examples/upload/limit.vue +20 -20
- package/docs/examples/upload/multiple.vue +17 -17
- package/docs/examples/upload/readonly.vue +17 -17
- package/docs/examples/utils/cipher.vue +160 -160
- package/docs/examples/utils/common.vue +153 -153
- package/docs/examples/utils/date.vue +56 -56
- package/docs/examples/utils/dom.vue +52 -52
- package/docs/examples/utils/is.vue +70 -70
- package/docs/examples/workflow/basic.vue +265 -265
- package/docs/examples/workflow-viewer/basic.vue +248 -248
- package/package.json +23 -23
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
export interface ButtonProps {
|
|
2
|
+
/** 按钮的类型,分为五种:主要按钮、幽灵按钮、虚框按钮、链接按钮、文字按钮、次要按钮 */
|
|
3
|
+
type?: 'primary' | 'dashed' | 'link' | 'text' | 'default';
|
|
4
|
+
/** 设置按钮大小 */
|
|
5
|
+
size?: 'large' | 'default' | 'small';
|
|
6
|
+
/** 设置按钮形状 */
|
|
7
|
+
shape?: 'default' | 'circle' | 'round';
|
|
8
|
+
/** 幽灵属性,使按钮背景透明 */
|
|
9
|
+
ghost?: boolean;
|
|
10
|
+
/** 按钮不可用状态 */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** 设置危险按钮 */
|
|
13
|
+
danger?: boolean;
|
|
14
|
+
/** 将按钮宽度调整为其父宽度的选项 */
|
|
15
|
+
block?: boolean;
|
|
16
|
+
/** 设置按钮载入状态 */
|
|
17
|
+
loading?: boolean | {
|
|
18
|
+
delay?: number;
|
|
19
|
+
};
|
|
20
|
+
/** 图标 */
|
|
21
|
+
icon?: string;
|
|
22
|
+
/** 点击跳转的地址,指定此属性 button 的行为和 a 链接一致 */
|
|
23
|
+
href?: string;
|
|
24
|
+
/** 相当于 a 链接的 target 属性,href 存在时生效 */
|
|
25
|
+
target?: string;
|
|
26
|
+
/** 按钮内容 */
|
|
27
|
+
label?: string;
|
|
28
|
+
/** 是否不要文字 */
|
|
29
|
+
notLabel?: boolean;
|
|
30
|
+
/** 是否紧凑模式 */
|
|
31
|
+
compact?: boolean;
|
|
32
|
+
lastCompactItem?: boolean;
|
|
33
|
+
firstCompactItem?: boolean;
|
|
34
|
+
}
|
|
2
35
|
declare function __VLS_template(): {
|
|
3
36
|
attrs: Partial<{}>;
|
|
4
37
|
slots: {
|
|
@@ -10,237 +43,17 @@ declare function __VLS_template(): {
|
|
|
10
43
|
rootEl: HTMLButtonElement;
|
|
11
44
|
};
|
|
12
45
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
14
|
-
/**
|
|
15
|
-
* @zh 按钮的类型,分为五种:主要按钮、幽灵按钮、虚框按钮、链接按钮、文字按钮、次要按钮。
|
|
16
|
-
* @defaultValue 'default'
|
|
17
|
-
*/
|
|
18
|
-
type: {
|
|
19
|
-
type: PropType<"primary" | "dashed" | "link" | "text" | "default">;
|
|
20
|
-
default: string;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @zh 设置按钮大小
|
|
24
|
-
* @defaultValue 'default'
|
|
25
|
-
*/
|
|
26
|
-
size: {
|
|
27
|
-
type: PropType<"large" | "default" | "small">;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* @zh 设置按钮形状
|
|
32
|
-
* @defaultValue 'default'
|
|
33
|
-
*/
|
|
34
|
-
shape: {
|
|
35
|
-
type: PropType<"default" | "circle" | "round">;
|
|
36
|
-
default: string;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* @zh 幽灵属性,使按钮背景透明
|
|
40
|
-
* @defaultValue false
|
|
41
|
-
*/
|
|
42
|
-
ghost: {
|
|
43
|
-
type: BooleanConstructor;
|
|
44
|
-
default: boolean;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* @zh 按钮不可用状态。
|
|
48
|
-
* @defaultValue false
|
|
49
|
-
*/
|
|
50
|
-
disabled: {
|
|
51
|
-
type: BooleanConstructor;
|
|
52
|
-
default: boolean;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* @zh 设置危险按钮
|
|
56
|
-
* @defaultValue false
|
|
57
|
-
*/
|
|
58
|
-
danger: {
|
|
59
|
-
type: BooleanConstructor;
|
|
60
|
-
default: boolean;
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* @zh 将按钮宽度调整为其父宽度的选项
|
|
64
|
-
* @defaultValue false
|
|
65
|
-
*/
|
|
66
|
-
block: {
|
|
67
|
-
type: BooleanConstructor;
|
|
68
|
-
default: boolean;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* @zh 设置按钮载入状态
|
|
72
|
-
* @defaultValue false
|
|
73
|
-
*/
|
|
74
|
-
loading: {
|
|
75
|
-
type: PropType<boolean | {
|
|
76
|
-
delay?: number;
|
|
77
|
-
}>;
|
|
78
|
-
default: () => boolean | {
|
|
79
|
-
delay?: number;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* @zh 图标
|
|
84
|
-
*/
|
|
85
|
-
icon: {
|
|
86
|
-
type: StringConstructor;
|
|
87
|
-
default: string;
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* @zh 点击跳转的地址,指定此属性 button 的行为和 a 链接一致
|
|
91
|
-
*/
|
|
92
|
-
href: {
|
|
93
|
-
type: StringConstructor;
|
|
94
|
-
default: string;
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* @zh 相当于 a 链接的 target 属性,href 存在时生效
|
|
98
|
-
*/
|
|
99
|
-
target: {
|
|
100
|
-
type: StringConstructor;
|
|
101
|
-
default: string;
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* @zh 按钮内容
|
|
105
|
-
*/
|
|
106
|
-
label: {
|
|
107
|
-
type: StringConstructor;
|
|
108
|
-
default: string;
|
|
109
|
-
};
|
|
110
|
-
/**
|
|
111
|
-
* @zh 是否不要文字
|
|
112
|
-
*/
|
|
113
|
-
notLabel: {
|
|
114
|
-
type: BooleanConstructor;
|
|
115
|
-
default: boolean;
|
|
116
|
-
};
|
|
117
|
-
/**
|
|
118
|
-
* @zh 是否紧凑模式
|
|
119
|
-
*/
|
|
120
|
-
compact: BooleanConstructor;
|
|
121
|
-
lastCompactItem: BooleanConstructor;
|
|
122
|
-
firstCompactItem: BooleanConstructor;
|
|
123
|
-
}>, {
|
|
46
|
+
declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {
|
|
124
47
|
focus: () => void;
|
|
125
48
|
blur: () => void;
|
|
126
49
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
127
50
|
click: (event: MouseEvent) => any;
|
|
128
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
129
|
-
/**
|
|
130
|
-
* @zh 按钮的类型,分为五种:主要按钮、幽灵按钮、虚框按钮、链接按钮、文字按钮、次要按钮。
|
|
131
|
-
* @defaultValue 'default'
|
|
132
|
-
*/
|
|
133
|
-
type: {
|
|
134
|
-
type: PropType<"primary" | "dashed" | "link" | "text" | "default">;
|
|
135
|
-
default: string;
|
|
136
|
-
};
|
|
137
|
-
/**
|
|
138
|
-
* @zh 设置按钮大小
|
|
139
|
-
* @defaultValue 'default'
|
|
140
|
-
*/
|
|
141
|
-
size: {
|
|
142
|
-
type: PropType<"large" | "default" | "small">;
|
|
143
|
-
default: string;
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* @zh 设置按钮形状
|
|
147
|
-
* @defaultValue 'default'
|
|
148
|
-
*/
|
|
149
|
-
shape: {
|
|
150
|
-
type: PropType<"default" | "circle" | "round">;
|
|
151
|
-
default: string;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* @zh 幽灵属性,使按钮背景透明
|
|
155
|
-
* @defaultValue false
|
|
156
|
-
*/
|
|
157
|
-
ghost: {
|
|
158
|
-
type: BooleanConstructor;
|
|
159
|
-
default: boolean;
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* @zh 按钮不可用状态。
|
|
163
|
-
* @defaultValue false
|
|
164
|
-
*/
|
|
165
|
-
disabled: {
|
|
166
|
-
type: BooleanConstructor;
|
|
167
|
-
default: boolean;
|
|
168
|
-
};
|
|
169
|
-
/**
|
|
170
|
-
* @zh 设置危险按钮
|
|
171
|
-
* @defaultValue false
|
|
172
|
-
*/
|
|
173
|
-
danger: {
|
|
174
|
-
type: BooleanConstructor;
|
|
175
|
-
default: boolean;
|
|
176
|
-
};
|
|
177
|
-
/**
|
|
178
|
-
* @zh 将按钮宽度调整为其父宽度的选项
|
|
179
|
-
* @defaultValue false
|
|
180
|
-
*/
|
|
181
|
-
block: {
|
|
182
|
-
type: BooleanConstructor;
|
|
183
|
-
default: boolean;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* @zh 设置按钮载入状态
|
|
187
|
-
* @defaultValue false
|
|
188
|
-
*/
|
|
189
|
-
loading: {
|
|
190
|
-
type: PropType<boolean | {
|
|
191
|
-
delay?: number;
|
|
192
|
-
}>;
|
|
193
|
-
default: () => boolean | {
|
|
194
|
-
delay?: number;
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
/**
|
|
198
|
-
* @zh 图标
|
|
199
|
-
*/
|
|
200
|
-
icon: {
|
|
201
|
-
type: StringConstructor;
|
|
202
|
-
default: string;
|
|
203
|
-
};
|
|
204
|
-
/**
|
|
205
|
-
* @zh 点击跳转的地址,指定此属性 button 的行为和 a 链接一致
|
|
206
|
-
*/
|
|
207
|
-
href: {
|
|
208
|
-
type: StringConstructor;
|
|
209
|
-
default: string;
|
|
210
|
-
};
|
|
211
|
-
/**
|
|
212
|
-
* @zh 相当于 a 链接的 target 属性,href 存在时生效
|
|
213
|
-
*/
|
|
214
|
-
target: {
|
|
215
|
-
type: StringConstructor;
|
|
216
|
-
default: string;
|
|
217
|
-
};
|
|
218
|
-
/**
|
|
219
|
-
* @zh 按钮内容
|
|
220
|
-
*/
|
|
221
|
-
label: {
|
|
222
|
-
type: StringConstructor;
|
|
223
|
-
default: string;
|
|
224
|
-
};
|
|
225
|
-
/**
|
|
226
|
-
* @zh 是否不要文字
|
|
227
|
-
*/
|
|
228
|
-
notLabel: {
|
|
229
|
-
type: BooleanConstructor;
|
|
230
|
-
default: boolean;
|
|
231
|
-
};
|
|
232
|
-
/**
|
|
233
|
-
* @zh 是否紧凑模式
|
|
234
|
-
*/
|
|
235
|
-
compact: BooleanConstructor;
|
|
236
|
-
lastCompactItem: BooleanConstructor;
|
|
237
|
-
firstCompactItem: BooleanConstructor;
|
|
238
|
-
}>> & Readonly<{
|
|
51
|
+
}, string, import('vue').PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
239
52
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
240
53
|
}>, {
|
|
241
|
-
size: "
|
|
54
|
+
size: "large" | "default" | "small";
|
|
242
55
|
icon: string;
|
|
243
|
-
type: "
|
|
56
|
+
type: "primary" | "dashed" | "link" | "text" | "default";
|
|
244
57
|
label: string;
|
|
245
58
|
shape: "default" | "circle" | "round";
|
|
246
59
|
ghost: boolean;
|
|
@@ -256,7 +69,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
256
69
|
compact: boolean;
|
|
257
70
|
lastCompactItem: boolean;
|
|
258
71
|
firstCompactItem: boolean;
|
|
259
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
72
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
260
73
|
buttonNodeRef: HTMLButtonElement;
|
|
261
74
|
}, HTMLButtonElement>;
|
|
262
75
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const JButtons: {
|
|
2
2
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
3
|
list: {
|
|
4
|
-
type: import('vue').PropType<import('
|
|
4
|
+
type: import('vue').PropType<import('.').ButtonCompType[]>;
|
|
5
5
|
default: () => never[];
|
|
6
6
|
};
|
|
7
7
|
size: {
|
|
@@ -11,7 +11,7 @@ declare const JButtons: {
|
|
|
11
11
|
isLink: BooleanConstructor;
|
|
12
12
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
13
13
|
size: "small" | "default" | "large";
|
|
14
|
-
list: import('
|
|
14
|
+
list: import('.').ButtonCompType[];
|
|
15
15
|
isLink: boolean;
|
|
16
16
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
17
17
|
P: {};
|
|
@@ -22,7 +22,7 @@ declare const JButtons: {
|
|
|
22
22
|
Defaults: {};
|
|
23
23
|
}, Readonly<import('vue').ExtractPropTypes<{
|
|
24
24
|
list: {
|
|
25
|
-
type: import('vue').PropType<import('
|
|
25
|
+
type: import('vue').PropType<import('.').ButtonCompType[]>;
|
|
26
26
|
default: () => never[];
|
|
27
27
|
};
|
|
28
28
|
size: {
|
|
@@ -32,7 +32,7 @@ declare const JButtons: {
|
|
|
32
32
|
isLink: BooleanConstructor;
|
|
33
33
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
34
34
|
size: "small" | "default" | "large";
|
|
35
|
-
list: import('
|
|
35
|
+
list: import('.').ButtonCompType[];
|
|
36
36
|
isLink: boolean;
|
|
37
37
|
}>;
|
|
38
38
|
__isFragment?: never;
|
|
@@ -40,7 +40,7 @@ declare const JButtons: {
|
|
|
40
40
|
__isSuspense?: never;
|
|
41
41
|
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
42
42
|
list: {
|
|
43
|
-
type: import('vue').PropType<import('
|
|
43
|
+
type: import('vue').PropType<import('.').ButtonCompType[]>;
|
|
44
44
|
default: () => never[];
|
|
45
45
|
};
|
|
46
46
|
size: {
|
|
@@ -50,9 +50,10 @@ declare const JButtons: {
|
|
|
50
50
|
isLink: BooleanConstructor;
|
|
51
51
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
52
52
|
size: "small" | "default" | "large";
|
|
53
|
-
list: import('
|
|
53
|
+
list: import('.').ButtonCompType[];
|
|
54
54
|
isLink: boolean;
|
|
55
55
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
56
56
|
install: (app: import('vue').App) => void;
|
|
57
57
|
};
|
|
58
58
|
export default JButtons;
|
|
59
|
+
export type { ButtonCompActionType, ButtonCompType } from './src/interface';
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { LayerParamType } from '../../dynamic-layer/src/interface';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @zh 按钮ID
|
|
5
|
-
*/
|
|
6
|
-
id: string;
|
|
7
|
-
/**
|
|
8
|
-
* @zh 按钮名称
|
|
9
|
-
*/
|
|
10
|
-
label?: string;
|
|
2
|
+
import { ButtonProps } from '../../button/src/button.vue';
|
|
3
|
+
export interface ButtonCompActionType {
|
|
11
4
|
/**
|
|
12
5
|
* @zh 按钮配置
|
|
13
6
|
*/
|
|
14
|
-
config?:
|
|
7
|
+
config?: ButtonProps;
|
|
15
8
|
/**
|
|
16
9
|
* @zh 按钮点击方法
|
|
17
10
|
*/
|
|
@@ -19,6 +12,16 @@ export interface ButtonCompType {
|
|
|
19
12
|
data?: Record<string, any>;
|
|
20
13
|
openLayer: (options: LayerParamType) => void;
|
|
21
14
|
}) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface ButtonCompType extends ButtonCompActionType {
|
|
17
|
+
/**
|
|
18
|
+
* @zh 按钮ID
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
21
|
+
/**
|
|
22
|
+
* @zh 按钮名称
|
|
23
|
+
*/
|
|
24
|
+
label?: string;
|
|
22
25
|
/**
|
|
23
26
|
* @zh 按钮子集
|
|
24
27
|
*/
|
|
@@ -56,6 +56,7 @@ import { default as JWorkflowViewer, JWorkflow } from './workflow-viewer';
|
|
|
56
56
|
import { default as JInputCards } from './input-cards';
|
|
57
57
|
export { JButton, JButtons, JInput, JDate, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JCount, JCountUp, JDataPanel, JDivider, JHpanel, JGuid, JInputButton, JInputCode, JInputColor, JTitle, JButtonSelect, JTree, JTreeSelect, JComp, JForm, JFormItem, JPage, JSliderCaptcha, JMenu, JTablePanel, JInputRows, JInputLayer, JLayerForm, JSwitch, JTabs, JCollapse, JEditor, JWorkflowViewer, JWorkflow, JPanel, JInputCards, };
|
|
58
58
|
export * from '../core';
|
|
59
|
+
export type { ButtonProps } from './button/src/button.vue';
|
|
59
60
|
export type { DateProps } from './date/src/date.vue';
|
|
60
61
|
export type { InputProps } from './input/src/input.vue';
|
|
61
62
|
export type { SelectOption, SelectProps } from './select/src/select.vue';
|
|
@@ -87,7 +88,7 @@ export type { WorkflowViewerProps } from './workflow-viewer/src/workflow-viewer.
|
|
|
87
88
|
export type { WorkflowProps } from './workflow-viewer/src/workflow.vue';
|
|
88
89
|
export type { PanelProps } from './panel/src/panel.vue';
|
|
89
90
|
export type { TreeSelectProps } from './tree-select/src/tree-select.vue';
|
|
90
|
-
export type { ButtonCompType } from './buttons/src/interface';
|
|
91
|
+
export type { ButtonCompActionType, ButtonCompType } from './buttons/src/interface';
|
|
91
92
|
export type { LayerParamType } from './dynamic-layer/src/interface';
|
|
92
93
|
export type { SchemaConfig } from './comp/src/interface';
|
|
93
94
|
export type { FormSchemaConfig, RuleType } from './form/src/interface';
|