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