@a2simcode/ui 0.0.72 → 0.0.74
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/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 +16 -12
- package/dist/components/index.d.ts +2 -1
- package/dist/simcode-ui.es.js +18 -107
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +1 -1
- package/docs/components/meta/buttons.ts +15 -10
- package/docs/components/meta/date.ts +25 -44
- package/docs/examples/table/actions.vue +1 -1
- package/docs/examples/table-panel/basic.vue +9 -9
- package/docs/examples/table-panel/batch-operations.vue +4 -4
- package/docs/examples/table-panel/multiple-selection.vue +1 -1
- package/package.json +1 -1
|
@@ -1,65 +1,5 @@
|
|
|
1
1
|
declare const JButton: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('
|
|
3
|
-
type: {
|
|
4
|
-
type: import('vue').PropType<"primary" | "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<{
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').ButtonProps> & Readonly<{
|
|
63
3
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
64
4
|
}>, {
|
|
65
5
|
focus: () => void;
|
|
@@ -67,9 +7,9 @@ declare const JButton: {
|
|
|
67
7
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
8
|
click: (event: MouseEvent) => any;
|
|
69
9
|
}, import('vue').PublicProps, {
|
|
70
|
-
size: "
|
|
10
|
+
size: "large" | "default" | "small";
|
|
71
11
|
icon: string;
|
|
72
|
-
type: "
|
|
12
|
+
type: "primary" | "dashed" | "link" | "text" | "default";
|
|
73
13
|
label: string;
|
|
74
14
|
shape: "default" | "circle" | "round";
|
|
75
15
|
ghost: boolean;
|
|
@@ -85,7 +25,7 @@ declare const JButton: {
|
|
|
85
25
|
compact: boolean;
|
|
86
26
|
lastCompactItem: boolean;
|
|
87
27
|
firstCompactItem: boolean;
|
|
88
|
-
},
|
|
28
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
89
29
|
buttonNodeRef: HTMLButtonElement;
|
|
90
30
|
}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
91
31
|
P: {};
|
|
@@ -94,75 +34,15 @@ declare const JButton: {
|
|
|
94
34
|
C: {};
|
|
95
35
|
M: {};
|
|
96
36
|
Defaults: {};
|
|
97
|
-
}, Readonly<import('
|
|
98
|
-
type: {
|
|
99
|
-
type: import('vue').PropType<"primary" | "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<{
|
|
37
|
+
}, Readonly<import('..').ButtonProps> & Readonly<{
|
|
158
38
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
159
39
|
}>, {
|
|
160
40
|
focus: () => void;
|
|
161
41
|
blur: () => void;
|
|
162
42
|
}, {}, {}, {}, {
|
|
163
|
-
size: "
|
|
43
|
+
size: "large" | "default" | "small";
|
|
164
44
|
icon: string;
|
|
165
|
-
type: "
|
|
45
|
+
type: "primary" | "dashed" | "link" | "text" | "default";
|
|
166
46
|
label: string;
|
|
167
47
|
shape: "default" | "circle" | "round";
|
|
168
48
|
ghost: boolean;
|
|
@@ -182,67 +62,7 @@ declare const JButton: {
|
|
|
182
62
|
__isFragment?: never;
|
|
183
63
|
__isTeleport?: never;
|
|
184
64
|
__isSuspense?: never;
|
|
185
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('
|
|
186
|
-
type: {
|
|
187
|
-
type: import('vue').PropType<"primary" | "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<{
|
|
65
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('..').ButtonProps> & Readonly<{
|
|
246
66
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
247
67
|
}>, {
|
|
248
68
|
focus: () => void;
|
|
@@ -250,9 +70,9 @@ declare const JButton: {
|
|
|
250
70
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
251
71
|
click: (event: MouseEvent) => any;
|
|
252
72
|
}, string, {
|
|
253
|
-
size: "
|
|
73
|
+
size: "large" | "default" | "small";
|
|
254
74
|
icon: string;
|
|
255
|
-
type: "
|
|
75
|
+
type: "primary" | "dashed" | "link" | "text" | "default";
|
|
256
76
|
label: string;
|
|
257
77
|
shape: "default" | "circle" | "round";
|
|
258
78
|
ghost: boolean;
|
|
@@ -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,24 +1,28 @@
|
|
|
1
1
|
import { LayerParamType } from '../../dynamic-layer/src/interface';
|
|
2
|
-
|
|
2
|
+
import { ButtonProps } from '../../button/src/button.vue';
|
|
3
|
+
export interface ButtonClickScope {
|
|
4
|
+
data?: Record<string, any>;
|
|
5
|
+
openLayer: (options: LayerParamType) => void;
|
|
6
|
+
}
|
|
7
|
+
export interface ButtonCompActionType {
|
|
3
8
|
/**
|
|
4
|
-
* @zh
|
|
9
|
+
* @zh 按钮配置
|
|
5
10
|
*/
|
|
6
|
-
|
|
11
|
+
config?: ButtonProps;
|
|
7
12
|
/**
|
|
8
|
-
* @zh
|
|
13
|
+
* @zh 按钮点击方法
|
|
9
14
|
*/
|
|
10
|
-
|
|
15
|
+
click?: (scope: ButtonClickScope) => void;
|
|
16
|
+
}
|
|
17
|
+
export interface ButtonCompType extends ButtonCompActionType {
|
|
11
18
|
/**
|
|
12
|
-
* @zh
|
|
19
|
+
* @zh 按钮ID
|
|
13
20
|
*/
|
|
14
|
-
|
|
21
|
+
id: string;
|
|
15
22
|
/**
|
|
16
|
-
* @zh
|
|
23
|
+
* @zh 按钮名称
|
|
17
24
|
*/
|
|
18
|
-
|
|
19
|
-
data?: Record<string, any>;
|
|
20
|
-
openLayer: (options: LayerParamType) => void;
|
|
21
|
-
}) => void;
|
|
25
|
+
label?: string;
|
|
22
26
|
/**
|
|
23
27
|
* @zh 按钮子集
|
|
24
28
|
*/
|
|
@@ -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, ButtonClickScope, } 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';
|