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

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 (155) hide show
  1. package/dist/index.cjs.js +36 -36
  2. package/dist/index.esm.js +33 -3
  3. package/dist/index.umd.js +35 -35
  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/index.js +1 -274
  11. package/lib/breadcrumb/index.js +1 -329
  12. package/lib/button/index.js +1 -371
  13. package/lib/card/index.js +1 -326
  14. package/lib/cascader/index.js +1 -2168
  15. package/lib/checkbox/index.js +1 -571
  16. package/lib/code-diff/index.js +1 -5520
  17. package/lib/collapse/index.js +1 -698
  18. package/lib/color-picker/index.js +1 -2816
  19. package/lib/components.js +1 -759
  20. package/lib/container/index.js +1 -369
  21. package/lib/date-picker/index.js +1 -5601
  22. package/lib/dialog/index.js +1 -545
  23. package/lib/directives/index.js +2 -1427
  24. package/lib/directives/index.js.LICENSE.txt +14 -0
  25. package/lib/dist.index.js +1 -166
  26. package/lib/divider/index.js +1 -512
  27. package/lib/dropdown/index.js +1 -414
  28. package/lib/exception/index.js +1 -405
  29. package/lib/fixed-navbar/index.js +1 -214
  30. package/lib/form/index.js +1 -986
  31. package/lib/icon/angle-double-down-line.js +1 -426
  32. package/lib/icon/angle-double-left-line.js +1 -426
  33. package/lib/icon/angle-double-left.js +1 -426
  34. package/lib/icon/angle-double-right-line.js +1 -426
  35. package/lib/icon/angle-double-right.js +1 -426
  36. package/lib/icon/angle-double-up-line.js +1 -426
  37. package/lib/icon/angle-down-fill.js +1 -426
  38. package/lib/icon/angle-down-line.js +1 -426
  39. package/lib/icon/angle-down.js +1 -426
  40. package/lib/icon/angle-left.js +1 -426
  41. package/lib/icon/angle-right.js +1 -426
  42. package/lib/icon/angle-up-fill.js +1 -426
  43. package/lib/icon/angle-up.js +1 -426
  44. package/lib/icon/archive-fill.js +1 -426
  45. package/lib/icon/arrows-left.js +1 -426
  46. package/lib/icon/arrows-right.js +1 -426
  47. package/lib/icon/audio-fill.js +1 -426
  48. package/lib/icon/bk.js +1 -426
  49. package/lib/icon/circle.js +1 -426
  50. package/lib/icon/close-line.js +1 -426
  51. package/lib/icon/close.js +1 -426
  52. package/lib/icon/code.js +1 -426
  53. package/lib/icon/cog-shape.js +1 -426
  54. package/lib/icon/collapse-left.js +1 -426
  55. package/lib/icon/copy.js +1 -426
  56. package/lib/icon/data-shape.js +1 -426
  57. package/lib/icon/del.js +1 -426
  58. package/lib/icon/doc-fill.js +1 -426
  59. package/lib/icon/done.js +1 -426
  60. package/lib/icon/down-shape.js +1 -426
  61. package/lib/icon/down-small.js +1 -426
  62. package/lib/icon/edit-line.js +1 -426
  63. package/lib/icon/ellipsis.js +1 -426
  64. package/lib/icon/enlarge-line.js +1 -426
  65. package/lib/icon/error.js +1 -426
  66. package/lib/icon/excel-fill.js +1 -426
  67. package/lib/icon/exclamation-circle-shape.js +1 -426
  68. package/lib/icon/eye.js +1 -426
  69. package/lib/icon/filliscreen-line.js +1 -426
  70. package/lib/icon/folder-open.js +1 -426
  71. package/lib/icon/folder-shape-open.js +1 -426
  72. package/lib/icon/folder-shape.js +1 -426
  73. package/lib/icon/folder.js +1 -426
  74. package/lib/icon/funnel.js +1 -426
  75. package/lib/icon/help-document-fill.js +1 -426
  76. package/lib/icon/help-fill.js +1 -426
  77. package/lib/icon/help.js +1 -426
  78. package/lib/icon/image-fill.js +1 -426
  79. package/lib/icon/img-placehoulder.js +1 -448
  80. package/lib/icon/index.js +1 -2275
  81. package/lib/icon/info-line.js +1 -448
  82. package/lib/icon/info.js +1 -448
  83. package/lib/icon/left-shape.js +1 -448
  84. package/lib/icon/left-turn-line.js +1 -448
  85. package/lib/icon/narrow-line.js +1 -448
  86. package/lib/icon/original.js +1 -448
  87. package/lib/icon/pdf-fill.js +1 -448
  88. package/lib/icon/play-shape.js +1 -448
  89. package/lib/icon/plus.js +1 -448
  90. package/lib/icon/ppt-fill.js +1 -448
  91. package/lib/icon/qq.js +1 -448
  92. package/lib/icon/right-shape.js +1 -448
  93. package/lib/icon/right-turn-line.js +1 -448
  94. package/lib/icon/search.js +1 -448
  95. package/lib/icon/share.js +1 -448
  96. package/lib/icon/spinner.js +1 -448
  97. package/lib/icon/success.js +1 -448
  98. package/lib/icon/switcher-loading.js +1 -448
  99. package/lib/icon/text-file.js +1 -448
  100. package/lib/icon/text-fill.js +1 -448
  101. package/lib/icon/transfer.js +1 -448
  102. package/lib/icon/tree-application-shape.js +1 -448
  103. package/lib/icon/unfull-screen.js +1 -448
  104. package/lib/icon/unvisible.js +1 -448
  105. package/lib/icon/up-shape.js +1 -448
  106. package/lib/icon/upload.js +1 -448
  107. package/lib/icon/video-fill.js +1 -448
  108. package/lib/icon/warn.js +1 -448
  109. package/lib/icon/weixin.js +1 -448
  110. package/lib/image/index.js +1 -873
  111. package/lib/index.js +1 -169
  112. package/lib/info-box/index.js +1 -1784
  113. package/lib/input/index.js +1 -846
  114. package/lib/link/index.js +1 -226
  115. package/lib/loading/index.js +1 -309
  116. package/lib/menu/index.js +1 -796
  117. package/lib/message/index.js +1 -401
  118. package/lib/modal/index.js +1 -395
  119. package/lib/navigation/index.js +1 -431
  120. package/lib/notify/index.js +1 -430
  121. package/lib/overflow-title/index.js +1 -512
  122. package/lib/pagination/index.js +1 -1026
  123. package/lib/plugin-popover/index.js +1 -2581
  124. package/lib/plugins/index.js +1 -130
  125. package/lib/popover/index.js +1 -2587
  126. package/lib/popover2/index.js +1 -172
  127. package/lib/preset.js +1 -129
  128. package/lib/process/index.js +1 -1417
  129. package/lib/progress/index.js +1 -479
  130. package/lib/radio/index.js +1 -649
  131. package/lib/rate/index.js +1 -358
  132. package/lib/resize-layout/index.js +1 -495
  133. package/lib/search-select/index.js +1 -3388
  134. package/lib/search-select/search-select.css +1 -1
  135. package/lib/search-select/search-select.less +1 -1
  136. package/lib/search-select/search-select.variable.css +1 -1
  137. package/lib/select/index.js +1 -2819
  138. package/lib/shared/index.js +1 -2813
  139. package/lib/sideslider/index.js +1 -1362
  140. package/lib/slider/index.js +1 -2060
  141. package/lib/steps/index.js +1 -1504
  142. package/lib/swiper/index.js +1 -374
  143. package/lib/switcher/index.js +1 -308
  144. package/lib/tab/index.js +1 -919
  145. package/lib/table/index.js +1 -6635
  146. package/lib/table-column/index.js +1 -737
  147. package/lib/tag/index.js +1 -278
  148. package/lib/tag-input/index.js +1 -1897
  149. package/lib/time-picker/index.js +1 -142
  150. package/lib/timeline/index.js +1 -315
  151. package/lib/transfer/index.js +1 -658
  152. package/lib/tree/index.js +1 -2917
  153. package/lib/upload/index.js +1 -3735
  154. package/lib/virtual-render/index.js +1 -825
  155. package/package.json +2 -1
@@ -1,274 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("../shared"), require("vue"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["../shared", "vue"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("../shared"), require("vue")) : factory(root["../shared"], root["vue"]);
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__) => {
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
- /******/ });
30
- /************************************************************************/
31
- /******/ // The module cache
32
- /******/ var __webpack_module_cache__ = {};
33
- /******/
34
- /******/ // The require function
35
- /******/ function __webpack_require__(moduleId) {
36
- /******/ // Check if module is in cache
37
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
38
- /******/ if (cachedModule !== undefined) {
39
- /******/ return cachedModule.exports;
40
- /******/ }
41
- /******/ // Create a new module (and put it into the cache)
42
- /******/ var module = __webpack_module_cache__[moduleId] = {
43
- /******/ // no module.id needed
44
- /******/ // no module.loaded needed
45
- /******/ exports: {}
46
- /******/ };
47
- /******/
48
- /******/ // Execute the module function
49
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
50
- /******/
51
- /******/ // Return the exports of the module
52
- /******/ return module.exports;
53
- /******/ }
54
- /******/
55
- /************************************************************************/
56
- /******/ /* webpack/runtime/define property getters */
57
- /******/ (() => {
58
- /******/ // define getter functions for harmony exports
59
- /******/ __webpack_require__.d = (exports, definition) => {
60
- /******/ for(var key in definition) {
61
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
62
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
63
- /******/ }
64
- /******/ }
65
- /******/ };
66
- /******/ })();
67
- /******/
68
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
69
- /******/ (() => {
70
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
71
- /******/ })();
72
- /******/
73
- /******/ /* webpack/runtime/make namespace object */
74
- /******/ (() => {
75
- /******/ // define __esModule on exports
76
- /******/ __webpack_require__.r = (exports) => {
77
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
78
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
79
- /******/ }
80
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
81
- /******/ };
82
- /******/ })();
83
- /******/
84
- /************************************************************************/
85
- var __webpack_exports__ = {};
86
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
87
- (() => {
88
- // ESM COMPAT FLAG
89
- __webpack_require__.r(__webpack_exports__);
90
-
91
- // EXPORTS
92
- __webpack_require__.d(__webpack_exports__, {
93
- "default": () => (/* binding */ src)
94
- });
95
-
96
- // EXTERNAL MODULE: external "../shared"
97
- var external_shared_ = __webpack_require__(4212);
98
- ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
99
- function _defineProperty(obj, key, value) {
100
- if (key in obj) {
101
- Object.defineProperty(obj, key, {
102
- value: value,
103
- enumerable: true,
104
- configurable: true,
105
- writable: true
106
- });
107
- } else {
108
- obj[key] = value;
109
- }
110
-
111
- return obj;
112
- }
113
- // EXTERNAL MODULE: external "vue"
114
- var external_vue_ = __webpack_require__(748);
115
- ;// CONCATENATED MODULE: ../../packages/badge/src/badge.tsx
116
-
117
-
118
-
119
- /*
120
- * Tencent is pleased to support the open source community by making
121
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
122
- *
123
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
124
- *
125
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
126
- *
127
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
128
- *
129
- * ---------------------------------------------------
130
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
131
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
132
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
133
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
134
- *
135
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
136
- * the Software.
137
- *
138
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
139
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
140
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
141
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
142
- * IN THE SOFTWARE.
143
- */
144
-
145
-
146
- /* harmony default export */ const badge = ((0,external_vue_.defineComponent)({
147
- name: 'Badge',
148
- props: {
149
- /** badge theme */
150
- theme: external_shared_.PropTypes.string.def('primary'),
151
-
152
- /** Number to show in badge */
153
- count: external_shared_.PropTypes.oneOfType([String, Number]).def(1),
154
- position: external_shared_.PropTypes.string.def('top-right'),
155
- radius: external_shared_.PropTypes.string,
156
- valLength: external_shared_.PropTypes.number.def(3),
157
-
158
- /** Show capped numeric value */
159
- overflowCount: external_shared_.PropTypes.number.def(99),
160
-
161
- /** Whether to show red dots with no content */
162
- dot: external_shared_.PropTypes.bool.def(false),
163
- visible: external_shared_.PropTypes.bool.def(false),
164
-
165
- /** 外部设置的 class name */
166
- extCls: external_shared_.PropTypes.string
167
- },
168
- emits: ['hover', 'leave'],
169
- setup: function setup(props, _ref) {
170
- var emit = _ref.emit;
171
- var numberCount = (0,external_vue_.computed)(function () {
172
- if (typeof props.count === 'string') {
173
- var valueText = props.count;
174
- valueText += '';
175
- var output = [];
176
- var count = 0;
177
- valueText.split('').forEach(function (_char) {
178
- if (count < Number(props.valLength)) {
179
- count += /[\u4e00-\u9fa5]/.test(_char) ? 2 : 1;
180
- output.push(_char);
181
- }
182
- });
183
- return output.join('');
184
- }
185
-
186
- return props.count > props.overflowCount ? "".concat(props.overflowCount, "+") : props.count;
187
- });
188
- var radiusStyle = (0,external_vue_.computed)(function () {
189
- var isRadius = props.radius !== undefined && /^\d+(%|px|em|rem|vh|vw)?$/.test(props.radius);
190
- var radiusValue = isRadius && /^\d+$/.test(props.radius) && "".concat(props.radius, "px") || props.radius;
191
- return {
192
- borderRadius: radiusValue
193
- };
194
- });
195
-
196
- var handleHover = function handleHover() {
197
- /**
198
- * Hover event.
199
- * @event hover
200
- */
201
- emit('hover');
202
- };
203
-
204
- var handleLeave = function handleLeave() {
205
- /**
206
- * Leave event.
207
- * @event Leave
208
- */
209
- emit('leave');
210
- };
211
-
212
- return {
213
- numberCount: numberCount,
214
- handleHover: handleHover,
215
- handleLeave: handleLeave,
216
- radiusStyle: radiusStyle
217
- };
218
- },
219
- render: function render() {
220
- var _classes;
221
-
222
- var _a, _b, _c, _d, _e, _f;
223
-
224
- var wrapperClasses = (0,external_shared_.classes)({
225
- 'bk-badge-main': true
226
- }, this.$props.extCls);
227
- var badgeClass = (0,external_shared_.classes)((_classes = {}, _defineProperty(_classes, "bk-badge bk-".concat(this.$props.theme), !!this.$props.theme), _defineProperty(_classes, 'pinned ', this.$slots["default"]), _defineProperty(_classes, 'dot', this.$props.dot), _defineProperty(_classes, "".concat(this.$props.position), this.$slots["default"]), _defineProperty(_classes, 'bk-badge-icon is-icon', this.$slots.icon), _classes), '');
228
- var number = !this.$props.dot ? (0,external_vue_.createVNode)("span", null, [this.numberCount]) : '';
229
- return (0,external_vue_.createVNode)("div", {
230
- "class": wrapperClasses
231
- }, [(_c = (_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '', !this.$props.visible ? (0,external_vue_.createVNode)("span", {
232
- "class": badgeClass,
233
- "style": this.radiusStyle,
234
- "onMouseenter": this.handleHover,
235
- "onMouseleave": this.handleLeave
236
- }, [(_f = (_e = (_d = this.$slots).icon) === null || _e === void 0 ? void 0 : _e.call(_d)) !== null && _f !== void 0 ? _f : number]) : '']);
237
- }
238
- }));
239
- ;// CONCATENATED MODULE: ../../packages/badge/src/index.ts
240
- /*
241
- * Tencent is pleased to support the open source community by making
242
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
243
- *
244
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
245
- *
246
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
247
- *
248
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
249
- *
250
- * ---------------------------------------------------
251
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
252
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
253
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
254
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
255
- *
256
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
257
- * the Software.
258
- *
259
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
260
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
261
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
262
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
263
- * IN THE SOFTWARE.
264
- */
265
-
266
-
267
- var BkBadge = (0,external_shared_.withInstall)(badge);
268
- /* harmony default export */ const src = (BkBadge);
269
- })();
270
-
271
- /******/ return __webpack_exports__;
272
- /******/ })()
273
- ;
274
- });
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{s.r(n),s.d(n,{default:()=>i});var e=s(4212);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var o=s(748);const r=(0,o.defineComponent)({name:"Badge",props:{theme:e.PropTypes.string.def("primary"),count:e.PropTypes.oneOfType([String,Number]).def(1),position:e.PropTypes.string.def("top-right"),radius:e.PropTypes.string,valLength:e.PropTypes.number.def(3),overflowCount:e.PropTypes.number.def(99),dot:e.PropTypes.bool.def(!1),visible:e.PropTypes.bool.def(!1),extCls:e.PropTypes.string},emits:["hover","leave"],setup:function(e,t){var r=t.emit;return{numberCount:(0,o.computed)((function(){if("string"==typeof e.count){var t=e.count,o=[],r=0;return(t+="").split("").forEach((function(t){r<Number(e.valLength)&&(r+=/[\u4e00-\u9fa5]/.test(t)?2:1,o.push(t))})),o.join("")}return e.count>e.overflowCount?"".concat(e.overflowCount,"+"):e.count})),handleHover:function(){r("hover")},handleLeave:function(){r("leave")},radiusStyle:(0,o.computed)((function(){return{borderRadius:void 0!==e.radius&&/^\d+(%|px|em|rem|vh|vw)?$/.test(e.radius)&&/^\d+$/.test(e.radius)&&"".concat(e.radius,"px")||e.radius}}))}},render:function(){var r,s,n,i,u,a,p,d=(0,e.classes)({"bk-badge-main":!0},this.$props.extCls),l=(0,e.classes)((t(r={},"bk-badge bk-".concat(this.$props.theme),!!this.$props.theme),t(r,"pinned ",this.$slots.default),t(r,"dot",this.$props.dot),t(r,"".concat(this.$props.position),this.$slots.default),t(r,"bk-badge-icon is-icon",this.$slots.icon),r),""),c=this.$props.dot?"":(0,o.createVNode)("span",null,[this.numberCount]);return(0,o.createVNode)("div",{class:d},[null!==(i=null===(n=(s=this.$slots).default)||void 0===n?void 0:n.call(s))&&void 0!==i?i:"",this.$props.visible?"":(0,o.createVNode)("span",{class:l,style:this.radiusStyle,onMouseenter:this.handleHover,onMouseleave:this.handleLeave},[null!==(p=null===(a=(u=this.$slots).icon)||void 0===a?void 0:a.call(u))&&void 0!==p?p:c])])}}),i=(0,e.withInstall)(r)})(),n})()));
@@ -1,329 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("../shared"), require("vue"), require("../icon"));
4
- else if(typeof define === 'function' && define.amd)
5
- define(["../shared", "vue", "../icon"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("../shared"), require("vue"), require("../icon")) : factory(root["../shared"], root["vue"], 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__6870__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ 6870:
16
- /***/ ((module) => {
17
-
18
- module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
19
-
20
- /***/ }),
21
-
22
- /***/ 4212:
23
- /***/ ((module) => {
24
-
25
- module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
26
-
27
- /***/ }),
28
-
29
- /***/ 748:
30
- /***/ ((module) => {
31
-
32
- module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
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
- "BkBreadcrumb": () => (/* binding */ BkBreadcrumb),
101
- "BkBreadcrumbItem": () => (/* reexport */ breadcrumb_item),
102
- "default": () => (/* binding */ src)
103
- });
104
-
105
- // EXTERNAL MODULE: external "../shared"
106
- var external_shared_ = __webpack_require__(4212);
107
- // EXTERNAL MODULE: external "vue"
108
- var external_vue_ = __webpack_require__(748);
109
- // EXTERNAL MODULE: external "../icon"
110
- var external_icon_ = __webpack_require__(6870);
111
- ;// CONCATENATED MODULE: ../../packages/breadcrumb/src/breadcrumb.tsx
112
-
113
-
114
- /*
115
- * Tencent is pleased to support the open source community by making
116
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
117
- *
118
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
119
- *
120
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
121
- *
122
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
123
- *
124
- * ---------------------------------------------------
125
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
126
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
127
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
128
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
129
- *
130
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
131
- * the Software.
132
- *
133
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
134
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
135
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
136
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
137
- * IN THE SOFTWARE.
138
- */
139
-
140
-
141
-
142
- /* harmony default export */ const breadcrumb = ((0,external_vue_.defineComponent)({
143
- name: 'Breadcrumb',
144
- props: {
145
- extCls: external_shared_.PropTypes.string,
146
- separator: external_shared_.PropTypes.string.def('/'),
147
- separatorClass: external_shared_.PropTypes.string,
148
- replace: external_shared_.PropTypes.bool,
149
- backRouter: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.object]).def('')
150
- },
151
- setup: function setup(props, _ref) {
152
- var slots = _ref.slots;
153
-
154
- var _getCurrentInstance = (0,external_vue_.getCurrentInstance)(),
155
- proxy = _getCurrentInstance.proxy,
156
- appContext = _getCurrentInstance.appContext;
157
-
158
- (0,external_vue_.provide)('breadcrumb', props);
159
- (0,external_vue_.onMounted)(function () {
160
- var items = proxy.$el.querySelectorAll('.bk-breadcrumb-item');
161
-
162
- if (items.length) {
163
- items[items.length - 1].setAttribute('aria-current', 'page');
164
- }
165
- });
166
- var classCtx = (0,external_shared_.classes)({
167
- 'bk-breadcrumb': true
168
- }, "".concat(props.extCls || ''));
169
-
170
- var goBack = function goBack() {
171
- var backRouter = props.backRouter,
172
- replace = props.replace;
173
- var $router = appContext.config.globalProperties.$router;
174
- if (!$router) return;
175
- replace ? $router.replace(backRouter) : $router.push(backRouter);
176
- };
177
-
178
- return function () {
179
- var _a;
180
-
181
- return (0,external_vue_.createVNode)("div", {
182
- "class": classCtx,
183
- "aria-label": "Breadcrumb",
184
- "role": "navigation"
185
- }, [!slots.prefix && props.backRouter ? (0,external_vue_.createVNode)("div", {
186
- "class": "bk-breadcrumb-goback"
187
- }, [(0,external_vue_.createVNode)(external_icon_.ArrowsLeft, {
188
- "onClick": goBack
189
- }, null)]) : '', slots.prefix ? (0,external_vue_.createVNode)("div", {
190
- "class": "bk-breadcrumb-goback"
191
- }, [slots.prefix()]) : '', (_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots)]);
192
- };
193
- }
194
- }));
195
- ;// CONCATENATED MODULE: ../../packages/breadcrumb/src/breadcrumb-item.tsx
196
-
197
-
198
- /*
199
- * Tencent is pleased to support the open source community by making
200
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
201
- *
202
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
203
- *
204
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
205
- *
206
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
207
- *
208
- * ---------------------------------------------------
209
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
210
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
211
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
212
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
213
- *
214
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
215
- * the Software.
216
- *
217
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
218
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
219
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
220
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
221
- * IN THE SOFTWARE.
222
- */
223
-
224
-
225
- /* harmony default export */ const breadcrumb_item = ((0,external_vue_.defineComponent)({
226
- name: 'BreadcrumbItem',
227
- props: {
228
- extCls: external_shared_.PropTypes.string,
229
- to: external_shared_.PropTypes.oneOfType([external_shared_.PropTypes.string, external_shared_.PropTypes.object]).def(''),
230
- replace: external_shared_.PropTypes.bool
231
- },
232
- emits: ['click'],
233
- setup: function setup(props, _ref) {
234
- var emit = _ref.emit,
235
- slots = _ref.slots;
236
-
237
- var _getCurrentInstance = (0,external_vue_.getCurrentInstance)(),
238
- appContext = _getCurrentInstance.appContext;
239
-
240
- var parent = (0,external_vue_.inject)('breadcrumb');
241
- var router = appContext.config.globalProperties.$router;
242
-
243
- var handleClick = function handleClick(e) {
244
- emit('click', e);
245
- var to = props.to,
246
- replace = props.replace;
247
- if (!to || !router) return;
248
- replace ? router.replace(to) : router.push(to);
249
- };
250
-
251
- var classCtx = (0,external_shared_.classes)({
252
- 'bk-breadcrumb-item': true
253
- }, "".concat(props.extCls || ''));
254
-
255
- var renderSeparator = function renderSeparator() {
256
- if (slots.separator) {
257
- return slots.separator();
258
- }
259
-
260
- if (parent.separatorClass) {
261
- return (0,external_vue_.createVNode)("i", {
262
- "class": "bk-breadcrumb-separator ".concat(parent.separatorClass)
263
- }, null);
264
- }
265
-
266
- if (parent.separator) {
267
- return (0,external_vue_.createVNode)("span", {
268
- "class": "bk-breadcrumb-separator",
269
- "role": "presentation"
270
- }, [parent === null || parent === void 0 ? void 0 : parent.separator]);
271
- }
272
-
273
- return null;
274
- };
275
-
276
- return function () {
277
- var _a;
278
-
279
- return (0,external_vue_.createVNode)("span", {
280
- "class": classCtx
281
- }, [(0,external_vue_.createVNode)("span", {
282
- "ref": "link",
283
- "class": "bk-breadcrumb-item-inner ".concat(props.to ? 'is-link' : ''),
284
- "role": "link",
285
- "onClick": handleClick
286
- }, [(_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots)]), renderSeparator()]);
287
- };
288
- }
289
- }));
290
- ;// CONCATENATED MODULE: ../../packages/breadcrumb/src/index.ts
291
- /*
292
- * Tencent is pleased to support the open source community by making
293
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
294
- *
295
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
296
- *
297
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
298
- *
299
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
300
- *
301
- * ---------------------------------------------------
302
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
303
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
304
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
305
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
306
- *
307
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
308
- * the Software.
309
- *
310
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
311
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
312
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
313
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
314
- * IN THE SOFTWARE.
315
- */
316
-
317
-
318
-
319
- var BkBreadcrumb = (0,external_shared_.withInstallProps)(breadcrumb, {
320
- Item: breadcrumb_item
321
- });
322
-
323
- /* harmony default export */ const src = (BkBreadcrumb);
324
- })();
325
-
326
- /******/ return __webpack_exports__;
327
- /******/ })()
328
- ;
329
- });
1
+ !function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],r);else{var o="object"==typeof exports?r(require("../shared"),require("vue"),require("../icon")):r(e["../shared"],e.vue,e["../icon"]);for(var t in o)("object"==typeof exports?exports:e)[t]=o[t]}}(self,((e,r,o)=>(()=>{"use strict";var t={6870:e=>{e.exports=o},4212:r=>{r.exports=e},748:e=>{e.exports=r}},a={};function s(e){var r=a[e];if(void 0!==r)return r.exports;var o=a[e]={exports:{}};return t[e](o,o.exports,s),o.exports}s.d=(e,r)=>{for(var o in r)s.o(r,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},s.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{s.r(n),s.d(n,{BkBreadcrumb:()=>c,BkBreadcrumbItem:()=>a,default:()=>p});var e=s(4212),r=s(748),o=s(6870);const t=(0,r.defineComponent)({name:"Breadcrumb",props:{extCls:e.PropTypes.string,separator:e.PropTypes.string.def("/"),separatorClass:e.PropTypes.string,replace:e.PropTypes.bool,backRouter:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.object]).def("")},setup:function(t,a){var s=a.slots,n=(0,r.getCurrentInstance)(),c=n.proxy,p=n.appContext;(0,r.provide)("breadcrumb",t),(0,r.onMounted)((function(){var e=c.$el.querySelectorAll(".bk-breadcrumb-item");e.length&&e[e.length-1].setAttribute("aria-current","page")}));var l=(0,e.classes)({"bk-breadcrumb":!0},"".concat(t.extCls||"")),i=function(){var e=t.backRouter,r=t.replace,o=p.config.globalProperties.$router;o&&(r?o.replace(e):o.push(e))};return function(){var e;return(0,r.createVNode)("div",{class:l,"aria-label":"Breadcrumb",role:"navigation"},[!s.prefix&&t.backRouter?(0,r.createVNode)("div",{class:"bk-breadcrumb-goback"},[(0,r.createVNode)(o.ArrowsLeft,{onClick:i},null)]):"",s.prefix?(0,r.createVNode)("div",{class:"bk-breadcrumb-goback"},[s.prefix()]):"",null===(e=s.default)||void 0===e?void 0:e.call(s)])}}}),a=(0,r.defineComponent)({name:"BreadcrumbItem",props:{extCls:e.PropTypes.string,to:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.object]).def(""),replace:e.PropTypes.bool},emits:["click"],setup:function(o,t){var a=t.emit,s=t.slots,n=(0,r.getCurrentInstance)().appContext,c=(0,r.inject)("breadcrumb"),p=n.config.globalProperties.$router,l=function(e){a("click",e);var r=o.to,t=o.replace;r&&p&&(t?p.replace(r):p.push(r))},i=(0,e.classes)({"bk-breadcrumb-item":!0},"".concat(o.extCls||""));return function(){var e;return(0,r.createVNode)("span",{class:i},[(0,r.createVNode)("span",{ref:"link",class:"bk-breadcrumb-item-inner ".concat(o.to?"is-link":""),role:"link",onClick:l},[null===(e=s.default)||void 0===e?void 0:e.call(s)]),s.separator?s.separator():c.separatorClass?(0,r.createVNode)("i",{class:"bk-breadcrumb-separator ".concat(c.separatorClass)},null):c.separator?(0,r.createVNode)("span",{class:"bk-breadcrumb-separator",role:"presentation"},[null==c?void 0:c.separator]):null])}}});var c=(0,e.withInstallProps)(t,{Item:a});const p=c})(),n})()));