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/tag-input/index.js
CHANGED
@@ -1,154 +1,44 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
/******/ "use strict";
|
13
|
-
/******/ var __webpack_modules__ = ({
|
14
|
-
|
15
|
-
/***/ 4061:
|
16
|
-
/***/ ((module) => {
|
17
|
-
|
18
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4061__;
|
19
|
-
|
20
|
-
/***/ }),
|
21
|
-
|
22
|
-
/***/ 6870:
|
23
|
-
/***/ ((module) => {
|
24
|
-
|
25
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__6870__;
|
26
|
-
|
27
|
-
/***/ }),
|
28
|
-
|
29
|
-
/***/ 4870:
|
30
|
-
/***/ ((module) => {
|
31
|
-
|
32
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4870__;
|
33
|
-
|
34
|
-
/***/ }),
|
35
|
-
|
36
|
-
/***/ 5537:
|
37
|
-
/***/ ((module) => {
|
38
|
-
|
39
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__5537__;
|
40
|
-
|
41
|
-
/***/ }),
|
42
|
-
|
43
|
-
/***/ 4212:
|
44
|
-
/***/ ((module) => {
|
45
|
-
|
46
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__4212__;
|
47
|
-
|
48
|
-
/***/ }),
|
49
|
-
|
50
|
-
/***/ 467:
|
51
|
-
/***/ ((module) => {
|
52
|
-
|
53
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__467__;
|
54
|
-
|
55
|
-
/***/ }),
|
56
|
-
|
57
|
-
/***/ 748:
|
58
|
-
/***/ ((module) => {
|
59
|
-
|
60
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__748__;
|
61
|
-
|
62
|
-
/***/ }),
|
63
|
-
|
64
|
-
/***/ 210:
|
65
|
-
/***/ ((module) => {
|
66
|
-
|
67
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__210__;
|
68
|
-
|
69
|
-
/***/ })
|
70
|
-
|
71
|
-
/******/ });
|
72
|
-
/************************************************************************/
|
73
|
-
/******/ // The module cache
|
74
|
-
/******/ var __webpack_module_cache__ = {};
|
75
|
-
/******/
|
76
|
-
/******/ // The require function
|
77
|
-
/******/ function __webpack_require__(moduleId) {
|
78
|
-
/******/ // Check if module is in cache
|
79
|
-
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
80
|
-
/******/ if (cachedModule !== undefined) {
|
81
|
-
/******/ return cachedModule.exports;
|
82
|
-
/******/ }
|
83
|
-
/******/ // Create a new module (and put it into the cache)
|
84
|
-
/******/ var module = __webpack_module_cache__[moduleId] = {
|
85
|
-
/******/ // no module.id needed
|
86
|
-
/******/ // no module.loaded needed
|
87
|
-
/******/ exports: {}
|
88
|
-
/******/ };
|
89
|
-
/******/
|
90
|
-
/******/ // Execute the module function
|
91
|
-
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
92
|
-
/******/
|
93
|
-
/******/ // Return the exports of the module
|
94
|
-
/******/ return module.exports;
|
95
|
-
/******/ }
|
96
|
-
/******/
|
1
|
+
import * as __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__ from "../shared";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__ from "../directives";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__ from "../icon";
|
6
|
+
import * as __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__ from "../loading";
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__ from "../popover";
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
9
|
+
/******/ // The require scope
|
10
|
+
/******/ var __webpack_require__ = {};
|
11
|
+
/******/
|
97
12
|
/************************************************************************/
|
98
|
-
/******/
|
99
|
-
/******/
|
100
|
-
/******/
|
101
|
-
/******/
|
102
|
-
/******/
|
103
|
-
/******/
|
104
|
-
/******/ (
|
105
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
106
|
-
/******/ return getter;
|
107
|
-
/******/ };
|
108
|
-
/******/ })();
|
109
|
-
/******/
|
110
|
-
/******/ /* webpack/runtime/define property getters */
|
111
|
-
/******/ (() => {
|
112
|
-
/******/ // define getter functions for harmony exports
|
113
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
114
|
-
/******/ for(var key in definition) {
|
115
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
116
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
117
|
-
/******/ }
|
13
|
+
/******/ /* webpack/runtime/define property getters */
|
14
|
+
/******/ (() => {
|
15
|
+
/******/ // define getter functions for harmony exports
|
16
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
17
|
+
/******/ for(var key in definition) {
|
18
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
19
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
118
20
|
/******/ }
|
119
|
-
/******/ }
|
120
|
-
/******/ }
|
121
|
-
/******/
|
122
|
-
/******/
|
123
|
-
/******/
|
124
|
-
/******/
|
125
|
-
/******/
|
126
|
-
/******/
|
127
|
-
/******/
|
128
|
-
/******/ (() => {
|
129
|
-
/******/ // define __esModule on exports
|
130
|
-
/******/ __webpack_require__.r = (exports) => {
|
131
|
-
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
132
|
-
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
133
|
-
/******/ }
|
134
|
-
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
135
|
-
/******/ };
|
136
|
-
/******/ })();
|
137
|
-
/******/
|
21
|
+
/******/ }
|
22
|
+
/******/ };
|
23
|
+
/******/ })();
|
24
|
+
/******/
|
25
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
26
|
+
/******/ (() => {
|
27
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
28
|
+
/******/ })();
|
29
|
+
/******/
|
138
30
|
/************************************************************************/
|
139
31
|
var __webpack_exports__ = {};
|
140
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
141
|
-
(() => {
|
142
|
-
// ESM COMPAT FLAG
|
143
|
-
__webpack_require__.r(__webpack_exports__);
|
144
32
|
|
145
33
|
// EXPORTS
|
146
34
|
__webpack_require__.d(__webpack_exports__, {
|
147
|
-
"
|
35
|
+
"Z": () => (/* binding */ src)
|
148
36
|
});
|
149
37
|
|
150
|
-
|
151
|
-
var
|
38
|
+
;// CONCATENATED MODULE: external "../shared"
|
39
|
+
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
40
|
+
var y = x => () => x
|
41
|
+
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["checkOverflow"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.checkOverflow, ["useFormItem"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.useFormItem, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
152
42
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
153
43
|
function _typeof(obj) {
|
154
44
|
"@babel/helpers - typeof";
|
@@ -261,20 +151,30 @@ function _nonIterableSpread() {
|
|
261
151
|
function _toConsumableArray(arr) {
|
262
152
|
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
263
153
|
}
|
264
|
-
|
265
|
-
var
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
var
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
var
|
274
|
-
var
|
275
|
-
|
276
|
-
|
277
|
-
var
|
154
|
+
;// CONCATENATED MODULE: external "vue"
|
155
|
+
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
156
|
+
var external_vue_y = x => () => x
|
157
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["markRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.markRaw, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
158
|
+
;// CONCATENATED MODULE: external "lodash"
|
159
|
+
var external_lodash_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
160
|
+
var external_lodash_y = x => () => x
|
161
|
+
const external_lodash_namespaceObject = external_lodash_x({ ["debounce"]: () => __WEBPACK_EXTERNAL_MODULE_lodash__.debounce });
|
162
|
+
;// CONCATENATED MODULE: external "../directives"
|
163
|
+
var external_directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
164
|
+
var external_directives_y = x => () => x
|
165
|
+
const external_directives_namespaceObject = external_directives_x({ ["bkTooltips"]: () => __WEBPACK_EXTERNAL_MODULE__directives_9cc9ba10__.bkTooltips });
|
166
|
+
;// CONCATENATED MODULE: external "../icon"
|
167
|
+
var external_icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
168
|
+
var external_icon_y = x => () => x
|
169
|
+
const external_icon_namespaceObject = external_icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE__icon_85385c3e__.Error });
|
170
|
+
;// CONCATENATED MODULE: external "../loading"
|
171
|
+
var external_loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
172
|
+
var external_loading_y = x => () => x
|
173
|
+
const external_loading_namespaceObject = external_loading_x({ ["BkLoadingSize"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__.BkLoadingSize, ["default"]: () => __WEBPACK_EXTERNAL_MODULE__loading_4d683b23__["default"] });
|
174
|
+
;// CONCATENATED MODULE: external "../popover"
|
175
|
+
var external_popover_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
176
|
+
var external_popover_y = x => () => x
|
177
|
+
const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
|
278
178
|
;// CONCATENATED MODULE: ../../packages/tag-input/src/common.ts
|
279
179
|
|
280
180
|
|
@@ -326,7 +226,7 @@ function useDebouncedRef(value) {
|
|
326
226
|
});
|
327
227
|
}
|
328
228
|
function usePage(pageSize) {
|
329
|
-
var state = (0,
|
229
|
+
var state = (0,external_vue_namespaceObject.reactive)({
|
330
230
|
curPage: 1,
|
331
231
|
totalSize: 0,
|
332
232
|
totalPage: 0,
|
@@ -373,17 +273,17 @@ function usePage(pageSize) {
|
|
373
273
|
};
|
374
274
|
}
|
375
275
|
function useFlatList(props) {
|
376
|
-
var _toRefs = (0,
|
276
|
+
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
377
277
|
useGroup = _toRefs.useGroup,
|
378
278
|
saveKey = _toRefs.saveKey,
|
379
279
|
displayKey = _toRefs.displayKey,
|
380
280
|
list = _toRefs.list;
|
381
281
|
|
382
|
-
var flatList = (0,
|
383
|
-
var saveKeyMap = (0,
|
384
|
-
(0,
|
282
|
+
var flatList = (0,external_vue_namespaceObject.ref)([]);
|
283
|
+
var saveKeyMap = (0,external_vue_namespaceObject.ref)({});
|
284
|
+
(0,external_vue_namespaceObject.watch)([useGroup, saveKey, displayKey, list], function () {
|
385
285
|
flatList.value = [];
|
386
|
-
var formatList = (0,
|
286
|
+
var formatList = (0,external_vue_namespaceObject.markRaw)(list.value);
|
387
287
|
|
388
288
|
if (useGroup.value) {
|
389
289
|
formatList = formatList.reduce(function (formatList, item) {
|
@@ -446,12 +346,12 @@ var getCharLength = function getCharLength(str) {
|
|
446
346
|
*/
|
447
347
|
|
448
348
|
var useTagsOverflow = function useTagsOverflow(tagInputRef, collapseTags, selectedTagList) {
|
449
|
-
(0,
|
349
|
+
(0,external_vue_namespaceObject.watch)([selectedTagList, collapseTags], function () {
|
450
350
|
calcOverflow();
|
451
351
|
}, {
|
452
352
|
flush: 'post'
|
453
353
|
});
|
454
|
-
var overflowTagIndex = (0,
|
354
|
+
var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null); // 计算出现换行的索引
|
455
355
|
|
456
356
|
var calcOverflow = function calcOverflow() {
|
457
357
|
if (!collapseTags.value) return;
|
@@ -504,13 +404,13 @@ var useTagsOverflow = function useTagsOverflow(tagInputRef, collapseTags, select
|
|
504
404
|
*/
|
505
405
|
|
506
406
|
|
507
|
-
/* harmony default export */ const list_tag_render = ((0,
|
407
|
+
/* harmony default export */ const list_tag_render = ((0,external_vue_namespaceObject.defineComponent)({
|
508
408
|
name: 'ListTagRender',
|
509
409
|
props: {
|
510
|
-
node:
|
511
|
-
searchKey:
|
512
|
-
displayKey:
|
513
|
-
searchKeyword:
|
410
|
+
node: external_shared_namespaceObject.PropTypes.object,
|
411
|
+
searchKey: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string)]),
|
412
|
+
displayKey: external_shared_namespaceObject.PropTypes.string,
|
413
|
+
searchKeyword: external_shared_namespaceObject.PropTypes.string,
|
514
414
|
tpl: {
|
515
415
|
type: Function
|
516
416
|
}
|
@@ -528,20 +428,22 @@ var useTagsOverflow = function useTagsOverflow(tagInputRef, collapseTags, select
|
|
528
428
|
};
|
529
429
|
|
530
430
|
if (this.tpl) {
|
531
|
-
return this.tpl(this.node, highlightKeyword,
|
431
|
+
return this.tpl(this.node, highlightKeyword, external_vue_namespaceObject.h, this);
|
532
432
|
}
|
533
433
|
|
534
434
|
var displayText = this.node[this.displayKey];
|
535
|
-
return (0,
|
435
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
536
436
|
"class": "bk-selector-node"
|
537
|
-
}, [(0,
|
437
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
538
438
|
"class": "text",
|
539
439
|
"innerHTML": highlightKeyword(displayText)
|
540
440
|
}, [displayText])]);
|
541
441
|
}
|
542
442
|
}));
|
543
|
-
|
544
|
-
var
|
443
|
+
;// CONCATENATED MODULE: external "vue-types"
|
444
|
+
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
445
|
+
var external_vue_types_y = x => () => x
|
446
|
+
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
545
447
|
;// CONCATENATED MODULE: ../../packages/tag-input/src/tag-props.ts
|
546
448
|
/*
|
547
449
|
* Tencent is pleased to support the open source community by making
|
@@ -579,28 +481,28 @@ var TagInputTriggerEnum;
|
|
579
481
|
|
580
482
|
var tagProps = function tagProps() {
|
581
483
|
return {
|
582
|
-
modelValue:
|
583
|
-
placeholder:
|
584
|
-
list:
|
585
|
-
disabled:
|
586
|
-
tooltipKey:
|
587
|
-
saveKey:
|
588
|
-
displayKey:
|
589
|
-
hasDeleteIcon:
|
590
|
-
clearable:
|
591
|
-
trigger: (0,
|
592
|
-
searchKey:
|
593
|
-
useGroup:
|
594
|
-
allowCreate:
|
595
|
-
maxData:
|
596
|
-
maxResult:
|
597
|
-
contentMaxHeight:
|
598
|
-
contentWidth:
|
599
|
-
separator:
|
600
|
-
allowNextFocus:
|
601
|
-
allowAutoMatch:
|
602
|
-
showClearOnlyHover:
|
603
|
-
leftSpace:
|
484
|
+
modelValue: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string).def([]),
|
485
|
+
placeholder: external_shared_namespaceObject.PropTypes.string.def('请输入并按 Enter 结束'),
|
486
|
+
list: external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.object).def([]),
|
487
|
+
disabled: external_shared_namespaceObject.PropTypes.bool.def(false),
|
488
|
+
tooltipKey: external_shared_namespaceObject.PropTypes.string.def(''),
|
489
|
+
saveKey: external_shared_namespaceObject.PropTypes.string.def('id'),
|
490
|
+
displayKey: external_shared_namespaceObject.PropTypes.string.def('name'),
|
491
|
+
hasDeleteIcon: external_shared_namespaceObject.PropTypes.bool.def(false),
|
492
|
+
clearable: external_shared_namespaceObject.PropTypes.bool.def(true),
|
493
|
+
trigger: (0,external_vue_types_namespaceObject.toType)('treeTriggerType', {}).def(TagInputTriggerEnum.SEARCH),
|
494
|
+
searchKey: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.arrayOf(external_shared_namespaceObject.PropTypes.string)]).def('name'),
|
495
|
+
useGroup: external_shared_namespaceObject.PropTypes.bool.def(false),
|
496
|
+
allowCreate: external_shared_namespaceObject.PropTypes.bool.def(false),
|
497
|
+
maxData: external_shared_namespaceObject.PropTypes.number.def(-1),
|
498
|
+
maxResult: external_shared_namespaceObject.PropTypes.number.def(10),
|
499
|
+
contentMaxHeight: external_shared_namespaceObject.PropTypes.number.def(300),
|
500
|
+
contentWidth: external_shared_namespaceObject.PropTypes.number.def(190),
|
501
|
+
separator: external_shared_namespaceObject.PropTypes.string.def(''),
|
502
|
+
allowNextFocus: external_shared_namespaceObject.PropTypes.bool.def(true),
|
503
|
+
allowAutoMatch: external_shared_namespaceObject.PropTypes.bool.def(false),
|
504
|
+
showClearOnlyHover: external_shared_namespaceObject.PropTypes.bool.def(false),
|
505
|
+
leftSpace: external_shared_namespaceObject.PropTypes.number.def(0),
|
604
506
|
createTagValidator: {
|
605
507
|
type: Function
|
606
508
|
},
|
@@ -671,14 +573,14 @@ var tagProps = function tagProps() {
|
|
671
573
|
|
672
574
|
|
673
575
|
|
674
|
-
/* harmony default export */ const tag_render = ((0,
|
576
|
+
/* harmony default export */ const tag_render = ((0,external_vue_namespaceObject.defineComponent)({
|
675
577
|
name: 'TagRender',
|
676
578
|
directives: {
|
677
|
-
bkTooltips:
|
579
|
+
bkTooltips: external_directives_namespaceObject.bkTooltips
|
678
580
|
},
|
679
581
|
props: {
|
680
|
-
node:
|
681
|
-
displayKey:
|
582
|
+
node: external_shared_namespaceObject.PropTypes.object,
|
583
|
+
displayKey: external_shared_namespaceObject.PropTypes.string,
|
682
584
|
tpl: {
|
683
585
|
type: Function
|
684
586
|
},
|
@@ -694,9 +596,9 @@ var tagProps = function tagProps() {
|
|
694
596
|
}
|
695
597
|
},
|
696
598
|
setup: function setup(props) {
|
697
|
-
var tagRef = (0,
|
698
|
-
var isOverflow = (0,
|
699
|
-
var overflowTips = (0,
|
599
|
+
var tagRef = (0,external_vue_namespaceObject.ref)();
|
600
|
+
var isOverflow = (0,external_vue_namespaceObject.ref)(false);
|
601
|
+
var overflowTips = (0,external_vue_namespaceObject.computed)(function () {
|
700
602
|
return Object.assign({
|
701
603
|
boundary: 'window',
|
702
604
|
theme: 'light',
|
@@ -705,8 +607,8 @@ var tagProps = function tagProps() {
|
|
705
607
|
disabled: props.hasTips || !isOverflow.value
|
706
608
|
}, props.tagOverflowTips);
|
707
609
|
});
|
708
|
-
(0,
|
709
|
-
isOverflow.value = (0,
|
610
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
611
|
+
isOverflow.value = (0,external_shared_namespaceObject.checkOverflow)(tagRef.value);
|
710
612
|
});
|
711
613
|
return {
|
712
614
|
overflowTips: overflowTips,
|
@@ -715,15 +617,15 @@ var tagProps = function tagProps() {
|
|
715
617
|
},
|
716
618
|
render: function render() {
|
717
619
|
if (this.tpl) {
|
718
|
-
return this.tpl(this.node,
|
620
|
+
return this.tpl(this.node, external_vue_namespaceObject.h, this);
|
719
621
|
}
|
720
622
|
|
721
|
-
return (0,
|
623
|
+
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
722
624
|
"class": "tag",
|
723
625
|
"ref": "tagRef"
|
724
|
-
}, [(0,
|
626
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
725
627
|
"class": "text"
|
726
|
-
}, [this.node[this.displayKey]])]), [[(0,
|
628
|
+
}, [this.node[this.displayKey]])]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), this.overflowTips]]);
|
727
629
|
}
|
728
630
|
}));
|
729
631
|
;// CONCATENATED MODULE: ../../packages/tag-input/src/tag-input.tsx
|
@@ -769,22 +671,22 @@ var tagProps = function tagProps() {
|
|
769
671
|
|
770
672
|
|
771
673
|
|
772
|
-
/* harmony default export */ const tag_input = ((0,
|
674
|
+
/* harmony default export */ const tag_input = ((0,external_vue_namespaceObject.defineComponent)({
|
773
675
|
name: 'TagInput',
|
774
676
|
directives: {
|
775
|
-
bkTooltips:
|
677
|
+
bkTooltips: external_directives_namespaceObject.bkTooltips
|
776
678
|
},
|
777
679
|
props: tag_props(),
|
778
680
|
emits: ['update:modelValue', 'change', 'select', 'focus', 'blur', 'remove', 'removeAll', 'input'],
|
779
681
|
setup: function setup(props, _ref) {
|
780
682
|
var emit = _ref.emit;
|
781
|
-
var formItem = (0,
|
782
|
-
var state = (0,
|
683
|
+
var formItem = (0,external_shared_namespaceObject.useFormItem)();
|
684
|
+
var state = (0,external_vue_namespaceObject.reactive)({
|
783
685
|
isEdit: false,
|
784
686
|
isHover: false,
|
785
687
|
focusItemIndex: props.allowCreate ? -1 : 0
|
786
688
|
});
|
787
|
-
var popoverProps = (0,
|
689
|
+
var popoverProps = (0,external_vue_namespaceObject.reactive)(Object.assign({
|
788
690
|
isShow: false,
|
789
691
|
width: 190,
|
790
692
|
offset: {
|
@@ -794,7 +696,7 @@ var tagProps = function tagProps() {
|
|
794
696
|
}
|
795
697
|
}, props.popoverProps)); // 分页处理
|
796
698
|
|
797
|
-
var _toRefs = (0,
|
699
|
+
var _toRefs = (0,external_vue_namespaceObject.toRefs)(props),
|
798
700
|
maxResult = _toRefs.maxResult;
|
799
701
|
|
800
702
|
var _usePage = usePage(maxResult),
|
@@ -802,23 +704,23 @@ var tagProps = function tagProps() {
|
|
802
704
|
initPage = _usePage.initPage,
|
803
705
|
pageChange = _usePage.pageChange;
|
804
706
|
|
805
|
-
var curInputValue = (0,
|
806
|
-
var tagInputRef = (0,
|
807
|
-
var bkTagSelectorRef = (0,
|
808
|
-
var tagListRef = (0,
|
809
|
-
var tagInputItemRef = (0,
|
810
|
-
var selectorListRef = (0,
|
811
|
-
var timer = (0,
|
707
|
+
var curInputValue = (0,external_vue_namespaceObject.ref)('');
|
708
|
+
var tagInputRef = (0,external_vue_namespaceObject.ref)(null);
|
709
|
+
var bkTagSelectorRef = (0,external_vue_namespaceObject.ref)(null);
|
710
|
+
var tagListRef = (0,external_vue_namespaceObject.ref)(null);
|
711
|
+
var tagInputItemRef = (0,external_vue_namespaceObject.ref)(null);
|
712
|
+
var selectorListRef = (0,external_vue_namespaceObject.ref)(null);
|
713
|
+
var timer = (0,external_vue_namespaceObject.ref)(null); // 是否展示tag close
|
812
714
|
|
813
|
-
var showTagClose = (0,
|
715
|
+
var showTagClose = (0,external_vue_namespaceObject.computed)(function () {
|
814
716
|
return !props.disabled && props.hasDeleteIcon;
|
815
717
|
}); // 是否单选
|
816
718
|
|
817
|
-
var isSingleSelect = (0,
|
719
|
+
var isSingleSelect = (0,external_vue_namespaceObject.computed)(function () {
|
818
720
|
return props.maxData === 1;
|
819
721
|
}); // 是否展示placeholder
|
820
722
|
|
821
|
-
var isShowPlaceholder = (0,
|
723
|
+
var isShowPlaceholder = (0,external_vue_namespaceObject.computed)(function () {
|
822
724
|
return listState.selectedTagList.length === 0 && curInputValue.value === '' && !state.isEdit;
|
823
725
|
}); // 是否展示清空Icon
|
824
726
|
|
@@ -830,24 +732,24 @@ var tagProps = function tagProps() {
|
|
830
732
|
* 4. 设置了showClearOnlyHover,且没有hover的时候
|
831
733
|
*/
|
832
734
|
|
833
|
-
var isShowClear = (0,
|
735
|
+
var isShowClear = (0,external_vue_namespaceObject.computed)(function () {
|
834
736
|
return props.clearable && !props.disabled && listState.selectedTagList.length !== 0 && (props.showClearOnlyHover ? state.isHover : true);
|
835
737
|
});
|
836
|
-
var triggerClass = (0,
|
738
|
+
var triggerClass = (0,external_vue_namespaceObject.computed)(function () {
|
837
739
|
return {
|
838
740
|
'bk-tag-input-trigger': true,
|
839
741
|
active: state.isEdit,
|
840
742
|
disabled: props.disabled
|
841
743
|
};
|
842
744
|
});
|
843
|
-
var listState = (0,
|
745
|
+
var listState = (0,external_vue_namespaceObject.reactive)({
|
844
746
|
localList: [],
|
845
747
|
tagListCache: [],
|
846
748
|
selectedTagList: [],
|
847
749
|
selectedTagListCache: []
|
848
750
|
}); // 选中标签 save key 列表
|
849
751
|
|
850
|
-
var tagList = (0,
|
752
|
+
var tagList = (0,external_vue_namespaceObject.computed)(function () {
|
851
753
|
return listState.selectedTagList.map(function (tag) {
|
852
754
|
return tag[props.saveKey];
|
853
755
|
});
|
@@ -858,7 +760,7 @@ var tagProps = function tagProps() {
|
|
858
760
|
saveKeyMap = _useFlatList.saveKeyMap; // 下拉框渲染列表
|
859
761
|
|
860
762
|
|
861
|
-
var renderList = (0,
|
763
|
+
var renderList = (0,external_vue_namespaceObject.computed)(function () {
|
862
764
|
if (props.useGroup) {
|
863
765
|
var groupMap = {};
|
864
766
|
pageState.curPageList.forEach(function (item, index) {
|
@@ -881,22 +783,22 @@ var tagProps = function tagProps() {
|
|
881
783
|
|
882
784
|
return pageState.curPageList;
|
883
785
|
});
|
884
|
-
(0,
|
786
|
+
(0,external_vue_namespaceObject.watch)([function () {
|
885
787
|
return flatList.value;
|
886
788
|
}], function () {
|
887
|
-
(0,
|
789
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
888
790
|
initData();
|
889
791
|
});
|
890
792
|
}, {
|
891
793
|
deep: true
|
892
794
|
});
|
893
|
-
(0,
|
795
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
894
796
|
return props.modelValue;
|
895
797
|
}, function (val) {
|
896
798
|
var _a;
|
897
799
|
|
898
800
|
if (!shallowCompareArray(tagList.value, val)) {
|
899
|
-
(0,
|
801
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
900
802
|
initData();
|
901
803
|
});
|
902
804
|
|
@@ -905,7 +807,7 @@ var tagProps = function tagProps() {
|
|
905
807
|
}
|
906
808
|
}
|
907
809
|
});
|
908
|
-
(0,
|
810
|
+
(0,external_vue_namespaceObject.watch)(curInputValue, (0,external_lodash_namespaceObject.debounce)(function () {
|
909
811
|
var hasShowCount = pageState.curPageList.length !== 0;
|
910
812
|
var value = curInputValue.value;
|
911
813
|
/**
|
@@ -919,14 +821,14 @@ var tagProps = function tagProps() {
|
|
919
821
|
popoverProps.isShow = false;
|
920
822
|
}
|
921
823
|
}, 150));
|
922
|
-
(0,
|
824
|
+
(0,external_vue_namespaceObject.watch)(function () {
|
923
825
|
return popoverProps.isShow;
|
924
826
|
}, function (show) {
|
925
827
|
changePopoverOffset();
|
926
828
|
|
927
829
|
if (show) {
|
928
830
|
if (selectorListRef.value) {
|
929
|
-
(0,
|
831
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
930
832
|
selectorListRef.value.scrollTop = 0;
|
931
833
|
});
|
932
834
|
selectorListRef.value.removeEventListener('scroll', scrollHandler);
|
@@ -934,7 +836,7 @@ var tagProps = function tagProps() {
|
|
934
836
|
}
|
935
837
|
}
|
936
838
|
});
|
937
|
-
(0,
|
839
|
+
(0,external_vue_namespaceObject.onMounted)(function () {
|
938
840
|
initData();
|
939
841
|
});
|
940
842
|
|
@@ -1005,7 +907,7 @@ var tagProps = function tagProps() {
|
|
1005
907
|
}
|
1006
908
|
|
1007
909
|
state.isEdit = true;
|
1008
|
-
(0,
|
910
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1009
911
|
var _a;
|
1010
912
|
|
1011
913
|
(_a = tagInputRef.value) === null || _a === void 0 ? void 0 : _a.focus();
|
@@ -1332,7 +1234,7 @@ var tagProps = function tagProps() {
|
|
1332
1234
|
height: selectorListRef.value.clientHeight,
|
1333
1235
|
yAxis: selectorListRef.value.getBoundingClientRect().y
|
1334
1236
|
};
|
1335
|
-
(0,
|
1237
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1336
1238
|
var activeObj = selectorListRef.value.querySelector('.bk-selector-actived');
|
1337
1239
|
|
1338
1240
|
if (!activeObj) {
|
@@ -1646,7 +1548,7 @@ var tagProps = function tagProps() {
|
|
1646
1548
|
}
|
1647
1549
|
|
1648
1550
|
if (isSelected) {
|
1649
|
-
(0,
|
1551
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
1650
1552
|
for (var count = 1; count <= moveCount; count++) {
|
1651
1553
|
var nodes = getSelectedTagNodes();
|
1652
1554
|
var site = nodes[targetIndex + count];
|
@@ -1687,7 +1589,7 @@ var tagProps = function tagProps() {
|
|
1687
1589
|
}; // 折叠 tags index
|
1688
1590
|
|
1689
1591
|
|
1690
|
-
var localCollapseTags = (0,
|
1592
|
+
var localCollapseTags = (0,external_vue_namespaceObject.computed)(function () {
|
1691
1593
|
return props.collapseTags ? props.collapseTags && !state.isEdit : props.collapseTags;
|
1692
1594
|
});
|
1693
1595
|
|
@@ -1696,7 +1598,7 @@ var tagProps = function tagProps() {
|
|
1696
1598
|
|
1697
1599
|
return Object.assign(Object.assign(Object.assign(Object.assign({
|
1698
1600
|
popoverProps: popoverProps
|
1699
|
-
}, (0,
|
1601
|
+
}, (0,external_vue_namespaceObject.toRefs)(state)), (0,external_vue_namespaceObject.toRefs)(listState)), (0,external_vue_namespaceObject.toRefs)(pageState)), {
|
1700
1602
|
isShowPlaceholder: isShowPlaceholder,
|
1701
1603
|
isShowClear: isShowClear,
|
1702
1604
|
curInputValue: curInputValue,
|
@@ -1726,7 +1628,7 @@ var tagProps = function tagProps() {
|
|
1726
1628
|
render: function render() {
|
1727
1629
|
var _this = this;
|
1728
1630
|
|
1729
|
-
return (0,
|
1631
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1730
1632
|
"class": "bk-tag-input",
|
1731
1633
|
"ref": "bkTagSelectorRef",
|
1732
1634
|
"onClick": this.focusInputTrigger,
|
@@ -1736,7 +1638,7 @@ var tagProps = function tagProps() {
|
|
1736
1638
|
"onMouseleave": function onMouseleave() {
|
1737
1639
|
return _this.isHover = false;
|
1738
1640
|
}
|
1739
|
-
}, [(0,
|
1641
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
1740
1642
|
"theme": "light bk-tag-input-popover-content",
|
1741
1643
|
"trigger": "manual",
|
1742
1644
|
"placement": "bottom-start",
|
@@ -1745,9 +1647,9 @@ var tagProps = function tagProps() {
|
|
1745
1647
|
"default": function _default() {
|
1746
1648
|
var _a, _b, _c;
|
1747
1649
|
|
1748
|
-
return (0,
|
1650
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1749
1651
|
"class": _this.triggerClass
|
1750
|
-
}, [(0,
|
1652
|
+
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
1751
1653
|
"class": "tag-list",
|
1752
1654
|
"ref": "tagListRef",
|
1753
1655
|
"style": {
|
@@ -1762,28 +1664,28 @@ var tagProps = function tagProps() {
|
|
1762
1664
|
disabled: !_this.tooltipKey
|
1763
1665
|
};
|
1764
1666
|
var isOverflow = _this.localCollapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex;
|
1765
|
-
return (0,
|
1667
|
+
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("li", {
|
1766
1668
|
"class": "tag-item",
|
1767
1669
|
"style": {
|
1768
1670
|
display: isOverflow ? 'none' : ''
|
1769
1671
|
},
|
1770
1672
|
"onClick": _this.tagFocus
|
1771
|
-
}, [(0,
|
1673
|
+
}, [(0,external_vue_namespaceObject.createVNode)(tag_render, {
|
1772
1674
|
"node": item,
|
1773
1675
|
"tpl": _this.tagTpl,
|
1774
1676
|
"displayKey": _this.displayKey,
|
1775
1677
|
"hasTips": !!_this.tooltipKey,
|
1776
1678
|
"tagOverflowTips": _this.tagOverflowTips
|
1777
|
-
}, null), _this.showTagClose ? (0,
|
1679
|
+
}, null), _this.showTagClose ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
|
1778
1680
|
"class": "remove-tag",
|
1779
1681
|
"onClick": _this.handleTagRemove.bind(_this, item, index)
|
1780
|
-
}, null) : null]), [[(0,
|
1781
|
-
}), (0,
|
1682
|
+
}, null) : null]), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), tooltips]]);
|
1683
|
+
}), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("li", {
|
1782
1684
|
"ref": "tagInputItemRef",
|
1783
1685
|
"id": "tagInputItem",
|
1784
1686
|
"class": "tag-input-item",
|
1785
1687
|
"role": "input"
|
1786
|
-
}, [(0,
|
1688
|
+
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
|
1787
1689
|
"type": "text",
|
1788
1690
|
"class": "tag-input",
|
1789
1691
|
"ref": "tagInputRef",
|
@@ -1795,65 +1697,65 @@ var tagProps = function tagProps() {
|
|
1795
1697
|
"onBlur": _this.handleBlur,
|
1796
1698
|
"onKeydown": _this.handleKeydown,
|
1797
1699
|
"onPaste": _this.handlePaste
|
1798
|
-
}, null), [[
|
1700
|
+
}, null), [[external_vue_namespaceObject.vModelText, _this.curInputValue]])]), [[external_vue_namespaceObject.vShow, _this.isEdit]]), !!_this.overflowTagIndex && _this.localCollapseTags && (0,external_vue_namespaceObject.createVNode)("li", {
|
1799
1701
|
"class": "tag-item"
|
1800
|
-
}, [(0,
|
1702
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1801
1703
|
"class": "tag"
|
1802
|
-
}, [(0,
|
1704
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
1803
1705
|
"class": "text"
|
1804
|
-
}, [(0,
|
1706
|
+
}, [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selectedTagList.length - _this.overflowTagIndex])])])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("p", {
|
1805
1707
|
"class": "placeholder"
|
1806
|
-
}, [_this.placeholder]), [[
|
1708
|
+
}, [_this.placeholder]), [[external_vue_namespaceObject.vShow, _this.isShowPlaceholder]]), (_c = (_b = (_a = _this.$slots) === null || _a === void 0 ? void 0 : _a.suffix) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : _this.isShowClear && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
1807
1709
|
"class": "clear-icon",
|
1808
1710
|
"onClick": _this.handleClear
|
1809
1711
|
}, null)]);
|
1810
1712
|
},
|
1811
1713
|
content: function content() {
|
1812
|
-
return (0,
|
1714
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1813
1715
|
"class": "bk-selector-list"
|
1814
|
-
}, [(0,
|
1716
|
+
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
1815
1717
|
"ref": "selectorListRef",
|
1816
1718
|
"style": {
|
1817
1719
|
'max-height': "".concat(_this.contentMaxHeight, "px")
|
1818
1720
|
},
|
1819
1721
|
"class": "outside-ul"
|
1820
1722
|
}, [_this.renderList.map(function (group, index) {
|
1821
|
-
return _this.useGroup ? (0,
|
1723
|
+
return _this.useGroup ? (0,external_vue_namespaceObject.createVNode)("li", {
|
1822
1724
|
"class": "bk-selector-group-item"
|
1823
|
-
}, [(0,
|
1725
|
+
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
1824
1726
|
"class": "group-name"
|
1825
|
-
}, [group.name, (0,
|
1727
|
+
}, [group.name, (0,external_vue_namespaceObject.createTextVNode)(" ("), group.children.length, (0,external_vue_namespaceObject.createTextVNode)(")")]), (0,external_vue_namespaceObject.createVNode)("ul", {
|
1826
1728
|
"class": "bk-selector-group-list-item"
|
1827
1729
|
}, [group.children.map(function (item, index) {
|
1828
|
-
return (0,
|
1730
|
+
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1829
1731
|
"class": ['bk-selector-list-item', {
|
1830
1732
|
disabled: item.disabled
|
1831
1733
|
}, _this.activeClass(item, index)],
|
1832
1734
|
"onClick": _this.handleTagSelected.bind(_this, item, 'select')
|
1833
|
-
}, [(0,
|
1735
|
+
}, [(0,external_vue_namespaceObject.createVNode)(list_tag_render, {
|
1834
1736
|
"node": item,
|
1835
1737
|
"displayKey": _this.displayKey,
|
1836
1738
|
"tpl": _this.tpl,
|
1837
1739
|
"searchKey": _this.searchKey,
|
1838
1740
|
"searchKeyword": _this.curInputValue
|
1839
1741
|
}, null)]);
|
1840
|
-
})])]) : (0,
|
1742
|
+
})])]) : (0,external_vue_namespaceObject.createVNode)("li", {
|
1841
1743
|
"class": ['bk-selector-list-item', {
|
1842
1744
|
disabled: group.disabled
|
1843
1745
|
}, _this.activeClass(group, index)],
|
1844
1746
|
"onClick": _this.handleTagSelected.bind(_this, group, 'select')
|
1845
|
-
}, [(0,
|
1747
|
+
}, [(0,external_vue_namespaceObject.createVNode)(list_tag_render, {
|
1846
1748
|
"node": group,
|
1847
1749
|
"displayKey": _this.displayKey,
|
1848
1750
|
"tpl": _this.tpl,
|
1849
1751
|
"searchKey": _this.searchKey,
|
1850
1752
|
"searchKeyword": _this.curInputValue
|
1851
1753
|
}, null)]);
|
1852
|
-
}), _this.isPageLoading ? (0,
|
1754
|
+
}), _this.isPageLoading ? (0,external_vue_namespaceObject.createVNode)("li", {
|
1853
1755
|
"class": "bk-selector-list-item loading"
|
1854
|
-
}, [(0,
|
1756
|
+
}, [(0,external_vue_namespaceObject.createVNode)(external_loading_namespaceObject["default"], {
|
1855
1757
|
"theme": "primary",
|
1856
|
-
"size":
|
1758
|
+
"size": external_loading_namespaceObject.BkLoadingSize.Small
|
1857
1759
|
}, null)]) : null])]);
|
1858
1760
|
}
|
1859
1761
|
})]);
|
@@ -1887,11 +1789,7 @@ var tagProps = function tagProps() {
|
|
1887
1789
|
*/
|
1888
1790
|
|
1889
1791
|
|
1890
|
-
var TagInput = (0,
|
1792
|
+
var TagInput = (0,external_shared_namespaceObject.withInstall)(tag_input);
|
1891
1793
|
/* harmony default export */ const src = (TagInput);
|
1892
|
-
|
1893
|
-
|
1894
|
-
/******/ return __webpack_exports__;
|
1895
|
-
/******/ })()
|
1896
|
-
;
|
1897
|
-
});
|
1794
|
+
var __webpack_exports__default = __webpack_exports__.Z;
|
1795
|
+
export { __webpack_exports__default as default };
|