bkui-vue 0.0.1-beta.54 → 0.0.1-beta.57

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.
Files changed (63) hide show
  1. package/dist/index.cjs.js +27 -27
  2. package/dist/index.esm.js +775 -588
  3. package/dist/index.umd.js +27 -27
  4. package/dist/style.css +1 -1
  5. package/lib/badge/badge.css +5 -5
  6. package/lib/badge/badge.d.ts +28 -7
  7. package/lib/badge/badge.less +5 -6
  8. package/lib/badge/badge.variable.css +5 -5
  9. package/lib/badge/index.d.ts +68 -18
  10. package/lib/badge/index.js +1 -1
  11. package/lib/card/card.css +45 -1
  12. package/lib/card/card.d.ts +47 -6
  13. package/lib/card/card.less +47 -3
  14. package/lib/card/card.variable.css +45 -1
  15. package/lib/card/index.d.ts +113 -17
  16. package/lib/card/index.js +1 -1
  17. package/lib/code-diff/index.js +1 -1
  18. package/lib/date-picker/date-picker.d.ts +4 -4
  19. package/lib/date-picker/index.d.ts +14 -14
  20. package/lib/dialog/dialog.css +8 -0
  21. package/lib/dialog/dialog.d.ts +147 -101
  22. package/lib/dialog/dialog.less +8 -0
  23. package/lib/dialog/dialog.variable.css +8 -0
  24. package/lib/dialog/index.d.ts +315 -213
  25. package/lib/dialog/index.js +1 -1
  26. package/lib/dist.index.js +1 -0
  27. package/lib/form/form-item.d.ts +2 -2
  28. package/lib/form/form.css +4 -1
  29. package/lib/form/form.less +4 -1
  30. package/lib/form/form.variable.css +4 -1
  31. package/lib/form/index.d.ts +2 -2
  32. package/lib/icon/data-shape.d.ts +4 -0
  33. package/lib/icon/data-shape.js +1 -0
  34. package/lib/icon/edit-line.d.ts +4 -0
  35. package/lib/icon/{help-document-fill.js → edit-line.js} +1 -1
  36. package/lib/icon/help-fill.js +1 -0
  37. package/lib/icon/index.d.ts +2 -0
  38. package/lib/icon/index.js +1 -1
  39. package/lib/input/index.d.ts +27 -27
  40. package/lib/input/input.d.ts +8 -8
  41. package/lib/modal/index.d.ts +194 -154
  42. package/lib/modal/index.js +1 -1
  43. package/lib/modal/modal.d.ts +77 -61
  44. package/lib/modal/props.mixin.d.ts +38 -30
  45. package/lib/navigation/navigation.d.ts +1 -1
  46. package/lib/rate/star.d.ts +1 -1
  47. package/lib/select/index.d.ts +8 -8
  48. package/lib/select/select.d.ts +2 -2
  49. package/lib/sideslider/index.d.ts +156 -124
  50. package/lib/sideslider/sideslider.d.ts +77 -61
  51. package/lib/slider/slider.d.ts +1 -1
  52. package/lib/tab/index.d.ts +1 -1
  53. package/lib/tab/tab-panel.d.ts +1 -1
  54. package/lib/table/index.d.ts +39 -1
  55. package/lib/table/index.js +1 -1
  56. package/lib/table/props.d.ts +16 -1
  57. package/lib/table/table.css +2 -2
  58. package/lib/table/table.d.ts +18 -0
  59. package/lib/table/table.less +3 -1
  60. package/lib/table/table.variable.css +2 -2
  61. package/lib/table/use-common.d.ts +5 -5
  62. package/lib/tag-input/tag-input.d.ts +2 -2
  63. package/package.json +11 -5
@@ -232,29 +232,29 @@ declare const _default: import("vue").DefineComponent<{
232
232
  onKeydown?: (...args: any[]) => any;
233
233
  onKeypress?: (...args: any[]) => any;
234
234
  onKeyup?: (...args: any[]) => any;
235
- "onUpdate:modelValue"?: (...args: any[]) => any;
236
- onClear?: (...args: any[]) => any;
237
235
  onEnter?: (...args: any[]) => any;
236
+ onClear?: (...args: any[]) => any;
237
+ "onUpdate:modelValue"?: (...args: any[]) => any;
238
238
  }, {
239
239
  type: string;
240
240
  placeholder: string;
241
241
  prefix: string;
242
242
  step: number;
243
243
  disabled: boolean;
244
- modelValue: string | number;
245
- readonly: boolean;
246
244
  clearable: boolean;
247
- behavior: string;
248
- max: number;
249
- min: number;
250
- maxlength: number;
245
+ readonly: boolean;
251
246
  prefixIcon: string;
252
247
  suffixIcon: string;
253
248
  suffix: string;
249
+ max: number;
250
+ min: number;
251
+ maxlength: number;
252
+ behavior: string;
254
253
  showWordLimit: boolean;
255
254
  showControl: boolean;
256
255
  showClearOnlyHover: boolean;
257
256
  precision: number;
257
+ modelValue: string | number;
258
258
  rows: number;
259
259
  }>;
260
260
  export default _default;
@@ -8,6 +8,7 @@ declare const BkModal: {
8
8
  $props: Partial<{
9
9
  width: string | number;
10
10
  height: string | number;
11
+ draggable: boolean;
11
12
  showMask: boolean;
12
13
  size: string;
13
14
  isShow: boolean;
@@ -17,59 +18,66 @@ declare const BkModal: {
17
18
  escClose: boolean;
18
19
  maskClose: boolean;
19
20
  fullscreen: boolean;
20
- renderDirective: string;
21
21
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
22
- isShow: {
23
- type: BooleanConstructor;
22
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
23
+ default: boolean;
24
+ } & {
24
25
  default: boolean;
25
26
  };
26
- width: {
27
- type: (NumberConstructor | StringConstructor)[];
27
+ width: (import("vue-types").VueTypeValidableDef<string> & {
28
28
  default: string;
29
- };
30
- height: {
31
- type: (NumberConstructor | StringConstructor)[];
29
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
30
+ default: number;
31
+ });
32
+ height: (import("vue-types").VueTypeValidableDef<string> & {
32
33
  default: string;
33
- };
34
- customClass: {
35
- type: (ArrayConstructor | StringConstructor)[];
34
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
35
+ default: number;
36
+ });
37
+ customClass: (import("vue-types").VueTypeValidableDef<string> & {
36
38
  default: string;
37
- };
38
- scrollable: {
39
- type: BooleanConstructor;
39
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
40
+ default: () => unknown[];
41
+ });
42
+ scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
43
+ default: boolean;
44
+ } & {
40
45
  default: boolean;
41
46
  };
42
- showMask: {
43
- type: BooleanConstructor;
47
+ showMask: import("vue-types").VueTypeValidableDef<boolean> & {
48
+ default: boolean;
49
+ } & {
44
50
  default: boolean;
45
51
  };
46
- closeIcon: {
47
- type: BooleanConstructor;
52
+ closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
53
+ default: boolean;
54
+ } & {
48
55
  default: boolean;
49
56
  };
50
- escClose: {
51
- type: BooleanConstructor;
57
+ escClose: import("vue-types").VueTypeValidableDef<boolean> & {
58
+ default: boolean;
59
+ } & {
52
60
  default: boolean;
53
61
  };
54
- maskClose: {
55
- type: BooleanConstructor;
62
+ maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
63
+ default: boolean;
64
+ } & {
56
65
  default: boolean;
57
66
  };
58
- fullscreen: {
59
- type: BooleanConstructor;
67
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
68
+ default: boolean;
69
+ } & {
60
70
  default: boolean;
61
71
  };
62
- size: {
63
- type: StringConstructor;
72
+ size: import("vue-types").VueTypeDef<string> & {
64
73
  default: string;
65
- validator: (value: string) => boolean;
66
74
  };
67
- renderDirective: {
68
- type: StringConstructor;
69
- default: string;
70
- validator: (value: string) => boolean;
75
+ draggable: import("vue-types").VueTypeValidableDef<boolean> & {
76
+ default: boolean;
77
+ } & {
78
+ default: boolean;
71
79
  };
72
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "showMask" | "size" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "renderDirective">;
80
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "width" | "height" | "draggable" | "showMask" | "size" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen">;
73
81
  $attrs: {
74
82
  [x: string]: unknown;
75
83
  };
@@ -84,55 +92,63 @@ declare const BkModal: {
84
92
  $emit: (event: string, ...args: any[]) => void;
85
93
  $el: any;
86
94
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
87
- isShow: {
88
- type: BooleanConstructor;
95
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
96
+ default: boolean;
97
+ } & {
89
98
  default: boolean;
90
99
  };
91
- width: {
92
- type: (NumberConstructor | StringConstructor)[];
100
+ width: (import("vue-types").VueTypeValidableDef<string> & {
93
101
  default: string;
94
- };
95
- height: {
96
- type: (NumberConstructor | StringConstructor)[];
102
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
103
+ default: number;
104
+ });
105
+ height: (import("vue-types").VueTypeValidableDef<string> & {
97
106
  default: string;
98
- };
99
- customClass: {
100
- type: (ArrayConstructor | StringConstructor)[];
107
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
108
+ default: number;
109
+ });
110
+ customClass: (import("vue-types").VueTypeValidableDef<string> & {
101
111
  default: string;
102
- };
103
- scrollable: {
104
- type: BooleanConstructor;
112
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
113
+ default: () => unknown[];
114
+ });
115
+ scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
116
+ default: boolean;
117
+ } & {
105
118
  default: boolean;
106
119
  };
107
- showMask: {
108
- type: BooleanConstructor;
120
+ showMask: import("vue-types").VueTypeValidableDef<boolean> & {
121
+ default: boolean;
122
+ } & {
109
123
  default: boolean;
110
124
  };
111
- closeIcon: {
112
- type: BooleanConstructor;
125
+ closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
126
+ default: boolean;
127
+ } & {
113
128
  default: boolean;
114
129
  };
115
- escClose: {
116
- type: BooleanConstructor;
130
+ escClose: import("vue-types").VueTypeValidableDef<boolean> & {
131
+ default: boolean;
132
+ } & {
117
133
  default: boolean;
118
134
  };
119
- maskClose: {
120
- type: BooleanConstructor;
135
+ maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
136
+ default: boolean;
137
+ } & {
121
138
  default: boolean;
122
139
  };
123
- fullscreen: {
124
- type: BooleanConstructor;
140
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
141
+ default: boolean;
142
+ } & {
125
143
  default: boolean;
126
144
  };
127
- size: {
128
- type: StringConstructor;
145
+ size: import("vue-types").VueTypeDef<string> & {
129
146
  default: string;
130
- validator: (value: string) => boolean;
131
147
  };
132
- renderDirective: {
133
- type: StringConstructor;
134
- default: string;
135
- validator: (value: string) => boolean;
148
+ draggable: import("vue-types").VueTypeValidableDef<boolean> & {
149
+ default: boolean;
150
+ } & {
151
+ default: boolean;
136
152
  };
137
153
  }>>, unknown, {
138
154
  visible: boolean;
@@ -143,6 +159,7 @@ declare const BkModal: {
143
159
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
144
160
  width: string | number;
145
161
  height: string | number;
162
+ draggable: boolean;
146
163
  showMask: boolean;
147
164
  size: string;
148
165
  isShow: boolean;
@@ -152,7 +169,6 @@ declare const BkModal: {
152
169
  escClose: boolean;
153
170
  maskClose: boolean;
154
171
  fullscreen: boolean;
155
- renderDirective: string;
156
172
  }> & {
157
173
  beforeCreate?: (() => void) | (() => void)[];
158
174
  created?: (() => void) | (() => void)[];
@@ -174,55 +190,63 @@ declare const BkModal: {
174
190
  $nextTick: typeof import("vue").nextTick;
175
191
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
176
192
  } & Readonly<import("vue").ExtractPropTypes<{
177
- isShow: {
178
- type: BooleanConstructor;
193
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
194
+ default: boolean;
195
+ } & {
179
196
  default: boolean;
180
197
  };
181
- width: {
182
- type: (NumberConstructor | StringConstructor)[];
198
+ width: (import("vue-types").VueTypeValidableDef<string> & {
183
199
  default: string;
184
- };
185
- height: {
186
- type: (NumberConstructor | StringConstructor)[];
200
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
201
+ default: number;
202
+ });
203
+ height: (import("vue-types").VueTypeValidableDef<string> & {
187
204
  default: string;
188
- };
189
- customClass: {
190
- type: (ArrayConstructor | StringConstructor)[];
205
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
206
+ default: number;
207
+ });
208
+ customClass: (import("vue-types").VueTypeValidableDef<string> & {
191
209
  default: string;
192
- };
193
- scrollable: {
194
- type: BooleanConstructor;
210
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
211
+ default: () => unknown[];
212
+ });
213
+ scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
214
+ default: boolean;
215
+ } & {
195
216
  default: boolean;
196
217
  };
197
- showMask: {
198
- type: BooleanConstructor;
218
+ showMask: import("vue-types").VueTypeValidableDef<boolean> & {
219
+ default: boolean;
220
+ } & {
199
221
  default: boolean;
200
222
  };
201
- closeIcon: {
202
- type: BooleanConstructor;
223
+ closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
224
+ default: boolean;
225
+ } & {
203
226
  default: boolean;
204
227
  };
205
- escClose: {
206
- type: BooleanConstructor;
228
+ escClose: import("vue-types").VueTypeValidableDef<boolean> & {
229
+ default: boolean;
230
+ } & {
207
231
  default: boolean;
208
232
  };
209
- maskClose: {
210
- type: BooleanConstructor;
233
+ maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
234
+ default: boolean;
235
+ } & {
211
236
  default: boolean;
212
237
  };
213
- fullscreen: {
214
- type: BooleanConstructor;
238
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
239
+ default: boolean;
240
+ } & {
215
241
  default: boolean;
216
242
  };
217
- size: {
218
- type: StringConstructor;
243
+ size: import("vue-types").VueTypeDef<string> & {
219
244
  default: string;
220
- validator: (value: string) => boolean;
221
245
  };
222
- renderDirective: {
223
- type: StringConstructor;
224
- default: string;
225
- validator: (value: string) => boolean;
246
+ draggable: import("vue-types").VueTypeValidableDef<boolean> & {
247
+ default: boolean;
248
+ } & {
249
+ default: boolean;
226
250
  };
227
251
  }>> & import("vue").ShallowUnwrapRef<{}> & {
228
252
  visible: boolean;
@@ -235,55 +259,63 @@ declare const BkModal: {
235
259
  __isTeleport?: never;
236
260
  __isSuspense?: never;
237
261
  } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
238
- isShow: {
239
- type: BooleanConstructor;
262
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
263
+ default: boolean;
264
+ } & {
240
265
  default: boolean;
241
266
  };
242
- width: {
243
- type: (NumberConstructor | StringConstructor)[];
267
+ width: (import("vue-types").VueTypeValidableDef<string> & {
244
268
  default: string;
245
- };
246
- height: {
247
- type: (NumberConstructor | StringConstructor)[];
269
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
270
+ default: number;
271
+ });
272
+ height: (import("vue-types").VueTypeValidableDef<string> & {
248
273
  default: string;
249
- };
250
- customClass: {
251
- type: (ArrayConstructor | StringConstructor)[];
274
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
275
+ default: number;
276
+ });
277
+ customClass: (import("vue-types").VueTypeValidableDef<string> & {
252
278
  default: string;
253
- };
254
- scrollable: {
255
- type: BooleanConstructor;
279
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
280
+ default: () => unknown[];
281
+ });
282
+ scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
283
+ default: boolean;
284
+ } & {
256
285
  default: boolean;
257
286
  };
258
- showMask: {
259
- type: BooleanConstructor;
287
+ showMask: import("vue-types").VueTypeValidableDef<boolean> & {
288
+ default: boolean;
289
+ } & {
260
290
  default: boolean;
261
291
  };
262
- closeIcon: {
263
- type: BooleanConstructor;
292
+ closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
293
+ default: boolean;
294
+ } & {
264
295
  default: boolean;
265
296
  };
266
- escClose: {
267
- type: BooleanConstructor;
297
+ escClose: import("vue-types").VueTypeValidableDef<boolean> & {
298
+ default: boolean;
299
+ } & {
268
300
  default: boolean;
269
301
  };
270
- maskClose: {
271
- type: BooleanConstructor;
302
+ maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
303
+ default: boolean;
304
+ } & {
272
305
  default: boolean;
273
306
  };
274
- fullscreen: {
275
- type: BooleanConstructor;
307
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
308
+ default: boolean;
309
+ } & {
276
310
  default: boolean;
277
311
  };
278
- size: {
279
- type: StringConstructor;
312
+ size: import("vue-types").VueTypeDef<string> & {
280
313
  default: string;
281
- validator: (value: string) => boolean;
282
314
  };
283
- renderDirective: {
284
- type: StringConstructor;
285
- default: string;
286
- validator: (value: string) => boolean;
315
+ draggable: import("vue-types").VueTypeValidableDef<boolean> & {
316
+ default: boolean;
317
+ } & {
318
+ default: boolean;
287
319
  };
288
320
  }>>, unknown, {
289
321
  visible: boolean;
@@ -294,6 +326,7 @@ declare const BkModal: {
294
326
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
295
327
  width: string | number;
296
328
  height: string | number;
329
+ draggable: boolean;
297
330
  showMask: boolean;
298
331
  size: string;
299
332
  isShow: boolean;
@@ -303,58 +336,65 @@ declare const BkModal: {
303
336
  escClose: boolean;
304
337
  maskClose: boolean;
305
338
  fullscreen: boolean;
306
- renderDirective: string;
307
339
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
308
340
  propsMixin: {
309
- isShow: {
310
- type: BooleanConstructor;
341
+ isShow: import("vue-types").VueTypeValidableDef<boolean> & {
342
+ default: boolean;
343
+ } & {
311
344
  default: boolean;
312
345
  };
313
- width: {
314
- type: (NumberConstructor | StringConstructor)[];
346
+ width: (import("vue-types").VueTypeValidableDef<string> & {
315
347
  default: string;
316
- };
317
- height: {
318
- type: (NumberConstructor | StringConstructor)[];
348
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
349
+ default: number;
350
+ });
351
+ height: (import("vue-types").VueTypeValidableDef<string> & {
319
352
  default: string;
320
- };
321
- customClass: {
322
- type: (ArrayConstructor | StringConstructor)[];
353
+ }) | (import("vue-types").VueTypeValidableDef<number> & {
354
+ default: number;
355
+ });
356
+ customClass: (import("vue-types").VueTypeValidableDef<string> & {
323
357
  default: string;
324
- };
325
- scrollable: {
326
- type: BooleanConstructor;
358
+ }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
359
+ default: () => unknown[];
360
+ });
361
+ scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
362
+ default: boolean;
363
+ } & {
327
364
  default: boolean;
328
365
  };
329
- showMask: {
330
- type: BooleanConstructor;
366
+ showMask: import("vue-types").VueTypeValidableDef<boolean> & {
367
+ default: boolean;
368
+ } & {
331
369
  default: boolean;
332
370
  };
333
- closeIcon: {
334
- type: BooleanConstructor;
371
+ closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
372
+ default: boolean;
373
+ } & {
335
374
  default: boolean;
336
375
  };
337
- escClose: {
338
- type: BooleanConstructor;
376
+ escClose: import("vue-types").VueTypeValidableDef<boolean> & {
377
+ default: boolean;
378
+ } & {
339
379
  default: boolean;
340
380
  };
341
- maskClose: {
342
- type: BooleanConstructor;
381
+ maskClose: import("vue-types").VueTypeValidableDef<boolean> & {
382
+ default: boolean;
383
+ } & {
343
384
  default: boolean;
344
385
  };
345
- fullscreen: {
346
- type: BooleanConstructor;
386
+ fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
387
+ default: boolean;
388
+ } & {
347
389
  default: boolean;
348
390
  };
349
- size: {
350
- type: StringConstructor;
391
+ size: import("vue-types").VueTypeDef<string> & {
351
392
  default: string;
352
- validator: (value: string) => boolean;
353
393
  };
354
- renderDirective: {
355
- type: StringConstructor;
356
- default: string;
357
- validator: (value: string) => boolean;
394
+ draggable: import("vue-types").VueTypeValidableDef<boolean> & {
395
+ default: boolean;
396
+ } & {
397
+ default: boolean;
358
398
  };
359
399
  };
360
400
  }>;
@@ -1 +1 @@
1
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var i in o)("object"==typeof exports?exports:e)[i]=o[i]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},i={};function r(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return o[e](n,n.exports,r),n.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{BkModal:()=>a,default:()=>l,propsMixin:()=>o});var e=r(4212),t=r(748),o={isShow:{type:Boolean,default:!1},width:{type:[Number,String],default:"50%"},height:{type:[Number,String],default:"50%"},customClass:{type:[Array,String],default:""},scrollable:{type:Boolean,default:!0},showMask:{type:Boolean,default:!0},closeIcon:{type:Boolean,default:!0},escClose:{type:Boolean,default:!0},maskClose:{type:Boolean,default:!0},fullscreen:{type:Boolean,default:!1},size:{type:String,default:"normal",validator:function(e){var t=["normal","small","medium","large"];return!(t.indexOf(e)<0&&(console.error("dialogSize property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),1))}},renderDirective:{type:String,default:"show",validator:function(e){return!(["show","if"].indexOf(e)<0&&(console.error("type render-directive is not valid: '".concat(e,"'")),1))}}};const i=(0,t.defineComponent)({name:"Modal",props:Object.assign({},o),data:function(){return{visible:!1}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,minHeigth:"".concat(200,"px"),display:this.visible?"inherit":"none"}}},watch:{isShow:{handler:function(e){this.visible=e}},visible:function(t){var o=this;t?this.$nextTick((function(){var t=o.showMask?{}:{"background-color":"rgba(0,0,0,0)"};e.bkPopIndexManager.show(o.$el,o.showMask,t)})):e.bkPopIndexManager.hide(this.$el)}},beforeUnmount:function(){e.bkPopIndexManager.hide(this.$el)},render:function(){var e,o,i,r,n,a,l,s,d;return(0,t.createVNode)("div",{class:["bk-modal-wrapper",this.size,this.customClass,this.fullscreen?"bk-model-fullscreen":""],style:this.compStyle},[this.isShow?(0,t.createVNode)("div",{class:"bk-modal-body"},[(0,t.createVNode)("div",{class:"bk-modal-header"},[null!==(i=null===(o=(e=this.$slots).header)||void 0===o?void 0:o.call(e))&&void 0!==i?i:""]),(0,t.createVNode)("div",{class:"bk-modal-content"},[null!==(a=null===(n=(r=this.$slots).default)||void 0===n?void 0:n.call(r))&&void 0!==a?a:""]),(0,t.createVNode)("div",{class:"bk-modal-footer"},[null!==(d=null===(s=(l=this.$slots).footer)||void 0===s?void 0:s.call(l))&&void 0!==d?d:""])]):""])}});var a=(0,e.withInstallProps)(i,{propsMixin:o},!0);const l=a})(),n})()));
1
+ !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},r={};function s(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,s),i.exports}s.d=(e,o)=>{for(var t in o)s.o(o,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{s.r(i),s.d(i,{BkModal:()=>n,default:()=>l,propsMixin:()=>t});var e=s(4212),o=s(748),t={isShow:e.PropTypes.bool.def(!1),width:e.PropTypes.string||e.PropTypes.number,height:e.PropTypes.string||e.PropTypes.number,customClass:e.PropTypes.string||e.PropTypes.array,scrollable:e.PropTypes.bool.def(!0),showMask:e.PropTypes.bool.def(!0),closeIcon:e.PropTypes.bool.def(!0),escClose:e.PropTypes.bool.def(!0),maskClose:e.PropTypes.bool.def(!0),fullscreen:e.PropTypes.bool.def(!1),size:e.PropTypes.commonType(["normal","small","medium","large"],"size").def("normal"),draggable:e.PropTypes.bool.def(!0)};const r=(0,o.defineComponent)({name:"Modal",props:Object.assign({},t),data:function(){return{visible:!1}},computed:{dialogWidth:function(){return/^\d+$/.test("".concat(this.width))?"".concat(this.width,"px"):this.width},dialogHeight:function(){return/^\d+$/.test("".concat(this.height))?"".concat(this.height,"px"):this.height},compStyle:function(){return{width:this.dialogWidth,height:this.dialogHeight,minHeigth:"".concat(200,"px"),display:this.visible?"inherit":"none"}}},watch:{isShow:{handler:function(e){this.visible=e}},visible:function(o){var t=this;o?this.$nextTick((function(){var o=t.showMask?{}:{"background-color":"rgba(0,0,0,0)"};e.bkPopIndexManager.show(t.$el,t.showMask,o)})):e.bkPopIndexManager.hide(this.$el)}},beforeUnmount:function(){e.bkPopIndexManager.hide(this.$el)},render:function(){var e,t,r,s,i,n,l,a,d;return(0,o.createVNode)("div",{class:["bk-modal-wrapper",this.customClass],style:this.compStyle},[this.isShow?(0,o.createVNode)("div",{class:"bk-modal-body"},[(0,o.createVNode)("div",{class:"bk-modal-header"},[null!==(r=null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==r?r:""]),(0,o.createVNode)("div",{class:"bk-modal-content"},[null!==(n=null===(i=(s=this.$slots).default)||void 0===i?void 0:i.call(s))&&void 0!==n?n:""]),(0,o.createVNode)("div",{class:"bk-modal-footer"},[null!==(d=null===(a=(l=this.$slots).footer)||void 0===a?void 0:a.call(l))&&void 0!==d?d:""])]):""])}});var n=(0,e.withInstallProps)(r,{propsMixin:t},!0);const l=n})(),i})()));