bkui-vue 2.0.2-beta.9 → 2.0.2-beta.91
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/License.txt +1 -2
- package/dist/cli.css +1 -0
- package/dist/index.cjs.js +166 -138
- package/dist/index.esm.js +24632 -18447
- package/dist/index.umd.js +166 -138
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/ja-jp.esm.js +2 -0
- package/dist/locale/ja-jp.esm.js.map +1 -0
- package/dist/locale/ja-jp.umd.js +2 -0
- package/dist/locale/ja-jp.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +2 -1
- package/lib/affix/index.js +2 -2
- package/lib/alert/alert.variable.css +2 -1
- package/lib/alert/index.js +16 -5
- package/lib/animate-number/index.js +2 -2
- package/lib/backtop/backtop.variable.css +2 -1
- package/lib/backtop/index.js +2 -2
- package/lib/badge/badge.variable.css +2 -1
- package/lib/badge/index.js +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +2 -1
- package/lib/breadcrumb/index.js +3 -3
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.variable.css +2 -1
- package/lib/button/index.js +3 -3
- package/lib/card/card.variable.css +2 -1
- package/lib/card/index.js +2 -2
- package/lib/cascader/cascader.css +52 -25
- package/lib/cascader/cascader.d.ts +309 -0
- package/lib/cascader/cascader.less +109 -75
- package/lib/cascader/cascader.variable.css +54 -26
- package/lib/cascader/index.d.ts +618 -0
- package/lib/cascader/index.js +147 -65
- package/lib/checkbox/checkbox.variable.css +2 -1
- package/lib/checkbox/index.js +5 -5
- package/lib/code-diff/code-diff.variable.css +2 -1
- package/lib/code-diff/index.js +2 -2
- package/lib/collapse/collapse.variable.css +2 -1
- package/lib/collapse/index.js +3 -3
- package/lib/collapse-transition/collapse-transition.variable.css +2 -1
- package/lib/collapse-transition/index.js +2 -2
- package/lib/color-picker/color-picker.variable.css +2 -1
- package/lib/color-picker/index.js +64 -55
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.variable.css +2 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +6 -6
- package/lib/container/container.variable.css +2 -1
- package/lib/container/index.js +5 -5
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/date-picker/date-picker.variable.css +2 -1
- package/lib/date-picker/index.d.ts +6 -2
- package/lib/date-picker/index.js +79 -76
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +5 -17
- package/lib/dialog/dialog.css +20 -1
- package/lib/dialog/dialog.variable.css +22 -2
- package/lib/dialog/index.js +13 -36
- package/lib/directives/index.js +8 -9
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +2 -1
- package/lib/divider/index.js +3 -3
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.variable.css +2 -1
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +15 -10
- package/lib/exception/exception.variable.css +2 -1
- package/lib/exception/index.js +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +19 -0
- package/lib/form/form.css +17 -4
- package/lib/form/form.less +25 -6
- package/lib/form/form.variable.css +19 -5
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +43 -50
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/assistant.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/grag-fill.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/loading.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-all.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.variable.css +2 -1
- package/lib/image/image.variable.css +2 -1
- package/lib/image/index.js +11 -12
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +22 -7
- package/lib/info-box/info-box.css +20 -1
- package/lib/info-box/info-box.d.ts +1 -0
- package/lib/info-box/info-box.less +28 -2
- package/lib/info-box/info-box.variable.css +23 -3
- package/lib/input/index.d.ts +45 -20
- package/lib/input/index.js +57 -29
- package/lib/input/input.css +6 -0
- package/lib/input/input.d.ts +35 -17
- package/lib/input/input.less +7 -0
- package/lib/input/input.variable.css +8 -1
- package/lib/link/index.js +2 -2
- package/lib/link/link.variable.css +2 -1
- package/lib/loading/index.js +15 -7
- package/lib/loading/loading.variable.css +2 -1
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +172 -4
- package/lib/locale/lang/ja-jp.d.ts +3 -0
- package/lib/menu/index.js +12 -9
- package/lib/menu/menu.css +5 -4
- package/lib/menu/menu.less +1 -0
- package/lib/menu/menu.variable.css +7 -5
- package/lib/menu/submenu.variable.css +2 -1
- package/lib/message/index.js +62 -28
- package/lib/message/message.variable.css +2 -1
- package/lib/message/messageConstructor.d.ts +1 -1
- package/lib/modal/index.js +19 -8
- package/lib/modal/modal.css +20 -1
- package/lib/modal/modal.variable.css +22 -2
- package/lib/navigation/index.js +3 -3
- package/lib/navigation/navigation.css +29 -29
- package/lib/navigation/navigation.less +29 -29
- package/lib/navigation/navigation.variable.css +31 -30
- package/lib/notify/index.js +43 -24
- package/lib/notify/notify.variable.css +2 -1
- package/lib/overflow-title/components/overflow-title.d.ts +6 -2
- package/lib/overflow-title/index.d.ts +12 -4
- package/lib/overflow-title/index.js +3 -3
- package/lib/overflow-title/props.d.ts +3 -1
- package/lib/pagination/index.js +22 -14
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +3 -1
- package/lib/pop-confirm/index.d.ts +592 -0
- package/lib/pop-confirm/index.js +10 -6
- package/lib/pop-confirm/pop-confirm.d.ts +296 -0
- package/lib/pop-confirm/pop-confirm.variable.css +2 -1
- package/lib/pop-confirm/props.d.ts +148 -0
- package/lib/popover/index.d.ts +18 -10
- package/lib/popover/index.js +281 -76
- package/lib/popover/popover.d.ts +8 -4
- package/lib/popover/popover.variable.css +2 -1
- package/lib/popover/props.d.ts +3 -1
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -2
- package/lib/popover/use-popper-id.d.ts +3 -1
- package/lib/popover2/index.js +2 -2
- package/lib/preset.js +1 -1
- package/lib/process/index.js +2 -2
- package/lib/process/process.d.ts +1 -1
- package/lib/process/process.variable.css +2 -1
- package/lib/progress/index.js +4 -4
- package/lib/progress/progress.variable.css +2 -1
- package/lib/radio/index.js +5 -5
- package/lib/radio/radio.variable.css +2 -1
- package/lib/rate/index.js +3 -3
- package/lib/rate/rate.variable.css +2 -1
- package/lib/resize-layout/index.js +2 -2
- package/lib/resize-layout/resize-layout.css +1 -0
- package/lib/resize-layout/resize-layout.less +1 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -1
- package/lib/scrollbar/css/scrollbar.variable.css +2 -1
- package/lib/scrollbar/index.js +6 -6
- package/lib/search-select/index.d.ts +43 -15
- package/lib/search-select/index.js +88 -37
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/search-select.d.ts +14 -5
- package/lib/search-select/search-select.variable.css +2 -1
- package/lib/search-select/selected.d.ts +10 -2
- package/lib/search-select/utils.d.ts +1 -0
- package/lib/select/common.d.ts +0 -1
- package/lib/select/index.d.ts +58 -14
- package/lib/select/index.js +67 -71
- package/lib/select/optionGroup.d.ts +12 -1
- package/lib/select/select.d.ts +21 -5
- package/lib/select/select.variable.css +2 -1
- package/lib/select/type.d.ts +1 -0
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +10 -10
- package/lib/shared/z-index-manager.d.ts +1 -1
- package/lib/sideslider/index.d.ts +129 -2
- package/lib/sideslider/index.js +149 -11
- package/lib/sideslider/sideslider.css +62 -0
- package/lib/sideslider/sideslider.d.ts +59 -1
- package/lib/sideslider/sideslider.less +83 -0
- package/lib/sideslider/sideslider.variable.css +64 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +5 -4
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/slider/slider.variable.css +2 -1
- package/lib/steps/index.js +13 -14
- package/lib/steps/steps.css +24 -11
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +28 -10
- package/lib/steps/steps.variable.css +26 -12
- package/lib/styles/mixins/animate.variable.css +2 -1
- package/lib/styles/mixins/popper.variable.css +2 -1
- package/lib/styles/mixins/scroll.variable.css +2 -1
- package/lib/styles/reset.variable.css +2 -1
- package/lib/styles/themes/themes.less +4 -1
- package/lib/swiper/index.js +2 -2
- package/lib/swiper/swiper.variable.css +2 -1
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.variable.css +2 -1
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +22 -17
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/tab/tab.variable.css +2 -1
- package/lib/table/index.js +35 -36
- package/lib/table/plugins/head-filter.variable.css +2 -1
- package/lib/table/plugins/head-sort.variable.css +2 -1
- package/lib/table/plugins/settings.variable.css +2 -1
- package/lib/table/table.css +1 -0
- package/lib/table/table.variable.css +3 -1
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +23 -0
- package/lib/tag/index.js +10 -5
- package/lib/tag/tag.d.ts +11 -0
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/index.d.ts +82 -9
- package/lib/tag-input/index.js +1639 -54
- package/lib/tag-input/tag-input.css +31 -0
- package/lib/tag-input/tag-input.d.ts +36 -4
- package/lib/tag-input/tag-input.less +36 -0
- package/lib/tag-input/tag-input.variable.css +33 -1
- package/lib/tag-input/tag-props.d.ts +13 -1
- package/lib/tag-input/tag-render.d.ts +24 -2
- package/lib/time-picker/index.js +1 -1
- package/lib/time-picker/time-picker.variable.css +2 -1
- package/lib/timeline/index.d.ts +7 -7
- package/lib/timeline/index.js +1375 -9
- package/lib/timeline/timeline.d.ts +5 -5
- package/lib/timeline/timeline.variable.css +2 -1
- package/lib/transfer/index.d.ts +1 -24
- package/lib/transfer/index.js +21 -11
- package/lib/transfer/props.d.ts +0 -5
- package/lib/transfer/transfer.css +26 -8
- package/lib/transfer/transfer.d.ts +1 -12
- package/lib/transfer/transfer.less +18 -8
- package/lib/transfer/transfer.variable.css +28 -9
- package/lib/tree/constant.d.ts +2 -0
- package/lib/tree/index.d.ts +67 -11
- package/lib/tree/index.js +17694 -103
- package/lib/tree/props.d.ts +37 -3
- package/lib/tree/tree.css +34 -0
- package/lib/tree/tree.d.ts +31 -5
- package/lib/tree/tree.less +41 -2
- package/lib/tree/tree.variable.css +36 -1
- package/lib/tree/use-array-move.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +3 -1
- package/lib/tree/use-node-attribute.d.ts +3 -0
- package/lib/upload/index.js +8 -8
- package/lib/upload/upload.variable.css +2 -1
- package/lib/virtual-render/index.js +11 -7
- package/lib/virtual-render/virtual-render.variable.css +2 -1
- package/lib/volar.components.d.ts +2 -1
- package/package.json +13 -2
- package/dist/style.css +0 -1
package/lib/cascader/index.js
CHANGED
|
@@ -9,11 +9,14 @@ import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
|
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
|
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
|
11
11
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
|
12
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__ from "../overflow-title";
|
|
13
|
+
import "../overflow-title/overflow-title.less";
|
|
12
14
|
import "../popover/popover.less";
|
|
13
15
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__ from "../select";
|
|
14
16
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
|
15
17
|
import "../tag/tag.less";
|
|
16
18
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__ from "../tag-input";
|
|
19
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
|
17
20
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
|
18
21
|
import "../checkbox/checkbox.less";
|
|
19
22
|
/******/ var __webpack_modules__ = ({
|
|
@@ -37,7 +40,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
37
40
|
* Tencent is pleased to support the open source community by making
|
|
38
41
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
39
42
|
*
|
|
40
|
-
* Copyright (C)
|
|
43
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
41
44
|
*
|
|
42
45
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
43
46
|
*
|
|
@@ -165,7 +168,7 @@ var popover_ = __webpack_require__(563);
|
|
|
165
168
|
* Tencent is pleased to support the open source community by making
|
|
166
169
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
167
170
|
*
|
|
168
|
-
* Copyright (C)
|
|
171
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
169
172
|
*
|
|
170
173
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
171
174
|
*
|
|
@@ -277,7 +280,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
|
|
|
277
280
|
* Tencent is pleased to support the open source community by making
|
|
278
281
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
279
282
|
*
|
|
280
|
-
* Copyright (C)
|
|
283
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
281
284
|
*
|
|
282
285
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
283
286
|
*
|
|
@@ -336,7 +339,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
336
339
|
* Tencent is pleased to support the open source community by making
|
|
337
340
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
338
341
|
*
|
|
339
|
-
* Copyright (C)
|
|
342
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
340
343
|
*
|
|
341
344
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
342
345
|
*
|
|
@@ -391,9 +394,6 @@ var tooltips = {
|
|
|
391
394
|
hide(el);
|
|
392
395
|
}, 100);
|
|
393
396
|
});
|
|
394
|
-
el.addEventListener('click', function () {
|
|
395
|
-
hide(el);
|
|
396
|
-
});
|
|
397
397
|
popper.addEventListener('mouseleave', function () {
|
|
398
398
|
clearTimeout(delayTimeout);
|
|
399
399
|
hideTimeout = setTimeout(function () {
|
|
@@ -407,7 +407,7 @@ var tooltips = {
|
|
|
407
407
|
show(el);
|
|
408
408
|
clearTimeout(delayTimeout);
|
|
409
409
|
}, opts.delay);
|
|
410
|
-
} else if (popper.hasAttribute('data-show')) {
|
|
410
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
|
411
411
|
hide(el);
|
|
412
412
|
}
|
|
413
413
|
});
|
|
@@ -516,6 +516,7 @@ function renderArrow() {
|
|
|
516
516
|
* @returns popper实例
|
|
517
517
|
*/
|
|
518
518
|
function createPopperInstance(el, popper) {
|
|
519
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
519
520
|
var _nodeList$get = tooltips_nodeList.get(el),
|
|
520
521
|
opts = _nodeList$get.opts;
|
|
521
522
|
var placement = opts.placement,
|
|
@@ -556,6 +557,7 @@ function createPopperInstance(el, popper) {
|
|
|
556
557
|
* @param el
|
|
557
558
|
*/
|
|
558
559
|
function show(el) {
|
|
560
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
559
561
|
var _nodeList$get2 = tooltips_nodeList.get(el),
|
|
560
562
|
popper = _nodeList$get2.popper,
|
|
561
563
|
opts = _nodeList$get2.opts;
|
|
@@ -631,7 +633,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
|
631
633
|
* Tencent is pleased to support the open source community by making
|
|
632
634
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
633
635
|
*
|
|
634
|
-
* Copyright (C)
|
|
636
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
635
637
|
*
|
|
636
638
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
637
639
|
*
|
|
@@ -1552,6 +1554,14 @@ var src = __webpack_require__(668);
|
|
|
1552
1554
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1553
1555
|
var icon_y = x => () => x
|
|
1554
1556
|
const icon_namespaceObject = icon_x({ ["AngleRight"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleRight, ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["Spinner"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Spinner });
|
|
1557
|
+
;// CONCATENATED MODULE: external "../overflow-title"
|
|
1558
|
+
var overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1559
|
+
var overflow_title_y = x => () => x
|
|
1560
|
+
const overflow_title_namespaceObject = overflow_title_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__["default"] });
|
|
1561
|
+
;// CONCATENATED MODULE: external "../overflow-title/overflow-title.less"
|
|
1562
|
+
var overflow_title_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1563
|
+
var overflow_title_less_y = x => () => x
|
|
1564
|
+
const overflow_title_less_namespaceObject = overflow_title_less_x({ });
|
|
1555
1565
|
// EXTERNAL MODULE: external "../popover"
|
|
1556
1566
|
var popover_ = __webpack_require__(563);
|
|
1557
1567
|
;// CONCATENATED MODULE: external "../popover/popover.less"
|
|
@@ -1574,6 +1584,10 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
|
1574
1584
|
var tag_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1575
1585
|
var tag_input_y = x => () => x
|
|
1576
1586
|
const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow });
|
|
1587
|
+
;// CONCATENATED MODULE: external "lodash/merge"
|
|
1588
|
+
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1589
|
+
var merge_y = x => () => x
|
|
1590
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
|
1577
1591
|
;// CONCATENATED MODULE: external "../checkbox"
|
|
1578
1592
|
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1579
1593
|
var checkbox_y = x => () => x
|
|
@@ -1591,7 +1605,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1591
1605
|
* Tencent is pleased to support the open source community by making
|
|
1592
1606
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1593
1607
|
*
|
|
1594
|
-
* Copyright (C)
|
|
1608
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1595
1609
|
*
|
|
1596
1610
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1597
1611
|
*
|
|
@@ -1641,7 +1655,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1641
1655
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
|
1642
1656
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
|
1643
1657
|
resolveClassName = _usePrefix.resolveClassName;
|
|
1644
|
-
var
|
|
1658
|
+
var _toRefs = (0,external_vue_.toRefs)(props),
|
|
1659
|
+
store = _toRefs.store;
|
|
1645
1660
|
var menus = (0,external_vue_.reactive)({
|
|
1646
1661
|
list: [props.store.getNodes()]
|
|
1647
1662
|
});
|
|
@@ -1665,7 +1680,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1665
1680
|
* @param value - 选中的值数组
|
|
1666
1681
|
*/
|
|
1667
1682
|
var updateCheckValue = function updateCheckValue(value) {
|
|
1668
|
-
if (value.length === 0) {
|
|
1683
|
+
if (!value || value.length === 0) {
|
|
1669
1684
|
menus.list = menus.list.slice(0, 1);
|
|
1670
1685
|
activePath.value = [];
|
|
1671
1686
|
}
|
|
@@ -1680,10 +1695,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1680
1695
|
// 判断是否为初始加载
|
|
1681
1696
|
var isInitialLoad = checkValue.value.length === 0;
|
|
1682
1697
|
// 如果是初始加载或单选情况,按原来的逻辑处理
|
|
1683
|
-
if (isInitialLoad || !store.config.multiple) {
|
|
1698
|
+
if (isInitialLoad || !store.value.config.multiple) {
|
|
1684
1699
|
var targetList = [];
|
|
1685
1700
|
// 处理多选情况
|
|
1686
|
-
if (store.config.multiple) {
|
|
1701
|
+
if (store.value.config.multiple) {
|
|
1687
1702
|
var _iterator = _createForOfIteratorHelper(value),
|
|
1688
1703
|
_step;
|
|
1689
1704
|
try {
|
|
@@ -1704,7 +1719,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1704
1719
|
}
|
|
1705
1720
|
// 执行展开操作
|
|
1706
1721
|
targetList.forEach(function (id) {
|
|
1707
|
-
var node = store.getNodeById(id);
|
|
1722
|
+
var node = store.value.getNodeById(id);
|
|
1708
1723
|
if (node) {
|
|
1709
1724
|
// 只展开,不需要重复触发
|
|
1710
1725
|
var expandNode = function expandNode(node) {
|
|
@@ -1745,7 +1760,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1745
1760
|
}
|
|
1746
1761
|
if (node.config.multiple) {
|
|
1747
1762
|
// 如果checkAnyLevel,返回所有check的节点; 否则只check 叶子节点
|
|
1748
|
-
var targets = store.config.checkAnyLevel ? store.getCheckedNodes() : store.getCheckedLeafNodes();
|
|
1763
|
+
var targets = store.value.config.checkAnyLevel ? store.value.getCheckedNodes() : store.value.getCheckedLeafNodes();
|
|
1749
1764
|
checkValue.value = targets.map(function (node) {
|
|
1750
1765
|
return node.path;
|
|
1751
1766
|
}); // 如果任意级别可选,当前节点即为所选内容
|
|
@@ -1768,15 +1783,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1768
1783
|
activePath.value.push(node);
|
|
1769
1784
|
return;
|
|
1770
1785
|
}
|
|
1771
|
-
if (store.config.isRemote && !node.isLeaf) {
|
|
1786
|
+
if (store.value.config.isRemote && !node.isLeaf) {
|
|
1772
1787
|
node.loading = true;
|
|
1773
1788
|
var updateNodes = function updateNodes(nodeData) {
|
|
1774
|
-
store.appendNodes(nodeData, node || null);
|
|
1789
|
+
store.value.appendNodes(nodeData, node || null);
|
|
1775
1790
|
menus.list.push(node.children);
|
|
1776
1791
|
activePath.value.push(node);
|
|
1777
1792
|
node.loading = false;
|
|
1778
1793
|
};
|
|
1779
|
-
store.config.remoteMethod(node, updateNodes);
|
|
1794
|
+
store.value.config.remoteMethod(node, updateNodes);
|
|
1780
1795
|
}
|
|
1781
1796
|
};
|
|
1782
1797
|
/**
|
|
@@ -1837,6 +1852,17 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1837
1852
|
}
|
|
1838
1853
|
});
|
|
1839
1854
|
};
|
|
1855
|
+
// 监听store.config.multiple属性的变化,当切换单选/多选模式时需要重新初始化面板
|
|
1856
|
+
(0,external_vue_.watch)(function () {
|
|
1857
|
+
return store.value.config.multiple;
|
|
1858
|
+
}, function (newVal, oldVal) {
|
|
1859
|
+
if (newVal !== oldVal) {
|
|
1860
|
+
// 当multiple属性变化时,重置面板状态
|
|
1861
|
+
menus.list = [store.value.getNodes()];
|
|
1862
|
+
activePath.value = [];
|
|
1863
|
+
checkValue.value = [];
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1840
1866
|
var noDataText = t.value.noData;
|
|
1841
1867
|
var emptyText = t.value.emptyText;
|
|
1842
1868
|
/**
|
|
@@ -1943,15 +1969,20 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1943
1969
|
};
|
|
1944
1970
|
return (0,external_vue_.createVNode)("div", {
|
|
1945
1971
|
"class": this.resolveClassName('cascader-panel-wrapper')
|
|
1946
|
-
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu) {
|
|
1972
|
+
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu, index) {
|
|
1973
|
+
var _this$$slots$panel, _this$$slots;
|
|
1947
1974
|
return (0,external_vue_.createVNode)("ul", {
|
|
1948
1975
|
"style": {
|
|
1949
1976
|
height: _this.panelHeight,
|
|
1950
1977
|
width: _this.panelWidth
|
|
1951
1978
|
},
|
|
1952
1979
|
"class": [_this.resolveClassName('cascader-panel'), _this.resolveClassName('scroll-y')]
|
|
1953
|
-
}, [
|
|
1954
|
-
|
|
1980
|
+
}, [(_this$$slots$panel = (_this$$slots = _this.$slots).panel) === null || _this$$slots$panel === void 0 ? void 0 : _this$$slots$panel.call(_this$$slots, {
|
|
1981
|
+
nodes: menu,
|
|
1982
|
+
level: index,
|
|
1983
|
+
activePath: _this.activePath
|
|
1984
|
+
}), menu.length ? menu.map(function (node) {
|
|
1985
|
+
var _this$$slots$default, _this$$slots2;
|
|
1955
1986
|
return (0,external_vue_.createVNode)("li", (0,external_vue_.mergeProps)({
|
|
1956
1987
|
"class": [_this.resolveClassName('cascader-node'), {
|
|
1957
1988
|
'is-selected': _this.isNodeInPath(node)
|
|
@@ -1971,7 +2002,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1971
2002
|
"onChange": function onChange(val) {
|
|
1972
2003
|
return _this.checkNode(node, !!val);
|
|
1973
2004
|
}
|
|
1974
|
-
}, null), (_this$$slots$default = (_this$$
|
|
2005
|
+
}, null), (_this$$slots$default = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2, {
|
|
1975
2006
|
node: node,
|
|
1976
2007
|
data: node.data
|
|
1977
2008
|
}), !node.isLeaf ? _this.iconRender(node) : '']);
|
|
@@ -2015,7 +2046,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
2015
2046
|
* Tencent is pleased to support the open source community by making
|
|
2016
2047
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2017
2048
|
*
|
|
2018
|
-
* Copyright (C)
|
|
2049
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2019
2050
|
*
|
|
2020
2051
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2021
2052
|
*
|
|
@@ -2212,7 +2243,7 @@ var Node = /*#__PURE__*/function () {
|
|
|
2212
2243
|
* Tencent is pleased to support the open source community by making
|
|
2213
2244
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2214
2245
|
*
|
|
2215
|
-
* Copyright (C)
|
|
2246
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2216
2247
|
*
|
|
2217
2248
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2218
2249
|
*
|
|
@@ -2365,7 +2396,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2365
2396
|
* Tencent is pleased to support the open source community by making
|
|
2366
2397
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2367
2398
|
*
|
|
2368
|
-
* Copyright (C)
|
|
2399
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2369
2400
|
*
|
|
2370
2401
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2371
2402
|
*
|
|
@@ -2400,6 +2431,9 @@ var Store = /*#__PURE__*/function () {
|
|
|
2400
2431
|
|
|
2401
2432
|
|
|
2402
2433
|
|
|
2434
|
+
|
|
2435
|
+
|
|
2436
|
+
|
|
2403
2437
|
/**
|
|
2404
2438
|
* Cascader 组件
|
|
2405
2439
|
* 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
|
|
@@ -2428,12 +2462,14 @@ var Store = /*#__PURE__*/function () {
|
|
|
2428
2462
|
childrenKey: shared_.PropTypes.string.def('children'),
|
|
2429
2463
|
separator: shared_.PropTypes.string.def('/'),
|
|
2430
2464
|
limitOneLine: shared_.PropTypes.bool.def(false),
|
|
2465
|
+
popoverOptions: Object,
|
|
2431
2466
|
extCls: shared_.PropTypes.string.def(''),
|
|
2432
2467
|
filterMethod: shared_.PropTypes.func,
|
|
2433
2468
|
scrollHeight: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def(216),
|
|
2434
2469
|
scrollWidth: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def('auto'),
|
|
2435
2470
|
customTextFillback: shared_.PropTypes.func,
|
|
2436
2471
|
customTagsFillback: shared_.PropTypes.func,
|
|
2472
|
+
changeEmitsNodes: shared_.PropTypes.bool.def(false),
|
|
2437
2473
|
collapseTags: {
|
|
2438
2474
|
type: Boolean,
|
|
2439
2475
|
"default": true
|
|
@@ -2449,14 +2485,15 @@ var Store = /*#__PURE__*/function () {
|
|
|
2449
2485
|
var emit = _ref.emit,
|
|
2450
2486
|
slots = _ref.slots;
|
|
2451
2487
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
|
2452
|
-
var separator = props.separator
|
|
2453
|
-
multiple = props.multiple;
|
|
2488
|
+
var separator = props.separator;
|
|
2454
2489
|
// 用useHover自定义hook来处理鼠标hover状态
|
|
2455
2490
|
var _useHover = (0,select_namespaceObject.useHover)(),
|
|
2456
2491
|
isHover = _useHover.isHover,
|
|
2457
2492
|
setHover = _useHover.setHover,
|
|
2458
2493
|
cancelHover = _useHover.cancelHover;
|
|
2459
2494
|
var store = (0,external_vue_.ref)(new src_store(props));
|
|
2495
|
+
// 用于处理在 removeTag 时, popOver panel 触发 clickOutside 消失的问题
|
|
2496
|
+
var isAlways = (0,external_vue_.ref)(false);
|
|
2460
2497
|
// 定义selectedText变量用于记录当前选择的值的文本
|
|
2461
2498
|
var selectedText = (0,external_vue_.ref)('');
|
|
2462
2499
|
// 定义selectedTags变量用于记录多选模式下已选的tag
|
|
@@ -2493,7 +2530,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2493
2530
|
var inputRef = (0,external_vue_.ref)(null);
|
|
2494
2531
|
// 用computed定义placeholder变量,用于处理props中的placeholder属性
|
|
2495
2532
|
var placeholder = (0,external_vue_.computed)(function () {
|
|
2496
|
-
|
|
2533
|
+
var placeholder = props.placeholder ? props.placeholder : t.value.pleaseSelect;
|
|
2534
|
+
return modelValue.value.length === 0 ? placeholder : '';
|
|
2497
2535
|
});
|
|
2498
2536
|
var displayText = (0,external_vue_.computed)(function () {
|
|
2499
2537
|
if (props.customTextFillback) {
|
|
@@ -2521,7 +2559,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2521
2559
|
// 更新选中
|
|
2522
2560
|
var updateValue = function updateValue(val) {
|
|
2523
2561
|
// 更新多选情况下的选中标签
|
|
2524
|
-
if (multiple) {
|
|
2562
|
+
if (props.multiple) {
|
|
2525
2563
|
store.value.setNodesCheck(val); // 同步节点选中的状态
|
|
2526
2564
|
selectedTags.value = store.value.getCheckedNodes().filter(function (node) {
|
|
2527
2565
|
return store.value.config.checkAnyLevel || node.isLeaf;
|
|
@@ -2558,18 +2596,25 @@ var Store = /*#__PURE__*/function () {
|
|
|
2558
2596
|
};
|
|
2559
2597
|
// 移除tag
|
|
2560
2598
|
var removeTag = function removeTag(value, index, e) {
|
|
2599
|
+
isAlways.value = true;
|
|
2561
2600
|
e.stopPropagation();
|
|
2562
2601
|
var current = JSON.parse(JSON.stringify(value));
|
|
2563
2602
|
var tag = current.splice(index, 1)[0];
|
|
2564
2603
|
isEdit.value = true; // 删除时也在编辑态,触发overflowTagIndex的计算
|
|
2565
2604
|
store.value.removeTag(tag);
|
|
2566
2605
|
updateValue(current);
|
|
2567
|
-
emit('update:modelValue', store.value.getCheckedNodes()
|
|
2606
|
+
emit('update:modelValue', store.value.getCheckedNodes()
|
|
2607
|
+
// a. 开启 checkAnyLevel 后,不过滤任何节点
|
|
2608
|
+
// b. 关闭 checkAnyLevel 后,只返回叶子节点,避免父节点在子节点全部选中后,同时出现在 modelValue 中
|
|
2609
|
+
.filter(function (node) {
|
|
2610
|
+
return store.value.config.checkAnyLevel || node.isLeaf;
|
|
2611
|
+
}).map(function (node) {
|
|
2568
2612
|
return node.path;
|
|
2569
2613
|
}));
|
|
2570
2614
|
// 计算过后,关闭编辑状态
|
|
2571
2615
|
setTimeout(function () {
|
|
2572
2616
|
isEdit.value = isFocus.value;
|
|
2617
|
+
isAlways.value = false;
|
|
2573
2618
|
});
|
|
2574
2619
|
};
|
|
2575
2620
|
// modelValue的监听函数
|
|
@@ -2578,7 +2623,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2578
2623
|
updateValue(value);
|
|
2579
2624
|
// 派发相关事件
|
|
2580
2625
|
emit('update:modelValue', value);
|
|
2581
|
-
|
|
2626
|
+
var emitValue = props.changeEmitsNodes ? store.value.getNodeByValue(value) : value;
|
|
2627
|
+
oldValue !== undefined && emit('change', emitValue); // oldValue = undefined代表初始化,init不派发change事件
|
|
2582
2628
|
// 如果有过滤搜索,选择后,自动focus到input
|
|
2583
2629
|
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
|
2584
2630
|
// 选择后过滤条件清除,面板初始化渲染
|
|
@@ -2597,10 +2643,9 @@ var Store = /*#__PURE__*/function () {
|
|
|
2597
2643
|
// popover激活后,focus相应事件
|
|
2598
2644
|
isFocus.value = val.isShow;
|
|
2599
2645
|
(0,external_vue_.nextTick)(function () {
|
|
2600
|
-
var _inputRef$value2;
|
|
2601
|
-
val && ((_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 ? void 0 : _inputRef$value2.focus());
|
|
2602
2646
|
if (val.isShow) {
|
|
2603
|
-
var _cascaderPanel$value;
|
|
2647
|
+
var _inputRef$value2, _cascaderPanel$value;
|
|
2648
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
|
|
2604
2649
|
(_cascaderPanel$value = cascaderPanel.value) === null || _cascaderPanel$value === void 0 || _cascaderPanel$value.scrollToSelected(); // 滚动到选中的节点
|
|
2605
2650
|
}
|
|
2606
2651
|
});
|
|
@@ -2656,6 +2701,22 @@ var Store = /*#__PURE__*/function () {
|
|
|
2656
2701
|
deep: true,
|
|
2657
2702
|
immediate: true
|
|
2658
2703
|
});
|
|
2704
|
+
// 监听multiple属性的变化,当切换单选/多选模式时需要重新初始化组件
|
|
2705
|
+
(0,external_vue_.watch)(function () {
|
|
2706
|
+
return props.multiple;
|
|
2707
|
+
}, function (newVal, oldVal) {
|
|
2708
|
+
if (newVal !== oldVal) {
|
|
2709
|
+
// 重新初始化store
|
|
2710
|
+
store.value = new src_store(props);
|
|
2711
|
+
// 重置selectedTags和selectedText状态
|
|
2712
|
+
selectedTags.value = [];
|
|
2713
|
+
selectedText.value = '';
|
|
2714
|
+
// 更新组件状态
|
|
2715
|
+
updateValue(props.modelValue);
|
|
2716
|
+
}
|
|
2717
|
+
}, {
|
|
2718
|
+
immediate: true
|
|
2719
|
+
});
|
|
2659
2720
|
// 定义overflowTagIndex变量,用于处理tag的折叠
|
|
2660
2721
|
var tagList = (0,external_vue_.computed)(function () {
|
|
2661
2722
|
return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
|
|
@@ -2683,6 +2744,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2683
2744
|
overflowTagIndex: overflowTagIndex,
|
|
2684
2745
|
isCollapse: isCollapse,
|
|
2685
2746
|
isFocus: isFocus,
|
|
2747
|
+
isAlways: isAlways,
|
|
2686
2748
|
store: store,
|
|
2687
2749
|
updateValue: updateValue,
|
|
2688
2750
|
selectedText: selectedText,
|
|
@@ -2713,7 +2775,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2713
2775
|
var _this = this;
|
|
2714
2776
|
// 定义suffixIcon函数,用于根据不同情况渲染后缀图标
|
|
2715
2777
|
var suffixIcon = function suffixIcon() {
|
|
2716
|
-
|
|
2778
|
+
var _this$modelValue;
|
|
2779
|
+
if (_this.clearable && _this.isHover && !_this.disabled && ((_this$modelValue = _this.modelValue) === null || _this$modelValue === void 0 ? void 0 : _this$modelValue.length) > 0) {
|
|
2717
2780
|
// 当可清空、鼠标悬浮且未禁用时,渲染清空图标
|
|
2718
2781
|
return (0,external_vue_.createVNode)(icon_namespaceObject.Close, {
|
|
2719
2782
|
"class": _this.resolveClassName('icon-clear-icon'),
|
|
@@ -2734,6 +2797,21 @@ var Store = /*#__PURE__*/function () {
|
|
|
2734
2797
|
}
|
|
2735
2798
|
return acc;
|
|
2736
2799
|
}, []);
|
|
2800
|
+
// 定义renderInput函数
|
|
2801
|
+
var renderInput = function renderInput() {
|
|
2802
|
+
return (0,external_vue_.createVNode)("input", {
|
|
2803
|
+
"ref": "inputRef",
|
|
2804
|
+
"class": [_this.resolveClassName('cascader-search-input'), {
|
|
2805
|
+
'is-disabled': _this.disabled
|
|
2806
|
+
}],
|
|
2807
|
+
"disabled": _this.disabled,
|
|
2808
|
+
"placeholder": _this.calcuPlaceholder,
|
|
2809
|
+
"type": "text",
|
|
2810
|
+
"value": _this.searchKey,
|
|
2811
|
+
"onBlur": _this.searchBlueHandler,
|
|
2812
|
+
"onInput": _this.searchInputHandler
|
|
2813
|
+
}, null);
|
|
2814
|
+
};
|
|
2737
2815
|
// 定义renderTags函数,用于渲染选中的tag
|
|
2738
2816
|
var renderTags = function renderTags() {
|
|
2739
2817
|
if (_this.limitOneLine) {
|
|
@@ -2768,7 +2846,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2768
2846
|
"default": function _default() {
|
|
2769
2847
|
return [(0,external_vue_.createTextVNode)("+"), _this.selectedTags.length - _this.overflowTagIndex];
|
|
2770
2848
|
}
|
|
2771
|
-
}), [[(0,external_vue_.resolveDirective)("bk-tooltips"), collapseTooltip.join(', ')]])]);
|
|
2849
|
+
}), [[(0,external_vue_.resolveDirective)("bk-tooltips"), collapseTooltip.join(', ')]]), _this.filterable && renderInput()]);
|
|
2772
2850
|
};
|
|
2773
2851
|
var textRender = function textRender() {
|
|
2774
2852
|
return (
|
|
@@ -2776,42 +2854,37 @@ var Store = /*#__PURE__*/function () {
|
|
|
2776
2854
|
_this.multiple ? null : (0,external_vue_.createVNode)("span", null, [_this.displayText])
|
|
2777
2855
|
);
|
|
2778
2856
|
};
|
|
2857
|
+
/** popover 基础配置 */
|
|
2858
|
+
var basePopoverOptions = (0,merge_namespaceObject["default"])({
|
|
2859
|
+
always: this.isAlways,
|
|
2860
|
+
arrow: false,
|
|
2861
|
+
boundary: 'body',
|
|
2862
|
+
disabled: this.disabled,
|
|
2863
|
+
hideIgnoreReference: true,
|
|
2864
|
+
offset: 4,
|
|
2865
|
+
placement: 'bottom-start',
|
|
2866
|
+
referenceCls: this.resolveClassName('cascader-popover-reference'),
|
|
2867
|
+
theme: "light ".concat(this.resolveClassName('cascader-popover')),
|
|
2868
|
+
trigger: 'click'
|
|
2869
|
+
}, this.popoverOptions);
|
|
2779
2870
|
// 定义popoverRender函数,用于渲染弹出框
|
|
2780
2871
|
var popoverRender = function popoverRender() {
|
|
2781
|
-
return (0,external_vue_.createVNode)(popover_["default"], {
|
|
2872
|
+
return (0,external_vue_.createVNode)(popover_["default"], (0,external_vue_.mergeProps)({
|
|
2782
2873
|
"ref": "popover",
|
|
2783
2874
|
"class": _this.resolveClassName('cascader-popover-wrapper'),
|
|
2784
|
-
"arrow": false,
|
|
2785
|
-
"boundary": "body",
|
|
2786
|
-
"disabled": _this.disabled,
|
|
2787
|
-
"offset": 4,
|
|
2788
|
-
"placement": "bottom-start",
|
|
2789
|
-
"referenceCls": _this.resolveClassName('cascader-popover-reference'),
|
|
2790
|
-
"theme": "light ".concat(_this.resolveClassName('cascader-popover')),
|
|
2791
|
-
"trigger": "click",
|
|
2792
2875
|
"onAfterHidden": _this.popoverChangeEmitter,
|
|
2793
2876
|
"onAfterShow": _this.popoverChangeEmitter
|
|
2794
|
-
}, {
|
|
2877
|
+
}, basePopoverOptions), {
|
|
2795
2878
|
"default": function _default() {
|
|
2796
2879
|
return _this.$slots.trigger ? _this.$slots.trigger({
|
|
2797
2880
|
selected: _this.modelValue,
|
|
2798
2881
|
isShow: _this.isShowPanel
|
|
2799
2882
|
}) : (0,external_vue_.createVNode)("div", {
|
|
2800
2883
|
"class": [_this.resolveClassName('cascader-name'), _this.resolveClassName('scroll-y')]
|
|
2801
|
-
}, [_this.multiple && _this.selectedTags.length > 0 && renderTags(), _this.filterable ?
|
|
2802
|
-
"ref": "inputRef",
|
|
2803
|
-
"class": [_this.resolveClassName('cascader-search-input'), {
|
|
2804
|
-
'is-disabled': _this.disabled
|
|
2805
|
-
}],
|
|
2806
|
-
"disabled": _this.disabled,
|
|
2807
|
-
"placeholder": _this.calcuPlaceholder,
|
|
2808
|
-
"type": "text",
|
|
2809
|
-
"value": _this.searchKey,
|
|
2810
|
-
"onBlur": _this.searchBlueHandler,
|
|
2811
|
-
"onInput": _this.searchInputHandler
|
|
2812
|
-
}, null) : textRender()]);
|
|
2884
|
+
}, [_this.multiple && _this.selectedTags.length > 0 && renderTags(), _this.filterable ? _this.selectedTags.length === 0 && renderInput() : textRender()]);
|
|
2813
2885
|
},
|
|
2814
2886
|
content: function content() {
|
|
2887
|
+
var _this$$slots$extensio, _this$$slots;
|
|
2815
2888
|
return (0,external_vue_.createVNode)("div", {
|
|
2816
2889
|
"class": _this.resolveClassName('cascader-popover')
|
|
2817
2890
|
}, [(0,external_vue_.createVNode)(cascader_panel, {
|
|
@@ -2829,11 +2902,20 @@ var Store = /*#__PURE__*/function () {
|
|
|
2829
2902
|
"suggestions": _this.suggestions
|
|
2830
2903
|
}, {
|
|
2831
2904
|
"default": function _default(scope) {
|
|
2832
|
-
return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_.createVNode)("
|
|
2833
|
-
"
|
|
2834
|
-
},
|
|
2905
|
+
return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_.createVNode)(overflow_title_namespaceObject["default"], {
|
|
2906
|
+
"type": "tips"
|
|
2907
|
+
}, {
|
|
2908
|
+
"default": function _default() {
|
|
2909
|
+
return [(0,external_vue_.createVNode)("span", {
|
|
2910
|
+
"class": _this.resolveClassName('cascader-node-name')
|
|
2911
|
+
}, [scope.node.name])];
|
|
2912
|
+
}
|
|
2913
|
+
});
|
|
2914
|
+
},
|
|
2915
|
+
panel: function panel(scope) {
|
|
2916
|
+
return _this.$slots.panel ? _this.$slots.panel(scope) : null;
|
|
2835
2917
|
}
|
|
2836
|
-
})]);
|
|
2918
|
+
}), (_this$$slots$extensio = (_this$$slots = _this.$slots).extension) === null || _this$$slots$extensio === void 0 ? void 0 : _this$$slots$extensio.call(_this$$slots)]);
|
|
2837
2919
|
}
|
|
2838
2920
|
});
|
|
2839
2921
|
};
|
|
@@ -2842,7 +2924,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2842
2924
|
}, [this.$slots.trigger ? popoverRender() : (0,external_vue_.createVNode)("div", {
|
|
2843
2925
|
"ref": "bkCascaderRef",
|
|
2844
2926
|
"class": [this.resolveClassName('cascader'), this.extCls, {
|
|
2845
|
-
'is-unselected': this.modelValue.length === 0,
|
|
2927
|
+
'is-unselected': !this.modelValue || this.modelValue.length === 0,
|
|
2846
2928
|
'is-hover': this.isHover,
|
|
2847
2929
|
'is-filterable': this.filterable,
|
|
2848
2930
|
'is-focus': this.isFocus,
|
|
@@ -2861,7 +2943,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2861
2943
|
* Tencent is pleased to support the open source community by making
|
|
2862
2944
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2863
2945
|
*
|
|
2864
|
-
* Copyright (C)
|
|
2946
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2865
2947
|
*
|
|
2866
2948
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2867
2949
|
*
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
--submenu-bg-color: #151d2c;
|
|
99
99
|
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
|
100
100
|
--menu-color: #96a2b9;
|
|
101
|
-
--menu-group-color:
|
|
101
|
+
--menu-group-color: #6E788B;
|
|
102
102
|
--menu-width: 260px;
|
|
103
103
|
--menu-collapse-width: 60px;
|
|
104
104
|
--menu-active-color: white;
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
--search-select-menu-border-color: var(--disable-color);
|
|
128
128
|
--select-active-color: #e1ecff;
|
|
129
129
|
--select-hover-color: #f5f7fa;
|
|
130
|
+
--sub-title-bg-color: #f5f6fa;
|
|
130
131
|
}
|
|
131
132
|
.bk-checkbox-group {
|
|
132
133
|
display: inline-flex;
|
package/lib/checkbox/index.js
CHANGED
|
@@ -166,7 +166,7 @@ const icon_namespaceObject = icon_x({ ["Loading"]: () => __WEBPACK_EXTERNAL_MODU
|
|
|
166
166
|
* Tencent is pleased to support the open source community by making
|
|
167
167
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
168
168
|
*
|
|
169
|
-
* Copyright (C)
|
|
169
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
170
170
|
*
|
|
171
171
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
172
172
|
*
|
|
@@ -232,7 +232,7 @@ var useCheckbox = function useCheckbox() {
|
|
|
232
232
|
}
|
|
233
233
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
|
234
234
|
// 选中状态保持同步
|
|
235
|
-
if (inputRef.value.checked !== isChecked.value) {
|
|
235
|
+
if (inputRef.value && inputRef.value.checked !== isChecked.value) {
|
|
236
236
|
inputRef.value.checked = isChecked.value;
|
|
237
237
|
}
|
|
238
238
|
});
|
|
@@ -322,7 +322,7 @@ var useCheckbox = function useCheckbox() {
|
|
|
322
322
|
* Tencent is pleased to support the open source community by making
|
|
323
323
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
324
324
|
*
|
|
325
|
-
* Copyright (C)
|
|
325
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
326
326
|
*
|
|
327
327
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
328
328
|
*
|
|
@@ -443,7 +443,7 @@ var checkboxProps = {
|
|
|
443
443
|
* Tencent is pleased to support the open source community by making
|
|
444
444
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
445
445
|
*
|
|
446
|
-
* Copyright (C)
|
|
446
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
447
447
|
*
|
|
448
448
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
449
449
|
*
|
|
@@ -547,7 +547,7 @@ var checkboxGroupProps = {
|
|
|
547
547
|
* Tencent is pleased to support the open source community by making
|
|
548
548
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
549
549
|
*
|
|
550
|
-
* Copyright (C)
|
|
550
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
551
551
|
*
|
|
552
552
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
553
553
|
*
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
--submenu-bg-color: #151d2c;
|
|
99
99
|
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
|
100
100
|
--menu-color: #96a2b9;
|
|
101
|
-
--menu-group-color:
|
|
101
|
+
--menu-group-color: #6E788B;
|
|
102
102
|
--menu-width: 260px;
|
|
103
103
|
--menu-collapse-width: 60px;
|
|
104
104
|
--menu-active-color: white;
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
--search-select-menu-border-color: var(--disable-color);
|
|
128
128
|
--select-active-color: #e1ecff;
|
|
129
129
|
--select-hover-color: #f5f7fa;
|
|
130
|
+
--sub-title-bg-color: #f5f6fa;
|
|
130
131
|
}
|
|
131
132
|
/* stylelint-disable declaration-no-important */
|
|
132
133
|
.bk-code-diff {
|
package/lib/code-diff/index.js
CHANGED
|
@@ -5435,7 +5435,7 @@ var diff2html_min = __webpack_require__(9003);
|
|
|
5435
5435
|
* Tencent is pleased to support the open source community by making
|
|
5436
5436
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
5437
5437
|
*
|
|
5438
|
-
* Copyright (C)
|
|
5438
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
5439
5439
|
*
|
|
5440
5440
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
5441
5441
|
*
|
|
@@ -5551,7 +5551,7 @@ function changeCodeCls(htmlStr, lang) {
|
|
|
5551
5551
|
* Tencent is pleased to support the open source community by making
|
|
5552
5552
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
5553
5553
|
*
|
|
5554
|
-
* Copyright (C)
|
|
5554
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
5555
5555
|
*
|
|
5556
5556
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
5557
5557
|
*
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
--submenu-bg-color: #151d2c;
|
|
99
99
|
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
|
100
100
|
--menu-color: #96a2b9;
|
|
101
|
-
--menu-group-color:
|
|
101
|
+
--menu-group-color: #6E788B;
|
|
102
102
|
--menu-width: 260px;
|
|
103
103
|
--menu-collapse-width: 60px;
|
|
104
104
|
--menu-active-color: white;
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
--search-select-menu-border-color: var(--disable-color);
|
|
128
128
|
--select-active-color: #e1ecff;
|
|
129
129
|
--select-hover-color: #f5f7fa;
|
|
130
|
+
--sub-title-bg-color: #f5f6fa;
|
|
130
131
|
}
|
|
131
132
|
.bk-collapse-item {
|
|
132
133
|
display: flex;
|