bkui-vue 2.0.2-beta.7 → 2.0.2-beta.70
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 +165 -138
- package/dist/index.esm.js +24235 -18488
- package/dist/index.umd.js +165 -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 +26 -24
- package/lib/cascader/cascader.d.ts +311 -0
- package/lib/cascader/cascader.less +78 -76
- package/lib/cascader/cascader.variable.css +28 -25
- package/lib/cascader/index.d.ts +610 -0
- package/lib/cascader/index.js +107 -49
- 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 +62 -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 +77 -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 +6 -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 +16 -4
- package/lib/form/form.less +24 -6
- package/lib/form/form.variable.css +18 -5
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +41 -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 +9 -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 +39 -20
- package/lib/input/index.js +44 -27
- package/lib/input/input.css +6 -0
- package/lib/input/input.d.ts +30 -16
- 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 +3 -3
- 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 +4 -4
- package/lib/message/message.variable.css +2 -1
- package/lib/modal/index.js +14 -6
- 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 +3 -3
- package/lib/notify/notify.variable.css +2 -1
- package/lib/overflow-title/index.js +3 -3
- 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 +584 -0
- package/lib/pop-confirm/index.js +10 -6
- package/lib/pop-confirm/pop-confirm.d.ts +292 -0
- package/lib/pop-confirm/pop-confirm.variable.css +2 -1
- package/lib/pop-confirm/props.d.ts +146 -0
- package/lib/popover/index.js +18 -21
- package/lib/popover/popover.variable.css +2 -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 +39 -11
- package/lib/search-select/index.js +86 -37
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/search-select.d.ts +13 -4
- 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/index.d.ts +22 -3
- package/lib/select/index.js +34 -28
- package/lib/select/select.d.ts +11 -1
- package/lib/select/select.variable.css +2 -1
- 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.js +5 -3
- package/lib/sideslider/sideslider.variable.css +2 -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 +2 -2
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +2 -1
- 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 +20 -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 +33 -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.js +2 -2
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/index.d.ts +9 -0
- package/lib/tag-input/index.js +1569 -42
- package/lib/tag-input/tag-input.css +16 -0
- package/lib/tag-input/tag-input.d.ts +17 -2
- package/lib/tag-input/tag-input.less +16 -0
- package/lib/tag-input/tag-input.variable.css +18 -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.js +1353 -4
- package/lib/timeline/timeline.d.ts +1 -1
- 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 +48 -11
- package/lib/tree/index.js +17650 -106
- package/lib/tree/props.d.ts +30 -3
- package/lib/tree/tree.css +46 -0
- package/lib/tree/tree.d.ts +22 -5
- package/lib/tree/tree.less +57 -2
- package/lib/tree/tree.variable.css +48 -1
- package/lib/tree/use-array-move.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- 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 +7 -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
|
@@ -14,6 +14,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_select_1a0d1ad7__ from "../se
|
|
|
14
14
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
|
15
15
|
import "../tag/tag.less";
|
|
16
16
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__ from "../tag-input";
|
|
17
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
|
17
18
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
|
18
19
|
import "../checkbox/checkbox.less";
|
|
19
20
|
/******/ var __webpack_modules__ = ({
|
|
@@ -37,7 +38,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
37
38
|
* Tencent is pleased to support the open source community by making
|
|
38
39
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
39
40
|
*
|
|
40
|
-
* Copyright (C)
|
|
41
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
41
42
|
*
|
|
42
43
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
43
44
|
*
|
|
@@ -165,7 +166,7 @@ var popover_ = __webpack_require__(563);
|
|
|
165
166
|
* Tencent is pleased to support the open source community by making
|
|
166
167
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
167
168
|
*
|
|
168
|
-
* Copyright (C)
|
|
169
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
169
170
|
*
|
|
170
171
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
171
172
|
*
|
|
@@ -277,7 +278,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
|
|
|
277
278
|
* Tencent is pleased to support the open source community by making
|
|
278
279
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
279
280
|
*
|
|
280
|
-
* Copyright (C)
|
|
281
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
281
282
|
*
|
|
282
283
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
283
284
|
*
|
|
@@ -336,7 +337,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
336
337
|
* Tencent is pleased to support the open source community by making
|
|
337
338
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
338
339
|
*
|
|
339
|
-
* Copyright (C)
|
|
340
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
340
341
|
*
|
|
341
342
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
342
343
|
*
|
|
@@ -391,9 +392,6 @@ var tooltips = {
|
|
|
391
392
|
hide(el);
|
|
392
393
|
}, 100);
|
|
393
394
|
});
|
|
394
|
-
el.addEventListener('click', function () {
|
|
395
|
-
hide(el);
|
|
396
|
-
});
|
|
397
395
|
popper.addEventListener('mouseleave', function () {
|
|
398
396
|
clearTimeout(delayTimeout);
|
|
399
397
|
hideTimeout = setTimeout(function () {
|
|
@@ -407,7 +405,7 @@ var tooltips = {
|
|
|
407
405
|
show(el);
|
|
408
406
|
clearTimeout(delayTimeout);
|
|
409
407
|
}, opts.delay);
|
|
410
|
-
} else if (popper.hasAttribute('data-show')) {
|
|
408
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
|
411
409
|
hide(el);
|
|
412
410
|
}
|
|
413
411
|
});
|
|
@@ -631,7 +629,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
|
631
629
|
* Tencent is pleased to support the open source community by making
|
|
632
630
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
633
631
|
*
|
|
634
|
-
* Copyright (C)
|
|
632
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
635
633
|
*
|
|
636
634
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
637
635
|
*
|
|
@@ -1574,6 +1572,10 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
|
1574
1572
|
var tag_input_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1575
1573
|
var tag_input_y = x => () => x
|
|
1576
1574
|
const tag_input_namespaceObject = tag_input_x({ ["useTagsOverflow"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_input_bee9f515__.useTagsOverflow });
|
|
1575
|
+
;// CONCATENATED MODULE: external "lodash/merge"
|
|
1576
|
+
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1577
|
+
var merge_y = x => () => x
|
|
1578
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
|
1577
1579
|
;// CONCATENATED MODULE: external "../checkbox"
|
|
1578
1580
|
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1579
1581
|
var checkbox_y = x => () => x
|
|
@@ -1591,7 +1593,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1591
1593
|
* Tencent is pleased to support the open source community by making
|
|
1592
1594
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1593
1595
|
*
|
|
1594
|
-
* Copyright (C)
|
|
1596
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1595
1597
|
*
|
|
1596
1598
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1597
1599
|
*
|
|
@@ -1641,7 +1643,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1641
1643
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
|
1642
1644
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
|
1643
1645
|
resolveClassName = _usePrefix.resolveClassName;
|
|
1644
|
-
var
|
|
1646
|
+
var _toRefs = (0,external_vue_.toRefs)(props),
|
|
1647
|
+
store = _toRefs.store;
|
|
1645
1648
|
var menus = (0,external_vue_.reactive)({
|
|
1646
1649
|
list: [props.store.getNodes()]
|
|
1647
1650
|
});
|
|
@@ -1665,7 +1668,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1665
1668
|
* @param value - 选中的值数组
|
|
1666
1669
|
*/
|
|
1667
1670
|
var updateCheckValue = function updateCheckValue(value) {
|
|
1668
|
-
if (value.length === 0) {
|
|
1671
|
+
if (!value || value.length === 0) {
|
|
1669
1672
|
menus.list = menus.list.slice(0, 1);
|
|
1670
1673
|
activePath.value = [];
|
|
1671
1674
|
}
|
|
@@ -1680,10 +1683,10 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1680
1683
|
// 判断是否为初始加载
|
|
1681
1684
|
var isInitialLoad = checkValue.value.length === 0;
|
|
1682
1685
|
// 如果是初始加载或单选情况,按原来的逻辑处理
|
|
1683
|
-
if (isInitialLoad || !store.config.multiple) {
|
|
1686
|
+
if (isInitialLoad || !store.value.config.multiple) {
|
|
1684
1687
|
var targetList = [];
|
|
1685
1688
|
// 处理多选情况
|
|
1686
|
-
if (store.config.multiple) {
|
|
1689
|
+
if (store.value.config.multiple) {
|
|
1687
1690
|
var _iterator = _createForOfIteratorHelper(value),
|
|
1688
1691
|
_step;
|
|
1689
1692
|
try {
|
|
@@ -1704,7 +1707,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1704
1707
|
}
|
|
1705
1708
|
// 执行展开操作
|
|
1706
1709
|
targetList.forEach(function (id) {
|
|
1707
|
-
var node = store.getNodeById(id);
|
|
1710
|
+
var node = store.value.getNodeById(id);
|
|
1708
1711
|
if (node) {
|
|
1709
1712
|
// 只展开,不需要重复触发
|
|
1710
1713
|
var expandNode = function expandNode(node) {
|
|
@@ -1745,7 +1748,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1745
1748
|
}
|
|
1746
1749
|
if (node.config.multiple) {
|
|
1747
1750
|
// 如果checkAnyLevel,返回所有check的节点; 否则只check 叶子节点
|
|
1748
|
-
var targets = store.config.checkAnyLevel ? store.getCheckedNodes() : store.getCheckedLeafNodes();
|
|
1751
|
+
var targets = store.value.config.checkAnyLevel ? store.value.getCheckedNodes() : store.value.getCheckedLeafNodes();
|
|
1749
1752
|
checkValue.value = targets.map(function (node) {
|
|
1750
1753
|
return node.path;
|
|
1751
1754
|
}); // 如果任意级别可选,当前节点即为所选内容
|
|
@@ -1768,15 +1771,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1768
1771
|
activePath.value.push(node);
|
|
1769
1772
|
return;
|
|
1770
1773
|
}
|
|
1771
|
-
if (store.config.isRemote && !node.isLeaf) {
|
|
1774
|
+
if (store.value.config.isRemote && !node.isLeaf) {
|
|
1772
1775
|
node.loading = true;
|
|
1773
1776
|
var updateNodes = function updateNodes(nodeData) {
|
|
1774
|
-
store.appendNodes(nodeData, node || null);
|
|
1777
|
+
store.value.appendNodes(nodeData, node || null);
|
|
1775
1778
|
menus.list.push(node.children);
|
|
1776
1779
|
activePath.value.push(node);
|
|
1777
1780
|
node.loading = false;
|
|
1778
1781
|
};
|
|
1779
|
-
store.config.remoteMethod(node, updateNodes);
|
|
1782
|
+
store.value.config.remoteMethod(node, updateNodes);
|
|
1780
1783
|
}
|
|
1781
1784
|
};
|
|
1782
1785
|
/**
|
|
@@ -1837,6 +1840,17 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1837
1840
|
}
|
|
1838
1841
|
});
|
|
1839
1842
|
};
|
|
1843
|
+
// 监听store.config.multiple属性的变化,当切换单选/多选模式时需要重新初始化面板
|
|
1844
|
+
(0,external_vue_.watch)(function () {
|
|
1845
|
+
return store.value.config.multiple;
|
|
1846
|
+
}, function (newVal, oldVal) {
|
|
1847
|
+
if (newVal !== oldVal) {
|
|
1848
|
+
// 当multiple属性变化时,重置面板状态
|
|
1849
|
+
menus.list = [store.value.getNodes()];
|
|
1850
|
+
activePath.value = [];
|
|
1851
|
+
checkValue.value = [];
|
|
1852
|
+
}
|
|
1853
|
+
});
|
|
1840
1854
|
var noDataText = t.value.noData;
|
|
1841
1855
|
var emptyText = t.value.emptyText;
|
|
1842
1856
|
/**
|
|
@@ -1943,15 +1957,20 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1943
1957
|
};
|
|
1944
1958
|
return (0,external_vue_.createVNode)("div", {
|
|
1945
1959
|
"class": this.resolveClassName('cascader-panel-wrapper')
|
|
1946
|
-
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu) {
|
|
1960
|
+
}, [this.isFiltering ? searchPanelRender() : this.menus.list.map(function (menu, index) {
|
|
1961
|
+
var _this$$slots$panel, _this$$slots;
|
|
1947
1962
|
return (0,external_vue_.createVNode)("ul", {
|
|
1948
1963
|
"style": {
|
|
1949
1964
|
height: _this.panelHeight,
|
|
1950
1965
|
width: _this.panelWidth
|
|
1951
1966
|
},
|
|
1952
1967
|
"class": [_this.resolveClassName('cascader-panel'), _this.resolveClassName('scroll-y')]
|
|
1953
|
-
}, [
|
|
1954
|
-
|
|
1968
|
+
}, [(_this$$slots$panel = (_this$$slots = _this.$slots).panel) === null || _this$$slots$panel === void 0 ? void 0 : _this$$slots$panel.call(_this$$slots, {
|
|
1969
|
+
nodes: menu,
|
|
1970
|
+
level: index,
|
|
1971
|
+
activePath: _this.activePath
|
|
1972
|
+
}), menu.length ? menu.map(function (node) {
|
|
1973
|
+
var _this$$slots$default, _this$$slots2;
|
|
1955
1974
|
return (0,external_vue_.createVNode)("li", (0,external_vue_.mergeProps)({
|
|
1956
1975
|
"class": [_this.resolveClassName('cascader-node'), {
|
|
1957
1976
|
'is-selected': _this.isNodeInPath(node)
|
|
@@ -1971,7 +1990,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1971
1990
|
"onChange": function onChange(val) {
|
|
1972
1991
|
return _this.checkNode(node, !!val);
|
|
1973
1992
|
}
|
|
1974
|
-
}, null), (_this$$slots$default = (_this$$
|
|
1993
|
+
}, null), (_this$$slots$default = (_this$$slots2 = _this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots2, {
|
|
1975
1994
|
node: node,
|
|
1976
1995
|
data: node.data
|
|
1977
1996
|
}), !node.isLeaf ? _this.iconRender(node) : '']);
|
|
@@ -2015,7 +2034,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
2015
2034
|
* Tencent is pleased to support the open source community by making
|
|
2016
2035
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2017
2036
|
*
|
|
2018
|
-
* Copyright (C)
|
|
2037
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2019
2038
|
*
|
|
2020
2039
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2021
2040
|
*
|
|
@@ -2212,7 +2231,7 @@ var Node = /*#__PURE__*/function () {
|
|
|
2212
2231
|
* Tencent is pleased to support the open source community by making
|
|
2213
2232
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2214
2233
|
*
|
|
2215
|
-
* Copyright (C)
|
|
2234
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2216
2235
|
*
|
|
2217
2236
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2218
2237
|
*
|
|
@@ -2365,7 +2384,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2365
2384
|
* Tencent is pleased to support the open source community by making
|
|
2366
2385
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2367
2386
|
*
|
|
2368
|
-
* Copyright (C)
|
|
2387
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2369
2388
|
*
|
|
2370
2389
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2371
2390
|
*
|
|
@@ -2400,6 +2419,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2400
2419
|
|
|
2401
2420
|
|
|
2402
2421
|
|
|
2422
|
+
|
|
2403
2423
|
/**
|
|
2404
2424
|
* Cascader 组件
|
|
2405
2425
|
* 用于展示级联选择器,支持多选、单选、搜索、远程加载等功能。
|
|
@@ -2428,12 +2448,14 @@ var Store = /*#__PURE__*/function () {
|
|
|
2428
2448
|
childrenKey: shared_.PropTypes.string.def('children'),
|
|
2429
2449
|
separator: shared_.PropTypes.string.def('/'),
|
|
2430
2450
|
limitOneLine: shared_.PropTypes.bool.def(false),
|
|
2451
|
+
popoverOptions: Object,
|
|
2431
2452
|
extCls: shared_.PropTypes.string.def(''),
|
|
2432
2453
|
filterMethod: shared_.PropTypes.func,
|
|
2433
2454
|
scrollHeight: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def(216),
|
|
2434
2455
|
scrollWidth: shared_.PropTypes.oneOfType([shared_.PropTypes.number, shared_.PropTypes.string]).def('auto'),
|
|
2435
2456
|
customTextFillback: shared_.PropTypes.func,
|
|
2436
2457
|
customTagsFillback: shared_.PropTypes.func,
|
|
2458
|
+
changeEmitsNodes: shared_.PropTypes.bool.def(false),
|
|
2437
2459
|
collapseTags: {
|
|
2438
2460
|
type: Boolean,
|
|
2439
2461
|
"default": true
|
|
@@ -2449,14 +2471,15 @@ var Store = /*#__PURE__*/function () {
|
|
|
2449
2471
|
var emit = _ref.emit,
|
|
2450
2472
|
slots = _ref.slots;
|
|
2451
2473
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
|
2452
|
-
var separator = props.separator
|
|
2453
|
-
multiple = props.multiple;
|
|
2474
|
+
var separator = props.separator;
|
|
2454
2475
|
// 用useHover自定义hook来处理鼠标hover状态
|
|
2455
2476
|
var _useHover = (0,select_namespaceObject.useHover)(),
|
|
2456
2477
|
isHover = _useHover.isHover,
|
|
2457
2478
|
setHover = _useHover.setHover,
|
|
2458
2479
|
cancelHover = _useHover.cancelHover;
|
|
2459
2480
|
var store = (0,external_vue_.ref)(new src_store(props));
|
|
2481
|
+
// 用于处理在 removeTag 时, popOver panel 触发 clickOutside 消失的问题
|
|
2482
|
+
var isAlways = (0,external_vue_.ref)(false);
|
|
2460
2483
|
// 定义selectedText变量用于记录当前选择的值的文本
|
|
2461
2484
|
var selectedText = (0,external_vue_.ref)('');
|
|
2462
2485
|
// 定义selectedTags变量用于记录多选模式下已选的tag
|
|
@@ -2493,7 +2516,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2493
2516
|
var inputRef = (0,external_vue_.ref)(null);
|
|
2494
2517
|
// 用computed定义placeholder变量,用于处理props中的placeholder属性
|
|
2495
2518
|
var placeholder = (0,external_vue_.computed)(function () {
|
|
2496
|
-
|
|
2519
|
+
var placeholder = props.placeholder ? props.placeholder : t.value.pleaseSelect;
|
|
2520
|
+
return modelValue.value.length === 0 ? placeholder : '';
|
|
2497
2521
|
});
|
|
2498
2522
|
var displayText = (0,external_vue_.computed)(function () {
|
|
2499
2523
|
if (props.customTextFillback) {
|
|
@@ -2521,7 +2545,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2521
2545
|
// 更新选中
|
|
2522
2546
|
var updateValue = function updateValue(val) {
|
|
2523
2547
|
// 更新多选情况下的选中标签
|
|
2524
|
-
if (multiple) {
|
|
2548
|
+
if (props.multiple) {
|
|
2525
2549
|
store.value.setNodesCheck(val); // 同步节点选中的状态
|
|
2526
2550
|
selectedTags.value = store.value.getCheckedNodes().filter(function (node) {
|
|
2527
2551
|
return store.value.config.checkAnyLevel || node.isLeaf;
|
|
@@ -2558,18 +2582,25 @@ var Store = /*#__PURE__*/function () {
|
|
|
2558
2582
|
};
|
|
2559
2583
|
// 移除tag
|
|
2560
2584
|
var removeTag = function removeTag(value, index, e) {
|
|
2585
|
+
isAlways.value = true;
|
|
2561
2586
|
e.stopPropagation();
|
|
2562
2587
|
var current = JSON.parse(JSON.stringify(value));
|
|
2563
2588
|
var tag = current.splice(index, 1)[0];
|
|
2564
2589
|
isEdit.value = true; // 删除时也在编辑态,触发overflowTagIndex的计算
|
|
2565
2590
|
store.value.removeTag(tag);
|
|
2566
2591
|
updateValue(current);
|
|
2567
|
-
emit('update:modelValue', store.value.getCheckedNodes()
|
|
2592
|
+
emit('update:modelValue', store.value.getCheckedNodes()
|
|
2593
|
+
// a. 开启 checkAnyLevel 后,不过滤任何节点
|
|
2594
|
+
// b. 关闭 checkAnyLevel 后,只返回叶子节点,避免父节点在子节点全部选中后,同时出现在 modelValue 中
|
|
2595
|
+
.filter(function (node) {
|
|
2596
|
+
return store.value.config.checkAnyLevel || node.isLeaf;
|
|
2597
|
+
}).map(function (node) {
|
|
2568
2598
|
return node.path;
|
|
2569
2599
|
}));
|
|
2570
2600
|
// 计算过后,关闭编辑状态
|
|
2571
2601
|
setTimeout(function () {
|
|
2572
2602
|
isEdit.value = isFocus.value;
|
|
2603
|
+
isAlways.value = false;
|
|
2573
2604
|
});
|
|
2574
2605
|
};
|
|
2575
2606
|
// modelValue的监听函数
|
|
@@ -2578,7 +2609,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2578
2609
|
updateValue(value);
|
|
2579
2610
|
// 派发相关事件
|
|
2580
2611
|
emit('update:modelValue', value);
|
|
2581
|
-
|
|
2612
|
+
var emitValue = props.changeEmitsNodes ? store.value.getNodeByValue(value) : value;
|
|
2613
|
+
oldValue !== undefined && emit('change', emitValue); // oldValue = undefined代表初始化,init不派发change事件
|
|
2582
2614
|
// 如果有过滤搜索,选择后,自动focus到input
|
|
2583
2615
|
inputRef === null || inputRef === void 0 || (_inputRef$value = inputRef.value) === null || _inputRef$value === void 0 || _inputRef$value.focus();
|
|
2584
2616
|
// 选择后过滤条件清除,面板初始化渲染
|
|
@@ -2597,10 +2629,9 @@ var Store = /*#__PURE__*/function () {
|
|
|
2597
2629
|
// popover激活后,focus相应事件
|
|
2598
2630
|
isFocus.value = val.isShow;
|
|
2599
2631
|
(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
2632
|
if (val.isShow) {
|
|
2603
|
-
var _cascaderPanel$value;
|
|
2633
|
+
var _inputRef$value2, _cascaderPanel$value;
|
|
2634
|
+
(_inputRef$value2 = inputRef.value) === null || _inputRef$value2 === void 0 || _inputRef$value2.focus();
|
|
2604
2635
|
(_cascaderPanel$value = cascaderPanel.value) === null || _cascaderPanel$value === void 0 || _cascaderPanel$value.scrollToSelected(); // 滚动到选中的节点
|
|
2605
2636
|
}
|
|
2606
2637
|
});
|
|
@@ -2656,6 +2687,22 @@ var Store = /*#__PURE__*/function () {
|
|
|
2656
2687
|
deep: true,
|
|
2657
2688
|
immediate: true
|
|
2658
2689
|
});
|
|
2690
|
+
// 监听multiple属性的变化,当切换单选/多选模式时需要重新初始化组件
|
|
2691
|
+
(0,external_vue_.watch)(function () {
|
|
2692
|
+
return props.multiple;
|
|
2693
|
+
}, function (newVal, oldVal) {
|
|
2694
|
+
if (newVal !== oldVal) {
|
|
2695
|
+
// 重新初始化store
|
|
2696
|
+
store.value = new src_store(props);
|
|
2697
|
+
// 重置selectedTags和selectedText状态
|
|
2698
|
+
selectedTags.value = [];
|
|
2699
|
+
selectedText.value = '';
|
|
2700
|
+
// 更新组件状态
|
|
2701
|
+
updateValue(props.modelValue);
|
|
2702
|
+
}
|
|
2703
|
+
}, {
|
|
2704
|
+
immediate: true
|
|
2705
|
+
});
|
|
2659
2706
|
// 定义overflowTagIndex变量,用于处理tag的折叠
|
|
2660
2707
|
var tagList = (0,external_vue_.computed)(function () {
|
|
2661
2708
|
return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
|
|
@@ -2683,6 +2730,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2683
2730
|
overflowTagIndex: overflowTagIndex,
|
|
2684
2731
|
isCollapse: isCollapse,
|
|
2685
2732
|
isFocus: isFocus,
|
|
2733
|
+
isAlways: isAlways,
|
|
2686
2734
|
store: store,
|
|
2687
2735
|
updateValue: updateValue,
|
|
2688
2736
|
selectedText: selectedText,
|
|
@@ -2713,7 +2761,8 @@ var Store = /*#__PURE__*/function () {
|
|
|
2713
2761
|
var _this = this;
|
|
2714
2762
|
// 定义suffixIcon函数,用于根据不同情况渲染后缀图标
|
|
2715
2763
|
var suffixIcon = function suffixIcon() {
|
|
2716
|
-
|
|
2764
|
+
var _this$modelValue;
|
|
2765
|
+
if (_this.clearable && _this.isHover && !_this.disabled && ((_this$modelValue = _this.modelValue) === null || _this$modelValue === void 0 ? void 0 : _this$modelValue.length) > 0) {
|
|
2717
2766
|
// 当可清空、鼠标悬浮且未禁用时,渲染清空图标
|
|
2718
2767
|
return (0,external_vue_.createVNode)(icon_namespaceObject.Close, {
|
|
2719
2768
|
"class": _this.resolveClassName('icon-clear-icon'),
|
|
@@ -2776,22 +2825,27 @@ var Store = /*#__PURE__*/function () {
|
|
|
2776
2825
|
_this.multiple ? null : (0,external_vue_.createVNode)("span", null, [_this.displayText])
|
|
2777
2826
|
);
|
|
2778
2827
|
};
|
|
2828
|
+
/** popover 基础配置 */
|
|
2829
|
+
var basePopoverOptions = (0,merge_namespaceObject["default"])({
|
|
2830
|
+
always: this.isAlways,
|
|
2831
|
+
arrow: false,
|
|
2832
|
+
boundary: 'body',
|
|
2833
|
+
disabled: this.disabled,
|
|
2834
|
+
hideIgnoreReference: true,
|
|
2835
|
+
offset: 4,
|
|
2836
|
+
placement: 'bottom-start',
|
|
2837
|
+
referenceCls: this.resolveClassName('cascader-popover-reference'),
|
|
2838
|
+
theme: "light ".concat(this.resolveClassName('cascader-popover')),
|
|
2839
|
+
trigger: 'click'
|
|
2840
|
+
}, this.popoverOptions);
|
|
2779
2841
|
// 定义popoverRender函数,用于渲染弹出框
|
|
2780
2842
|
var popoverRender = function popoverRender() {
|
|
2781
|
-
return (0,external_vue_.createVNode)(popover_["default"], {
|
|
2843
|
+
return (0,external_vue_.createVNode)(popover_["default"], (0,external_vue_.mergeProps)({
|
|
2782
2844
|
"ref": "popover",
|
|
2783
2845
|
"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
2846
|
"onAfterHidden": _this.popoverChangeEmitter,
|
|
2793
2847
|
"onAfterShow": _this.popoverChangeEmitter
|
|
2794
|
-
}, {
|
|
2848
|
+
}, basePopoverOptions), {
|
|
2795
2849
|
"default": function _default() {
|
|
2796
2850
|
return _this.$slots.trigger ? _this.$slots.trigger({
|
|
2797
2851
|
selected: _this.modelValue,
|
|
@@ -2812,6 +2866,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2812
2866
|
}, null) : textRender()]);
|
|
2813
2867
|
},
|
|
2814
2868
|
content: function content() {
|
|
2869
|
+
var _this$$slots$extensio, _this$$slots;
|
|
2815
2870
|
return (0,external_vue_.createVNode)("div", {
|
|
2816
2871
|
"class": _this.resolveClassName('cascader-popover')
|
|
2817
2872
|
}, [(0,external_vue_.createVNode)(cascader_panel, {
|
|
@@ -2832,8 +2887,11 @@ var Store = /*#__PURE__*/function () {
|
|
|
2832
2887
|
return _this.$slots["default"] ? _this.$slots["default"](scope) : (0,external_vue_.createVNode)("span", {
|
|
2833
2888
|
"class": _this.resolveClassName('cascader-node-name')
|
|
2834
2889
|
}, [scope.node.name]);
|
|
2890
|
+
},
|
|
2891
|
+
panel: function panel(scope) {
|
|
2892
|
+
return _this.$slots.panel ? _this.$slots.panel(scope) : null;
|
|
2835
2893
|
}
|
|
2836
|
-
})]);
|
|
2894
|
+
}), (_this$$slots$extensio = (_this$$slots = _this.$slots).extension) === null || _this$$slots$extensio === void 0 ? void 0 : _this$$slots$extensio.call(_this$$slots)]);
|
|
2837
2895
|
}
|
|
2838
2896
|
});
|
|
2839
2897
|
};
|
|
@@ -2842,7 +2900,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2842
2900
|
}, [this.$slots.trigger ? popoverRender() : (0,external_vue_.createVNode)("div", {
|
|
2843
2901
|
"ref": "bkCascaderRef",
|
|
2844
2902
|
"class": [this.resolveClassName('cascader'), this.extCls, {
|
|
2845
|
-
'is-unselected': this.modelValue.length === 0,
|
|
2903
|
+
'is-unselected': !this.modelValue || this.modelValue.length === 0,
|
|
2846
2904
|
'is-hover': this.isHover,
|
|
2847
2905
|
'is-filterable': this.filterable,
|
|
2848
2906
|
'is-focus': this.isFocus,
|
|
@@ -2861,7 +2919,7 @@ var Store = /*#__PURE__*/function () {
|
|
|
2861
2919
|
* Tencent is pleased to support the open source community by making
|
|
2862
2920
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2863
2921
|
*
|
|
2864
|
-
* Copyright (C)
|
|
2922
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2865
2923
|
*
|
|
2866
2924
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2867
2925
|
*
|
|
@@ -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;
|
package/lib/collapse/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
146
146
|
* Tencent is pleased to support the open source community by making
|
|
147
147
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
148
148
|
*
|
|
149
|
-
* Copyright (C)
|
|
149
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
150
150
|
*
|
|
151
151
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
152
152
|
*
|
|
@@ -242,7 +242,7 @@ var propsCollapsePanel = _objectSpread({
|
|
|
242
242
|
* Tencent is pleased to support the open source community by making
|
|
243
243
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
244
244
|
*
|
|
245
|
-
* Copyright (C)
|
|
245
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
246
246
|
*
|
|
247
247
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
248
248
|
*
|
|
@@ -402,7 +402,7 @@ function collapse_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
|
402
402
|
* Tencent is pleased to support the open source community by making
|
|
403
403
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
404
404
|
*
|
|
405
|
-
* Copyright (C)
|
|
405
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
406
406
|
*
|
|
407
407
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
408
408
|
*
|
|
@@ -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-transitioncollapse-transition {
|
|
132
133
|
transition: 0.3s height ease-in-out, 0.3s padding-top ease-in-out, 0.3s padding-bottom ease-in-out;
|
|
@@ -49,7 +49,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
|
49
49
|
* Tencent is pleased to support the open source community by making
|
|
50
50
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
51
51
|
*
|
|
52
|
-
* Copyright (C)
|
|
52
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
53
53
|
*
|
|
54
54
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
55
55
|
*
|
|
@@ -149,7 +149,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
|
149
149
|
* Tencent is pleased to support the open source community by making
|
|
150
150
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
151
151
|
*
|
|
152
|
-
* Copyright (C)
|
|
152
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
153
153
|
*
|
|
154
154
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
155
155
|
*
|
|
@@ -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-color-picker {
|
|
132
133
|
position: relative;
|