@a2simcode/ui 0.0.2 → 0.0.4
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/README.md +1 -0
- package/dist/components/autocomplete/index.d.ts +118 -0
- package/dist/components/autocomplete/src/autocomplete.vue.d.ts +109 -0
- package/dist/components/barcode/index.d.ts +114 -0
- package/dist/components/barcode/src/barcode.vue.d.ts +101 -0
- package/dist/components/button/index.d.ts +278 -0
- package/dist/components/button/src/button.vue.d.ts +268 -0
- package/dist/components/buttons/index.d.ts +81 -0
- package/dist/components/buttons/src/index.vue.d.ts +76 -0
- package/dist/components/buttons/src/interface.d.ts +128 -0
- package/dist/components/buttons/src/useButtons.d.ts +4 -0
- package/dist/components/cascader-select/index.d.ts +142 -0
- package/dist/components/cascader-select/src/cascader-select.vue.d.ts +128 -0
- package/dist/components/checkbox/index.d.ts +73 -0
- package/dist/components/checkbox/src/checkbox.vue.d.ts +55 -0
- package/dist/components/code-mirror/index.d.ts +74 -0
- package/dist/components/code-mirror/src/code-mirror.vue.d.ts +45 -0
- package/dist/components/comp/index.d.ts +157 -0
- package/dist/components/comp/src/comp.vue.d.ts +164 -0
- package/dist/components/dialog/index.d.ts +416 -0
- package/dist/components/dialog/src/index.vue.d.ts +404 -0
- package/dist/components/dialog-full/index.d.ts +311 -0
- package/dist/components/dialog-full/src/index.vue.d.ts +287 -0
- package/dist/components/drawer/index.d.ts +335 -0
- package/dist/components/drawer/src/drawer.vue.d.ts +337 -0
- package/dist/components/dynamic-layer/index.d.ts +25 -0
- package/dist/components/dynamic-layer/src/dynamic-layer.vue.d.ts +8 -0
- package/dist/components/dynamic-layer/src/interface.d.ts +66 -0
- package/dist/components/echarts/index.d.ts +177 -0
- package/dist/components/echarts/src/echarts.vue.d.ts +118 -0
- package/dist/components/form/index.d.ts +194 -0
- package/dist/components/form/src/form.vue.d.ts +106 -0
- package/dist/components/form/src/interface.d.ts +138 -0
- package/dist/components/form/src/useForm/index.d.ts +9 -0
- package/dist/components/form/src/useForm/interface.d.ts +170 -0
- package/dist/components/form/src/useForm/validateUtil.d.ts +5 -0
- package/dist/components/form-item/index.d.ts +112 -0
- package/dist/components/form-item/src/form-item.vue.d.ts +97 -0
- package/dist/components/icon/index.d.ts +31 -0
- package/dist/components/icon/src/icon.vue.d.ts +33 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/input/index.d.ts +111 -0
- package/dist/components/input/src/input.vue.d.ts +110 -0
- package/dist/components/input-tag/index.d.ts +75 -0
- package/dist/components/input-tag/src/input-tag.vue.d.ts +40 -0
- package/dist/components/layer/index.d.ts +284 -0
- package/dist/components/layer/src/layer.vue.d.ts +263 -0
- package/dist/components/layout/__tests__/layout.test.d.ts +1 -0
- package/dist/components/layout/index.d.ts +173 -0
- package/dist/components/layout/src/layout.vue.d.ts +187 -0
- package/dist/components/number/index.d.ts +85 -0
- package/dist/components/number/src/number.vue.d.ts +78 -0
- package/dist/components/page/index.d.ts +67 -0
- package/dist/components/page/src/interface.d.ts +22 -0
- package/dist/components/page/src/page.vue.d.ts +52 -0
- package/dist/components/radio/index.d.ts +152 -0
- package/dist/components/radio/src/radio.vue.d.ts +123 -0
- package/dist/components/rate/index.d.ts +71 -0
- package/dist/components/rate/src/rate.vue.d.ts +42 -0
- package/dist/components/select/index.d.ts +88 -0
- package/dist/components/select/src/select.vue.d.ts +75 -0
- package/dist/components/slider/index.d.ts +89 -0
- package/dist/components/slider/src/slider.vue.d.ts +76 -0
- package/dist/components/table/index.d.ts +160 -0
- package/dist/components/table/src/table.vue.d.ts +143 -0
- package/dist/components/upload/index.d.ts +405 -0
- package/dist/components/upload/src/list.vue.d.ts +103 -0
- package/dist/components/upload/src/upload.vue.d.ts +367 -0
- package/dist/components/upload/src/utils.d.ts +2 -0
- package/dist/{utils → components/utils}/index.d.ts +0 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/utils/cipher.d.ts +21 -0
- package/dist/core/utils/common.d.ts +41 -0
- package/dist/core/utils/comp.d.ts +9 -0
- package/dist/core/utils/date.d.ts +3 -0
- package/dist/core/utils/dom.d.ts +4 -0
- package/dist/core/utils/index.d.ts +6 -0
- package/dist/core/utils/is.d.ts +2 -0
- package/dist/index.d.ts +6 -9
- package/dist/simcode-ui.es.js +5021 -81
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +4949 -0
- package/dist/ui.css +1 -0
- package/package.json +36 -22
- package/dist/button/index.d.ts +0 -157
- package/dist/button/src/button.vue.d.ts +0 -78
- package/dist/input/index.d.ts +0 -137
- package/dist/input/src/input.vue.d.ts +0 -64
- package/dist/style.css +0 -1
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
declare const JButton: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
type: {
|
|
4
|
+
type: import('vue').PropType<"primary" | "ghost" | "dashed" | "link" | "text" | "default">;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
size: {
|
|
8
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
shape: {
|
|
12
|
+
type: import('vue').PropType<"default" | "circle" | "round">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
ghost: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
danger: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
block: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
loading: {
|
|
32
|
+
type: import('vue').PropType<boolean | {
|
|
33
|
+
delay?: number;
|
|
34
|
+
}>;
|
|
35
|
+
default: () => boolean | {
|
|
36
|
+
delay?: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
icon: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
href: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
target: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
label: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
notLabel: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
compact: BooleanConstructor;
|
|
60
|
+
lastCompactItem: BooleanConstructor;
|
|
61
|
+
firstCompactItem: BooleanConstructor;
|
|
62
|
+
}>> & Readonly<{
|
|
63
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
focus: () => void;
|
|
66
|
+
blur: () => void;
|
|
67
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
|
+
click: (event: MouseEvent) => any;
|
|
69
|
+
}, import('vue').PublicProps, {
|
|
70
|
+
size: "small" | "default" | "large";
|
|
71
|
+
icon: string;
|
|
72
|
+
type: "link" | "default" | "text" | "primary" | "ghost" | "dashed";
|
|
73
|
+
label: string;
|
|
74
|
+
ghost: boolean;
|
|
75
|
+
shape: "default" | "circle" | "round";
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
danger: boolean;
|
|
78
|
+
block: boolean;
|
|
79
|
+
loading: boolean | {
|
|
80
|
+
delay?: number;
|
|
81
|
+
};
|
|
82
|
+
href: string;
|
|
83
|
+
target: string;
|
|
84
|
+
notLabel: boolean;
|
|
85
|
+
compact: boolean;
|
|
86
|
+
lastCompactItem: boolean;
|
|
87
|
+
firstCompactItem: boolean;
|
|
88
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
89
|
+
buttonNodeRef: HTMLButtonElement;
|
|
90
|
+
}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
91
|
+
P: {};
|
|
92
|
+
B: {};
|
|
93
|
+
D: {};
|
|
94
|
+
C: {};
|
|
95
|
+
M: {};
|
|
96
|
+
Defaults: {};
|
|
97
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
98
|
+
type: {
|
|
99
|
+
type: import('vue').PropType<"primary" | "ghost" | "dashed" | "link" | "text" | "default">;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
size: {
|
|
103
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
shape: {
|
|
107
|
+
type: import('vue').PropType<"default" | "circle" | "round">;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
ghost: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: boolean;
|
|
113
|
+
};
|
|
114
|
+
disabled: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
danger: {
|
|
119
|
+
type: BooleanConstructor;
|
|
120
|
+
default: boolean;
|
|
121
|
+
};
|
|
122
|
+
block: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
126
|
+
loading: {
|
|
127
|
+
type: import('vue').PropType<boolean | {
|
|
128
|
+
delay?: number;
|
|
129
|
+
}>;
|
|
130
|
+
default: () => boolean | {
|
|
131
|
+
delay?: number;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
icon: {
|
|
135
|
+
type: StringConstructor;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
138
|
+
href: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
default: string;
|
|
141
|
+
};
|
|
142
|
+
target: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
|
+
label: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: string;
|
|
149
|
+
};
|
|
150
|
+
notLabel: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
compact: BooleanConstructor;
|
|
155
|
+
lastCompactItem: BooleanConstructor;
|
|
156
|
+
firstCompactItem: BooleanConstructor;
|
|
157
|
+
}>> & Readonly<{
|
|
158
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
159
|
+
}>, {
|
|
160
|
+
focus: () => void;
|
|
161
|
+
blur: () => void;
|
|
162
|
+
}, {}, {}, {}, {
|
|
163
|
+
size: "small" | "default" | "large";
|
|
164
|
+
icon: string;
|
|
165
|
+
type: "link" | "default" | "text" | "primary" | "ghost" | "dashed";
|
|
166
|
+
label: string;
|
|
167
|
+
ghost: boolean;
|
|
168
|
+
shape: "default" | "circle" | "round";
|
|
169
|
+
disabled: boolean;
|
|
170
|
+
danger: boolean;
|
|
171
|
+
block: boolean;
|
|
172
|
+
loading: boolean | {
|
|
173
|
+
delay?: number;
|
|
174
|
+
};
|
|
175
|
+
href: string;
|
|
176
|
+
target: string;
|
|
177
|
+
notLabel: boolean;
|
|
178
|
+
compact: boolean;
|
|
179
|
+
lastCompactItem: boolean;
|
|
180
|
+
firstCompactItem: boolean;
|
|
181
|
+
}>;
|
|
182
|
+
__isFragment?: never;
|
|
183
|
+
__isTeleport?: never;
|
|
184
|
+
__isSuspense?: never;
|
|
185
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
186
|
+
type: {
|
|
187
|
+
type: import('vue').PropType<"primary" | "ghost" | "dashed" | "link" | "text" | "default">;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
size: {
|
|
191
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
192
|
+
default: string;
|
|
193
|
+
};
|
|
194
|
+
shape: {
|
|
195
|
+
type: import('vue').PropType<"default" | "circle" | "round">;
|
|
196
|
+
default: string;
|
|
197
|
+
};
|
|
198
|
+
ghost: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: boolean;
|
|
201
|
+
};
|
|
202
|
+
disabled: {
|
|
203
|
+
type: BooleanConstructor;
|
|
204
|
+
default: boolean;
|
|
205
|
+
};
|
|
206
|
+
danger: {
|
|
207
|
+
type: BooleanConstructor;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
block: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
loading: {
|
|
215
|
+
type: import('vue').PropType<boolean | {
|
|
216
|
+
delay?: number;
|
|
217
|
+
}>;
|
|
218
|
+
default: () => boolean | {
|
|
219
|
+
delay?: number;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
icon: {
|
|
223
|
+
type: StringConstructor;
|
|
224
|
+
default: string;
|
|
225
|
+
};
|
|
226
|
+
href: {
|
|
227
|
+
type: StringConstructor;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
target: {
|
|
231
|
+
type: StringConstructor;
|
|
232
|
+
default: string;
|
|
233
|
+
};
|
|
234
|
+
label: {
|
|
235
|
+
type: StringConstructor;
|
|
236
|
+
default: string;
|
|
237
|
+
};
|
|
238
|
+
notLabel: {
|
|
239
|
+
type: BooleanConstructor;
|
|
240
|
+
default: boolean;
|
|
241
|
+
};
|
|
242
|
+
compact: BooleanConstructor;
|
|
243
|
+
lastCompactItem: BooleanConstructor;
|
|
244
|
+
firstCompactItem: BooleanConstructor;
|
|
245
|
+
}>> & Readonly<{
|
|
246
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
247
|
+
}>, {
|
|
248
|
+
focus: () => void;
|
|
249
|
+
blur: () => void;
|
|
250
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
251
|
+
click: (event: MouseEvent) => any;
|
|
252
|
+
}, string, {
|
|
253
|
+
size: "small" | "default" | "large";
|
|
254
|
+
icon: string;
|
|
255
|
+
type: "link" | "default" | "text" | "primary" | "ghost" | "dashed";
|
|
256
|
+
label: string;
|
|
257
|
+
ghost: boolean;
|
|
258
|
+
shape: "default" | "circle" | "round";
|
|
259
|
+
disabled: boolean;
|
|
260
|
+
danger: boolean;
|
|
261
|
+
block: boolean;
|
|
262
|
+
loading: boolean | {
|
|
263
|
+
delay?: number;
|
|
264
|
+
};
|
|
265
|
+
href: string;
|
|
266
|
+
target: string;
|
|
267
|
+
notLabel: boolean;
|
|
268
|
+
compact: boolean;
|
|
269
|
+
lastCompactItem: boolean;
|
|
270
|
+
firstCompactItem: boolean;
|
|
271
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
272
|
+
$slots: {
|
|
273
|
+
iconAfter?(_: {}): any;
|
|
274
|
+
};
|
|
275
|
+
}) & {
|
|
276
|
+
install: (app: import('vue').App) => void;
|
|
277
|
+
};
|
|
278
|
+
export default JButton;
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
iconAfter?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
buttonNodeRef: HTMLButtonElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLButtonElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
|
+
/**
|
|
15
|
+
* @zh 按钮的类型,分为五种:主要按钮、幽灵按钮、虚框按钮、链接按钮、文字按钮、次要按钮。
|
|
16
|
+
* @defaultValue 'default'
|
|
17
|
+
*/
|
|
18
|
+
type: {
|
|
19
|
+
type: PropType<"primary" | "ghost" | "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
|
+
}>, {
|
|
124
|
+
focus: () => void;
|
|
125
|
+
blur: () => void;
|
|
126
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
127
|
+
click: (event: MouseEvent) => any;
|
|
128
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
129
|
+
/**
|
|
130
|
+
* @zh 按钮的类型,分为五种:主要按钮、幽灵按钮、虚框按钮、链接按钮、文字按钮、次要按钮。
|
|
131
|
+
* @defaultValue 'default'
|
|
132
|
+
*/
|
|
133
|
+
type: {
|
|
134
|
+
type: PropType<"primary" | "ghost" | "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<{
|
|
239
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
240
|
+
}>, {
|
|
241
|
+
size: "small" | "default" | "large";
|
|
242
|
+
icon: string;
|
|
243
|
+
type: "link" | "default" | "text" | "primary" | "ghost" | "dashed";
|
|
244
|
+
label: string;
|
|
245
|
+
ghost: boolean;
|
|
246
|
+
shape: "default" | "circle" | "round";
|
|
247
|
+
disabled: boolean;
|
|
248
|
+
danger: boolean;
|
|
249
|
+
block: boolean;
|
|
250
|
+
loading: boolean | {
|
|
251
|
+
delay?: number;
|
|
252
|
+
};
|
|
253
|
+
href: string;
|
|
254
|
+
target: string;
|
|
255
|
+
notLabel: boolean;
|
|
256
|
+
compact: boolean;
|
|
257
|
+
lastCompactItem: boolean;
|
|
258
|
+
firstCompactItem: boolean;
|
|
259
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
260
|
+
buttonNodeRef: HTMLButtonElement;
|
|
261
|
+
}, HTMLButtonElement>;
|
|
262
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
263
|
+
export default _default;
|
|
264
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
265
|
+
new (): {
|
|
266
|
+
$slots: S;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
declare const JButtons: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
list: {
|
|
4
|
+
type: import('vue').PropType<import('./src/interface').buttonItem[]>;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
group: {
|
|
8
|
+
type: import('vue').PropType<Record<string, import('./src/interface').buttonItem[]>>;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
isLink: BooleanConstructor;
|
|
12
|
+
size: {
|
|
13
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
readonly: BooleanConstructor;
|
|
17
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
18
|
+
size: "small" | "default" | "large";
|
|
19
|
+
list: import('./src/interface').buttonItem[];
|
|
20
|
+
group: Record<string, import('./src/interface').buttonItem[]>;
|
|
21
|
+
isLink: boolean;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
24
|
+
layerRef: unknown;
|
|
25
|
+
}, any, import('vue').ComponentProvideOptions, {
|
|
26
|
+
P: {};
|
|
27
|
+
B: {};
|
|
28
|
+
D: {};
|
|
29
|
+
C: {};
|
|
30
|
+
M: {};
|
|
31
|
+
Defaults: {};
|
|
32
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
33
|
+
list: {
|
|
34
|
+
type: import('vue').PropType<import('./src/interface').buttonItem[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
group: {
|
|
38
|
+
type: import('vue').PropType<Record<string, import('./src/interface').buttonItem[]>>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
isLink: BooleanConstructor;
|
|
42
|
+
size: {
|
|
43
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
readonly: BooleanConstructor;
|
|
47
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
48
|
+
size: "small" | "default" | "large";
|
|
49
|
+
list: import('./src/interface').buttonItem[];
|
|
50
|
+
group: Record<string, import('./src/interface').buttonItem[]>;
|
|
51
|
+
isLink: boolean;
|
|
52
|
+
readonly: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
__isFragment?: never;
|
|
55
|
+
__isTeleport?: never;
|
|
56
|
+
__isSuspense?: never;
|
|
57
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
58
|
+
list: {
|
|
59
|
+
type: import('vue').PropType<import('./src/interface').buttonItem[]>;
|
|
60
|
+
default: () => never[];
|
|
61
|
+
};
|
|
62
|
+
group: {
|
|
63
|
+
type: import('vue').PropType<Record<string, import('./src/interface').buttonItem[]>>;
|
|
64
|
+
default: () => {};
|
|
65
|
+
};
|
|
66
|
+
isLink: BooleanConstructor;
|
|
67
|
+
size: {
|
|
68
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
readonly: BooleanConstructor;
|
|
72
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
73
|
+
size: "small" | "default" | "large";
|
|
74
|
+
list: import('./src/interface').buttonItem[];
|
|
75
|
+
group: Record<string, import('./src/interface').buttonItem[]>;
|
|
76
|
+
isLink: boolean;
|
|
77
|
+
readonly: boolean;
|
|
78
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
79
|
+
install: (app: import('vue').App) => void;
|
|
80
|
+
};
|
|
81
|
+
export default JButtons;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { buttonItem } from './interface';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
/**
|
|
5
|
+
* @zh 按钮数据
|
|
6
|
+
*/
|
|
7
|
+
list: {
|
|
8
|
+
type: PropType<buttonItem[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @zh 按钮组
|
|
14
|
+
*/
|
|
15
|
+
group: {
|
|
16
|
+
type: PropType<Record<string, buttonItem[]>>;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @zh 是否是链接按钮
|
|
21
|
+
*/
|
|
22
|
+
isLink: BooleanConstructor;
|
|
23
|
+
/**
|
|
24
|
+
* @zh 设置按钮大小
|
|
25
|
+
* @defaultValue 'default'
|
|
26
|
+
*/
|
|
27
|
+
size: {
|
|
28
|
+
type: PropType<"large" | "default" | "small">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* @zh 是否只读
|
|
33
|
+
*/
|
|
34
|
+
readonly: BooleanConstructor;
|
|
35
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
36
|
+
/**
|
|
37
|
+
* @zh 按钮数据
|
|
38
|
+
*/
|
|
39
|
+
list: {
|
|
40
|
+
type: PropType<buttonItem[]>;
|
|
41
|
+
default: () => never[];
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @zh 按钮组
|
|
46
|
+
*/
|
|
47
|
+
group: {
|
|
48
|
+
type: PropType<Record<string, buttonItem[]>>;
|
|
49
|
+
default: () => {};
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* @zh 是否是链接按钮
|
|
53
|
+
*/
|
|
54
|
+
isLink: BooleanConstructor;
|
|
55
|
+
/**
|
|
56
|
+
* @zh 设置按钮大小
|
|
57
|
+
* @defaultValue 'default'
|
|
58
|
+
*/
|
|
59
|
+
size: {
|
|
60
|
+
type: PropType<"large" | "default" | "small">;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @zh 是否只读
|
|
65
|
+
*/
|
|
66
|
+
readonly: BooleanConstructor;
|
|
67
|
+
}>> & Readonly<{}>, {
|
|
68
|
+
size: "small" | "default" | "large";
|
|
69
|
+
list: buttonItem[];
|
|
70
|
+
group: Record<string, buttonItem[]>;
|
|
71
|
+
isLink: boolean;
|
|
72
|
+
readonly: boolean;
|
|
73
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
74
|
+
layerRef: unknown;
|
|
75
|
+
}, any>;
|
|
76
|
+
export default _default;
|