bkui-vue 0.0.1-beta.45 → 0.0.1-beta.46
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/index.cjs.js +26 -26
- package/dist/index.esm.js +388 -95
- package/dist/index.umd.js +27 -27
- package/dist/style.css +1 -1
- package/lib/button/index.js +1 -1
- package/lib/dialog/dialog.css +3 -0
- package/lib/dialog/dialog.d.ts +89 -17
- package/lib/dialog/dialog.less +4 -0
- package/lib/dialog/dialog.variable.css +3 -0
- package/lib/dialog/index.d.ts +191 -36
- package/lib/dialog/index.js +1 -1
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/modal/index.d.ts +149 -1
- package/lib/modal/modal.css +20 -0
- package/lib/modal/modal.d.ts +58 -0
- package/lib/modal/modal.less +25 -0
- package/lib/modal/modal.variable.css +20 -0
- package/lib/modal/props.mixin.d.ts +26 -0
- package/lib/popover/index.d.ts +33 -2
- package/lib/popover/popover.d.ts +16 -1
- package/lib/popover/props.d.ts +12 -0
- package/lib/sideslider/index.d.ts +123 -1
- package/lib/sideslider/sideslider.d.ts +58 -0
- package/lib/switcher/switcher.less +2 -0
- package/lib/tab/index.d.ts +1 -1
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +83 -0
- package/lib/table/plugins/head-filter.variable.css +162 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +116 -0
- package/lib/table/props.d.ts +8 -1
- package/lib/table/render.d.ts +10 -15
- package/lib/table/table.css +4 -26
- package/lib/table/table.d.ts +1 -0
- package/lib/table/table.less +7 -27
- package/lib/table/table.variable.css +4 -26
- package/lib/table/utils.d.ts +10 -1
- package/package.json +29 -16
- package/lib/icon/index.js +0 -1
- package/lib/icon/info-line.js +0 -1
- package/lib/icon/info.js +0 -1
- package/lib/icon/left-shape.js +0 -1
- package/lib/icon/play-shape.js +0 -1
- package/lib/icon/plus.js +0 -1
- package/lib/icon/qq.js +0 -1
- package/lib/icon/right-shape.js +0 -1
- package/lib/icon/search.js +0 -1
- package/lib/icon/share.js +0 -1
- package/lib/icon/spinner.js +0 -1
- package/lib/icon/success.js +0 -1
- package/lib/icon/switcher-loading.js +0 -1
- package/lib/icon/text-file.js +0 -1
- package/lib/icon/tree-application-shape.js +0 -1
- package/lib/icon/unvisible.js +0 -1
- package/lib/icon/up-shape.js +0 -1
- package/lib/icon/warn.js +0 -1
- package/lib/icon/weixin.js +0 -1
- package/lib/input/index.js +0 -1
- package/lib/link/index.js +0 -1
- package/lib/loading/index.js +0 -1
- package/lib/menu/index.js +0 -1
- package/lib/message/index.js +0 -1
- package/lib/modal/index.js +0 -1
- package/lib/navigation/index.js +0 -1
- package/lib/notify/index.js +0 -1
- package/lib/pagination/index.js +0 -1
- package/lib/popover/index.js +0 -1
- package/lib/process/index.js +0 -1
- package/lib/progress/index.js +0 -1
- package/lib/radio/index.js +0 -1
- package/lib/rate/index.js +0 -1
- package/lib/resize-layout/index.js +0 -1
- package/lib/select/index.js +0 -1
- package/lib/shared/index.js +0 -1
- package/lib/sideslider/index.js +0 -1
- package/lib/slider/index.js +0 -1
- package/lib/steps/index.js +0 -1
- package/lib/swiper/index.js +0 -1
- package/lib/switcher/index.js +0 -1
- package/lib/tab/index.js +0 -1
- package/lib/table/index.js +0 -1
- package/lib/tag/index.js +0 -1
- package/lib/tag-input/index.js +0 -1
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.js +0 -1
- package/lib/tree/index.js +0 -1
- package/lib/virtual-render/index.js +0 -1
package/lib/dialog/dialog.d.ts
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
+
width: {
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
4
|
+
default: any;
|
5
|
+
};
|
6
|
+
height: {
|
7
|
+
type: (NumberConstructor | StringConstructor)[];
|
8
|
+
default: any;
|
9
|
+
};
|
2
10
|
confirmText: {
|
3
11
|
type: StringConstructor;
|
4
12
|
default: string;
|
@@ -21,18 +29,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
29
|
default: string;
|
22
30
|
validator: (value: string) => boolean;
|
23
31
|
};
|
32
|
+
theme: {
|
33
|
+
type: StringConstructor;
|
34
|
+
default: string;
|
35
|
+
validator: (value: string) => boolean;
|
36
|
+
};
|
24
37
|
isShow: {
|
25
38
|
type: BooleanConstructor;
|
26
39
|
default: boolean;
|
27
40
|
};
|
28
|
-
width: {
|
29
|
-
type: (NumberConstructor | StringConstructor)[];
|
30
|
-
default: string;
|
31
|
-
};
|
32
|
-
height: {
|
33
|
-
type: (NumberConstructor | StringConstructor)[];
|
34
|
-
default: string;
|
35
|
-
};
|
36
41
|
customClass: {
|
37
42
|
type: (ArrayConstructor | StringConstructor)[];
|
38
43
|
default: string;
|
@@ -45,9 +50,45 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
50
|
type: BooleanConstructor;
|
46
51
|
default: boolean;
|
47
52
|
};
|
53
|
+
closeIcon: {
|
54
|
+
type: BooleanConstructor;
|
55
|
+
default: boolean;
|
56
|
+
};
|
57
|
+
escClose: {
|
58
|
+
type: BooleanConstructor;
|
59
|
+
default: boolean;
|
60
|
+
};
|
61
|
+
maskClose: {
|
62
|
+
type: BooleanConstructor;
|
63
|
+
default: boolean;
|
64
|
+
};
|
65
|
+
fullscreen: {
|
66
|
+
type: BooleanConstructor;
|
67
|
+
default: boolean;
|
68
|
+
};
|
69
|
+
size: {
|
70
|
+
type: StringConstructor;
|
71
|
+
default: string;
|
72
|
+
validator: (value: string) => boolean;
|
73
|
+
};
|
74
|
+
renderDirective: {
|
75
|
+
type: StringConstructor;
|
76
|
+
default: string;
|
77
|
+
validator: (value: string) => boolean;
|
78
|
+
};
|
48
79
|
}, unknown, unknown, {}, {
|
49
80
|
handleClose(): void;
|
50
|
-
|
81
|
+
handleConfirm(): void;
|
82
|
+
escCloseHandler(e: any): void;
|
83
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow" | "confirm")[], "closed" | "update:isShow" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
84
|
+
width: {
|
85
|
+
type: (NumberConstructor | StringConstructor)[];
|
86
|
+
default: any;
|
87
|
+
};
|
88
|
+
height: {
|
89
|
+
type: (NumberConstructor | StringConstructor)[];
|
90
|
+
default: any;
|
91
|
+
};
|
51
92
|
confirmText: {
|
52
93
|
type: StringConstructor;
|
53
94
|
default: string;
|
@@ -70,18 +111,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
70
111
|
default: string;
|
71
112
|
validator: (value: string) => boolean;
|
72
113
|
};
|
114
|
+
theme: {
|
115
|
+
type: StringConstructor;
|
116
|
+
default: string;
|
117
|
+
validator: (value: string) => boolean;
|
118
|
+
};
|
73
119
|
isShow: {
|
74
120
|
type: BooleanConstructor;
|
75
121
|
default: boolean;
|
76
122
|
};
|
77
|
-
width: {
|
78
|
-
type: (NumberConstructor | StringConstructor)[];
|
79
|
-
default: string;
|
80
|
-
};
|
81
|
-
height: {
|
82
|
-
type: (NumberConstructor | StringConstructor)[];
|
83
|
-
default: string;
|
84
|
-
};
|
85
123
|
customClass: {
|
86
124
|
type: (ArrayConstructor | StringConstructor)[];
|
87
125
|
default: string;
|
@@ -94,17 +132,51 @@ declare const _default: import("vue").DefineComponent<{
|
|
94
132
|
type: BooleanConstructor;
|
95
133
|
default: boolean;
|
96
134
|
};
|
135
|
+
closeIcon: {
|
136
|
+
type: BooleanConstructor;
|
137
|
+
default: boolean;
|
138
|
+
};
|
139
|
+
escClose: {
|
140
|
+
type: BooleanConstructor;
|
141
|
+
default: boolean;
|
142
|
+
};
|
143
|
+
maskClose: {
|
144
|
+
type: BooleanConstructor;
|
145
|
+
default: boolean;
|
146
|
+
};
|
147
|
+
fullscreen: {
|
148
|
+
type: BooleanConstructor;
|
149
|
+
default: boolean;
|
150
|
+
};
|
151
|
+
size: {
|
152
|
+
type: StringConstructor;
|
153
|
+
default: string;
|
154
|
+
validator: (value: string) => boolean;
|
155
|
+
};
|
156
|
+
renderDirective: {
|
157
|
+
type: StringConstructor;
|
158
|
+
default: string;
|
159
|
+
validator: (value: string) => boolean;
|
160
|
+
};
|
97
161
|
}>> & {
|
98
162
|
onClosed?: (...args: any[]) => any;
|
99
163
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
164
|
+
onConfirm?: (...args: any[]) => any;
|
100
165
|
}, {
|
101
166
|
width: string | number;
|
102
167
|
height: string | number;
|
103
168
|
title: string;
|
104
169
|
showMask: boolean;
|
170
|
+
theme: string;
|
171
|
+
size: string;
|
105
172
|
isShow: boolean;
|
106
173
|
customClass: string | unknown[];
|
107
174
|
scrollable: boolean;
|
175
|
+
closeIcon: boolean;
|
176
|
+
escClose: boolean;
|
177
|
+
maskClose: boolean;
|
178
|
+
fullscreen: boolean;
|
179
|
+
renderDirective: string;
|
108
180
|
confirmText: string;
|
109
181
|
cancelText: string;
|
110
182
|
headerAlign: string;
|
package/lib/dialog/dialog.less
CHANGED
package/lib/dialog/index.d.ts
CHANGED
@@ -7,14 +7,29 @@ declare const BkDialog: {
|
|
7
7
|
height: string | number;
|
8
8
|
title: string;
|
9
9
|
showMask: boolean;
|
10
|
+
theme: string;
|
11
|
+
size: string;
|
10
12
|
isShow: boolean;
|
11
13
|
customClass: string | unknown[];
|
12
14
|
scrollable: boolean;
|
15
|
+
closeIcon: boolean;
|
16
|
+
escClose: boolean;
|
17
|
+
maskClose: boolean;
|
18
|
+
fullscreen: boolean;
|
19
|
+
renderDirective: string;
|
13
20
|
confirmText: string;
|
14
21
|
cancelText: string;
|
15
22
|
headerAlign: string;
|
16
23
|
footerAlign: string;
|
17
24
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
width: {
|
26
|
+
type: (NumberConstructor | StringConstructor)[];
|
27
|
+
default: any;
|
28
|
+
};
|
29
|
+
height: {
|
30
|
+
type: (NumberConstructor | StringConstructor)[];
|
31
|
+
default: any;
|
32
|
+
};
|
18
33
|
confirmText: {
|
19
34
|
type: StringConstructor;
|
20
35
|
default: string;
|
@@ -37,18 +52,15 @@ declare const BkDialog: {
|
|
37
52
|
default: string;
|
38
53
|
validator: (value: string) => boolean;
|
39
54
|
};
|
55
|
+
theme: {
|
56
|
+
type: StringConstructor;
|
57
|
+
default: string;
|
58
|
+
validator: (value: string) => boolean;
|
59
|
+
};
|
40
60
|
isShow: {
|
41
61
|
type: BooleanConstructor;
|
42
62
|
default: boolean;
|
43
63
|
};
|
44
|
-
width: {
|
45
|
-
type: (NumberConstructor | StringConstructor)[];
|
46
|
-
default: string;
|
47
|
-
};
|
48
|
-
height: {
|
49
|
-
type: (NumberConstructor | StringConstructor)[];
|
50
|
-
default: string;
|
51
|
-
};
|
52
64
|
customClass: {
|
53
65
|
type: (ArrayConstructor | StringConstructor)[];
|
54
66
|
default: string;
|
@@ -61,10 +73,37 @@ declare const BkDialog: {
|
|
61
73
|
type: BooleanConstructor;
|
62
74
|
default: boolean;
|
63
75
|
};
|
76
|
+
closeIcon: {
|
77
|
+
type: BooleanConstructor;
|
78
|
+
default: boolean;
|
79
|
+
};
|
80
|
+
escClose: {
|
81
|
+
type: BooleanConstructor;
|
82
|
+
default: boolean;
|
83
|
+
};
|
84
|
+
maskClose: {
|
85
|
+
type: BooleanConstructor;
|
86
|
+
default: boolean;
|
87
|
+
};
|
88
|
+
fullscreen: {
|
89
|
+
type: BooleanConstructor;
|
90
|
+
default: boolean;
|
91
|
+
};
|
92
|
+
size: {
|
93
|
+
type: StringConstructor;
|
94
|
+
default: string;
|
95
|
+
validator: (value: string) => boolean;
|
96
|
+
};
|
97
|
+
renderDirective: {
|
98
|
+
type: StringConstructor;
|
99
|
+
default: string;
|
100
|
+
validator: (value: string) => boolean;
|
101
|
+
};
|
64
102
|
}>> & {
|
65
103
|
onClosed?: (...args: any[]) => any;
|
66
104
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
67
|
-
|
105
|
+
onConfirm?: (...args: any[]) => any;
|
106
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "title" | "showMask" | "theme" | "size" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "renderDirective" | "confirmText" | "cancelText" | "headerAlign" | "footerAlign">;
|
68
107
|
$attrs: {
|
69
108
|
[x: string]: unknown;
|
70
109
|
};
|
@@ -76,9 +115,17 @@ declare const BkDialog: {
|
|
76
115
|
}>;
|
77
116
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
78
117
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
79
|
-
$emit: (event: "closed" | "update:isShow", ...args: any[]) => void;
|
118
|
+
$emit: (event: "closed" | "update:isShow" | "confirm", ...args: any[]) => void;
|
80
119
|
$el: any;
|
81
120
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
121
|
+
width: {
|
122
|
+
type: (NumberConstructor | StringConstructor)[];
|
123
|
+
default: any;
|
124
|
+
};
|
125
|
+
height: {
|
126
|
+
type: (NumberConstructor | StringConstructor)[];
|
127
|
+
default: any;
|
128
|
+
};
|
82
129
|
confirmText: {
|
83
130
|
type: StringConstructor;
|
84
131
|
default: string;
|
@@ -101,18 +148,15 @@ declare const BkDialog: {
|
|
101
148
|
default: string;
|
102
149
|
validator: (value: string) => boolean;
|
103
150
|
};
|
151
|
+
theme: {
|
152
|
+
type: StringConstructor;
|
153
|
+
default: string;
|
154
|
+
validator: (value: string) => boolean;
|
155
|
+
};
|
104
156
|
isShow: {
|
105
157
|
type: BooleanConstructor;
|
106
158
|
default: boolean;
|
107
159
|
};
|
108
|
-
width: {
|
109
|
-
type: (NumberConstructor | StringConstructor)[];
|
110
|
-
default: string;
|
111
|
-
};
|
112
|
-
height: {
|
113
|
-
type: (NumberConstructor | StringConstructor)[];
|
114
|
-
default: string;
|
115
|
-
};
|
116
160
|
customClass: {
|
117
161
|
type: (ArrayConstructor | StringConstructor)[];
|
118
162
|
default: string;
|
@@ -125,19 +169,55 @@ declare const BkDialog: {
|
|
125
169
|
type: BooleanConstructor;
|
126
170
|
default: boolean;
|
127
171
|
};
|
172
|
+
closeIcon: {
|
173
|
+
type: BooleanConstructor;
|
174
|
+
default: boolean;
|
175
|
+
};
|
176
|
+
escClose: {
|
177
|
+
type: BooleanConstructor;
|
178
|
+
default: boolean;
|
179
|
+
};
|
180
|
+
maskClose: {
|
181
|
+
type: BooleanConstructor;
|
182
|
+
default: boolean;
|
183
|
+
};
|
184
|
+
fullscreen: {
|
185
|
+
type: BooleanConstructor;
|
186
|
+
default: boolean;
|
187
|
+
};
|
188
|
+
size: {
|
189
|
+
type: StringConstructor;
|
190
|
+
default: string;
|
191
|
+
validator: (value: string) => boolean;
|
192
|
+
};
|
193
|
+
renderDirective: {
|
194
|
+
type: StringConstructor;
|
195
|
+
default: string;
|
196
|
+
validator: (value: string) => boolean;
|
197
|
+
};
|
128
198
|
}>> & {
|
129
199
|
onClosed?: (...args: any[]) => any;
|
130
200
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
201
|
+
onConfirm?: (...args: any[]) => any;
|
131
202
|
}, unknown, unknown, {}, {
|
132
203
|
handleClose(): void;
|
133
|
-
|
204
|
+
handleConfirm(): void;
|
205
|
+
escCloseHandler(e: any): void;
|
206
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow" | "confirm")[], string, {
|
134
207
|
width: string | number;
|
135
208
|
height: string | number;
|
136
209
|
title: string;
|
137
210
|
showMask: boolean;
|
211
|
+
theme: string;
|
212
|
+
size: string;
|
138
213
|
isShow: boolean;
|
139
214
|
customClass: string | unknown[];
|
140
215
|
scrollable: boolean;
|
216
|
+
closeIcon: boolean;
|
217
|
+
escClose: boolean;
|
218
|
+
maskClose: boolean;
|
219
|
+
fullscreen: boolean;
|
220
|
+
renderDirective: string;
|
141
221
|
confirmText: string;
|
142
222
|
cancelText: string;
|
143
223
|
headerAlign: string;
|
@@ -163,6 +243,14 @@ declare const BkDialog: {
|
|
163
243
|
$nextTick: typeof import("vue").nextTick;
|
164
244
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
165
245
|
} & Readonly<import("vue").ExtractPropTypes<{
|
246
|
+
width: {
|
247
|
+
type: (NumberConstructor | StringConstructor)[];
|
248
|
+
default: any;
|
249
|
+
};
|
250
|
+
height: {
|
251
|
+
type: (NumberConstructor | StringConstructor)[];
|
252
|
+
default: any;
|
253
|
+
};
|
166
254
|
confirmText: {
|
167
255
|
type: StringConstructor;
|
168
256
|
default: string;
|
@@ -185,18 +273,15 @@ declare const BkDialog: {
|
|
185
273
|
default: string;
|
186
274
|
validator: (value: string) => boolean;
|
187
275
|
};
|
276
|
+
theme: {
|
277
|
+
type: StringConstructor;
|
278
|
+
default: string;
|
279
|
+
validator: (value: string) => boolean;
|
280
|
+
};
|
188
281
|
isShow: {
|
189
282
|
type: BooleanConstructor;
|
190
283
|
default: boolean;
|
191
284
|
};
|
192
|
-
width: {
|
193
|
-
type: (NumberConstructor | StringConstructor)[];
|
194
|
-
default: string;
|
195
|
-
};
|
196
|
-
height: {
|
197
|
-
type: (NumberConstructor | StringConstructor)[];
|
198
|
-
default: string;
|
199
|
-
};
|
200
285
|
customClass: {
|
201
286
|
type: (ArrayConstructor | StringConstructor)[];
|
202
287
|
default: string;
|
@@ -209,16 +294,53 @@ declare const BkDialog: {
|
|
209
294
|
type: BooleanConstructor;
|
210
295
|
default: boolean;
|
211
296
|
};
|
297
|
+
closeIcon: {
|
298
|
+
type: BooleanConstructor;
|
299
|
+
default: boolean;
|
300
|
+
};
|
301
|
+
escClose: {
|
302
|
+
type: BooleanConstructor;
|
303
|
+
default: boolean;
|
304
|
+
};
|
305
|
+
maskClose: {
|
306
|
+
type: BooleanConstructor;
|
307
|
+
default: boolean;
|
308
|
+
};
|
309
|
+
fullscreen: {
|
310
|
+
type: BooleanConstructor;
|
311
|
+
default: boolean;
|
312
|
+
};
|
313
|
+
size: {
|
314
|
+
type: StringConstructor;
|
315
|
+
default: string;
|
316
|
+
validator: (value: string) => boolean;
|
317
|
+
};
|
318
|
+
renderDirective: {
|
319
|
+
type: StringConstructor;
|
320
|
+
default: string;
|
321
|
+
validator: (value: string) => boolean;
|
322
|
+
};
|
212
323
|
}>> & {
|
213
324
|
onClosed?: (...args: any[]) => any;
|
214
325
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
326
|
+
onConfirm?: (...args: any[]) => any;
|
215
327
|
} & import("vue").ShallowUnwrapRef<{}> & {} & {} & {
|
216
328
|
handleClose(): void;
|
329
|
+
handleConfirm(): void;
|
330
|
+
escCloseHandler(e: any): void;
|
217
331
|
} & import("vue").ComponentCustomProperties;
|
218
332
|
__isFragment?: never;
|
219
333
|
__isTeleport?: never;
|
220
334
|
__isSuspense?: never;
|
221
335
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
336
|
+
width: {
|
337
|
+
type: (NumberConstructor | StringConstructor)[];
|
338
|
+
default: any;
|
339
|
+
};
|
340
|
+
height: {
|
341
|
+
type: (NumberConstructor | StringConstructor)[];
|
342
|
+
default: any;
|
343
|
+
};
|
222
344
|
confirmText: {
|
223
345
|
type: StringConstructor;
|
224
346
|
default: string;
|
@@ -241,18 +363,15 @@ declare const BkDialog: {
|
|
241
363
|
default: string;
|
242
364
|
validator: (value: string) => boolean;
|
243
365
|
};
|
366
|
+
theme: {
|
367
|
+
type: StringConstructor;
|
368
|
+
default: string;
|
369
|
+
validator: (value: string) => boolean;
|
370
|
+
};
|
244
371
|
isShow: {
|
245
372
|
type: BooleanConstructor;
|
246
373
|
default: boolean;
|
247
374
|
};
|
248
|
-
width: {
|
249
|
-
type: (NumberConstructor | StringConstructor)[];
|
250
|
-
default: string;
|
251
|
-
};
|
252
|
-
height: {
|
253
|
-
type: (NumberConstructor | StringConstructor)[];
|
254
|
-
default: string;
|
255
|
-
};
|
256
375
|
customClass: {
|
257
376
|
type: (ArrayConstructor | StringConstructor)[];
|
258
377
|
default: string;
|
@@ -265,19 +384,55 @@ declare const BkDialog: {
|
|
265
384
|
type: BooleanConstructor;
|
266
385
|
default: boolean;
|
267
386
|
};
|
387
|
+
closeIcon: {
|
388
|
+
type: BooleanConstructor;
|
389
|
+
default: boolean;
|
390
|
+
};
|
391
|
+
escClose: {
|
392
|
+
type: BooleanConstructor;
|
393
|
+
default: boolean;
|
394
|
+
};
|
395
|
+
maskClose: {
|
396
|
+
type: BooleanConstructor;
|
397
|
+
default: boolean;
|
398
|
+
};
|
399
|
+
fullscreen: {
|
400
|
+
type: BooleanConstructor;
|
401
|
+
default: boolean;
|
402
|
+
};
|
403
|
+
size: {
|
404
|
+
type: StringConstructor;
|
405
|
+
default: string;
|
406
|
+
validator: (value: string) => boolean;
|
407
|
+
};
|
408
|
+
renderDirective: {
|
409
|
+
type: StringConstructor;
|
410
|
+
default: string;
|
411
|
+
validator: (value: string) => boolean;
|
412
|
+
};
|
268
413
|
}>> & {
|
269
414
|
onClosed?: (...args: any[]) => any;
|
270
415
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
416
|
+
onConfirm?: (...args: any[]) => any;
|
271
417
|
}, unknown, unknown, {}, {
|
272
418
|
handleClose(): void;
|
273
|
-
|
419
|
+
handleConfirm(): void;
|
420
|
+
escCloseHandler(e: any): void;
|
421
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow" | "confirm")[], "closed" | "update:isShow" | "confirm", {
|
274
422
|
width: string | number;
|
275
423
|
height: string | number;
|
276
424
|
title: string;
|
277
425
|
showMask: boolean;
|
426
|
+
theme: string;
|
427
|
+
size: string;
|
278
428
|
isShow: boolean;
|
279
429
|
customClass: string | unknown[];
|
280
430
|
scrollable: boolean;
|
431
|
+
closeIcon: boolean;
|
432
|
+
escClose: boolean;
|
433
|
+
maskClose: boolean;
|
434
|
+
fullscreen: boolean;
|
435
|
+
renderDirective: string;
|
281
436
|
confirmText: string;
|
282
437
|
cancelText: string;
|
283
438
|
headerAlign: string;
|
package/lib/dialog/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../button"),require("../modal")):t(e["../shared"],e.vue,e["../button"],e["../modal"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r)=>(()=>{"use strict";var n={4976:e=>{e.exports=o},8014:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../button"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../button"),require("../modal")):t(e["../shared"],e.vue,e["../button"],e["../modal"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r)=>(()=>{"use strict";var n={4976:e=>{e.exports=o},8014:e=>{e.exports=r},4212:t=>{t.exports=e},748:e=>{e.exports=t}},i={};function l(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={exports:{}};return n[e](o,o.exports,l),o.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var o in t)l.o(t,o)&&!l.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{l.r(a),l.d(a,{default:()=>d});var e=l(4212),t=l(748),o=l(4976),r=l.n(o),n=l(8014),i=l.n(n);const s=(0,t.defineComponent)({name:"Dialog",components:{BkModal:i(),BkButton:r()},props:Object.assign(Object.assign({},n.propsMixin),{width:{type:[Number,String],default:null},height:{type:[Number,String],default:null},confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},title:{type:String,default:"Title"},headerAlign:{type:String,default:"left",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0&&(console.error("headerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),1))}},footerAlign:{type:String,default:"right",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0&&(console.error("footerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),1))}},theme:{type:String,default:"primary",validator:function(e){return!(["primary","warning","success","danger"].indexOf(e)<0&&(console.error("theme property is not valid: '".concat(e,"'")),1))}}}),emits:["closed","update:isShow","confirm"],mounted:function(){this.escClose&&addEventListener("keydown",this.escCloseHandler)},beforeDestory:function(){this.escClose&&removeEventListener("keydown",this.escCloseHandler)},methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")},handleConfirm:function(){this.$emit("update:isShow",!1),this.$emit("confirm")},escCloseHandler:function(e){this.isShow&&this.closeIcon&&27===e.keyCode&&this.handleClose()}},render:function(){var e,o=this,n={header:function(){var e,r,n;return[(0,t.createVNode)("div",{class:"bk-dialog-tool"},[(0,t.createVNode)("span",{class:["bk-dialog-close",o.closeIcon?"":"close-icon"],onClick:o.handleClose},[(0,t.createTextVNode)("+")])]),(0,t.createVNode)("div",{class:"bk-dialog-header"},[(0,t.createVNode)("span",{class:"bk-dialog-title",style:"text-align: ".concat(o.headerAlign)},[null!==(n=null===(r=(e=o.$slots).header)||void 0===r?void 0:r.call(e))&&void 0!==n?n:o.title])])]},default:function(){var e,t,r;return null!==(r=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"default"},footer:function(){var e,n,i;return(0,t.createVNode)("div",{class:"bk-dialog-footer",style:"text-align: ".concat(o.footerAlign)},[null!==(i=null===(n=(e=o.$slots).footer)||void 0===n?void 0:n.call(e))&&void 0!==i?i:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(r(),{onClick:o.handleConfirm,theme:o.theme},{default:function(){return[o.confirmText]}}),(0,t.createVNode)(r(),{style:"margin-left: 8px;",onClick:o.handleClose},{default:function(){return[o.cancelText]}})])])}},l="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return(0,t.createVNode)(i(),(0,t.mergeProps)(this.$props,{class:l}),"function"==typeof(e=n)||"[object Object]"===Object.prototype.toString.call(e)&&!(0,t.isVNode)(e)?n:{default:function(){return[n]}})}}),d=(0,e.withInstall)(s)})(),a})()));
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r="object"==typeof exports?t(require("vue")):t(e.vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,(e=>(()=>{"use strict";var t={748:t=>{t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,n),a.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{n.r(o),n.d(o,{default:()=>l});var e=n(748);function t(r,n,o){return(0,e.h)(r.name,Object.assign(Object.assign({key:n},r.attributes),{style:"".concat(r.attributes.style," ").concat(o)}),(r.elements||[]).map((function(e,o){return t(e,"".concat(n,"-").concat(r.name,"-").concat(o))})))}Object.create,Object.create;var r=function(r,n){var o=Object.assign(Object.assign({},n.attrs),r),a=o.data,i=o.name,c=o.width,l=o.height,s=o.fill,u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(o,["data","name","width","height","fill"]),f="width: ".concat(c,"; height: ").concat(l,"; fill: ").concat(s);return(0,e.createVNode)("span",u,[t(a,i,f)])};r.inheritAttrs=!1,r.displayName="bkIcon";const a=r;var i=JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"http://www.w3.org/2000/svg","viewBox":"0 0 1024 1024","style":"width: 1em; height: 1em; vertical-align: middle;fill: currentColor;overflow: hidden;"},"elements":[{"type":"element","name":"path","attributes":{"d":"M860.8 128H163.2a32 32 0 0 0-27.36 52l295.2 336 0.96 0V896l160-82.72V516.8l0.96 0 295.2-336A32 32 0 0 0 860.8 128Z"}}]}'),c=function(t,r){var n=Object.assign(Object.assign({},t),r.attrs);return(0,e.createVNode)(a,(0,e.mergeProps)(n,{data:i,name:"funnel"}),null)};c.displayName="funnel",c.inheritAttrs=!1;const l=c})(),o})()));
|
package/lib/icon/index.d.ts
CHANGED
@@ -30,6 +30,7 @@ export { default as FolderOpen } from '../icons/folder-open';
|
|
30
30
|
export { default as FolderShapeOpen } from '../icons/folder-shape-open';
|
31
31
|
export { default as FolderShape } from '../icons/folder-shape';
|
32
32
|
export { default as Folder } from '../icons/folder';
|
33
|
+
export { default as Funnel } from '../icons/funnel';
|
33
34
|
export { default as HelpDocumentFill } from '../icons/help-document-fill';
|
34
35
|
export { default as HelpFill } from '../icons/help-fill';
|
35
36
|
export { default as Help } from '../icons/help';
|