bkui-vue 0.0.1-beta.61 → 0.0.1-beta.62

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 (215) hide show
  1. package/dist/index.cjs.js +30 -30
  2. package/dist/index.esm.js +1434 -298
  3. package/dist/index.umd.js +28 -28
  4. package/dist/style.css +1 -1
  5. package/lib/affix/affix.css +3 -0
  6. package/lib/affix/affix.d.ts +47 -0
  7. package/lib/affix/affix.less +5 -0
  8. package/lib/affix/affix.variable.css +102 -0
  9. package/lib/affix/index.d.ts +143 -0
  10. package/lib/affix/index.js +1 -0
  11. package/lib/alert/alert.variable.css +5 -0
  12. package/lib/backtop/backtop.d.ts +1 -1
  13. package/lib/backtop/backtop.variable.css +5 -0
  14. package/lib/backtop/index.d.ts +4 -4
  15. package/lib/badge/badge.d.ts +1 -1
  16. package/lib/badge/badge.variable.css +5 -0
  17. package/lib/badge/index.d.ts +4 -4
  18. package/lib/breadcrumb/breadcrumb.variable.css +5 -0
  19. package/lib/button/button.css +2 -1
  20. package/lib/button/button.less +9 -8
  21. package/lib/button/button.variable.css +7 -1
  22. package/lib/button/index.js +1 -1
  23. package/lib/card/card.variable.css +5 -0
  24. package/lib/cascader/cascader-panel.d.ts +48 -0
  25. package/lib/cascader/cascader.css +130 -0
  26. package/lib/cascader/cascader.d.ts +271 -0
  27. package/lib/cascader/cascader.less +146 -0
  28. package/lib/cascader/cascader.variable.css +229 -0
  29. package/lib/cascader/index.d.ts +721 -0
  30. package/lib/cascader/index.js +1 -0
  31. package/lib/cascader/interface.d.ts +44 -0
  32. package/lib/cascader/node.d.ts +24 -0
  33. package/lib/cascader/store.d.ts +15 -0
  34. package/lib/checkbox/checkbox.variable.css +5 -0
  35. package/lib/code-diff/code-diff.variable.css +5 -0
  36. package/lib/code-diff/index.js +1 -1
  37. package/lib/components.d.ts +12 -9
  38. package/lib/components.js +1 -1
  39. package/lib/container/container.variable.css +5 -0
  40. package/lib/container/index.js +1 -1
  41. package/lib/date-picker/date-picker.css +1 -0
  42. package/lib/date-picker/date-picker.d.ts +9 -2
  43. package/lib/date-picker/date-picker.less +1 -0
  44. package/lib/date-picker/date-picker.variable.css +6 -0
  45. package/lib/date-picker/index.d.ts +22 -7
  46. package/lib/date-picker/index.js +1 -1
  47. package/lib/date-picker/props.d.ts +3 -0
  48. package/lib/dialog/dialog.css +10 -1
  49. package/lib/dialog/dialog.d.ts +75 -8
  50. package/lib/dialog/dialog.variable.css +10 -1
  51. package/lib/dialog/index.d.ts +166 -25
  52. package/lib/dialog/index.js +1 -1
  53. package/lib/divider/divider.d.ts +1 -1
  54. package/lib/divider/divider.variable.css +5 -0
  55. package/lib/divider/index.d.ts +4 -4
  56. package/lib/dropdown/dropdown.css +4 -0
  57. package/lib/dropdown/dropdown.less +5 -0
  58. package/lib/dropdown/dropdown.variable.css +9 -0
  59. package/lib/dropdown/index.js +1 -1
  60. package/lib/exception/exception.variable.css +5 -0
  61. package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
  62. package/lib/fixed-navbar/fixed-navbar.variable.css +5 -0
  63. package/lib/fixed-navbar/index.d.ts +43 -8
  64. package/lib/fixed-navbar/index.js +1 -1
  65. package/lib/form/form-item.d.ts +1 -1
  66. package/lib/form/form.css +4 -0
  67. package/lib/form/form.d.ts +5 -2
  68. package/lib/form/form.less +4 -0
  69. package/lib/form/form.variable.css +9 -0
  70. package/lib/form/index.d.ts +19 -8
  71. package/lib/form/index.js +1 -1
  72. package/lib/icon/archive-fill.d.ts +4 -0
  73. package/lib/icon/archive-fill.js +1 -0
  74. package/lib/icon/audio-fill.d.ts +4 -0
  75. package/lib/icon/audio-fill.js +1 -0
  76. package/lib/icon/del.d.ts +4 -0
  77. package/lib/icon/del.js +1 -0
  78. package/lib/icon/doc-fill.d.ts +4 -0
  79. package/lib/icon/doc-fill.js +1 -0
  80. package/lib/icon/excel-fill.d.ts +4 -0
  81. package/lib/icon/excel-fill.js +1 -0
  82. package/lib/icon/image-fill.d.ts +4 -0
  83. package/lib/icon/image-fill.js +1 -0
  84. package/lib/icon/index.d.ts +12 -1
  85. package/lib/icon/index.js +1 -1
  86. package/lib/icon/pdf-fill.d.ts +4 -0
  87. package/lib/icon/pdf-fill.js +1 -0
  88. package/lib/icon/ppt-fill.d.ts +4 -0
  89. package/lib/icon/ppt-fill.js +1 -0
  90. package/lib/icon/text-fill.d.ts +4 -0
  91. package/lib/icon/text-fill.js +1 -0
  92. package/lib/icon/upload.d.ts +4 -0
  93. package/lib/icon/upload.js +1 -0
  94. package/lib/icon/video-fill.d.ts +4 -0
  95. package/lib/icon/video-fill.js +1 -0
  96. package/lib/input/index.d.ts +8 -8
  97. package/lib/input/input.css +3 -0
  98. package/lib/input/input.d.ts +2 -2
  99. package/lib/input/input.less +3 -0
  100. package/lib/input/input.variable.css +8 -0
  101. package/lib/link/index.d.ts +4 -4
  102. package/lib/link/link.d.ts +1 -1
  103. package/lib/link/link.variable.css +5 -0
  104. package/lib/loading/loading.variable.css +5 -0
  105. package/lib/menu/menu.variable.css +5 -0
  106. package/lib/menu/submenu.variable.css +5 -0
  107. package/lib/message/index.js +1 -1
  108. package/lib/message/message.css +4 -4
  109. package/lib/message/message.less +4 -4
  110. package/lib/message/message.variable.css +9 -4
  111. package/lib/modal/index.d.ts +277 -24
  112. package/lib/modal/index.js +1 -1
  113. package/lib/modal/modal.css +10 -1
  114. package/lib/modal/modal.d.ts +108 -9
  115. package/lib/modal/modal.less +15 -4
  116. package/lib/modal/modal.variable.css +10 -1
  117. package/lib/modal/props.mixin.d.ts +47 -3
  118. package/lib/navigation/index.d.ts +291 -1
  119. package/lib/navigation/index.js +1 -1
  120. package/lib/navigation/navigation.variable.css +5 -0
  121. package/lib/notify/index.js +1 -1
  122. package/lib/notify/notify.css +17 -1
  123. package/lib/notify/notify.less +19 -1
  124. package/lib/notify/notify.variable.css +22 -1
  125. package/lib/notify/notifyConstructor.d.ts +49 -5
  126. package/lib/pagination/index.d.ts +4 -4
  127. package/lib/pagination/pagination.d.ts +1 -1
  128. package/lib/pagination/pagination.variable.css +5 -0
  129. package/lib/popover/index.d.ts +57 -11
  130. package/lib/popover/index.js +1 -1
  131. package/lib/popover/popover.css +3 -0
  132. package/lib/popover/popover.d.ts +26 -4
  133. package/lib/popover/popover.less +2 -0
  134. package/lib/popover/popover.variable.css +8 -0
  135. package/lib/popover/props.d.ts +11 -1
  136. package/lib/process/process.variable.css +5 -0
  137. package/lib/progress/index.d.ts +7 -7
  138. package/lib/progress/progress.d.ts +2 -2
  139. package/lib/progress/progress.variable.css +5 -0
  140. package/lib/radio/radio.variable.css +5 -0
  141. package/lib/resize-layout/resize-layout.variable.css +5 -0
  142. package/lib/select/select.variable.css +5 -0
  143. package/lib/shared/index.d.ts +18 -0
  144. package/lib/shared/index.js +1 -1
  145. package/lib/shared/mask-manager.d.ts +3 -2
  146. package/lib/shared/pop-manager.d.ts +3 -2
  147. package/lib/shared/popover.d.ts +3 -0
  148. package/lib/sideslider/index.d.ts +227 -33
  149. package/lib/sideslider/index.js +1 -1
  150. package/lib/sideslider/sideslider.css +48 -3
  151. package/lib/sideslider/sideslider.d.ts +103 -12
  152. package/lib/sideslider/sideslider.less +65 -6
  153. package/lib/sideslider/sideslider.variable.css +53 -3
  154. package/lib/slider/index.d.ts +414 -1
  155. package/lib/slider/index.js +1 -1
  156. package/lib/slider/slider.variable.css +5 -0
  157. package/lib/steps/steps.variable.css +5 -0
  158. package/lib/styles/index.d.ts +3 -0
  159. package/lib/styles/themes/themes.less +7 -0
  160. package/lib/switcher/switcher.variable.css +5 -0
  161. package/lib/tab/index.d.ts +6 -6
  162. package/lib/tab/tab-panel.d.ts +2 -2
  163. package/lib/tab/tab.d.ts +1 -1
  164. package/lib/tab/tab.variable.css +5 -0
  165. package/lib/table/index.d.ts +4 -4
  166. package/lib/table/index.js +1 -1
  167. package/lib/table/plugins/head-filter.variable.css +5 -0
  168. package/lib/table/plugins/head-sort.variable.css +5 -0
  169. package/lib/table/plugins/settings.variable.css +5 -0
  170. package/lib/table/props.d.ts +4 -0
  171. package/lib/table/render.d.ts +1 -0
  172. package/lib/table/table.css +54 -2
  173. package/lib/table/table.d.ts +1 -1
  174. package/lib/table/table.less +52 -2
  175. package/lib/table/table.variable.css +59 -2
  176. package/lib/table/use-common.d.ts +5 -3
  177. package/lib/table/utils.d.ts +10 -0
  178. package/lib/tag/index.d.ts +3 -3
  179. package/lib/tag/tag.d.ts +1 -1
  180. package/lib/tag/tag.variable.css +5 -0
  181. package/lib/tag-input/index.d.ts +893 -1
  182. package/lib/tag-input/index.js +1 -1
  183. package/lib/tag-input/tag-input.d.ts +1 -1
  184. package/lib/tag-input/tag-input.variable.css +5 -0
  185. package/lib/timeline/timeline.variable.css +5 -0
  186. package/lib/transfer/transfer.variable.css +5 -0
  187. package/lib/tree/index.d.ts +39 -1
  188. package/lib/tree/index.js +1 -1
  189. package/lib/tree/props.d.ts +19 -0
  190. package/lib/tree/tree.css +3 -1
  191. package/lib/tree/tree.d.ts +18 -0
  192. package/lib/tree/tree.less +3 -1
  193. package/lib/tree/tree.variable.css +8 -1
  194. package/lib/tree/use-empty.d.ts +6 -0
  195. package/lib/tree/use-node-attribute.d.ts +1 -0
  196. package/lib/tree/use-search.d.ts +11 -0
  197. package/lib/tree/util.d.ts +2 -1
  198. package/lib/upload/index.d.ts +2 -0
  199. package/lib/upload/index.js +1 -0
  200. package/lib/upload/props.d.ts +113 -0
  201. package/lib/upload/upload-list.d.ts +46 -0
  202. package/lib/upload/upload-trigger.d.ts +54 -0
  203. package/lib/upload/upload.css +374 -0
  204. package/lib/upload/upload.d.ts +252 -0
  205. package/lib/upload/upload.less +455 -0
  206. package/lib/upload/upload.type.d.ts +78 -0
  207. package/lib/upload/upload.variable.css +473 -0
  208. package/lib/upload/use-ajax-upload.d.ts +3 -0
  209. package/lib/upload/use-file-handler.d.ts +44 -0
  210. package/lib/virtual-render/index.d.ts +27 -4
  211. package/lib/virtual-render/index.js +1 -1
  212. package/lib/virtual-render/props.d.ts +10 -0
  213. package/lib/virtual-render/use-tag-render.d.ts +7 -0
  214. package/lib/virtual-render/virtual-render.d.ts +14 -3
  215. package/package.json +2 -2
@@ -6,25 +6,46 @@ declare const BkModal: {
6
6
  visible: boolean;
7
7
  };
8
8
  $props: Partial<{
9
- draggable: boolean;
9
+ title: string;
10
10
  showMask: boolean;
11
+ width: string | number;
12
+ height: string | number;
13
+ draggable: boolean;
11
14
  size: string;
12
- dialogType: string;
15
+ extCls: string;
16
+ direction: string;
17
+ maxHeight: string;
13
18
  isShow: boolean;
19
+ transfer: boolean;
20
+ renderDirective: string;
14
21
  customClass: string | unknown[];
15
22
  scrollable: boolean;
16
23
  closeIcon: boolean;
17
24
  escClose: boolean;
18
25
  maskClose: boolean;
19
26
  fullscreen: boolean;
27
+ quickClose: boolean;
28
+ animateType: string;
20
29
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
21
30
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
22
31
  default: boolean;
23
32
  } & {
24
33
  default: boolean;
25
34
  };
26
- width: import("vue-types").VueTypeDef<string | number>;
27
- height: import("vue-types").VueTypeDef<string | number>;
35
+ width: (import("vue-types").VueTypeValidableDef<number> & {
36
+ default: number;
37
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
38
+ default: string;
39
+ } & {
40
+ default: string;
41
+ });
42
+ height: (import("vue-types").VueTypeValidableDef<number> & {
43
+ default: number;
44
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
45
+ default: string;
46
+ } & {
47
+ default: string;
48
+ });
28
49
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
29
50
  default: string;
30
51
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -60,6 +81,11 @@ declare const BkModal: {
60
81
  } & {
61
82
  default: boolean;
62
83
  };
84
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
85
+ default: string;
86
+ } & {
87
+ default: string;
88
+ };
63
89
  size: import("vue-types").VueTypeDef<string> & {
64
90
  default: string;
65
91
  };
@@ -68,10 +94,37 @@ declare const BkModal: {
68
94
  } & {
69
95
  default: boolean;
70
96
  };
71
- dialogType: import("vue-types").VueTypeDef<string> & {
97
+ quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
98
+ default: boolean;
99
+ } & {
100
+ default: boolean;
101
+ };
102
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
103
+ default: boolean;
104
+ } & {
105
+ default: boolean;
106
+ };
107
+ title: import("vue-types").VueTypeValidableDef<string> & {
108
+ default: string;
109
+ } & {
110
+ default: string;
111
+ };
112
+ maxHeight: import("vue-types").VueTypeValidableDef<string> & {
113
+ default: string;
114
+ };
115
+ direction: import("vue-types").VueTypeValidableDef<string> & {
72
116
  default: string;
73
117
  };
74
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "draggable" | "showMask" | "size" | "dialogType" | "isShow" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen">;
118
+ animateType: import("vue-types").VueTypeValidableDef<string> & {
119
+ default: string;
120
+ } & {
121
+ default: string;
122
+ };
123
+ renderDirective: import("vue-types").VueTypeDef<string> & {
124
+ default: string;
125
+ };
126
+ beforeClose: import("vue-types").VueTypeDef<unknown>;
127
+ }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "showMask" | "width" | "height" | "draggable" | "size" | "extCls" | "direction" | "maxHeight" | "isShow" | "transfer" | "renderDirective" | "customClass" | "scrollable" | "closeIcon" | "escClose" | "maskClose" | "fullscreen" | "quickClose" | "animateType">;
75
128
  $attrs: {
76
129
  [x: string]: unknown;
77
130
  };
@@ -91,8 +144,20 @@ declare const BkModal: {
91
144
  } & {
92
145
  default: boolean;
93
146
  };
94
- width: import("vue-types").VueTypeDef<string | number>;
95
- height: import("vue-types").VueTypeDef<string | number>;
147
+ width: (import("vue-types").VueTypeValidableDef<number> & {
148
+ default: number;
149
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
150
+ default: string;
151
+ } & {
152
+ default: string;
153
+ });
154
+ height: (import("vue-types").VueTypeValidableDef<number> & {
155
+ default: number;
156
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
157
+ default: string;
158
+ } & {
159
+ default: string;
160
+ });
96
161
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
97
162
  default: string;
98
163
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -128,6 +193,11 @@ declare const BkModal: {
128
193
  } & {
129
194
  default: boolean;
130
195
  };
196
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
197
+ default: string;
198
+ } & {
199
+ default: string;
200
+ };
131
201
  size: import("vue-types").VueTypeDef<string> & {
132
202
  default: string;
133
203
  };
@@ -136,27 +206,65 @@ declare const BkModal: {
136
206
  } & {
137
207
  default: boolean;
138
208
  };
139
- dialogType: import("vue-types").VueTypeDef<string> & {
209
+ quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
210
+ default: boolean;
211
+ } & {
212
+ default: boolean;
213
+ };
214
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
215
+ default: boolean;
216
+ } & {
217
+ default: boolean;
218
+ };
219
+ title: import("vue-types").VueTypeValidableDef<string> & {
220
+ default: string;
221
+ } & {
222
+ default: string;
223
+ };
224
+ maxHeight: import("vue-types").VueTypeValidableDef<string> & {
225
+ default: string;
226
+ };
227
+ direction: import("vue-types").VueTypeValidableDef<string> & {
228
+ default: string;
229
+ };
230
+ animateType: import("vue-types").VueTypeValidableDef<string> & {
231
+ default: string;
232
+ } & {
233
+ default: string;
234
+ };
235
+ renderDirective: import("vue-types").VueTypeDef<string> & {
140
236
  default: string;
141
237
  };
238
+ beforeClose: import("vue-types").VueTypeDef<unknown>;
142
239
  }>>, unknown, {
143
240
  visible: boolean;
144
241
  }, {
145
242
  dialogWidth(): String | Number;
146
243
  dialogHeight(): String | Number;
147
244
  compStyle(): any;
148
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
149
- draggable: boolean;
245
+ }, {
246
+ handleClickOutSide(): void;
247
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
248
+ title: string;
150
249
  showMask: boolean;
250
+ width: string | number;
251
+ height: string | number;
252
+ draggable: boolean;
151
253
  size: string;
152
- dialogType: string;
254
+ extCls: string;
255
+ direction: string;
256
+ maxHeight: string;
153
257
  isShow: boolean;
258
+ transfer: boolean;
259
+ renderDirective: string;
154
260
  customClass: string | unknown[];
155
261
  scrollable: boolean;
156
262
  closeIcon: boolean;
157
263
  escClose: boolean;
158
264
  maskClose: boolean;
159
265
  fullscreen: boolean;
266
+ quickClose: boolean;
267
+ animateType: string;
160
268
  }> & {
161
269
  beforeCreate?: (() => void) | (() => void)[];
162
270
  created?: (() => void) | (() => void)[];
@@ -183,8 +291,20 @@ declare const BkModal: {
183
291
  } & {
184
292
  default: boolean;
185
293
  };
186
- width: import("vue-types").VueTypeDef<string | number>;
187
- height: import("vue-types").VueTypeDef<string | number>;
294
+ width: (import("vue-types").VueTypeValidableDef<number> & {
295
+ default: number;
296
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
297
+ default: string;
298
+ } & {
299
+ default: string;
300
+ });
301
+ height: (import("vue-types").VueTypeValidableDef<number> & {
302
+ default: number;
303
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
304
+ default: string;
305
+ } & {
306
+ default: string;
307
+ });
188
308
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
189
309
  default: string;
190
310
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -220,6 +340,11 @@ declare const BkModal: {
220
340
  } & {
221
341
  default: boolean;
222
342
  };
343
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
344
+ default: string;
345
+ } & {
346
+ default: string;
347
+ };
223
348
  size: import("vue-types").VueTypeDef<string> & {
224
349
  default: string;
225
350
  };
@@ -228,15 +353,44 @@ declare const BkModal: {
228
353
  } & {
229
354
  default: boolean;
230
355
  };
231
- dialogType: import("vue-types").VueTypeDef<string> & {
356
+ quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
357
+ default: boolean;
358
+ } & {
359
+ default: boolean;
360
+ };
361
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
362
+ default: boolean;
363
+ } & {
364
+ default: boolean;
365
+ };
366
+ title: import("vue-types").VueTypeValidableDef<string> & {
367
+ default: string;
368
+ } & {
232
369
  default: string;
233
370
  };
371
+ maxHeight: import("vue-types").VueTypeValidableDef<string> & {
372
+ default: string;
373
+ };
374
+ direction: import("vue-types").VueTypeValidableDef<string> & {
375
+ default: string;
376
+ };
377
+ animateType: import("vue-types").VueTypeValidableDef<string> & {
378
+ default: string;
379
+ } & {
380
+ default: string;
381
+ };
382
+ renderDirective: import("vue-types").VueTypeDef<string> & {
383
+ default: string;
384
+ };
385
+ beforeClose: import("vue-types").VueTypeDef<unknown>;
234
386
  }>> & import("vue").ShallowUnwrapRef<{}> & {
235
387
  visible: boolean;
236
388
  } & {
237
389
  dialogWidth: String | Number;
238
390
  dialogHeight: String | Number;
239
391
  compStyle: any;
392
+ } & {
393
+ handleClickOutSide(): void;
240
394
  } & import("vue").ComponentCustomProperties;
241
395
  __isFragment?: never;
242
396
  __isTeleport?: never;
@@ -247,8 +401,20 @@ declare const BkModal: {
247
401
  } & {
248
402
  default: boolean;
249
403
  };
250
- width: import("vue-types").VueTypeDef<string | number>;
251
- height: import("vue-types").VueTypeDef<string | number>;
404
+ width: (import("vue-types").VueTypeValidableDef<number> & {
405
+ default: number;
406
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
407
+ default: string;
408
+ } & {
409
+ default: string;
410
+ });
411
+ height: (import("vue-types").VueTypeValidableDef<number> & {
412
+ default: number;
413
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
414
+ default: string;
415
+ } & {
416
+ default: string;
417
+ });
252
418
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
253
419
  default: string;
254
420
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -284,6 +450,11 @@ declare const BkModal: {
284
450
  } & {
285
451
  default: boolean;
286
452
  };
453
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
454
+ default: string;
455
+ } & {
456
+ default: string;
457
+ };
287
458
  size: import("vue-types").VueTypeDef<string> & {
288
459
  default: string;
289
460
  };
@@ -292,27 +463,65 @@ declare const BkModal: {
292
463
  } & {
293
464
  default: boolean;
294
465
  };
295
- dialogType: import("vue-types").VueTypeDef<string> & {
466
+ quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
467
+ default: boolean;
468
+ } & {
469
+ default: boolean;
470
+ };
471
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
472
+ default: boolean;
473
+ } & {
474
+ default: boolean;
475
+ };
476
+ title: import("vue-types").VueTypeValidableDef<string> & {
477
+ default: string;
478
+ } & {
479
+ default: string;
480
+ };
481
+ maxHeight: import("vue-types").VueTypeValidableDef<string> & {
482
+ default: string;
483
+ };
484
+ direction: import("vue-types").VueTypeValidableDef<string> & {
485
+ default: string;
486
+ };
487
+ animateType: import("vue-types").VueTypeValidableDef<string> & {
488
+ default: string;
489
+ } & {
296
490
  default: string;
297
491
  };
492
+ renderDirective: import("vue-types").VueTypeDef<string> & {
493
+ default: string;
494
+ };
495
+ beforeClose: import("vue-types").VueTypeDef<unknown>;
298
496
  }>>, unknown, {
299
497
  visible: boolean;
300
498
  }, {
301
499
  dialogWidth(): String | Number;
302
500
  dialogHeight(): String | Number;
303
501
  compStyle(): any;
304
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
305
- draggable: boolean;
502
+ }, {
503
+ handleClickOutSide(): void;
504
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
505
+ title: string;
306
506
  showMask: boolean;
507
+ width: string | number;
508
+ height: string | number;
509
+ draggable: boolean;
307
510
  size: string;
308
- dialogType: string;
511
+ extCls: string;
512
+ direction: string;
513
+ maxHeight: string;
309
514
  isShow: boolean;
515
+ transfer: boolean;
516
+ renderDirective: string;
310
517
  customClass: string | unknown[];
311
518
  scrollable: boolean;
312
519
  closeIcon: boolean;
313
520
  escClose: boolean;
314
521
  maskClose: boolean;
315
522
  fullscreen: boolean;
523
+ quickClose: boolean;
524
+ animateType: string;
316
525
  }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
317
526
  propsMixin: {
318
527
  isShow: import("vue-types").VueTypeValidableDef<boolean> & {
@@ -320,8 +529,20 @@ declare const BkModal: {
320
529
  } & {
321
530
  default: boolean;
322
531
  };
323
- width: import("vue-types").VueTypeDef<string | number>;
324
- height: import("vue-types").VueTypeDef<string | number>;
532
+ width: (import("vue-types").VueTypeValidableDef<number> & {
533
+ default: number;
534
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
535
+ default: string;
536
+ } & {
537
+ default: string;
538
+ });
539
+ height: (import("vue-types").VueTypeValidableDef<number> & {
540
+ default: number;
541
+ }) | (import("vue-types").VueTypeValidableDef<string> & {
542
+ default: string;
543
+ } & {
544
+ default: string;
545
+ });
325
546
  customClass: (import("vue-types").VueTypeValidableDef<string> & {
326
547
  default: string;
327
548
  }) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
@@ -357,6 +578,11 @@ declare const BkModal: {
357
578
  } & {
358
579
  default: boolean;
359
580
  };
581
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
582
+ default: string;
583
+ } & {
584
+ default: string;
585
+ };
360
586
  size: import("vue-types").VueTypeDef<string> & {
361
587
  default: string;
362
588
  };
@@ -365,9 +591,36 @@ declare const BkModal: {
365
591
  } & {
366
592
  default: boolean;
367
593
  };
368
- dialogType: import("vue-types").VueTypeDef<string> & {
594
+ quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
595
+ default: boolean;
596
+ } & {
597
+ default: boolean;
598
+ };
599
+ transfer: import("vue-types").VueTypeValidableDef<boolean> & {
600
+ default: boolean;
601
+ } & {
602
+ default: boolean;
603
+ };
604
+ title: import("vue-types").VueTypeValidableDef<string> & {
605
+ default: string;
606
+ } & {
607
+ default: string;
608
+ };
609
+ maxHeight: import("vue-types").VueTypeValidableDef<string> & {
610
+ default: string;
611
+ };
612
+ direction: import("vue-types").VueTypeValidableDef<string> & {
613
+ default: string;
614
+ };
615
+ animateType: import("vue-types").VueTypeValidableDef<string> & {
616
+ default: string;
617
+ } & {
618
+ default: string;
619
+ };
620
+ renderDirective: import("vue-types").VueTypeDef<string> & {
369
621
  default: string;
370
622
  };
623
+ beforeClose: import("vue-types").VueTypeDef<unknown>;
371
624
  };
372
625
  }>;
373
626
  export default BkModal;
@@ -1 +1 @@
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 i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},i={};function s(e){var o=i[e];if(void 0!==o)return o.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.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 r={};return(()=>{s.r(r),s.d(r,{BkModal:()=>l,default:()=>a,propsMixin:()=>t});var e=s(4212),o=s(748),t={isShow:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([String,Number]),height:e.PropTypes.oneOfType([String,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),dialogType:e.PropTypes.commonType(["show","operation","confirm","process"],"dialogType").def("operation")};const i=(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,i,s,r,l,a,d,n,p,c,h,u,f,b;return(0,o.createVNode)("div",{class:["bk-modal-wrapper",this.customClass],style:this.compStyle},[this.isShow&&"show"===this.dialogType?(0,o.createVNode)("div",{class:"bk-modal-body"},[(0,o.createVNode)("div",{class:"bk-modal-header"},[null!==(i=null===(t=(e=this.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==i?i:""]),(0,o.createVNode)("div",{class:"bk-modal-content",style:"height: calc(100% - 74px);margin-bottom: 0px;"},[null!==(l=null===(r=(s=this.$slots).default)||void 0===r?void 0:r.call(s))&&void 0!==l?l:""])]):(0,o.createVNode)("div",{class:"bk-modal-body"},[(0,o.createVNode)("div",{class:"bk-modal-header"},[null!==(n=null===(d=(a=this.$slots).header)||void 0===d?void 0:d.call(a))&&void 0!==n?n:""]),(0,o.createVNode)("div",{class:"bk-modal-content"},[null!==(h=null===(c=(p=this.$slots).default)||void 0===c?void 0:c.call(p))&&void 0!==h?h:""]),(0,o.createVNode)("div",{class:"bk-modal-footer"},[null!==(b=null===(f=(u=this.$slots).footer)||void 0===f?void 0:f.call(u))&&void 0!==b?b:""])])])}});var l=(0,e.withInstallProps)(i,{propsMixin:t},!0);const a=l})(),r})()));
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 i in t)("object"==typeof exports?exports:e)[i]=t[i]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},i={};function s(e){var o=i[e];if(void 0!==o)return o.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.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 r={};return(()=>{s.r(r),s.d(r,{BkModal:()=>n,default:()=>l,propsMixin:()=>t});var e=s(4212),o=s(748),t={isShow:e.PropTypes.bool.def(!1),width:e.PropTypes.string.def("50%")||e.PropTypes.number,height:e.PropTypes.string.def("50%")||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),extCls:e.PropTypes.string.def(""),size:e.PropTypes.commonType(["normal","small","medium","large"],"size").def("normal"),draggable:e.PropTypes.bool.def(!0),quickClose:e.PropTypes.bool.def(!0),transfer:e.PropTypes.bool.def(!1),title:e.PropTypes.string.def("Header"),maxHeight:e.PropTypes.string,direction:e.PropTypes.string,animateType:e.PropTypes.string.def("slide"),renderDirective:e.PropTypes.commonType(["show","if"],"renderDirective").def("show"),beforeClose:e.PropTypes.custom((function(){return!0}))};const i=(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){var o=this;e?this.visible=e:(this.$emit("hidden"),setTimeout((function(){o.visible=e}),250))},deep:!0},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,t.transfer),t.$emit("shown")})):e.bkPopIndexManager.hide(this.$el,this.transfer)}},beforeUnmount:function(){e.bkPopIndexManager.hide(this.$el)},methods:{handleClickOutSide:function(){this.quickClose&&this.$emit("close")}},render:function(){var e,t,i,s,r,n,l,d,a,p=this,c=this.maxHeight?{maxHeight:this.maxHeight}:{},h="bk-modal-body ".concat("slide"===this.animateType?this.direction:"");return(0,o.createVNode)("div",{class:["bk-modal-wrapper",this.size,this.customClass,this.fullscreen?"bk-model-fullscreen":""],style:this.compStyle},[(0,o.withDirectives)((0,o.createVNode)("div",{class:"bk-modal-outside",onClick:this.handleClickOutSide},null),[[o.vShow,this.isShow]]),(0,o.createVNode)(o.Transition,{name:this.animateType},{default:function(){return[p.isShow?(0,o.createVNode)("div",{class:h},[(0,o.createVNode)("div",{class:"bk-modal-header"},[null!==(i=null===(t=(e=p.$slots).header)||void 0===t?void 0:t.call(e))&&void 0!==i?i:""]),(0,o.createVNode)("div",{class:"bk-modal-content",style:Object.assign({},c)},[null!==(n=null===(r=(s=p.$slots).default)||void 0===r?void 0:r.call(s))&&void 0!==n?n:""]),(0,o.createVNode)("div",{class:"bk-modal-footer"},[null!==(a=null===(d=(l=p.$slots).footer)||void 0===d?void 0:d.call(l))&&void 0!==a?a:""])]):""]}})])}});var n=(0,e.withInstallProps)(i,{propsMixin:t},!0);const l=n})(),r})()));
@@ -2,12 +2,20 @@
2
2
  position: absolute;
3
3
  top: 50%;
4
4
  left: 50%;
5
- background: #fff;
6
5
  transform: translate(-50%, -50%);
7
6
  }
7
+ .bk-modal-wrapper .bk-modal-outside {
8
+ position: fixed;
9
+ top: 0;
10
+ right: 0;
11
+ bottom: 0;
12
+ left: 0;
13
+ }
8
14
  .bk-modal-wrapper.bk-model-fullscreen {
9
15
  width: 100%;
10
16
  height: 100%;
17
+ background: #fff;
18
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
11
19
  }
12
20
  .bk-modal-wrapper.normal {
13
21
  width: 480px;
@@ -27,5 +35,6 @@
27
35
  }
28
36
  .bk-modal-wrapper .bk-modal-body {
29
37
  height: 100%;
38
+ background: #fff;
30
39
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
31
40
  }