bkui-vue 0.0.1-beta.393 → 0.0.1-beta.395

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 (175) hide show
  1. package/dist/index.cjs.js +36 -36
  2. package/dist/index.esm.js +93 -49
  3. package/dist/index.umd.js +36 -36
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -353
  7. package/lib/alert/index.js +1 -251
  8. package/lib/animate-number/index.js +1 -226
  9. package/lib/backtop/index.js +1 -260
  10. package/lib/badge/badge.css +0 -2
  11. package/lib/badge/badge.less +2 -2
  12. package/lib/badge/badge.variable.css +0 -2
  13. package/lib/badge/index.js +1 -274
  14. package/lib/breadcrumb/index.js +1 -329
  15. package/lib/button/index.js +1 -371
  16. package/lib/card/index.js +1 -326
  17. package/lib/cascader/index.js +1 -2168
  18. package/lib/checkbox/index.js +1 -571
  19. package/lib/code-diff/index.js +1 -5520
  20. package/lib/collapse/collapse-panel.d.ts +11 -0
  21. package/lib/collapse/index.d.ts +20 -5
  22. package/lib/collapse/index.js +1 -698
  23. package/lib/collapse/props.d.ts +5 -0
  24. package/lib/color-picker/index.js +1 -2816
  25. package/lib/components.d.ts +2 -0
  26. package/lib/components.js +1 -759
  27. package/lib/container/index.js +1 -369
  28. package/lib/date-picker/index.js +1 -5601
  29. package/lib/dialog/index.js +1 -545
  30. package/lib/directives/index.js +2 -1427
  31. package/lib/directives/index.js.LICENSE.txt +14 -0
  32. package/lib/dist.index.js +1 -166
  33. package/lib/divider/index.js +1 -512
  34. package/lib/dropdown/index.js +1 -414
  35. package/lib/exception/exception.d.ts +13 -0
  36. package/lib/exception/index.d.ts +2 -0
  37. package/lib/exception/index.js +1 -405
  38. package/lib/fixed-navbar/index.js +1 -214
  39. package/lib/form/index.js +1 -986
  40. package/lib/icon/angle-double-down-line.js +1 -426
  41. package/lib/icon/angle-double-left-line.js +1 -426
  42. package/lib/icon/angle-double-left.js +1 -426
  43. package/lib/icon/angle-double-right-line.js +1 -426
  44. package/lib/icon/angle-double-right.js +1 -426
  45. package/lib/icon/angle-double-up-line.js +1 -426
  46. package/lib/icon/angle-down-fill.js +1 -426
  47. package/lib/icon/angle-down-line.js +1 -426
  48. package/lib/icon/angle-down.js +1 -426
  49. package/lib/icon/angle-left.js +1 -426
  50. package/lib/icon/angle-right.js +1 -426
  51. package/lib/icon/angle-up-fill.js +1 -426
  52. package/lib/icon/angle-up.js +1 -426
  53. package/lib/icon/archive-fill.js +1 -426
  54. package/lib/icon/arrows-left.js +1 -426
  55. package/lib/icon/arrows-right.js +1 -426
  56. package/lib/icon/audio-fill.js +1 -426
  57. package/lib/icon/bk.js +1 -426
  58. package/lib/icon/circle.js +1 -426
  59. package/lib/icon/close-line.js +1 -426
  60. package/lib/icon/close.js +1 -426
  61. package/lib/icon/code.js +1 -426
  62. package/lib/icon/cog-shape.js +1 -426
  63. package/lib/icon/collapse-left.js +1 -426
  64. package/lib/icon/copy.js +1 -426
  65. package/lib/icon/data-shape.js +1 -426
  66. package/lib/icon/del.js +1 -426
  67. package/lib/icon/doc-fill.js +1 -426
  68. package/lib/icon/done.js +1 -426
  69. package/lib/icon/down-shape.js +1 -426
  70. package/lib/icon/down-small.js +1 -426
  71. package/lib/icon/edit-line.js +1 -426
  72. package/lib/icon/ellipsis.js +1 -426
  73. package/lib/icon/enlarge-line.js +1 -426
  74. package/lib/icon/error.js +1 -426
  75. package/lib/icon/excel-fill.js +1 -426
  76. package/lib/icon/exclamation-circle-shape.js +1 -426
  77. package/lib/icon/eye.js +1 -426
  78. package/lib/icon/filliscreen-line.js +1 -426
  79. package/lib/icon/folder-open.js +1 -426
  80. package/lib/icon/folder-shape-open.js +1 -426
  81. package/lib/icon/folder-shape.js +1 -426
  82. package/lib/icon/folder.js +1 -426
  83. package/lib/icon/funnel.js +1 -426
  84. package/lib/icon/help-document-fill.js +1 -426
  85. package/lib/icon/help-fill.js +1 -426
  86. package/lib/icon/help.js +1 -426
  87. package/lib/icon/image-fill.js +1 -426
  88. package/lib/icon/img-placehoulder.js +1 -448
  89. package/lib/icon/index.js +1 -2275
  90. package/lib/icon/info-line.js +1 -448
  91. package/lib/icon/info.js +1 -448
  92. package/lib/icon/left-shape.js +1 -448
  93. package/lib/icon/left-turn-line.js +1 -448
  94. package/lib/icon/narrow-line.js +1 -448
  95. package/lib/icon/original.js +1 -448
  96. package/lib/icon/pdf-fill.js +1 -448
  97. package/lib/icon/play-shape.js +1 -448
  98. package/lib/icon/plus.js +1 -448
  99. package/lib/icon/ppt-fill.js +1 -448
  100. package/lib/icon/qq.js +1 -448
  101. package/lib/icon/right-shape.js +1 -448
  102. package/lib/icon/right-turn-line.js +1 -448
  103. package/lib/icon/search.js +1 -448
  104. package/lib/icon/share.js +1 -448
  105. package/lib/icon/spinner.js +1 -448
  106. package/lib/icon/success.js +1 -448
  107. package/lib/icon/switcher-loading.js +1 -448
  108. package/lib/icon/text-file.js +1 -448
  109. package/lib/icon/text-fill.js +1 -448
  110. package/lib/icon/transfer.js +1 -448
  111. package/lib/icon/tree-application-shape.js +1 -448
  112. package/lib/icon/unfull-screen.js +1 -448
  113. package/lib/icon/unvisible.js +1 -448
  114. package/lib/icon/up-shape.js +1 -448
  115. package/lib/icon/upload.js +1 -448
  116. package/lib/icon/video-fill.js +1 -448
  117. package/lib/icon/warn.js +1 -448
  118. package/lib/icon/weixin.js +1 -448
  119. package/lib/image/index.js +1 -873
  120. package/lib/index.js +1 -169
  121. package/lib/info-box/index.js +1 -1784
  122. package/lib/input/index.d.ts +4 -4
  123. package/lib/input/index.js +1 -846
  124. package/lib/input/input.d.ts +1 -1
  125. package/lib/link/index.js +1 -226
  126. package/lib/loading/index.js +1 -309
  127. package/lib/menu/index.js +1 -796
  128. package/lib/message/index.js +1 -401
  129. package/lib/modal/index.js +1 -395
  130. package/lib/navigation/index.js +1 -431
  131. package/lib/notify/index.js +1 -430
  132. package/lib/overflow-title/index.js +1 -512
  133. package/lib/pagination/index.js +1 -1026
  134. package/lib/plugin-popover/index.js +1 -2581
  135. package/lib/plugins/index.js +1 -130
  136. package/lib/popover/index.js +1 -2587
  137. package/lib/popover2/index.js +1 -172
  138. package/lib/preset.js +1 -129
  139. package/lib/process/index.js +1 -1417
  140. package/lib/progress/index.js +1 -479
  141. package/lib/radio/index.js +1 -649
  142. package/lib/rate/index.js +1 -358
  143. package/lib/resize-layout/index.js +1 -495
  144. package/lib/search-select/index.js +1 -3388
  145. package/lib/search-select/search-select.css +1 -1
  146. package/lib/search-select/search-select.less +1 -1
  147. package/lib/search-select/search-select.variable.css +1 -1
  148. package/lib/select/index.d.ts +9 -9
  149. package/lib/select/index.js +1 -2819
  150. package/lib/select/select.css +0 -1
  151. package/lib/select/select.d.ts +3 -3
  152. package/lib/select/select.less +0 -1
  153. package/lib/select/select.variable.css +0 -1
  154. package/lib/select/selectTagInput.d.ts +1 -1
  155. package/lib/shared/index.js +1 -2813
  156. package/lib/shared/vue-types.d.ts +1 -1
  157. package/lib/sideslider/index.js +1 -1362
  158. package/lib/slider/index.js +1 -2060
  159. package/lib/steps/index.js +1 -1504
  160. package/lib/swiper/index.js +1 -374
  161. package/lib/switcher/index.js +1 -308
  162. package/lib/tab/index.d.ts +10 -6
  163. package/lib/tab/index.js +1 -919
  164. package/lib/tab/props.d.ts +6 -0
  165. package/lib/table/index.js +1 -6635
  166. package/lib/table-column/index.js +1 -737
  167. package/lib/tag/index.js +1 -278
  168. package/lib/tag-input/index.js +1 -1897
  169. package/lib/time-picker/index.js +1 -142
  170. package/lib/timeline/index.js +1 -315
  171. package/lib/transfer/index.js +1 -658
  172. package/lib/tree/index.js +1 -2917
  173. package/lib/upload/index.js +1 -3735
  174. package/lib/virtual-render/index.js +1 -825
  175. package/package.json +2 -1
@@ -1,512 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("../shared"), require("vue"), require("vue-types"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["../shared", "vue", "vue-types"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("vue-types")) : factory(root["../shared"], root["vue"], root["vue-types"]);
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__210__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 4212:
16
- /***/ ((module) => {
17
-
18
- module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
19
-
20
- /***/ }),
21
-
22
- /***/ 748:
23
- /***/ ((module) => {
24
-
25
- module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
26
-
27
- /***/ }),
28
-
29
- /***/ 210:
30
- /***/ ((module) => {
31
-
32
- module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
33
-
34
- /***/ })
35
-
36
- /******/ });
37
- /************************************************************************/
38
- /******/ // The module cache
39
- /******/ var __webpack_module_cache__ = {};
40
- /******/
41
- /******/ // The require function
42
- /******/ function __webpack_require__(moduleId) {
43
- /******/ // Check if module is in cache
44
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
45
- /******/ if (cachedModule !== undefined) {
46
- /******/ return cachedModule.exports;
47
- /******/ }
48
- /******/ // Create a new module (and put it into the cache)
49
- /******/ var module = __webpack_module_cache__[moduleId] = {
50
- /******/ // no module.id needed
51
- /******/ // no module.loaded needed
52
- /******/ exports: {}
53
- /******/ };
54
- /******/
55
- /******/ // Execute the module function
56
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
57
- /******/
58
- /******/ // Return the exports of the module
59
- /******/ return module.exports;
60
- /******/ }
61
- /******/
62
- /************************************************************************/
63
- /******/ /* webpack/runtime/define property getters */
64
- /******/ (() => {
65
- /******/ // define getter functions for harmony exports
66
- /******/ __webpack_require__.d = (exports, definition) => {
67
- /******/ for(var key in definition) {
68
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
69
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
70
- /******/ }
71
- /******/ }
72
- /******/ };
73
- /******/ })();
74
- /******/
75
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
76
- /******/ (() => {
77
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
78
- /******/ })();
79
- /******/
80
- /******/ /* webpack/runtime/make namespace object */
81
- /******/ (() => {
82
- /******/ // define __esModule on exports
83
- /******/ __webpack_require__.r = (exports) => {
84
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
85
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
86
- /******/ }
87
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
88
- /******/ };
89
- /******/ })();
90
- /******/
91
- /************************************************************************/
92
- var __webpack_exports__ = {};
93
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
94
- (() => {
95
- // ESM COMPAT FLAG
96
- __webpack_require__.r(__webpack_exports__);
97
-
98
- // EXPORTS
99
- __webpack_require__.d(__webpack_exports__, {
100
- "default": () => (/* binding */ src)
101
- });
102
-
103
- // EXTERNAL MODULE: external "../shared"
104
- var external_shared_ = __webpack_require__(4212);
105
- // EXTERNAL MODULE: external "vue"
106
- var external_vue_ = __webpack_require__(748);
107
- // EXTERNAL MODULE: external "vue-types"
108
- var external_vue_types_ = __webpack_require__(210);
109
- ;// CONCATENATED MODULE: ../../packages/shared/src/vue-types.ts
110
-
111
-
112
-
113
-
114
-
115
-
116
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
117
-
118
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
119
-
120
-
121
- var propTypesNS = (0,external_vue_types_.createTypes)({}); // 用于创建字符串列表映射至 `K: V` 的函数
122
-
123
- function stringEnum(o) {
124
- return o.reduce(function (res, key) {
125
- res[key] = key;
126
- return res;
127
- }, Object.create(null));
128
- }
129
- var SizeEnum;
130
-
131
- (function (SizeEnum) {
132
- SizeEnum["SMALL"] = "small";
133
- SizeEnum["LARGE"] = "large";
134
- SizeEnum["DEFAULT"] = "default";
135
- })(SizeEnum || (SizeEnum = {}));
136
-
137
- var Placements;
138
-
139
- (function (Placements) {
140
- Placements["Top"] = "top";
141
- Placements["Left"] = "left";
142
- Placements["Right"] = "right";
143
- Placements["Bottom"] = "bottom";
144
- })(Placements || (Placements = {}));
145
-
146
- var RenderDirectiveEnum;
147
-
148
- (function (RenderDirectiveEnum) {
149
- RenderDirectiveEnum["IF"] = "if";
150
- RenderDirectiveEnum["SHOW"] = "show";
151
- })(RenderDirectiveEnum || (RenderDirectiveEnum = {}));
152
-
153
- function renderDirectiveType() {
154
- return toType('renderDirective', {
155
- "default": RenderDirectiveEnum.SHOW
156
- });
157
- }
158
- ;
159
- var AlignEnum;
160
-
161
- (function (AlignEnum) {
162
- AlignEnum["LEFT"] = "left";
163
- AlignEnum["CENTER"] = "center";
164
- AlignEnum["RIGHT"] = "right";
165
- })(AlignEnum || (AlignEnum = {}));
166
-
167
- function alignType() {
168
- return (0,external_vue_types_.toType)('align', {
169
- "default": AlignEnum.LEFT
170
- }).def(AlignEnum.LEFT);
171
- }
172
- ;
173
- var ThemeEnum;
174
-
175
- (function (ThemeEnum) {
176
- ThemeEnum["PRIMARY"] = "primary";
177
- ThemeEnum["WARNING"] = "warning";
178
- ThemeEnum["SUCCESS"] = "success";
179
- ThemeEnum["DANGER"] = "danger";
180
- })(ThemeEnum || (ThemeEnum = {}));
181
- /** 弹层出现位置选项 */
182
-
183
-
184
- var PlacementEnum;
185
-
186
- (function (PlacementEnum) {
187
- PlacementEnum["AUTO"] = "auto";
188
- PlacementEnum["AUTO_START"] = "auto-start";
189
- PlacementEnum["AUTO_END"] = "auto-end";
190
- PlacementEnum["TOP"] = "top";
191
- PlacementEnum["RIGHT"] = "right";
192
- PlacementEnum["BOTTOM"] = "bottom";
193
- PlacementEnum["LEFT"] = "left";
194
- PlacementEnum["TOP_START"] = "top-start";
195
- PlacementEnum["TOP_END"] = "top-end";
196
- PlacementEnum["BOTTOM_START"] = "bottom-start";
197
- PlacementEnum["BOTTOM_END"] = "bottom-end";
198
- PlacementEnum["RIGHT_START"] = "right-start";
199
- PlacementEnum["RIGHT_END"] = "right-end";
200
- PlacementEnum["LEFT_START"] = "left-start";
201
- PlacementEnum["LEFT_END"] = "left-end";
202
- })(PlacementEnum || (PlacementEnum = {}));
203
-
204
- function placementType() {
205
- return toType('placement', {}).def(PlacementEnum.BOTTOM);
206
- }
207
- ;
208
- /** 弹层触发选项 */
209
-
210
- var TriggerEnum;
211
-
212
- (function (TriggerEnum) {
213
- TriggerEnum["HOVER"] = "hover";
214
- TriggerEnum["CLICK"] = "click";
215
- TriggerEnum["MANUAL"] = "manual";
216
- })(TriggerEnum || (TriggerEnum = {}));
217
-
218
- function triggerType() {
219
- return toType('trigger', {}).def(TriggerEnum.HOVER);
220
- }
221
- ;
222
- /** 内容渲染类型:目前是在popover内容渲染时使用 */
223
-
224
- var RenderType;
225
-
226
- (function (RenderType) {
227
- RenderType["AUTO"] = "auto";
228
- RenderType["SHOWN"] = "shown"; // 默认不渲染,只有在popover弹出之后才会渲染
229
- })(RenderType || (RenderType = {}));
230
-
231
- function renderType() {
232
- return toType('trigger', {}).def(RenderType.AUTO);
233
- }
234
- ;
235
- var DialogTypeEnum;
236
-
237
- (function (DialogTypeEnum) {
238
- DialogTypeEnum["SHOW"] = "show";
239
- DialogTypeEnum["OPERATION"] = "operation";
240
- DialogTypeEnum["CONFIRM"] = "confirm";
241
- DialogTypeEnum["PROCESS"] = "process";
242
- })(DialogTypeEnum || (DialogTypeEnum = {}));
243
-
244
- function dialogTypeUnion() {
245
- return toType('dialogType', {
246
- "default": DialogTypeEnum.OPERATION
247
- });
248
- }
249
- var DirectionEnum;
250
-
251
- (function (DirectionEnum) {
252
- DirectionEnum["HORIZONTAL"] = "horizontal";
253
- DirectionEnum["VERTICAL"] = "vertical";
254
- })(DirectionEnum || (DirectionEnum = {}));
255
-
256
- function directionType() {
257
- return (0,external_vue_types_.toType)('direction', {}).def(DirectionEnum.HORIZONTAL);
258
- }
259
- var LineStyleEnum;
260
-
261
- (function (LineStyleEnum) {
262
- LineStyleEnum["DASHED"] = "dashed";
263
- LineStyleEnum["SOLID"] = "solid";
264
- })(LineStyleEnum || (LineStyleEnum = {}));
265
-
266
- function lineStyleType() {
267
- return (0,external_vue_types_.toType)('lineType', {}).def(LineStyleEnum.DASHED);
268
- }
269
- ;
270
- var TagThemeEnum;
271
-
272
- (function (TagThemeEnum) {
273
- TagThemeEnum["SUCCESS"] = "success";
274
- TagThemeEnum["INFO"] = "info";
275
- TagThemeEnum["WARNING"] = "warning";
276
- TagThemeEnum["DANGER"] = "danger";
277
- })(TagThemeEnum || (TagThemeEnum = {}));
278
-
279
- function TagThemeType() {
280
- return toType('tagTheme', {}).def();
281
- }
282
- var InputBehaviorEnum;
283
-
284
- (function (InputBehaviorEnum) {
285
- InputBehaviorEnum["SIMPLICITY"] = "simplicity";
286
- InputBehaviorEnum["NORMAL"] = "normal";
287
- })(InputBehaviorEnum || (InputBehaviorEnum = {}));
288
-
289
- function InputBehaviorType() {
290
- return toType('behavior', {}).def(InputBehaviorEnum.NORMAL);
291
- }
292
- ;
293
- var PropTypes = /*#__PURE__*/(/* unused pure expression or super */ null && (function (_propTypesNS) {
294
- _inherits(PropTypes, _propTypesNS);
295
-
296
- var _super = _createSuper(PropTypes);
297
-
298
- function PropTypes() {
299
- _classCallCheck(this, PropTypes);
300
-
301
- return _super.apply(this, arguments);
302
- }
303
-
304
- _createClass(PropTypes, null, [{
305
- key: "size",
306
- value: function size() {
307
- var defaultList = ['small', 'default', 'large'];
308
- return toType('Size', {
309
- validator: function validator(val) {
310
- if (!val || defaultList.includes(val)) {
311
- return true;
312
- }
313
-
314
- console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(defaultList.join(' | '), "\u3011"));
315
- return false;
316
- },
317
- "default": 'default'
318
- });
319
- }
320
- }, {
321
- key: "theme",
322
- value: function theme() {
323
- var themes = ['primary', 'warning', 'success', 'danger'];
324
- return toType('Theme', {
325
- validator: function validator(val) {
326
- if (!val || themes.includes(val)) {
327
- return true;
328
- }
329
-
330
- console.error("invalid theme, ".concat(val, ", the theme must be one of \u3010").concat(themes.join(' | '), "\u3011"));
331
- return false;
332
- }
333
- });
334
- }
335
- }, {
336
- key: "placement",
337
- value: function placement() {
338
- var placements = ['top', 'left', 'right', 'bottom'];
339
- return toType('Placements', {
340
- validator: function validator(val) {
341
- if (!val || placements.includes(val)) {
342
- return true;
343
- }
344
-
345
- console.error("invalid placements, ".concat(val, ", the placement must be one of \u3010").concat(placements.join(' | '), "\u3011"));
346
- return false;
347
- },
348
- "default": 'top'
349
- });
350
- }
351
- }, {
352
- key: "style",
353
- value: function style() {
354
- return toType('Style', {
355
- type: [String, Object]
356
- });
357
- }
358
- }, {
359
- key: "position",
360
- value: function position() {
361
- var positions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ['top-left', 'top-right', 'bottom-left', 'bottom-right'];
362
- return toType('positions', {
363
- type: String,
364
- validator: function validator(val) {
365
- if (!val || positions.includes(val)) {
366
- return true;
367
- }
368
-
369
- console.error("invalid positions, ".concat(val, ", the position must be one of \u3010").concat(positions.join(' | '), "\u3011"));
370
- return false;
371
- },
372
- "default": 'top-center'
373
- });
374
- }
375
- }]);
376
-
377
- return PropTypes;
378
- }(propTypesNS)));
379
- ;// CONCATENATED MODULE: ../../packages/divider/src/props.ts
380
- /*
381
- * Tencent is pleased to support the open source community by making
382
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
383
- *
384
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
385
- *
386
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
387
- *
388
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
389
- *
390
- * ---------------------------------------------------
391
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
392
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
393
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
394
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
395
- *
396
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
397
- * the Software.
398
- *
399
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
400
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
401
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
402
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
403
- * IN THE SOFTWARE.
404
- */
405
-
406
-
407
- var dividerProps = {
408
- direction: directionType(),
409
- align: alignType().def(external_shared_.AlignEnum.CENTER),
410
- color: external_shared_.PropTypes.string.def('#dde4eb'),
411
- width: external_shared_.PropTypes.number.def(1),
412
- type: lineStyleType()
413
- };
414
- ;// CONCATENATED MODULE: ../../packages/divider/src/divider.tsx
415
-
416
-
417
- /*
418
- * Tencent is pleased to support the open source community by making
419
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
420
- *
421
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
422
- *
423
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
424
- *
425
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
426
- *
427
- * ---------------------------------------------------
428
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
429
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
430
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
431
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
432
- *
433
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
434
- * the Software.
435
- *
436
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
437
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
438
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
439
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
440
- * IN THE SOFTWARE.
441
- */
442
-
443
-
444
-
445
- /* harmony default export */ const divider = ((0,external_vue_.defineComponent)({
446
- name: 'Divider',
447
- props: dividerProps,
448
- render: function render() {
449
- var _this = this;
450
-
451
- var styles = function styles() {
452
- if (_this.direction === 'vertical') {
453
- return {
454
- borderRight: "".concat(_this.width, "px ").concat(_this.type, " ").concat(_this.color)
455
- };
456
- }
457
-
458
- return {
459
- borderBottom: "".concat(_this.width, "px ").concat(_this.type, " ").concat(_this.color)
460
- };
461
- };
462
-
463
- var slots;
464
-
465
- if (this.$slots["default"]) {
466
- slots = (0,external_vue_.createVNode)("div", {
467
- "class": [(0,external_shared_.resolveClassName)('divider-info'), (0,external_shared_.resolveClassName)("divider-info-".concat(this.align))]
468
- }, [this.$slots["default"]()]);
469
- }
470
-
471
- return (0,external_vue_.createVNode)("div", {
472
- "class": [(0,external_shared_.resolveClassName)('divider'), (0,external_shared_.resolveClassName)("divider-".concat(this.direction))],
473
- "style": styles()
474
- }, [slots]);
475
- }
476
- }));
477
- ;// CONCATENATED MODULE: ../../packages/divider/src/index.ts
478
- /*
479
- * Tencent is pleased to support the open source community by making
480
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
481
- *
482
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
483
- *
484
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
485
- *
486
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
487
- *
488
- * ---------------------------------------------------
489
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
490
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
491
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
492
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
493
- *
494
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
495
- * the Software.
496
- *
497
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
498
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
499
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
500
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
501
- * IN THE SOFTWARE.
502
- */
503
-
504
-
505
- var BkDivider = (0,external_shared_.withInstall)(divider);
506
- /* harmony default export */ const src = (BkDivider);
507
- })();
508
-
509
- /******/ return __webpack_exports__;
510
- /******/ })()
511
- ;
512
- });
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types")):t(e["../shared"],e.vue,e["vue-types"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={4212:t=>{t.exports=e},748:e=>{e.exports=t},210:e=>{e.exports=o}},n={};function i(e){var t=n[e];if(void 0!==t)return t.exports;var o=n[e]={exports:{}};return r[e](o,o.exports,i),o.exports}i.d=(e,t)=>{for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{default:()=>h});var e,t,o,r,n,a,c,d,f,l,u,p,T,v=i(4212),O=i(748),y=i(210);(0,y.createTypes)({}),function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(e||(e={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(t||(t={})),function(e){e.IF="if",e.SHOW="show"}(o||(o={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(r||(r={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(n||(n={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(a||(a={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(c||(c={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(d||(d={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(f||(f={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(l||(l={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(u||(u={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(p||(p={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(T||(T={}));var E={direction:(0,y.toType)("direction",{}).def(l.HORIZONTAL),align:(0,y.toType)("align",{default:r.LEFT}).def(r.LEFT).def(v.AlignEnum.CENTER),color:v.PropTypes.string.def("#dde4eb"),width:v.PropTypes.number.def(1),type:(0,y.toType)("lineType",{}).def(u.DASHED)};const R=(0,O.defineComponent)({name:"Divider",props:E,render:function(){var e,t=this;return this.$slots.default&&(e=(0,O.createVNode)("div",{class:[(0,v.resolveClassName)("divider-info"),(0,v.resolveClassName)("divider-info-".concat(this.align))]},[this.$slots.default()])),(0,O.createVNode)("div",{class:[(0,v.resolveClassName)("divider"),(0,v.resolveClassName)("divider-".concat(this.direction))],style:"vertical"===t.direction?{borderRight:"".concat(t.width,"px ").concat(t.type," ").concat(t.color)}:{borderBottom:"".concat(t.width,"px ").concat(t.type," ").concat(t.color)}},[e])}}),h=(0,v.withInstall)(R)})(),s})()));