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