bkui-vue 0.0.1-beta.390 → 0.0.1-beta.392

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 (210) hide show
  1. package/dist/index.cjs.js +22 -22
  2. package/dist/index.esm.js +0 -1
  3. package/dist/index.umd.js +23 -23
  4. package/lib/affix/index.js +128 -60
  5. package/lib/alert/index.js +124 -56
  6. package/lib/animate-number/index.js +106 -42
  7. package/lib/backtop/index.js +133 -61
  8. package/lib/badge/badge.d.ts +1 -1
  9. package/lib/badge/index.d.ts +4 -4
  10. package/lib/badge/index.js +114 -50
  11. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  12. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  13. package/lib/breadcrumb/index.d.ts +5 -5
  14. package/lib/breadcrumb/index.js +133 -67
  15. package/lib/button/index.js +147 -68
  16. package/lib/card/index.js +154 -69
  17. package/lib/cascader/cascader.d.ts +3 -3
  18. package/lib/cascader/index.d.ts +10 -10
  19. package/lib/cascader/index.js +242 -168
  20. package/lib/checkbox/index.js +139 -77
  21. package/lib/code-diff/index.js +121 -79
  22. package/lib/collapse/index.js +150 -84
  23. package/lib/color-picker/color-picker.d.ts +1 -1
  24. package/lib/color-picker/index.d.ts +4 -4
  25. package/lib/color-picker/index.js +245 -193
  26. package/lib/components.js +671 -434
  27. package/lib/container/container.d.ts +1 -1
  28. package/lib/container/index.d.ts +4 -4
  29. package/lib/container/index.js +125 -64
  30. package/lib/date-picker/date-picker.d.ts +2 -2
  31. package/lib/date-picker/index.d.ts +7 -7
  32. package/lib/date-picker/index.js +563 -462
  33. package/lib/date-picker/panel/time-range.d.ts +3 -3
  34. package/lib/date-picker/panel/time.d.ts +3 -3
  35. package/lib/date-picker/time-picker.d.ts +3 -3
  36. package/lib/dialog/dialog.d.ts +2 -2
  37. package/lib/dialog/index.d.ts +7 -7
  38. package/lib/dialog/index.js +198 -108
  39. package/lib/directives/index.d.ts +1 -0
  40. package/lib/directives/index.js +139 -86
  41. package/lib/dist.index.js +133 -48
  42. package/lib/divider/index.js +118 -50
  43. package/lib/dropdown/dropdown.d.ts +2 -2
  44. package/lib/dropdown/index.d.ts +7 -7
  45. package/lib/dropdown/index.js +155 -73
  46. package/lib/exception/index.js +145 -97
  47. package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
  48. package/lib/fixed-navbar/index.d.ts +4 -4
  49. package/lib/fixed-navbar/index.js +107 -43
  50. package/lib/form/form-item.d.ts +1 -1
  51. package/lib/form/index.d.ts +1 -1
  52. package/lib/form/index.js +193 -107
  53. package/lib/icon/angle-double-down-line.js +90 -30
  54. package/lib/icon/angle-double-left-line.js +90 -30
  55. package/lib/icon/angle-double-left.js +90 -30
  56. package/lib/icon/angle-double-right-line.js +90 -30
  57. package/lib/icon/angle-double-right.js +90 -30
  58. package/lib/icon/angle-double-up-line.js +90 -30
  59. package/lib/icon/angle-down-fill.js +90 -30
  60. package/lib/icon/angle-down-line.js +90 -30
  61. package/lib/icon/angle-down.js +90 -30
  62. package/lib/icon/angle-left.js +90 -30
  63. package/lib/icon/angle-right.js +90 -30
  64. package/lib/icon/angle-up-fill.js +90 -30
  65. package/lib/icon/angle-up.js +90 -30
  66. package/lib/icon/archive-fill.js +90 -30
  67. package/lib/icon/arrows-left.js +90 -30
  68. package/lib/icon/arrows-right.js +90 -30
  69. package/lib/icon/audio-fill.js +90 -30
  70. package/lib/icon/bk.js +90 -30
  71. package/lib/icon/circle.js +90 -30
  72. package/lib/icon/close-line.js +90 -30
  73. package/lib/icon/close.js +90 -30
  74. package/lib/icon/code.js +90 -30
  75. package/lib/icon/cog-shape.js +90 -30
  76. package/lib/icon/collapse-left.js +90 -30
  77. package/lib/icon/copy.js +90 -30
  78. package/lib/icon/data-shape.js +90 -30
  79. package/lib/icon/del.js +90 -30
  80. package/lib/icon/doc-fill.js +90 -30
  81. package/lib/icon/done.js +90 -30
  82. package/lib/icon/down-shape.js +90 -30
  83. package/lib/icon/down-small.js +90 -30
  84. package/lib/icon/edit-line.js +90 -30
  85. package/lib/icon/ellipsis.js +90 -30
  86. package/lib/icon/enlarge-line.js +90 -30
  87. package/lib/icon/error.js +90 -30
  88. package/lib/icon/excel-fill.js +90 -30
  89. package/lib/icon/exclamation-circle-shape.js +90 -30
  90. package/lib/icon/eye.js +90 -30
  91. package/lib/icon/filliscreen-line.js +90 -30
  92. package/lib/icon/folder-open.js +90 -30
  93. package/lib/icon/folder-shape-open.js +90 -30
  94. package/lib/icon/folder-shape.js +90 -30
  95. package/lib/icon/folder.js +90 -30
  96. package/lib/icon/funnel.js +90 -30
  97. package/lib/icon/help-document-fill.js +90 -30
  98. package/lib/icon/help-fill.js +90 -30
  99. package/lib/icon/help.js +90 -30
  100. package/lib/icon/image-fill.js +90 -30
  101. package/lib/icon/img-placehoulder.js +88 -52
  102. package/lib/icon/index.js +255 -267
  103. package/lib/icon/info-line.js +88 -52
  104. package/lib/icon/info.js +88 -52
  105. package/lib/icon/left-shape.js +88 -52
  106. package/lib/icon/left-turn-line.js +88 -52
  107. package/lib/icon/narrow-line.js +88 -52
  108. package/lib/icon/original.js +88 -52
  109. package/lib/icon/pdf-fill.js +88 -52
  110. package/lib/icon/play-shape.js +88 -52
  111. package/lib/icon/plus.js +88 -52
  112. package/lib/icon/ppt-fill.js +88 -52
  113. package/lib/icon/qq.js +88 -52
  114. package/lib/icon/right-shape.js +88 -52
  115. package/lib/icon/right-turn-line.js +88 -52
  116. package/lib/icon/search.js +88 -52
  117. package/lib/icon/share.js +88 -52
  118. package/lib/icon/spinner.js +88 -52
  119. package/lib/icon/success.js +88 -52
  120. package/lib/icon/switcher-loading.js +88 -52
  121. package/lib/icon/text-file.js +88 -52
  122. package/lib/icon/text-fill.js +88 -52
  123. package/lib/icon/transfer.js +88 -52
  124. package/lib/icon/tree-application-shape.js +88 -52
  125. package/lib/icon/unfull-screen.js +88 -52
  126. package/lib/icon/unvisible.js +88 -52
  127. package/lib/icon/up-shape.js +88 -52
  128. package/lib/icon/upload.js +88 -52
  129. package/lib/icon/video-fill.js +88 -52
  130. package/lib/icon/warn.js +88 -52
  131. package/lib/icon/weixin.js +88 -52
  132. package/lib/image/index.js +213 -164
  133. package/lib/index.js +134 -50
  134. package/lib/info-box/index.js +206 -152
  135. package/lib/input/index.d.ts +4 -4
  136. package/lib/input/index.js +167 -99
  137. package/lib/input/input.d.ts +1 -1
  138. package/lib/link/index.d.ts +4 -4
  139. package/lib/link/index.js +115 -47
  140. package/lib/link/link.d.ts +1 -1
  141. package/lib/loading/index.d.ts +4 -4
  142. package/lib/loading/index.js +127 -67
  143. package/lib/loading/loading.d.ts +1 -1
  144. package/lib/menu/index.js +156 -92
  145. package/lib/message/index.js +148 -76
  146. package/lib/modal/index.d.ts +4 -4
  147. package/lib/modal/index.js +151 -85
  148. package/lib/modal/modal.d.ts +1 -1
  149. package/lib/navigation/index.js +134 -66
  150. package/lib/notify/index.js +153 -81
  151. package/lib/notify/notifyConstructor.d.ts +1 -1
  152. package/lib/overflow-title/index.js +128 -92
  153. package/lib/pagination/index.d.ts +4 -4
  154. package/lib/pagination/index.js +220 -131
  155. package/lib/pagination/pagination.d.ts +1 -1
  156. package/lib/plugin-popover/index.js +190 -143
  157. package/lib/plugins/index.js +100 -33
  158. package/lib/popover/index.d.ts +10 -10
  159. package/lib/popover/index.js +193 -148
  160. package/lib/popover/popover.d.ts +3 -3
  161. package/lib/popover2/index.js +99 -35
  162. package/lib/preset.js +104 -37
  163. package/lib/process/index.d.ts +4 -4
  164. package/lib/process/index.js +134 -92
  165. package/lib/process/process.d.ts +1 -1
  166. package/lib/progress/index.d.ts +7 -7
  167. package/lib/progress/index.js +127 -63
  168. package/lib/progress/progress.d.ts +2 -2
  169. package/lib/radio/index.js +142 -81
  170. package/lib/rate/index.js +127 -63
  171. package/lib/resize-layout/index.js +147 -79
  172. package/lib/search-select/index.js +220 -168
  173. package/lib/select/index.d.ts +10 -10
  174. package/lib/select/index.js +394 -315
  175. package/lib/select/select.d.ts +3 -3
  176. package/lib/shared/index.js +203 -228
  177. package/lib/sideslider/index.d.ts +4 -4
  178. package/lib/sideslider/index.js +137 -88
  179. package/lib/sideslider/sideslider.d.ts +1 -1
  180. package/lib/slider/index.d.ts +7 -7
  181. package/lib/slider/index.js +196 -147
  182. package/lib/slider/slider.d.ts +2 -2
  183. package/lib/steps/index.js +152 -105
  184. package/lib/swiper/index.js +126 -62
  185. package/lib/switcher/index.d.ts +4 -4
  186. package/lib/switcher/index.js +133 -65
  187. package/lib/switcher/switcher.d.ts +1 -1
  188. package/lib/tab/index.d.ts +4 -4
  189. package/lib/tab/index.js +188 -118
  190. package/lib/tab/tab.d.ts +1 -1
  191. package/lib/table/index.js +572 -457
  192. package/lib/table-column/index.js +197 -129
  193. package/lib/tag/index.js +130 -58
  194. package/lib/tag-input/index.d.ts +7 -7
  195. package/lib/tag-input/index.js +277 -175
  196. package/lib/tag-input/tag-input.d.ts +2 -2
  197. package/lib/time-picker/index.d.ts +10 -10
  198. package/lib/time-picker/index.js +111 -40
  199. package/lib/timeline/index.d.ts +4 -4
  200. package/lib/timeline/index.js +114 -50
  201. package/lib/timeline/timeline.d.ts +1 -1
  202. package/lib/transfer/index.js +174 -89
  203. package/lib/tree/index.js +235 -158
  204. package/lib/upload/index.d.ts +7 -7
  205. package/lib/upload/index.js +227 -173
  206. package/lib/upload/upload-list.d.ts +1 -1
  207. package/lib/upload/upload-trigger.d.ts +1 -1
  208. package/lib/upload/upload.d.ts +2 -2
  209. package/lib/virtual-render/index.js +154 -86
  210. package/package.json +1 -1
@@ -455,13 +455,13 @@ declare const _default: import("vue").DefineComponent<{
455
455
  options: Record<string, any>;
456
456
  behavior: "simplicity" | "normal";
457
457
  type: import("../interface").PickerTypeType;
458
- disabled: boolean;
459
458
  width: number;
460
- placeholder: string;
459
+ disabled: boolean;
460
+ fontSize: "normal" | "large" | "medium";
461
461
  open: boolean;
462
462
  multiple: boolean;
463
+ placeholder: string;
463
464
  transfer: boolean;
464
- fontSize: "normal" | "large" | "medium";
465
465
  clearable: boolean;
466
466
  readonly: boolean;
467
467
  withValidate: boolean;
@@ -413,13 +413,13 @@ declare const _default: import("vue").DefineComponent<{
413
413
  confirm: boolean;
414
414
  behavior: "simplicity" | "normal";
415
415
  type: import("../interface").PickerTypeType;
416
- disabled: boolean;
417
416
  width: number;
418
- placeholder: string;
417
+ disabled: boolean;
418
+ fontSize: "normal" | "large" | "medium";
419
419
  open: boolean;
420
420
  multiple: boolean;
421
+ placeholder: string;
421
422
  transfer: boolean;
422
- fontSize: "normal" | "large" | "medium";
423
423
  clearable: boolean;
424
424
  readonly: boolean;
425
425
  withValidate: boolean;
@@ -349,13 +349,13 @@ declare const _default: import("vue").DefineComponent<{
349
349
  options: Record<string, any>;
350
350
  behavior: "simplicity" | "normal";
351
351
  type: import("./interface").PickerTypeType;
352
- disabled: boolean;
353
352
  width: number;
354
- placeholder: string;
353
+ disabled: boolean;
354
+ fontSize: "normal" | "large" | "medium";
355
355
  open: boolean;
356
356
  multiple: boolean;
357
+ placeholder: string;
357
358
  transfer: boolean;
358
- fontSize: "normal" | "large" | "medium";
359
359
  clearable: boolean;
360
360
  readonly: boolean;
361
361
  withValidate: boolean;
@@ -284,12 +284,12 @@ declare const _default: import("vue").DefineComponent<{
284
284
  zIndex: string | number;
285
285
  showMask: boolean;
286
286
  direction: string;
287
- theme: "success" | "warning" | "danger" | "primary";
288
- extCls: string | unknown[];
289
287
  width: string | number;
290
288
  height: string | number;
291
289
  maxHeight: string;
292
290
  isShow: boolean;
291
+ theme: "success" | "warning" | "danger" | "primary";
292
+ extCls: string | unknown[];
293
293
  draggable: boolean;
294
294
  transfer: boolean;
295
295
  quickClose: boolean;
@@ -8,12 +8,12 @@ declare const BkDialog: {
8
8
  zIndex: string | number;
9
9
  showMask: boolean;
10
10
  direction: string;
11
- theme: "success" | "warning" | "danger" | "primary";
12
- extCls: string | unknown[];
13
11
  width: string | number;
14
12
  height: string | number;
15
13
  maxHeight: string;
16
14
  isShow: boolean;
15
+ theme: "success" | "warning" | "danger" | "primary";
16
+ extCls: string | unknown[];
17
17
  draggable: boolean;
18
18
  transfer: boolean;
19
19
  quickClose: boolean;
@@ -166,7 +166,7 @@ declare const BkDialog: {
166
166
  onClosed?: (...args: any[]) => any;
167
167
  "onUpdate:isShow"?: (...args: any[]) => any;
168
168
  "onValue-change"?: (...args: any[]) => any;
169
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "zIndex" | "showMask" | "direction" | "theme" | "extCls" | "width" | "height" | "maxHeight" | "isShow" | "draggable" | "transfer" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType" | "confirmText" | "cancelText" | "prevText" | "nextText" | "current" | "totalStep" | "headerAlign" | "footerAlign" | "isLoading">;
169
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "multiInstance" | "zIndex" | "showMask" | "direction" | "width" | "height" | "maxHeight" | "isShow" | "theme" | "extCls" | "draggable" | "transfer" | "quickClose" | "scrollable" | "closeIcon" | "escClose" | "fullscreen" | "animateType" | "confirmText" | "cancelText" | "prevText" | "nextText" | "current" | "totalStep" | "headerAlign" | "footerAlign" | "isLoading">;
170
170
  $attrs: {
171
171
  [x: string]: unknown;
172
172
  };
@@ -338,12 +338,12 @@ declare const BkDialog: {
338
338
  zIndex: string | number;
339
339
  showMask: boolean;
340
340
  direction: string;
341
- theme: "success" | "warning" | "danger" | "primary";
342
- extCls: string | unknown[];
343
341
  width: string | number;
344
342
  height: string | number;
345
343
  maxHeight: string;
346
344
  isShow: boolean;
345
+ theme: "success" | "warning" | "danger" | "primary";
346
+ extCls: string | unknown[];
347
347
  draggable: boolean;
348
348
  transfer: boolean;
349
349
  quickClose: boolean;
@@ -695,12 +695,12 @@ declare const BkDialog: {
695
695
  zIndex: string | number;
696
696
  showMask: boolean;
697
697
  direction: string;
698
- theme: "success" | "warning" | "danger" | "primary";
699
- extCls: string | unknown[];
700
698
  width: string | number;
701
699
  height: string | number;
702
700
  maxHeight: string;
703
701
  isShow: boolean;
702
+ theme: "success" | "warning" | "danger" | "primary";
703
+ extCls: string | unknown[];
704
704
  draggable: boolean;
705
705
  transfer: boolean;
706
706
  quickClose: boolean;
@@ -1,57 +1,143 @@
1
- import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
2
- import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
3
- import * as __WEBPACK_EXTERNAL_MODULE__button_59c00871__ from "../button";
4
- import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
5
- import * as __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__ from "../modal";
6
- /******/ // The require scope
7
- /******/ var __webpack_require__ = {};
8
- /******/
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("../shared"), require("vue"), require("../button"), require("../icon"), require("../modal"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["../shared", "vue", "../button", "../icon", "../modal"], factory);
6
+ else {
7
+ var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../button"), require("../icon"), require("../modal")) : factory(root["../shared"], root["vue"], root["../button"], root["../icon"], root["../modal"]);
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__4212__, __WEBPACK_EXTERNAL_MODULE__748__, __WEBPACK_EXTERNAL_MODULE__4976__, __WEBPACK_EXTERNAL_MODULE__6870__, __WEBPACK_EXTERNAL_MODULE__8014__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 4976:
16
+ /***/ ((module) => {
17
+
18
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4976__;
19
+
20
+ /***/ }),
21
+
22
+ /***/ 6870:
23
+ /***/ ((module) => {
24
+
25
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
26
+
27
+ /***/ }),
28
+
29
+ /***/ 8014:
30
+ /***/ ((module) => {
31
+
32
+ module.exports = __WEBPACK_EXTERNAL_MODULE__8014__;
33
+
34
+ /***/ }),
35
+
36
+ /***/ 4212:
37
+ /***/ ((module) => {
38
+
39
+ module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
40
+
41
+ /***/ }),
42
+
43
+ /***/ 748:
44
+ /***/ ((module) => {
45
+
46
+ module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
47
+
48
+ /***/ })
49
+
50
+ /******/ });
9
51
  /************************************************************************/
10
- /******/ /* webpack/runtime/define property getters */
11
- /******/ (() => {
12
- /******/ // define getter functions for harmony exports
13
- /******/ __webpack_require__.d = (exports, definition) => {
14
- /******/ for(var key in definition) {
15
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
16
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
17
- /******/ }
52
+ /******/ // The module cache
53
+ /******/ var __webpack_module_cache__ = {};
54
+ /******/
55
+ /******/ // The require function
56
+ /******/ function __webpack_require__(moduleId) {
57
+ /******/ // Check if module is in cache
58
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
59
+ /******/ if (cachedModule !== undefined) {
60
+ /******/ return cachedModule.exports;
18
61
  /******/ }
19
- /******/ };
20
- /******/ })();
21
- /******/
22
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
23
- /******/ (() => {
24
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
25
- /******/ })();
26
- /******/
62
+ /******/ // Create a new module (and put it into the cache)
63
+ /******/ var module = __webpack_module_cache__[moduleId] = {
64
+ /******/ // no module.id needed
65
+ /******/ // no module.loaded needed
66
+ /******/ exports: {}
67
+ /******/ };
68
+ /******/
69
+ /******/ // Execute the module function
70
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
71
+ /******/
72
+ /******/ // Return the exports of the module
73
+ /******/ return module.exports;
74
+ /******/ }
75
+ /******/
76
+ /************************************************************************/
77
+ /******/ /* webpack/runtime/compat get default export */
78
+ /******/ (() => {
79
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
80
+ /******/ __webpack_require__.n = (module) => {
81
+ /******/ var getter = module && module.__esModule ?
82
+ /******/ () => (module['default']) :
83
+ /******/ () => (module);
84
+ /******/ __webpack_require__.d(getter, { a: getter });
85
+ /******/ return getter;
86
+ /******/ };
87
+ /******/ })();
88
+ /******/
89
+ /******/ /* webpack/runtime/define property getters */
90
+ /******/ (() => {
91
+ /******/ // define getter functions for harmony exports
92
+ /******/ __webpack_require__.d = (exports, definition) => {
93
+ /******/ for(var key in definition) {
94
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
95
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
96
+ /******/ }
97
+ /******/ }
98
+ /******/ };
99
+ /******/ })();
100
+ /******/
101
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
102
+ /******/ (() => {
103
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
104
+ /******/ })();
105
+ /******/
106
+ /******/ /* webpack/runtime/make namespace object */
107
+ /******/ (() => {
108
+ /******/ // define __esModule on exports
109
+ /******/ __webpack_require__.r = (exports) => {
110
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
111
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
112
+ /******/ }
113
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
114
+ /******/ };
115
+ /******/ })();
116
+ /******/
27
117
  /************************************************************************/
28
118
  var __webpack_exports__ = {};
119
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
120
+ (() => {
121
+ // ESM COMPAT FLAG
122
+ __webpack_require__.r(__webpack_exports__);
29
123
 
30
124
  // EXPORTS
31
125
  __webpack_require__.d(__webpack_exports__, {
32
- "Z": () => (/* binding */ src)
126
+ "default": () => (/* binding */ src)
33
127
  });
34
128
 
35
- ;// CONCATENATED MODULE: external "../shared"
36
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
37
- var y = x => () => x
38
- const external_shared_namespaceObject = x({ ["AlignEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.AlignEnum, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ThemeEnum, ["alignType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.alignType, ["dialogTypeUnion"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.dialogTypeUnion, ["resolveClassName"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.resolveClassName, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
39
- ;// CONCATENATED MODULE: external "vue"
40
- var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
41
- var external_vue_y = x => () => x
42
- const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
43
- ;// CONCATENATED MODULE: external "../button"
44
- var external_button_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
45
- var external_button_y = x => () => x
46
- const external_button_namespaceObject = external_button_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__button_59c00871__["default"] });
47
- ;// CONCATENATED MODULE: external "../icon"
48
- var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
49
- var external_icon_y = x => () => x
50
- const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Spinner, ["Success"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Success, ["Warn"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Warn });
51
- ;// CONCATENATED MODULE: external "../modal"
52
- var external_modal_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
53
- var external_modal_y = x => () => x
54
- const external_modal_namespaceObject = external_modal_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__["default"], ["propsMixin"]: () => __WEBPACK_EXTERNAL_MODULE__modal_4c8fdca5__.propsMixin });
129
+ // EXTERNAL MODULE: external "../shared"
130
+ var external_shared_ = __webpack_require__(4212);
131
+ // EXTERNAL MODULE: external "vue"
132
+ var external_vue_ = __webpack_require__(748);
133
+ // EXTERNAL MODULE: external "../button"
134
+ var external_button_ = __webpack_require__(4976);
135
+ var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
136
+ // EXTERNAL MODULE: external "../icon"
137
+ var external_icon_ = __webpack_require__(6870);
138
+ // EXTERNAL MODULE: external "../modal"
139
+ var external_modal_ = __webpack_require__(8014);
140
+ var external_modal_default = /*#__PURE__*/__webpack_require__.n(external_modal_);
55
141
  ;// CONCATENATED MODULE: ../../packages/dialog/src/props.ts
56
142
  /*
57
143
  * Tencent is pleased to support the open source community by making
@@ -80,32 +166,32 @@ const external_modal_namespaceObject = external_modal_x({ ["default"]: () => __W
80
166
  */
81
167
 
82
168
 
83
- var props = Object.assign(Object.assign({}, external_modal_namespaceObject.propsMixin), {
84
- width: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
85
- height: external_shared_namespaceObject.PropTypes.oneOfType([String, Number]).def(''),
169
+ var props = Object.assign(Object.assign({}, external_modal_.propsMixin), {
170
+ width: external_shared_.PropTypes.oneOfType([String, Number]).def(''),
171
+ height: external_shared_.PropTypes.oneOfType([String, Number]).def(''),
86
172
  // 确认按钮文字
87
- confirmText: external_shared_namespaceObject.PropTypes.string.def('确定'),
173
+ confirmText: external_shared_.PropTypes.string.def('确定'),
88
174
  // 取消按钮文字
89
- cancelText: external_shared_namespaceObject.PropTypes.string.def('取消'),
175
+ cancelText: external_shared_.PropTypes.string.def('取消'),
90
176
  // 步骤按钮文字
91
- prevText: external_shared_namespaceObject.PropTypes.string.def('上一步'),
92
- nextText: external_shared_namespaceObject.PropTypes.string.def('下一步'),
177
+ prevText: external_shared_.PropTypes.string.def('上一步'),
178
+ nextText: external_shared_.PropTypes.string.def('下一步'),
93
179
  // 当前步骤
94
- current: external_shared_namespaceObject.PropTypes.number.def(1),
180
+ current: external_shared_.PropTypes.number.def(1),
95
181
  // 总步数
96
- totalStep: external_shared_namespaceObject.PropTypes.number,
182
+ totalStep: external_shared_.PropTypes.number,
97
183
  // 弹框的标题
98
- title: external_shared_namespaceObject.PropTypes.string.def('title'),
184
+ title: external_shared_.PropTypes.string.def('title'),
99
185
  // 显示 header 的位置
100
- headerAlign: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.LEFT),
186
+ headerAlign: (0,external_shared_.alignType)().def(external_shared_.AlignEnum.LEFT),
101
187
  // 显示 footer 的位置
102
- footerAlign: (0,external_shared_namespaceObject.alignType)().def(external_shared_namespaceObject.AlignEnum.RIGHT),
188
+ footerAlign: (0,external_shared_.alignType)().def(external_shared_.AlignEnum.RIGHT),
103
189
  // 颜色 按钮类型
104
- theme: external_shared_namespaceObject.PropTypes.theme().def(external_shared_namespaceObject.ThemeEnum.PRIMARY),
190
+ theme: external_shared_.PropTypes.theme().def(external_shared_.ThemeEnum.PRIMARY),
105
191
  // 对话框类型
106
- dialogType: (0,external_shared_namespaceObject.dialogTypeUnion)(),
192
+ dialogType: (0,external_shared_.dialogTypeUnion)(),
107
193
  // 按钮loading
108
- isLoading: external_shared_namespaceObject.PropTypes.bool.def(false)
194
+ isLoading: external_shared_.PropTypes.bool.def(false)
109
195
  });
110
196
  /* harmony default export */ const src_props = (props);
111
197
  ;// CONCATENATED MODULE: ../../packages/dialog/src/dialog.tsx
@@ -144,20 +230,20 @@ var props = Object.assign(Object.assign({}, external_modal_namespaceObject.props
144
230
 
145
231
 
146
232
  function _isSlot(s) {
147
- return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
233
+ return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_.isVNode)(s);
148
234
  }
149
235
 
150
- /* harmony default export */ const dialog = ((0,external_vue_namespaceObject.defineComponent)({
236
+ /* harmony default export */ const dialog = ((0,external_vue_.defineComponent)({
151
237
  name: 'Dialog',
152
238
  components: {
153
- BkModal: external_modal_namespaceObject["default"],
154
- BkButton: external_button_namespaceObject["default"]
239
+ BkModal: (external_modal_default()),
240
+ BkButton: (external_button_default())
155
241
  },
156
242
  props: src_props,
157
243
  emits: ['closed', 'update:isShow', 'confirm', 'prev', 'next', 'value-change'],
158
244
  setup: function setup(props, _ref) {
159
245
  var emit = _ref.emit;
160
- var data = (0,external_vue_namespaceObject.reactive)({
246
+ var data = (0,external_vue_.reactive)({
161
247
  positionX: 0,
162
248
  positionY: 0,
163
249
  moveStyle: {
@@ -165,18 +251,18 @@ function _isSlot(s) {
165
251
  left: ''
166
252
  }
167
253
  });
168
- var isModalShow = (0,external_vue_namespaceObject.ref)(props.isShow);
169
- (0,external_vue_namespaceObject.onMounted)(function () {
254
+ var isModalShow = (0,external_vue_.ref)(props.isShow);
255
+ (0,external_vue_.onMounted)(function () {
170
256
  if (props.escClose) {
171
257
  addEventListener('keydown', escCloseHandler);
172
258
  }
173
259
  });
174
- (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
260
+ (0,external_vue_.onBeforeUnmount)(function () {
175
261
  if (props.escClose) {
176
262
  removeEventListener('keydown', escCloseHandler);
177
263
  }
178
264
  });
179
- (0,external_vue_namespaceObject.watch)(function () {
265
+ (0,external_vue_.watch)(function () {
180
266
  return props.isShow;
181
267
  }, function (val) {
182
268
  if (!val) {
@@ -207,7 +293,7 @@ function _isSlot(s) {
207
293
  emit('confirm'); // isModalShow.value = false; 影响异步关闭
208
294
  };
209
295
 
210
- var hasFooter = (0,external_vue_namespaceObject.computed)(function () {
296
+ var hasFooter = (0,external_vue_.computed)(function () {
211
297
  return ['process', 'operation', 'confirm'].includes(props.dialogType);
212
298
  }); // 按 esc 关闭弹框
213
299
 
@@ -300,17 +386,17 @@ function _isSlot(s) {
300
386
 
301
387
  var renderIcon = function renderIcon() {
302
388
  var iconMap = {
303
- loading: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Spinner, {
304
- "class": [(0,external_shared_namespaceObject.resolveClassName)('info-icon'), 'primary']
389
+ loading: (0,external_vue_.createVNode)(external_icon_.Spinner, {
390
+ "class": [(0,external_shared_.resolveClassName)('info-icon'), 'primary']
305
391
  }, null),
306
- warning: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Warn, {
307
- "class": [(0,external_shared_namespaceObject.resolveClassName)('info-icon'), 'warning']
392
+ warning: (0,external_vue_.createVNode)(external_icon_.Warn, {
393
+ "class": [(0,external_shared_.resolveClassName)('info-icon'), 'warning']
308
394
  }, null),
309
- success: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Success, {
310
- "class": [(0,external_shared_namespaceObject.resolveClassName)('info-icon'), 'success']
395
+ success: (0,external_vue_.createVNode)(external_icon_.Success, {
396
+ "class": [(0,external_shared_.resolveClassName)('info-icon'), 'success']
311
397
  }, null),
312
- danger: (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
313
- "class": [(0,external_shared_namespaceObject.resolveClassName)('info-icon'), 'danger']
398
+ danger: (0,external_vue_.createVNode)(external_icon_.Close, {
399
+ "class": [(0,external_shared_.resolveClassName)('info-icon'), 'danger']
314
400
  }, null)
315
401
  };
316
402
  return iconMap[_this.infoType];
@@ -320,17 +406,17 @@ function _isSlot(s) {
320
406
  header: function header() {
321
407
  var _a, _b, _c, _d, _e, _f;
322
408
 
323
- return [(0,external_vue_namespaceObject.createVNode)("div", {
324
- "class": [(0,external_shared_namespaceObject.resolveClassName)('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
409
+ return [(0,external_vue_.createVNode)("div", {
410
+ "class": [(0,external_shared_.resolveClassName)('dialog-tool'), _this.fullscreen || !_this.draggable ? '' : 'move', _this.draggable ? 'content-dragging' : ''],
325
411
  "onMousedown": _this.moveHandler
326
- }, [(_c = (_b = (_a = _this.$slots).tools) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '']), (0,external_vue_namespaceObject.createVNode)("div", {
327
- "class": (0,external_shared_namespaceObject.resolveClassName)('dialog-header')
328
- }, [(0,external_vue_namespaceObject.createVNode)("div", {
329
- "class": (0,external_shared_namespaceObject.resolveClassName)('header-icon')
330
- }, [_this.infoType ? renderIcon() : (0,external_vue_namespaceObject.createVNode)("slot", {
412
+ }, [(_c = (_b = (_a = _this.$slots).tools) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '']), (0,external_vue_.createVNode)("div", {
413
+ "class": (0,external_shared_.resolveClassName)('dialog-header')
414
+ }, [(0,external_vue_.createVNode)("div", {
415
+ "class": (0,external_shared_.resolveClassName)('header-icon')
416
+ }, [_this.infoType ? renderIcon() : (0,external_vue_.createVNode)("slot", {
331
417
  "name": "info-icon"
332
- }, null)]), (0,external_vue_namespaceObject.createVNode)("span", {
333
- "class": (0,external_shared_namespaceObject.resolveClassName)('dialog-title'),
418
+ }, null)]), (0,external_vue_.createVNode)("span", {
419
+ "class": (0,external_shared_.resolveClassName)('dialog-title'),
334
420
  "style": "text-align: ".concat(_this.headerAlign)
335
421
  }, [(_f = (_e = (_d = _this.$slots).header) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : _this.title])])];
336
422
  },
@@ -342,24 +428,24 @@ function _isSlot(s) {
342
428
  footer: function footer() {
343
429
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
344
430
 
345
- return (0,external_vue_namespaceObject.createVNode)("div", {
346
- "class": (0,external_shared_namespaceObject.resolveClassName)('dialog-footer'),
431
+ return (0,external_vue_.createVNode)("div", {
432
+ "class": (0,external_shared_.resolveClassName)('dialog-footer'),
347
433
  "style": "text-align: ".concat(_this.footerAlign)
348
- }, [_this.dialogType === 'process' ? (_c = (_b = (_a = _this.$slots).footer) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
349
- "class": (0,external_shared_namespaceObject.resolveClassName)('dialog-perv'),
434
+ }, [_this.dialogType === 'process' ? (_c = (_b = (_a = _this.$slots).footer) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : (0,external_vue_.createVNode)(external_vue_.Fragment, null, [_this.current === 1 ? '' : (0,external_vue_.createVNode)((external_button_default()), {
435
+ "class": (0,external_shared_.resolveClassName)('dialog-perv'),
350
436
  "onClick": _this.handlePrevStep
351
437
  }, {
352
438
  "default": function _default() {
353
439
  return [_this.prevText];
354
440
  }
355
- }), _this.current === _this.totalStep ? '' : (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
356
- "class": (0,external_shared_namespaceObject.resolveClassName)('dialog-next'),
441
+ }), _this.current === _this.totalStep ? '' : (0,external_vue_.createVNode)((external_button_default()), {
442
+ "class": (0,external_shared_.resolveClassName)('dialog-next'),
357
443
  "onClick": _this.handleNextStep
358
444
  }, {
359
445
  "default": function _default() {
360
446
  return [_this.nextText];
361
447
  }
362
- }), _this.current === _this.totalStep ? (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
448
+ }), _this.current === _this.totalStep ? (0,external_vue_.createVNode)((external_button_default()), {
363
449
  "onClick": _this.handleConfirm,
364
450
  "theme": _this.theme,
365
451
  "loading": _this.isLoading
@@ -367,15 +453,15 @@ function _isSlot(s) {
367
453
  "default": function _default() {
368
454
  return [_this.confirmText];
369
455
  }
370
- }) : '', (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
371
- "class": (0,external_shared_namespaceObject.resolveClassName)('dialog-cancel'),
456
+ }) : '', (0,external_vue_.createVNode)((external_button_default()), {
457
+ "class": (0,external_shared_.resolveClassName)('dialog-cancel'),
372
458
  "onClick": _this.handleClose,
373
459
  "disabled": _this.isLoading
374
460
  }, {
375
461
  "default": function _default() {
376
462
  return [_this.cancelText];
377
463
  }
378
- })]) : '', _this.dialogType === 'operation' ? (_f = (_e = (_d = _this.$slots).footer) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
464
+ })]) : '', _this.dialogType === 'operation' ? (_f = (_e = (_d = _this.$slots).footer) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : (0,external_vue_.createVNode)(external_vue_.Fragment, null, [(0,external_vue_.createVNode)((external_button_default()), {
379
465
  "onClick": _this.handleConfirm,
380
466
  "theme": _this.theme,
381
467
  "loading": _this.isLoading
@@ -383,15 +469,15 @@ function _isSlot(s) {
383
469
  "default": function _default() {
384
470
  return [_this.confirmText];
385
471
  }
386
- }), (0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
387
- "class": (0,external_shared_namespaceObject.resolveClassName)('dialog-cancel'),
472
+ }), (0,external_vue_.createVNode)((external_button_default()), {
473
+ "class": (0,external_shared_.resolveClassName)('dialog-cancel'),
388
474
  "onClick": _this.handleClose,
389
475
  "disabled": _this.isLoading
390
476
  }, {
391
477
  "default": function _default() {
392
478
  return [_this.cancelText];
393
479
  }
394
- })]) : '', _this.dialogType === 'confirm' ? (_j = (_h = (_g = _this.$slots).footer) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(external_button_namespaceObject["default"], {
480
+ })]) : '', _this.dialogType === 'confirm' ? (_j = (_h = (_g = _this.$slots).footer) === null || _h === void 0 ? void 0 : _h.call(_g)) !== null && _j !== void 0 ? _j : (0,external_vue_.createVNode)(external_vue_.Fragment, null, [(0,external_vue_.createVNode)((external_button_default()), {
395
481
  "onClick": _this.handleConfirm,
396
482
  "theme": _this.theme,
397
483
  "loading": _this.isLoading
@@ -402,14 +488,14 @@ function _isSlot(s) {
402
488
  })]) : '']);
403
489
  },
404
490
  close: function close() {
405
- return (0,external_vue_namespaceObject.createVNode)("span", {
406
- "class": (0,external_shared_namespaceObject.resolveClassName)('dialog-close'),
491
+ return (0,external_vue_.createVNode)("span", {
492
+ "class": (0,external_shared_.resolveClassName)('dialog-close'),
407
493
  "onClick": _this.handleClose
408
- }, [(0,external_vue_namespaceObject.createTextVNode)("+")]);
494
+ }, [(0,external_vue_.createTextVNode)("+")]);
409
495
  }
410
496
  };
411
- var className = "".concat((0,external_shared_namespaceObject.resolveClassName)('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
412
- return (0,external_vue_namespaceObject.createVNode)(external_modal_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.$props, {
497
+ var className = "".concat((0,external_shared_.resolveClassName)('dialog-wrapper '), " ").concat(this.scrollable ? 'scroll-able' : '', " ").concat(this.multiInstance ? 'multi-instance' : '', " ").concat(this.hasFooter ? 'has-footer' : 'no-footer');
498
+ return (0,external_vue_.createVNode)((external_modal_default()), (0,external_vue_.mergeProps)(this.$props, {
413
499
  "class": className,
414
500
  "onClose": this.handleClose,
415
501
  "isShow": this.isModalShow,
@@ -449,7 +535,11 @@ function _isSlot(s) {
449
535
  */
450
536
 
451
537
 
452
- var BkDialog = (0,external_shared_namespaceObject.withInstall)(dialog);
538
+ var BkDialog = (0,external_shared_.withInstall)(dialog);
453
539
  /* harmony default export */ const src = (BkDialog);
454
- var __webpack_exports__default = __webpack_exports__.Z;
455
- export { __webpack_exports__default as default };
540
+ })();
541
+
542
+ /******/ return __webpack_exports__;
543
+ /******/ })()
544
+ ;
545
+ });
@@ -1,3 +1,4 @@
1
+ export { overflowTitle } from '../overflow-title';
1
2
  export { default as mousewheel } from './mousewheel';
2
3
  export { default as clickoutside } from './clickoutside';
3
4
  export { default as bkTooltips } from './tooltips';