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

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 (207) hide show
  1. package/lib/affix/index.js +60 -128
  2. package/lib/alert/index.js +56 -124
  3. package/lib/animate-number/index.js +42 -106
  4. package/lib/backtop/index.js +61 -133
  5. package/lib/badge/badge.d.ts +1 -1
  6. package/lib/badge/index.d.ts +4 -4
  7. package/lib/badge/index.js +50 -114
  8. package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
  9. package/lib/breadcrumb/breadcrumb.d.ts +1 -1
  10. package/lib/breadcrumb/index.d.ts +5 -5
  11. package/lib/breadcrumb/index.js +67 -133
  12. package/lib/button/index.js +68 -147
  13. package/lib/card/index.js +69 -154
  14. package/lib/cascader/cascader.d.ts +3 -3
  15. package/lib/cascader/index.d.ts +10 -10
  16. package/lib/cascader/index.js +168 -242
  17. package/lib/checkbox/index.js +77 -139
  18. package/lib/code-diff/index.js +79 -121
  19. package/lib/collapse/index.js +84 -150
  20. package/lib/color-picker/color-picker.d.ts +1 -1
  21. package/lib/color-picker/index.d.ts +4 -4
  22. package/lib/color-picker/index.js +193 -245
  23. package/lib/components.js +434 -671
  24. package/lib/container/container.d.ts +1 -1
  25. package/lib/container/index.d.ts +4 -4
  26. package/lib/container/index.js +64 -125
  27. package/lib/date-picker/date-picker.d.ts +2 -2
  28. package/lib/date-picker/index.d.ts +7 -7
  29. package/lib/date-picker/index.js +462 -563
  30. package/lib/date-picker/panel/time-range.d.ts +3 -3
  31. package/lib/date-picker/panel/time.d.ts +3 -3
  32. package/lib/date-picker/time-picker.d.ts +3 -3
  33. package/lib/dialog/dialog.d.ts +2 -2
  34. package/lib/dialog/index.d.ts +7 -7
  35. package/lib/dialog/index.js +108 -198
  36. package/lib/directives/index.d.ts +0 -2
  37. package/lib/directives/index.js +86 -140
  38. package/lib/dist.index.js +48 -133
  39. package/lib/divider/index.js +50 -118
  40. package/lib/dropdown/dropdown.d.ts +2 -2
  41. package/lib/dropdown/index.d.ts +7 -7
  42. package/lib/dropdown/index.js +73 -155
  43. package/lib/exception/index.js +97 -145
  44. package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
  45. package/lib/fixed-navbar/index.d.ts +4 -4
  46. package/lib/fixed-navbar/index.js +43 -107
  47. package/lib/form/form-item.d.ts +1 -1
  48. package/lib/form/index.d.ts +1 -1
  49. package/lib/form/index.js +107 -193
  50. package/lib/icon/angle-double-down-line.js +30 -90
  51. package/lib/icon/angle-double-left-line.js +30 -90
  52. package/lib/icon/angle-double-left.js +30 -90
  53. package/lib/icon/angle-double-right-line.js +30 -90
  54. package/lib/icon/angle-double-right.js +30 -90
  55. package/lib/icon/angle-double-up-line.js +30 -90
  56. package/lib/icon/angle-down-fill.js +30 -90
  57. package/lib/icon/angle-down-line.js +30 -90
  58. package/lib/icon/angle-down.js +30 -90
  59. package/lib/icon/angle-left.js +30 -90
  60. package/lib/icon/angle-right.js +30 -90
  61. package/lib/icon/angle-up-fill.js +30 -90
  62. package/lib/icon/angle-up.js +30 -90
  63. package/lib/icon/archive-fill.js +30 -90
  64. package/lib/icon/arrows-left.js +30 -90
  65. package/lib/icon/arrows-right.js +30 -90
  66. package/lib/icon/audio-fill.js +30 -90
  67. package/lib/icon/bk.js +30 -90
  68. package/lib/icon/circle.js +30 -90
  69. package/lib/icon/close-line.js +30 -90
  70. package/lib/icon/close.js +30 -90
  71. package/lib/icon/code.js +30 -90
  72. package/lib/icon/cog-shape.js +30 -90
  73. package/lib/icon/collapse-left.js +30 -90
  74. package/lib/icon/copy.js +30 -90
  75. package/lib/icon/data-shape.js +30 -90
  76. package/lib/icon/del.js +30 -90
  77. package/lib/icon/doc-fill.js +30 -90
  78. package/lib/icon/done.js +30 -90
  79. package/lib/icon/down-shape.js +30 -90
  80. package/lib/icon/down-small.js +30 -90
  81. package/lib/icon/edit-line.js +30 -90
  82. package/lib/icon/ellipsis.js +30 -90
  83. package/lib/icon/enlarge-line.js +30 -90
  84. package/lib/icon/error.js +30 -90
  85. package/lib/icon/excel-fill.js +30 -90
  86. package/lib/icon/exclamation-circle-shape.js +30 -90
  87. package/lib/icon/eye.js +30 -90
  88. package/lib/icon/filliscreen-line.js +30 -90
  89. package/lib/icon/folder-open.js +30 -90
  90. package/lib/icon/folder-shape-open.js +30 -90
  91. package/lib/icon/folder-shape.js +30 -90
  92. package/lib/icon/folder.js +30 -90
  93. package/lib/icon/funnel.js +30 -90
  94. package/lib/icon/help-document-fill.js +30 -90
  95. package/lib/icon/help-fill.js +30 -90
  96. package/lib/icon/help.js +30 -90
  97. package/lib/icon/image-fill.js +30 -90
  98. package/lib/icon/img-placehoulder.js +52 -88
  99. package/lib/icon/index.js +267 -255
  100. package/lib/icon/info-line.js +52 -88
  101. package/lib/icon/info.js +52 -88
  102. package/lib/icon/left-shape.js +52 -88
  103. package/lib/icon/left-turn-line.js +52 -88
  104. package/lib/icon/narrow-line.js +52 -88
  105. package/lib/icon/original.js +52 -88
  106. package/lib/icon/pdf-fill.js +52 -88
  107. package/lib/icon/play-shape.js +52 -88
  108. package/lib/icon/plus.js +52 -88
  109. package/lib/icon/ppt-fill.js +52 -88
  110. package/lib/icon/qq.js +52 -88
  111. package/lib/icon/right-shape.js +52 -88
  112. package/lib/icon/right-turn-line.js +52 -88
  113. package/lib/icon/search.js +52 -88
  114. package/lib/icon/share.js +52 -88
  115. package/lib/icon/spinner.js +52 -88
  116. package/lib/icon/success.js +52 -88
  117. package/lib/icon/switcher-loading.js +52 -88
  118. package/lib/icon/text-file.js +52 -88
  119. package/lib/icon/text-fill.js +52 -88
  120. package/lib/icon/transfer.js +52 -88
  121. package/lib/icon/tree-application-shape.js +52 -88
  122. package/lib/icon/unfull-screen.js +52 -88
  123. package/lib/icon/unvisible.js +52 -88
  124. package/lib/icon/up-shape.js +52 -88
  125. package/lib/icon/upload.js +52 -88
  126. package/lib/icon/video-fill.js +52 -88
  127. package/lib/icon/warn.js +52 -88
  128. package/lib/icon/weixin.js +52 -88
  129. package/lib/image/index.js +164 -213
  130. package/lib/index.js +50 -134
  131. package/lib/info-box/index.js +152 -206
  132. package/lib/input/index.d.ts +4 -4
  133. package/lib/input/index.js +99 -167
  134. package/lib/input/input.d.ts +1 -1
  135. package/lib/link/index.d.ts +4 -4
  136. package/lib/link/index.js +47 -115
  137. package/lib/link/link.d.ts +1 -1
  138. package/lib/loading/index.d.ts +4 -4
  139. package/lib/loading/index.js +67 -127
  140. package/lib/loading/loading.d.ts +1 -1
  141. package/lib/menu/index.js +92 -156
  142. package/lib/message/index.js +76 -148
  143. package/lib/modal/index.d.ts +4 -4
  144. package/lib/modal/index.js +85 -151
  145. package/lib/modal/modal.d.ts +1 -1
  146. package/lib/navigation/index.js +66 -134
  147. package/lib/notify/index.js +81 -153
  148. package/lib/notify/notifyConstructor.d.ts +1 -1
  149. package/lib/overflow-title/index.js +92 -128
  150. package/lib/pagination/index.d.ts +4 -4
  151. package/lib/pagination/index.js +131 -220
  152. package/lib/pagination/pagination.d.ts +1 -1
  153. package/lib/plugin-popover/index.js +143 -191
  154. package/lib/plugins/index.js +33 -100
  155. package/lib/popover/index.d.ts +10 -10
  156. package/lib/popover/index.js +148 -194
  157. package/lib/popover/popover.d.ts +3 -3
  158. package/lib/popover2/index.js +35 -99
  159. package/lib/preset.js +37 -104
  160. package/lib/process/index.d.ts +4 -4
  161. package/lib/process/index.js +92 -134
  162. package/lib/process/process.d.ts +1 -1
  163. package/lib/progress/index.d.ts +7 -7
  164. package/lib/progress/index.js +63 -127
  165. package/lib/progress/progress.d.ts +2 -2
  166. package/lib/radio/index.js +81 -142
  167. package/lib/rate/index.js +63 -127
  168. package/lib/resize-layout/index.js +79 -147
  169. package/lib/search-select/index.js +168 -220
  170. package/lib/select/index.d.ts +10 -10
  171. package/lib/select/index.js +315 -394
  172. package/lib/select/select.d.ts +3 -3
  173. package/lib/shared/index.js +228 -203
  174. package/lib/sideslider/index.d.ts +4 -4
  175. package/lib/sideslider/index.js +88 -137
  176. package/lib/sideslider/sideslider.d.ts +1 -1
  177. package/lib/slider/index.d.ts +7 -7
  178. package/lib/slider/index.js +147 -196
  179. package/lib/slider/slider.d.ts +2 -2
  180. package/lib/steps/index.js +105 -152
  181. package/lib/swiper/index.js +62 -126
  182. package/lib/switcher/index.d.ts +4 -4
  183. package/lib/switcher/index.js +65 -133
  184. package/lib/switcher/switcher.d.ts +1 -1
  185. package/lib/tab/index.d.ts +4 -4
  186. package/lib/tab/index.js +118 -188
  187. package/lib/tab/tab.d.ts +1 -1
  188. package/lib/table/index.js +457 -572
  189. package/lib/table-column/index.js +129 -197
  190. package/lib/tag/index.js +58 -130
  191. package/lib/tag-input/index.d.ts +7 -7
  192. package/lib/tag-input/index.js +175 -277
  193. package/lib/tag-input/tag-input.d.ts +2 -2
  194. package/lib/time-picker/index.d.ts +10 -10
  195. package/lib/time-picker/index.js +40 -111
  196. package/lib/timeline/index.d.ts +4 -4
  197. package/lib/timeline/index.js +50 -114
  198. package/lib/timeline/timeline.d.ts +1 -1
  199. package/lib/transfer/index.js +89 -174
  200. package/lib/tree/index.js +158 -235
  201. package/lib/upload/index.d.ts +7 -7
  202. package/lib/upload/index.js +173 -227
  203. package/lib/upload/upload-list.d.ts +1 -1
  204. package/lib/upload/upload-trigger.d.ts +1 -1
  205. package/lib/upload/upload.d.ts +2 -2
  206. package/lib/virtual-render/index.js +86 -154
  207. package/package.json +1 -1
package/lib/form/index.js CHANGED
@@ -1,138 +1,48 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("../shared"), require("vue"), require("lodash"), require("../directives"), require("../icon"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["../shared", "vue", "lodash", "../directives", "../icon"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("lodash"), require("../directives"), require("../icon")) : factory(root["../shared"], root["vue"], root["lodash"], root["../directives"], root["../icon"]);
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__467__, __WEBPACK_EXTERNAL_MODULE__4061__, __WEBPACK_EXTERNAL_MODULE__6870__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 4061:
16
- /***/ ((module) => {
17
-
18
- module.exports = __WEBPACK_EXTERNAL_MODULE__4061__;
19
-
20
- /***/ }),
21
-
22
- /***/ 6870:
23
- /***/ ((module) => {
24
-
25
- module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
26
-
27
- /***/ }),
28
-
29
- /***/ 4212:
30
- /***/ ((module) => {
31
-
32
- module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
33
-
34
- /***/ }),
35
-
36
- /***/ 467:
37
- /***/ ((module) => {
38
-
39
- module.exports = __WEBPACK_EXTERNAL_MODULE__467__;
40
-
41
- /***/ }),
42
-
43
- /***/ 748:
44
- /***/ ((module) => {
45
-
46
- module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
47
-
48
- /***/ })
49
-
50
- /******/ });
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_lodash__ from "lodash";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
6
+ /******/ // The require scope
7
+ /******/ var __webpack_require__ = {};
8
+ /******/
51
9
  /************************************************************************/
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;
61
- /******/ }
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' });
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] });
112
17
  /******/ }
113
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
114
- /******/ };
115
- /******/ })();
116
- /******/
18
+ /******/ }
19
+ /******/ };
20
+ /******/ })();
21
+ /******/
22
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
23
+ /******/ (() => {
24
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
25
+ /******/ })();
26
+ /******/
117
27
  /************************************************************************/
118
28
  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__);
123
29
 
124
30
  // EXPORTS
125
31
  __webpack_require__.d(__webpack_exports__, {
126
- "BkComposeFormItem": () => (/* reexport */ compose_form_item),
127
- "BkForm": () => (/* binding */ BkForm),
128
- "BkFormItem": () => (/* reexport */ form_item),
129
- "default": () => (/* binding */ src)
32
+ "kq": () => (/* reexport */ compose_form_item),
33
+ "ZD": () => (/* binding */ BkForm),
34
+ "a_": () => (/* reexport */ form_item),
35
+ "ZP": () => (/* binding */ src)
130
36
  });
131
37
 
132
- // EXTERNAL MODULE: external "../shared"
133
- var external_shared_ = __webpack_require__(4212);
134
- // EXTERNAL MODULE: external "vue"
135
- var external_vue_ = __webpack_require__(748);
38
+ ;// CONCATENATED MODULE: external "../shared"
39
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
40
+ var y = x => () => x
41
+ const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["formItemKey"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.formItemKey, ["formKey"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.formKey, ["useForm"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useForm, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
42
+ ;// CONCATENATED MODULE: external "vue"
43
+ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
44
+ var external_vue_y = x => () => x
45
+ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
136
46
  ;// CONCATENATED MODULE: ../../packages/form/src/compose-form-item.tsx
137
47
  /*
138
48
  * Tencent is pleased to support the open source community by making
@@ -165,7 +75,7 @@ var isCustomComponent = function isCustomComponent(node) {
165
75
  return node.__v_isVNode;
166
76
  };
167
77
 
168
- /* harmony default export */ const compose_form_item = ((0,external_vue_.defineComponent)({
78
+ /* harmony default export */ const compose_form_item = ((0,external_vue_namespaceObject.defineComponent)({
169
79
  name: 'ComposeFormItem',
170
80
  props: {
171
81
  headBackgroundColor: {
@@ -246,7 +156,7 @@ var isCustomComponent = function isCustomComponent(node) {
246
156
  }
247
157
  }
248
158
 
249
- return (0,external_vue_.h)('div', {
159
+ return (0,external_vue_namespaceObject.h)('div', {
250
160
  "class": 'bk-compose-form-item'
251
161
  }, childrenArr);
252
162
  }
@@ -272,13 +182,13 @@ function _defineProperty(obj, key, value) {
272
182
 
273
183
 
274
184
  var formProps = {
275
- formType: external_shared_.PropTypes.oneOf(['default', 'vertical']).def('default'),
276
- labelWidth: external_shared_.PropTypes.oneOfType([Number, String]).def(150),
277
- labelPosition: external_shared_.PropTypes.oneOf(['left', 'center', 'right']),
278
- model: external_shared_.PropTypes.object,
279
- rules: external_shared_.PropTypes.object
185
+ formType: external_shared_namespaceObject.PropTypes.oneOf(['default', 'vertical']).def('default'),
186
+ labelWidth: external_shared_namespaceObject.PropTypes.oneOfType([Number, String]).def(150),
187
+ labelPosition: external_shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']),
188
+ model: external_shared_namespaceObject.PropTypes.object,
189
+ rules: external_shared_namespaceObject.PropTypes.object
280
190
  };
281
- /* harmony default export */ const src_form = ((0,external_vue_.defineComponent)({
191
+ /* harmony default export */ const src_form = ((0,external_vue_namespaceObject.defineComponent)({
282
192
  name: 'Form',
283
193
  props: formProps,
284
194
  emits: ['submit'],
@@ -309,7 +219,7 @@ var formProps = {
309
219
  }, []);
310
220
  };
311
221
 
312
- (0,external_vue_.provide)(external_shared_.formKey, {
222
+ (0,external_vue_namespaceObject.provide)(external_shared_namespaceObject.formKey, {
313
223
  props: props,
314
224
  register: register,
315
225
  unregister: unregister
@@ -388,10 +298,10 @@ var formProps = {
388
298
  render: function render() {
389
299
  var _a, _b;
390
300
 
391
- var formClasses = (0,external_shared_.classes)(_defineProperty({
301
+ var formClasses = (0,external_shared_namespaceObject.classes)(_defineProperty({
392
302
  'bk-form': true
393
303
  }, "bk-form--".concat(this.formType), true));
394
- return (0,external_vue_.createVNode)("form", {
304
+ return (0,external_vue_namespaceObject.createVNode)("form", {
395
305
  "class": formClasses,
396
306
  "onSubmit": this.handleSubmit
397
307
  }, [(_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)]);
@@ -438,13 +348,18 @@ function _nonIterableSpread() {
438
348
  function _toConsumableArray(arr) {
439
349
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
440
350
  }
441
- // EXTERNAL MODULE: external "lodash"
442
- var external_lodash_ = __webpack_require__(467);
443
- var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
444
- // EXTERNAL MODULE: external "../directives"
445
- var external_directives_ = __webpack_require__(4061);
446
- // EXTERNAL MODULE: external "../icon"
447
- var external_icon_ = __webpack_require__(6870);
351
+ ;// CONCATENATED MODULE: external "lodash"
352
+ var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
353
+ var external_lodash_y = x => () => x
354
+ const external_lodash_namespaceObject = external_lodash_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__["default"], ["get"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.get, ["isFunction"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.isFunction });
355
+ ;// CONCATENATED MODULE: external "../directives"
356
+ var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
357
+ var external_directives_y = x => () => x
358
+ const external_directives_namespaceObject = external_directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.bkTooltips });
359
+ ;// CONCATENATED MODULE: external "../icon"
360
+ var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
361
+ var external_icon_y = x => () => x
362
+ const external_icon_namespaceObject = external_icon_x({ ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.ExclamationCircleShape });
448
363
  ;// CONCATENATED MODULE: ../../packages/form/src/utils.ts
449
364
  /*
450
365
  * Tencent is pleased to support the open source community by making
@@ -507,11 +422,11 @@ var getRuleMessage = function getRuleMessage(rule) {
507
422
 
508
423
  /* harmony default export */ const src_validator = ({
509
424
  required: function required(value) {
510
- if (typeof value === 'number' || typeof value === 'boolean' || external_lodash_default().isDate(value)) {
425
+ if (typeof value === 'number' || typeof value === 'boolean' || external_lodash_namespaceObject["default"].isDate(value)) {
511
426
  return true;
512
427
  }
513
428
 
514
- return !external_lodash_default().isEmpty(value);
429
+ return !external_lodash_namespaceObject["default"].isEmpty(value);
515
430
  },
516
431
  min: function min(value, _min) {
517
432
  return value >= _min;
@@ -568,19 +483,19 @@ var getRuleMessage = function getRuleMessage(rule) {
568
483
 
569
484
  ;
570
485
  var formItemProps = {
571
- label: external_shared_.PropTypes.string,
572
- labelWidth: external_shared_.PropTypes.oneOfType([Number, String]),
573
- labelPosition: external_shared_.PropTypes.oneOf(['left', 'center', 'right']),
574
- property: external_shared_.PropTypes.string.def(''),
575
- required: external_shared_.PropTypes.bool.def(false),
576
- email: external_shared_.PropTypes.bool.def(false),
577
- max: external_shared_.PropTypes.number,
578
- min: external_shared_.PropTypes.number,
579
- maxlength: external_shared_.PropTypes.number,
580
- rules: external_shared_.PropTypes.array,
581
- autoCheck: external_shared_.PropTypes.bool.def(false),
582
- description: external_shared_.PropTypes.string,
583
- errorDisplayType: external_shared_.PropTypes.oneOf(['tooltips', 'normal']).def('normal')
486
+ label: external_shared_namespaceObject.PropTypes.string,
487
+ labelWidth: external_shared_namespaceObject.PropTypes.oneOfType([Number, String]),
488
+ labelPosition: external_shared_namespaceObject.PropTypes.oneOf(['left', 'center', 'right']),
489
+ property: external_shared_namespaceObject.PropTypes.string.def(''),
490
+ required: external_shared_namespaceObject.PropTypes.bool.def(false),
491
+ email: external_shared_namespaceObject.PropTypes.bool.def(false),
492
+ max: external_shared_namespaceObject.PropTypes.number,
493
+ min: external_shared_namespaceObject.PropTypes.number,
494
+ maxlength: external_shared_namespaceObject.PropTypes.number,
495
+ rules: external_shared_namespaceObject.PropTypes.array,
496
+ autoCheck: external_shared_namespaceObject.PropTypes.bool.def(false),
497
+ description: external_shared_namespaceObject.PropTypes.string,
498
+ errorDisplayType: external_shared_namespaceObject.PropTypes.oneOf(['tooltips', 'normal']).def('normal')
584
499
  };
585
500
 
586
501
  var hasOwn = function hasOwn(obj, key) {
@@ -649,10 +564,10 @@ var mergeRules = function mergeRules(configRules, propRules) {
649
564
  var rulevalidator;
650
565
 
651
566
  if (rule.required) {
652
- rulevalidator = (0,external_lodash_.isFunction)(rule.validator) ? rule.validator : src_validator.required;
567
+ rulevalidator = (0,external_lodash_namespaceObject.isFunction)(rule.validator) ? rule.validator : src_validator.required;
653
568
  customRequired = true;
654
569
  } else if (rule.email) {
655
- rulevalidator = (0,external_lodash_.isFunction)(rule.validator) ? rule.validator : src_validator.email;
570
+ rulevalidator = (0,external_lodash_namespaceObject.isFunction)(rule.validator) ? rule.validator : src_validator.email;
656
571
  customEmail = true;
657
572
  } else if (Number(rule.max) > -1) {
658
573
  rulevalidator = function rulevalidator(value) {
@@ -670,7 +585,7 @@ var mergeRules = function mergeRules(configRules, propRules) {
670
585
  rulevalidator = function rulevalidator(value) {
671
586
  return src_validator.pattern(value, rule.pattern);
672
587
  };
673
- } else if ((0,external_lodash_.isFunction)(rule.validator)) {
588
+ } else if ((0,external_lodash_namespaceObject.isFunction)(rule.validator)) {
674
589
  rulevalidator = rule.validator;
675
590
  } else {
676
591
  // 不支持的配置规则
@@ -721,37 +636,37 @@ var isValid = function isValid(value) {
721
636
  return value !== undefined;
722
637
  };
723
638
 
724
- /* harmony default export */ const form_item = ((0,external_vue_.defineComponent)({
639
+ /* harmony default export */ const form_item = ((0,external_vue_namespaceObject.defineComponent)({
725
640
  name: 'FormItem',
726
641
  directives: {
727
- bkTooltips: external_directives_.bkTooltips
642
+ bkTooltips: external_directives_namespaceObject.bkTooltips
728
643
  },
729
644
  props: formItemProps,
730
645
  setup: function setup(props, context) {
731
- var form = (0,external_shared_.useForm)();
646
+ var form = (0,external_shared_namespaceObject.useForm)();
732
647
  var isForm = Boolean(form);
733
- var parentFormItem = (0,external_shared_.useFormItem)();
648
+ var parentFormItem = (0,external_shared_namespaceObject.useFormItem)();
734
649
  var isNested = Boolean(parentFormItem);
735
- var currentInstance = (0,external_vue_.getCurrentInstance)();
736
- var state = (0,external_vue_.reactive)({
650
+ var currentInstance = (0,external_vue_namespaceObject.getCurrentInstance)();
651
+ var state = (0,external_vue_namespaceObject.reactive)({
737
652
  isError: false,
738
653
  errorMessage: ''
739
654
  });
740
- var isFormTypeVertical = (0,external_vue_.computed)(function () {
655
+ var isFormTypeVertical = (0,external_vue_namespaceObject.computed)(function () {
741
656
  if (!isForm) {
742
657
  return false;
743
658
  }
744
659
 
745
660
  return form.props.formType === 'vertical';
746
661
  });
747
- var isShowLabel = (0,external_vue_.computed)(function () {
662
+ var isShowLabel = (0,external_vue_namespaceObject.computed)(function () {
748
663
  if (props.label || context.slots.label) {
749
664
  return true;
750
665
  }
751
666
 
752
667
  return false;
753
668
  });
754
- var labelStyles = (0,external_vue_.computed)(function () {
669
+ var labelStyles = (0,external_vue_namespaceObject.computed)(function () {
755
670
  var styles = {
756
671
  width: '',
757
672
  paddingRight: '',
@@ -776,7 +691,7 @@ var isValid = function isValid(value) {
776
691
 
777
692
  return styles;
778
693
  });
779
- var contentStyles = (0,external_vue_.computed)(function () {
694
+ var contentStyles = (0,external_vue_namespaceObject.computed)(function () {
780
695
  return _defineProperty({}, 'margin-left', labelStyles.value.width);
781
696
  });
782
697
  /**
@@ -808,7 +723,7 @@ var isValid = function isValid(value) {
808
723
  state.errorMessage = '';
809
724
  }
810
725
 
811
- var value = (0,external_lodash_.get)(form.props.model, props.property);
726
+ var value = (0,external_lodash_namespaceObject.get)(form.props.model, props.property);
812
727
 
813
728
  var doValidate = function () {
814
729
  var stepIndex = -1;
@@ -864,21 +779,21 @@ var isValid = function isValid(value) {
864
779
  state.errorMessage = '';
865
780
  };
866
781
 
867
- (0,external_vue_.provide)(external_shared_.formItemKey, Object.assign(Object.assign({}, props), {
782
+ (0,external_vue_namespaceObject.provide)(external_shared_namespaceObject.formItemKey, Object.assign(Object.assign({}, props), {
868
783
  validate: validate,
869
784
  clearValidate: clearValidate
870
785
  }));
871
- (0,external_vue_.onMounted)(function () {
786
+ (0,external_vue_namespaceObject.onMounted)(function () {
872
787
  if (isForm) {
873
788
  form.register(currentInstance.proxy);
874
789
  }
875
790
  });
876
- (0,external_vue_.onBeforeUnmount)(function () {
791
+ (0,external_vue_namespaceObject.onBeforeUnmount)(function () {
877
792
  if (isForm) {
878
793
  form.unregister(currentInstance.proxy);
879
794
  }
880
795
  });
881
- return Object.assign(Object.assign({}, (0,external_vue_.toRefs)(state)), {
796
+ return Object.assign(Object.assign({}, (0,external_vue_namespaceObject.toRefs)(state)), {
882
797
  isShowLabel: isShowLabel,
883
798
  labelStyles: labelStyles,
884
799
  contentStyles: contentStyles,
@@ -892,7 +807,7 @@ var isValid = function isValid(value) {
892
807
 
893
808
  var _a, _b, _c, _d;
894
809
 
895
- var itemClassees = (0,external_shared_.classes)({
810
+ var itemClassees = (0,external_shared_namespaceObject.classes)({
896
811
  'bk-form-item': true,
897
812
  'is-error': this.isError,
898
813
  'is-required': this.required
@@ -904,11 +819,11 @@ var isValid = function isValid(value) {
904
819
  }
905
820
 
906
821
  if (_this.description) {
907
- return (0,external_vue_.withDirectives)((0,external_vue_.createVNode)("span", {
822
+ return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("span", {
908
823
  "class": {
909
824
  'bk-form-label-description': Boolean(_this.description)
910
825
  }
911
- }, [_this.label]), [[(0,external_vue_.resolveDirective)("bk-tooltips"), _this.description]]);
826
+ }, [_this.label]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.description]]);
912
827
  }
913
828
 
914
829
  return _this.label;
@@ -920,22 +835,22 @@ var isValid = function isValid(value) {
920
835
  }
921
836
 
922
837
  if (_this.errorDisplayType === 'tooltips') {
923
- return (0,external_vue_.withDirectives)((0,external_vue_.createVNode)("div", {
838
+ return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
924
839
  "class": "bk-form-error-tips"
925
- }, [(0,external_vue_.createVNode)(external_icon_.ExclamationCircleShape, null, null)]), [[(0,external_vue_.resolveDirective)("bk-tooltips"), _this.errorMessage]]);
840
+ }, [(0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.ExclamationCircleShape, null, null)]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), _this.errorMessage]]);
926
841
  }
927
842
 
928
- return (0,external_vue_.createVNode)("div", {
843
+ return (0,external_vue_namespaceObject.createVNode)("div", {
929
844
  "class": "bk-form-error"
930
845
  }, [_this.$slots.error ? _this.$slots.error(_this.errorMessage) : _this.errorMessage]);
931
846
  };
932
847
 
933
- return (0,external_vue_.createVNode)("div", {
848
+ return (0,external_vue_namespaceObject.createVNode)("div", {
934
849
  "class": itemClassees
935
- }, [this.isShowLabel && (0,external_vue_.createVNode)("div", {
850
+ }, [this.isShowLabel && (0,external_vue_namespaceObject.createVNode)("div", {
936
851
  "class": "bk-form-label",
937
852
  "style": this.labelStyles
938
- }, [renderLabel(), this.isFormTypeVertical && ((_b = (_a = this.$slots).labelAppend) === null || _b === void 0 ? void 0 : _b.call(_a))]), (0,external_vue_.createVNode)("div", {
853
+ }, [renderLabel(), this.isFormTypeVertical && ((_b = (_a = this.$slots).labelAppend) === null || _b === void 0 ? void 0 : _b.call(_a))]), (0,external_vue_namespaceObject.createVNode)("div", {
939
854
  "class": "bk-form-content",
940
855
  "style": this.contentStyles
941
856
  }, [(_d = (_c = this.$slots)["default"]) === null || _d === void 0 ? void 0 : _d.call(_c), renderError()])]);
@@ -972,15 +887,14 @@ var isValid = function isValid(value) {
972
887
 
973
888
 
974
889
 
975
- var BkForm = (0,external_shared_.withInstallProps)(src_form, {
890
+ var BkForm = (0,external_shared_namespaceObject.withInstallProps)(src_form, {
976
891
  FormItem: form_item,
977
892
  ComposeFormItem: compose_form_item
978
893
  });
979
894
  /* harmony default export */ const src = (BkForm);
980
895
 
981
- })();
982
-
983
- /******/ return __webpack_exports__;
984
- /******/ })()
985
- ;
986
- });
896
+ var __webpack_exports__BkComposeFormItem = __webpack_exports__.kq;
897
+ var __webpack_exports__BkForm = __webpack_exports__.ZD;
898
+ var __webpack_exports__BkFormItem = __webpack_exports__.a_;
899
+ var __webpack_exports__default = __webpack_exports__.ZP;
900
+ export { __webpack_exports__BkComposeFormItem as BkComposeFormItem, __webpack_exports__BkForm as BkForm, __webpack_exports__BkFormItem as BkFormItem, __webpack_exports__default as default };
@@ -1,93 +1,37 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("vue"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["vue"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("vue")) : factory(root["vue"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__748__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 748:
16
- /***/ ((module) => {
17
-
18
- module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
19
-
20
- /***/ })
21
-
22
- /******/ });
1
+ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
2
+ /******/ // The require scope
3
+ /******/ var __webpack_require__ = {};
4
+ /******/
23
5
  /************************************************************************/
24
- /******/ // The module cache
25
- /******/ var __webpack_module_cache__ = {};
26
- /******/
27
- /******/ // The require function
28
- /******/ function __webpack_require__(moduleId) {
29
- /******/ // Check if module is in cache
30
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
31
- /******/ if (cachedModule !== undefined) {
32
- /******/ return cachedModule.exports;
33
- /******/ }
34
- /******/ // Create a new module (and put it into the cache)
35
- /******/ var module = __webpack_module_cache__[moduleId] = {
36
- /******/ // no module.id needed
37
- /******/ // no module.loaded needed
38
- /******/ exports: {}
39
- /******/ };
40
- /******/
41
- /******/ // Execute the module function
42
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
43
- /******/
44
- /******/ // Return the exports of the module
45
- /******/ return module.exports;
46
- /******/ }
47
- /******/
48
- /************************************************************************/
49
- /******/ /* webpack/runtime/define property getters */
50
- /******/ (() => {
51
- /******/ // define getter functions for harmony exports
52
- /******/ __webpack_require__.d = (exports, definition) => {
53
- /******/ for(var key in definition) {
54
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
55
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
56
- /******/ }
57
- /******/ }
58
- /******/ };
59
- /******/ })();
60
- /******/
61
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
62
- /******/ (() => {
63
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
64
- /******/ })();
65
- /******/
66
- /******/ /* webpack/runtime/make namespace object */
67
- /******/ (() => {
68
- /******/ // define __esModule on exports
69
- /******/ __webpack_require__.r = (exports) => {
70
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
71
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
6
+ /******/ /* webpack/runtime/define property getters */
7
+ /******/ (() => {
8
+ /******/ // define getter functions for harmony exports
9
+ /******/ __webpack_require__.d = (exports, definition) => {
10
+ /******/ for(var key in definition) {
11
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
12
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
72
13
  /******/ }
73
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
74
- /******/ };
75
- /******/ })();
76
- /******/
14
+ /******/ }
15
+ /******/ };
16
+ /******/ })();
17
+ /******/
18
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
19
+ /******/ (() => {
20
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
21
+ /******/ })();
22
+ /******/
77
23
  /************************************************************************/
78
24
  var __webpack_exports__ = {};
79
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
80
- (() => {
81
- // ESM COMPAT FLAG
82
- __webpack_require__.r(__webpack_exports__);
83
25
 
84
26
  // EXPORTS
85
27
  __webpack_require__.d(__webpack_exports__, {
86
- "default": () => (/* binding */ angle_double_down_line)
28
+ "Z": () => (/* binding */ angle_double_down_line)
87
29
  });
88
30
 
89
- // EXTERNAL MODULE: external "vue"
90
- var external_vue_ = __webpack_require__(748);
31
+ ;// CONCATENATED MODULE: external "vue"
32
+ var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
33
+ var y = x => () => x
34
+ const external_vue_namespaceObject = x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps });
91
35
  ;// CONCATENATED MODULE: ../../node_modules/tslib/tslib.es6.js
92
36
  /******************************************************************************
93
37
  Copyright (c) Microsoft Corporation.
@@ -370,7 +314,7 @@ function __classPrivateFieldIn(state, receiver) {
370
314
 
371
315
 
372
316
  function generate(node, key, rootAttrs) {
373
- return (0,external_vue_.h)(node.name, Object.assign(Object.assign({
317
+ return (0,external_vue_namespaceObject.h)(node.name, Object.assign(Object.assign({
374
318
  key: key
375
319
  }, node.attributes), {
376
320
  style: "".concat(node.attributes.style, " ").concat(rootAttrs || '')
@@ -394,7 +338,7 @@ var bkIcon = function bkIcon(props, context) {
394
338
  'align-items': 'center',
395
339
  'justify-content': 'center'
396
340
  };
397
- return (0,external_vue_.createVNode)("span", (0,external_vue_.mergeProps)({
341
+ return (0,external_vue_namespaceObject.createVNode)("span", (0,external_vue_namespaceObject.mergeProps)({
398
342
  "style": iconBoxStyle
399
343
  }, restProps), [generate(data, name, rootAttrs)]);
400
344
  };
@@ -409,7 +353,7 @@ var data = JSON.parse('{"type":"element","name":"svg","attributes":{"xmlns":"htt
409
353
 
410
354
  var angleDoubleDownLine = function angleDoubleDownLine(props, context) {
411
355
  var p = Object.assign(Object.assign({}, props), context.attrs);
412
- return (0,external_vue_.createVNode)(icon, (0,external_vue_.mergeProps)(p, {
356
+ return (0,external_vue_namespaceObject.createVNode)(icon, (0,external_vue_namespaceObject.mergeProps)(p, {
413
357
  "data": data,
414
358
  "name": "angleDoubleDownLine"
415
359
  }), null);
@@ -418,9 +362,5 @@ var angleDoubleDownLine = function angleDoubleDownLine(props, context) {
418
362
  angleDoubleDownLine.displayName = 'angleDoubleDownLine';
419
363
  angleDoubleDownLine.inheritAttrs = false;
420
364
  /* harmony default export */ const angle_double_down_line = (angleDoubleDownLine);
421
- })();
422
-
423
- /******/ return __webpack_exports__;
424
- /******/ })()
425
- ;
426
- });
365
+ var __webpack_exports__default = __webpack_exports__.Z;
366
+ export { __webpack_exports__default as default };