bkui-vue 0.0.1-beta.391 → 0.0.1-beta.392
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/affix/index.js +128 -60
- package/lib/alert/index.js +124 -56
- package/lib/animate-number/index.js +106 -42
- package/lib/backtop/index.js +133 -61
- package/lib/badge/index.js +114 -50
- package/lib/breadcrumb/index.js +133 -67
- package/lib/button/index.js +147 -68
- package/lib/card/index.js +154 -69
- package/lib/cascader/index.js +242 -168
- package/lib/checkbox/index.js +139 -77
- package/lib/code-diff/index.js +121 -79
- package/lib/collapse/index.js +150 -84
- package/lib/color-picker/index.js +245 -193
- package/lib/components.js +671 -434
- package/lib/container/index.js +125 -64
- package/lib/date-picker/index.js +563 -462
- package/lib/dialog/index.js +198 -108
- package/lib/directives/index.js +138 -92
- package/lib/dist.index.js +133 -48
- package/lib/divider/index.js +118 -50
- package/lib/dropdown/index.js +155 -73
- package/lib/exception/index.js +145 -97
- package/lib/fixed-navbar/index.js +107 -43
- package/lib/form/index.js +193 -107
- package/lib/icon/angle-double-down-line.js +90 -30
- package/lib/icon/angle-double-left-line.js +90 -30
- package/lib/icon/angle-double-left.js +90 -30
- package/lib/icon/angle-double-right-line.js +90 -30
- package/lib/icon/angle-double-right.js +90 -30
- package/lib/icon/angle-double-up-line.js +90 -30
- package/lib/icon/angle-down-fill.js +90 -30
- package/lib/icon/angle-down-line.js +90 -30
- package/lib/icon/angle-down.js +90 -30
- package/lib/icon/angle-left.js +90 -30
- package/lib/icon/angle-right.js +90 -30
- package/lib/icon/angle-up-fill.js +90 -30
- package/lib/icon/angle-up.js +90 -30
- package/lib/icon/archive-fill.js +90 -30
- package/lib/icon/arrows-left.js +90 -30
- package/lib/icon/arrows-right.js +90 -30
- package/lib/icon/audio-fill.js +90 -30
- package/lib/icon/bk.js +90 -30
- package/lib/icon/circle.js +90 -30
- package/lib/icon/close-line.js +90 -30
- package/lib/icon/close.js +90 -30
- package/lib/icon/code.js +90 -30
- package/lib/icon/cog-shape.js +90 -30
- package/lib/icon/collapse-left.js +90 -30
- package/lib/icon/copy.js +90 -30
- package/lib/icon/data-shape.js +90 -30
- package/lib/icon/del.js +90 -30
- package/lib/icon/doc-fill.js +90 -30
- package/lib/icon/done.js +90 -30
- package/lib/icon/down-shape.js +90 -30
- package/lib/icon/down-small.js +90 -30
- package/lib/icon/edit-line.js +90 -30
- package/lib/icon/ellipsis.js +90 -30
- package/lib/icon/enlarge-line.js +90 -30
- package/lib/icon/error.js +90 -30
- package/lib/icon/excel-fill.js +90 -30
- package/lib/icon/exclamation-circle-shape.js +90 -30
- package/lib/icon/eye.js +90 -30
- package/lib/icon/filliscreen-line.js +90 -30
- package/lib/icon/folder-open.js +90 -30
- package/lib/icon/folder-shape-open.js +90 -30
- package/lib/icon/folder-shape.js +90 -30
- package/lib/icon/folder.js +90 -30
- package/lib/icon/funnel.js +90 -30
- package/lib/icon/help-document-fill.js +90 -30
- package/lib/icon/help-fill.js +90 -30
- package/lib/icon/help.js +90 -30
- package/lib/icon/image-fill.js +90 -30
- package/lib/icon/img-placehoulder.js +88 -52
- package/lib/icon/index.js +255 -267
- package/lib/icon/info-line.js +88 -52
- package/lib/icon/info.js +88 -52
- package/lib/icon/left-shape.js +88 -52
- package/lib/icon/left-turn-line.js +88 -52
- package/lib/icon/narrow-line.js +88 -52
- package/lib/icon/original.js +88 -52
- package/lib/icon/pdf-fill.js +88 -52
- package/lib/icon/play-shape.js +88 -52
- package/lib/icon/plus.js +88 -52
- package/lib/icon/ppt-fill.js +88 -52
- package/lib/icon/qq.js +88 -52
- package/lib/icon/right-shape.js +88 -52
- package/lib/icon/right-turn-line.js +88 -52
- package/lib/icon/search.js +88 -52
- package/lib/icon/share.js +88 -52
- package/lib/icon/spinner.js +88 -52
- package/lib/icon/success.js +88 -52
- package/lib/icon/switcher-loading.js +88 -52
- package/lib/icon/text-file.js +88 -52
- package/lib/icon/text-fill.js +88 -52
- package/lib/icon/transfer.js +88 -52
- package/lib/icon/tree-application-shape.js +88 -52
- package/lib/icon/unfull-screen.js +88 -52
- package/lib/icon/unvisible.js +88 -52
- package/lib/icon/up-shape.js +88 -52
- package/lib/icon/upload.js +88 -52
- package/lib/icon/video-fill.js +88 -52
- package/lib/icon/warn.js +88 -52
- package/lib/icon/weixin.js +88 -52
- package/lib/image/index.js +213 -164
- package/lib/index.js +134 -50
- package/lib/info-box/index.js +206 -152
- package/lib/input/index.js +167 -99
- package/lib/link/index.js +115 -47
- package/lib/loading/index.js +127 -67
- package/lib/menu/index.js +156 -92
- package/lib/message/index.js +148 -76
- package/lib/modal/index.js +151 -85
- package/lib/navigation/index.js +134 -66
- package/lib/notify/index.js +153 -81
- package/lib/overflow-title/index.js +128 -92
- package/lib/pagination/index.js +220 -131
- package/lib/plugin-popover/index.js +190 -143
- package/lib/plugins/index.js +100 -33
- package/lib/popover/index.js +193 -148
- package/lib/popover2/index.js +99 -35
- package/lib/preset.js +104 -37
- package/lib/process/index.js +134 -92
- package/lib/progress/index.js +127 -63
- package/lib/radio/index.js +142 -81
- package/lib/rate/index.js +127 -63
- package/lib/resize-layout/index.js +147 -79
- package/lib/search-select/index.js +220 -168
- package/lib/select/index.js +394 -315
- package/lib/shared/index.js +203 -228
- package/lib/sideslider/index.js +137 -88
- package/lib/slider/index.js +196 -147
- package/lib/steps/index.js +152 -105
- package/lib/swiper/index.js +126 -62
- package/lib/switcher/index.js +133 -65
- package/lib/tab/index.js +188 -118
- package/lib/table/index.js +572 -457
- package/lib/table-column/index.js +197 -129
- package/lib/tag/index.js +130 -58
- package/lib/tag-input/index.js +277 -175
- package/lib/time-picker/index.js +111 -40
- package/lib/timeline/index.js +114 -50
- package/lib/transfer/index.js +174 -89
- package/lib/tree/index.js +235 -158
- package/lib/upload/index.js +227 -173
- package/lib/virtual-render/index.js +154 -86
- package/package.json +1 -1
package/lib/badge/index.js
CHANGED
@@ -1,38 +1,100 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
+
/******/ });
|
6
30
|
/************************************************************************/
|
7
|
-
/******/
|
8
|
-
/******/
|
9
|
-
/******/
|
10
|
-
/******/
|
11
|
-
/******/
|
12
|
-
/******/
|
13
|
-
/******/
|
14
|
-
/******/
|
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;
|
15
40
|
/******/ }
|
16
|
-
/******/
|
17
|
-
/******/
|
18
|
-
/******/
|
19
|
-
/******/
|
20
|
-
/******/
|
21
|
-
/******/
|
22
|
-
/******/
|
23
|
-
/******/
|
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
|
+
/******/
|
24
84
|
/************************************************************************/
|
25
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__);
|
26
90
|
|
27
91
|
// EXPORTS
|
28
92
|
__webpack_require__.d(__webpack_exports__, {
|
29
|
-
"
|
93
|
+
"default": () => (/* binding */ src)
|
30
94
|
});
|
31
95
|
|
32
|
-
|
33
|
-
var
|
34
|
-
var y = x => () => x
|
35
|
-
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
96
|
+
// EXTERNAL MODULE: external "../shared"
|
97
|
+
var external_shared_ = __webpack_require__(4212);
|
36
98
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
37
99
|
function _defineProperty(obj, key, value) {
|
38
100
|
if (key in obj) {
|
@@ -48,10 +110,8 @@ function _defineProperty(obj, key, value) {
|
|
48
110
|
|
49
111
|
return obj;
|
50
112
|
}
|
51
|
-
|
52
|
-
var
|
53
|
-
var external_vue_y = x => () => x
|
54
|
-
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 });
|
113
|
+
// EXTERNAL MODULE: external "vue"
|
114
|
+
var external_vue_ = __webpack_require__(748);
|
55
115
|
;// CONCATENATED MODULE: ../../packages/badge/src/badge.tsx
|
56
116
|
|
57
117
|
|
@@ -83,32 +143,32 @@ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBP
|
|
83
143
|
*/
|
84
144
|
|
85
145
|
|
86
|
-
/* harmony default export */ const badge = ((0,
|
146
|
+
/* harmony default export */ const badge = ((0,external_vue_.defineComponent)({
|
87
147
|
name: 'Badge',
|
88
148
|
props: {
|
89
149
|
/** badge theme */
|
90
|
-
theme:
|
150
|
+
theme: external_shared_.PropTypes.string.def('primary'),
|
91
151
|
|
92
152
|
/** Number to show in badge */
|
93
|
-
count:
|
94
|
-
position:
|
95
|
-
radius:
|
96
|
-
valLength:
|
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),
|
97
157
|
|
98
158
|
/** Show capped numeric value */
|
99
|
-
overflowCount:
|
159
|
+
overflowCount: external_shared_.PropTypes.number.def(99),
|
100
160
|
|
101
161
|
/** Whether to show red dots with no content */
|
102
|
-
dot:
|
103
|
-
visible:
|
162
|
+
dot: external_shared_.PropTypes.bool.def(false),
|
163
|
+
visible: external_shared_.PropTypes.bool.def(false),
|
104
164
|
|
105
165
|
/** 外部设置的 class name */
|
106
|
-
extCls:
|
166
|
+
extCls: external_shared_.PropTypes.string
|
107
167
|
},
|
108
168
|
emits: ['hover', 'leave'],
|
109
169
|
setup: function setup(props, _ref) {
|
110
170
|
var emit = _ref.emit;
|
111
|
-
var numberCount = (0,
|
171
|
+
var numberCount = (0,external_vue_.computed)(function () {
|
112
172
|
if (typeof props.count === 'string') {
|
113
173
|
var valueText = props.count;
|
114
174
|
valueText += '';
|
@@ -125,7 +185,7 @@ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBP
|
|
125
185
|
|
126
186
|
return props.count > props.overflowCount ? "".concat(props.overflowCount, "+") : props.count;
|
127
187
|
});
|
128
|
-
var radiusStyle = (0,
|
188
|
+
var radiusStyle = (0,external_vue_.computed)(function () {
|
129
189
|
var isRadius = props.radius !== undefined && /^\d+(%|px|em|rem|vh|vw)?$/.test(props.radius);
|
130
190
|
var radiusValue = isRadius && /^\d+$/.test(props.radius) && "".concat(props.radius, "px") || props.radius;
|
131
191
|
return {
|
@@ -161,14 +221,14 @@ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBP
|
|
161
221
|
|
162
222
|
var _a, _b, _c, _d, _e, _f;
|
163
223
|
|
164
|
-
var wrapperClasses = (0,
|
224
|
+
var wrapperClasses = (0,external_shared_.classes)({
|
165
225
|
'bk-badge-main': true
|
166
226
|
}, this.$props.extCls);
|
167
|
-
var badgeClass = (0,
|
168
|
-
var number = !this.$props.dot ? (0,
|
169
|
-
return (0,
|
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", {
|
170
230
|
"class": wrapperClasses
|
171
|
-
}, [(_c = (_b = (_a = this.$slots)["default"]) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : '', !this.$props.visible ? (0,
|
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", {
|
172
232
|
"class": badgeClass,
|
173
233
|
"style": this.radiusStyle,
|
174
234
|
"onMouseenter": this.handleHover,
|
@@ -204,7 +264,11 @@ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBP
|
|
204
264
|
*/
|
205
265
|
|
206
266
|
|
207
|
-
var BkBadge = (0,
|
267
|
+
var BkBadge = (0,external_shared_.withInstall)(badge);
|
208
268
|
/* harmony default export */ const src = (BkBadge);
|
209
|
-
|
210
|
-
|
269
|
+
})();
|
270
|
+
|
271
|
+
/******/ return __webpack_exports__;
|
272
|
+
/******/ })()
|
273
|
+
;
|
274
|
+
});
|
package/lib/breadcrumb/index.js
CHANGED
@@ -1,49 +1,113 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
+
/******/ });
|
7
37
|
/************************************************************************/
|
8
|
-
/******/
|
9
|
-
/******/
|
10
|
-
/******/
|
11
|
-
/******/
|
12
|
-
/******/
|
13
|
-
/******/
|
14
|
-
/******/
|
15
|
-
/******/
|
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;
|
16
47
|
/******/ }
|
17
|
-
/******/
|
18
|
-
/******/
|
19
|
-
/******/
|
20
|
-
/******/
|
21
|
-
/******/
|
22
|
-
/******/
|
23
|
-
/******/
|
24
|
-
/******/
|
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
|
+
/******/
|
25
91
|
/************************************************************************/
|
26
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__);
|
27
97
|
|
28
98
|
// EXPORTS
|
29
99
|
__webpack_require__.d(__webpack_exports__, {
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
100
|
+
"BkBreadcrumb": () => (/* binding */ BkBreadcrumb),
|
101
|
+
"BkBreadcrumbItem": () => (/* reexport */ breadcrumb_item),
|
102
|
+
"default": () => (/* binding */ src)
|
33
103
|
});
|
34
104
|
|
35
|
-
|
36
|
-
var
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
var
|
41
|
-
var external_vue_y = x => () => x
|
42
|
-
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide });
|
43
|
-
;// CONCATENATED MODULE: external "../icon"
|
44
|
-
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
45
|
-
var external_icon_y = x => () => x
|
46
|
-
const external_icon_namespaceObject = external_icon_x({ ["ArrowsLeft"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.ArrowsLeft });
|
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);
|
47
111
|
;// CONCATENATED MODULE: ../../packages/breadcrumb/src/breadcrumb.tsx
|
48
112
|
|
49
113
|
|
@@ -75,31 +139,31 @@ const external_icon_namespaceObject = external_icon_x({ ["ArrowsLeft"]: () => __
|
|
75
139
|
|
76
140
|
|
77
141
|
|
78
|
-
/* harmony default export */ const breadcrumb = ((0,
|
142
|
+
/* harmony default export */ const breadcrumb = ((0,external_vue_.defineComponent)({
|
79
143
|
name: 'Breadcrumb',
|
80
144
|
props: {
|
81
|
-
extCls:
|
82
|
-
separator:
|
83
|
-
separatorClass:
|
84
|
-
replace:
|
85
|
-
backRouter:
|
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('')
|
86
150
|
},
|
87
151
|
setup: function setup(props, _ref) {
|
88
152
|
var slots = _ref.slots;
|
89
153
|
|
90
|
-
var _getCurrentInstance = (0,
|
154
|
+
var _getCurrentInstance = (0,external_vue_.getCurrentInstance)(),
|
91
155
|
proxy = _getCurrentInstance.proxy,
|
92
156
|
appContext = _getCurrentInstance.appContext;
|
93
157
|
|
94
|
-
(0,
|
95
|
-
(0,
|
158
|
+
(0,external_vue_.provide)('breadcrumb', props);
|
159
|
+
(0,external_vue_.onMounted)(function () {
|
96
160
|
var items = proxy.$el.querySelectorAll('.bk-breadcrumb-item');
|
97
161
|
|
98
162
|
if (items.length) {
|
99
163
|
items[items.length - 1].setAttribute('aria-current', 'page');
|
100
164
|
}
|
101
165
|
});
|
102
|
-
var classCtx = (0,
|
166
|
+
var classCtx = (0,external_shared_.classes)({
|
103
167
|
'bk-breadcrumb': true
|
104
168
|
}, "".concat(props.extCls || ''));
|
105
169
|
|
@@ -114,15 +178,15 @@ const external_icon_namespaceObject = external_icon_x({ ["ArrowsLeft"]: () => __
|
|
114
178
|
return function () {
|
115
179
|
var _a;
|
116
180
|
|
117
|
-
return (0,
|
181
|
+
return (0,external_vue_.createVNode)("div", {
|
118
182
|
"class": classCtx,
|
119
183
|
"aria-label": "Breadcrumb",
|
120
184
|
"role": "navigation"
|
121
|
-
}, [!slots.prefix && props.backRouter ? (0,
|
185
|
+
}, [!slots.prefix && props.backRouter ? (0,external_vue_.createVNode)("div", {
|
122
186
|
"class": "bk-breadcrumb-goback"
|
123
|
-
}, [(0,
|
187
|
+
}, [(0,external_vue_.createVNode)(external_icon_.ArrowsLeft, {
|
124
188
|
"onClick": goBack
|
125
|
-
}, null)]) : '', slots.prefix ? (0,
|
189
|
+
}, null)]) : '', slots.prefix ? (0,external_vue_.createVNode)("div", {
|
126
190
|
"class": "bk-breadcrumb-goback"
|
127
191
|
}, [slots.prefix()]) : '', (_a = slots["default"]) === null || _a === void 0 ? void 0 : _a.call(slots)]);
|
128
192
|
};
|
@@ -158,22 +222,22 @@ const external_icon_namespaceObject = external_icon_x({ ["ArrowsLeft"]: () => __
|
|
158
222
|
*/
|
159
223
|
|
160
224
|
|
161
|
-
/* harmony default export */ const breadcrumb_item = ((0,
|
225
|
+
/* harmony default export */ const breadcrumb_item = ((0,external_vue_.defineComponent)({
|
162
226
|
name: 'BreadcrumbItem',
|
163
227
|
props: {
|
164
|
-
extCls:
|
165
|
-
to:
|
166
|
-
replace:
|
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
|
167
231
|
},
|
168
232
|
emits: ['click'],
|
169
233
|
setup: function setup(props, _ref) {
|
170
234
|
var emit = _ref.emit,
|
171
235
|
slots = _ref.slots;
|
172
236
|
|
173
|
-
var _getCurrentInstance = (0,
|
237
|
+
var _getCurrentInstance = (0,external_vue_.getCurrentInstance)(),
|
174
238
|
appContext = _getCurrentInstance.appContext;
|
175
239
|
|
176
|
-
var parent = (0,
|
240
|
+
var parent = (0,external_vue_.inject)('breadcrumb');
|
177
241
|
var router = appContext.config.globalProperties.$router;
|
178
242
|
|
179
243
|
var handleClick = function handleClick(e) {
|
@@ -184,7 +248,7 @@ const external_icon_namespaceObject = external_icon_x({ ["ArrowsLeft"]: () => __
|
|
184
248
|
replace ? router.replace(to) : router.push(to);
|
185
249
|
};
|
186
250
|
|
187
|
-
var classCtx = (0,
|
251
|
+
var classCtx = (0,external_shared_.classes)({
|
188
252
|
'bk-breadcrumb-item': true
|
189
253
|
}, "".concat(props.extCls || ''));
|
190
254
|
|
@@ -194,13 +258,13 @@ const external_icon_namespaceObject = external_icon_x({ ["ArrowsLeft"]: () => __
|
|
194
258
|
}
|
195
259
|
|
196
260
|
if (parent.separatorClass) {
|
197
|
-
return (0,
|
261
|
+
return (0,external_vue_.createVNode)("i", {
|
198
262
|
"class": "bk-breadcrumb-separator ".concat(parent.separatorClass)
|
199
263
|
}, null);
|
200
264
|
}
|
201
265
|
|
202
266
|
if (parent.separator) {
|
203
|
-
return (0,
|
267
|
+
return (0,external_vue_.createVNode)("span", {
|
204
268
|
"class": "bk-breadcrumb-separator",
|
205
269
|
"role": "presentation"
|
206
270
|
}, [parent === null || parent === void 0 ? void 0 : parent.separator]);
|
@@ -212,9 +276,9 @@ const external_icon_namespaceObject = external_icon_x({ ["ArrowsLeft"]: () => __
|
|
212
276
|
return function () {
|
213
277
|
var _a;
|
214
278
|
|
215
|
-
return (0,
|
279
|
+
return (0,external_vue_.createVNode)("span", {
|
216
280
|
"class": classCtx
|
217
|
-
}, [(0,
|
281
|
+
}, [(0,external_vue_.createVNode)("span", {
|
218
282
|
"ref": "link",
|
219
283
|
"class": "bk-breadcrumb-item-inner ".concat(props.to ? 'is-link' : ''),
|
220
284
|
"role": "link",
|
@@ -252,12 +316,14 @@ const external_icon_namespaceObject = external_icon_x({ ["ArrowsLeft"]: () => __
|
|
252
316
|
|
253
317
|
|
254
318
|
|
255
|
-
var BkBreadcrumb = (0,
|
319
|
+
var BkBreadcrumb = (0,external_shared_.withInstallProps)(breadcrumb, {
|
256
320
|
Item: breadcrumb_item
|
257
321
|
});
|
258
322
|
|
259
323
|
/* harmony default export */ const src = (BkBreadcrumb);
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
324
|
+
})();
|
325
|
+
|
326
|
+
/******/ return __webpack_exports__;
|
327
|
+
/******/ })()
|
328
|
+
;
|
329
|
+
});
|