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/input/index.js
CHANGED
|
@@ -836,7 +836,7 @@ function clickoutside_arrayLikeToArray(arr, len) { if (len == null || len > arr.
|
|
|
836
836
|
* Tencent is pleased to support the open source community by making
|
|
837
837
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
838
838
|
*
|
|
839
|
-
* Copyright (C)
|
|
839
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
840
840
|
*
|
|
841
841
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
842
842
|
*
|
|
@@ -964,7 +964,7 @@ const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTE
|
|
|
964
964
|
* Tencent is pleased to support the open source community by making
|
|
965
965
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
966
966
|
*
|
|
967
|
-
* Copyright (C)
|
|
967
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
968
968
|
*
|
|
969
969
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
970
970
|
*
|
|
@@ -1076,7 +1076,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
|
|
|
1076
1076
|
* Tencent is pleased to support the open source community by making
|
|
1077
1077
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1078
1078
|
*
|
|
1079
|
-
* Copyright (C)
|
|
1079
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1080
1080
|
*
|
|
1081
1081
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1082
1082
|
*
|
|
@@ -1148,7 +1148,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
1148
1148
|
* Tencent is pleased to support the open source community by making
|
|
1149
1149
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1150
1150
|
*
|
|
1151
|
-
* Copyright (C)
|
|
1151
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1152
1152
|
*
|
|
1153
1153
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1154
1154
|
*
|
|
@@ -1203,9 +1203,6 @@ var tooltips = {
|
|
|
1203
1203
|
hide(el);
|
|
1204
1204
|
}, 100);
|
|
1205
1205
|
});
|
|
1206
|
-
el.addEventListener('click', function () {
|
|
1207
|
-
hide(el);
|
|
1208
|
-
});
|
|
1209
1206
|
popper.addEventListener('mouseleave', function () {
|
|
1210
1207
|
clearTimeout(delayTimeout);
|
|
1211
1208
|
hideTimeout = setTimeout(function () {
|
|
@@ -1219,7 +1216,7 @@ var tooltips = {
|
|
|
1219
1216
|
show(el);
|
|
1220
1217
|
clearTimeout(delayTimeout);
|
|
1221
1218
|
}, opts.delay);
|
|
1222
|
-
} else if (popper.hasAttribute('data-show')) {
|
|
1219
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
|
1223
1220
|
hide(el);
|
|
1224
1221
|
}
|
|
1225
1222
|
});
|
|
@@ -1328,6 +1325,7 @@ function renderArrow() {
|
|
|
1328
1325
|
* @returns popper实例
|
|
1329
1326
|
*/
|
|
1330
1327
|
function createPopperInstance(el, popper) {
|
|
1328
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
1331
1329
|
var _nodeList$get = tooltips_nodeList.get(el),
|
|
1332
1330
|
opts = _nodeList$get.opts;
|
|
1333
1331
|
var placement = opts.placement,
|
|
@@ -1368,6 +1366,7 @@ function createPopperInstance(el, popper) {
|
|
|
1368
1366
|
* @param el
|
|
1369
1367
|
*/
|
|
1370
1368
|
function show(el) {
|
|
1369
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
1371
1370
|
var _nodeList$get2 = tooltips_nodeList.get(el),
|
|
1372
1371
|
popper = _nodeList$get2.popper,
|
|
1373
1372
|
opts = _nodeList$get2.opts;
|
|
@@ -1443,7 +1442,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
|
1443
1442
|
* Tencent is pleased to support the open source community by making
|
|
1444
1443
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1445
1444
|
*
|
|
1446
|
-
* Copyright (C)
|
|
1445
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1447
1446
|
*
|
|
1448
1447
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1449
1448
|
*
|
|
@@ -1480,7 +1479,7 @@ const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
|
1480
1479
|
* Tencent is pleased to support the open source community by making
|
|
1481
1480
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1482
1481
|
*
|
|
1483
|
-
* Copyright (C)
|
|
1482
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1484
1483
|
*
|
|
1485
1484
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1486
1485
|
*
|
|
@@ -1521,7 +1520,7 @@ function calculateNodeStyling(targetElement) {
|
|
|
1521
1520
|
};
|
|
1522
1521
|
}
|
|
1523
1522
|
function calcTextareaHeight(targetElement) {
|
|
1524
|
-
var _hiddenTextarea$paren;
|
|
1523
|
+
var _targetElement$value, _hiddenTextarea$paren;
|
|
1525
1524
|
var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
1526
1525
|
var maxRows = arguments.length > 2 ? arguments[2] : undefined;
|
|
1527
1526
|
if (!hiddenTextarea) {
|
|
@@ -1534,7 +1533,7 @@ function calcTextareaHeight(targetElement) {
|
|
|
1534
1533
|
boxSizing = _calculateNodeStyling.boxSizing,
|
|
1535
1534
|
contextStyle = _calculateNodeStyling.contextStyle;
|
|
1536
1535
|
hiddenTextarea.setAttribute('style', "".concat(contextStyle, ";").concat(HIDDEN_STYLE));
|
|
1537
|
-
hiddenTextarea.value =
|
|
1536
|
+
hiddenTextarea.value = (_targetElement$value = targetElement.value) !== null && _targetElement$value !== void 0 ? _targetElement$value : '';
|
|
1538
1537
|
var height = hiddenTextarea.scrollHeight;
|
|
1539
1538
|
var result = {};
|
|
1540
1539
|
if (boxSizing === 'border-box') {
|
|
@@ -1577,7 +1576,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
1577
1576
|
* Tencent is pleased to support the open source community by making
|
|
1578
1577
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1579
1578
|
*
|
|
1580
|
-
* Copyright (C)
|
|
1579
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1581
1580
|
*
|
|
1582
1581
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1583
1582
|
*
|
|
@@ -1614,11 +1613,11 @@ var inputType = {
|
|
|
1614
1613
|
suffixIcon: shared_namespaceObject.PropTypes.string,
|
|
1615
1614
|
suffix: shared_namespaceObject.PropTypes.string,
|
|
1616
1615
|
prefix: shared_namespaceObject.PropTypes.string,
|
|
1617
|
-
step: shared_namespaceObject.PropTypes.
|
|
1618
|
-
max: shared_namespaceObject.PropTypes.
|
|
1619
|
-
min: shared_namespaceObject.PropTypes.
|
|
1620
|
-
maxlength: shared_namespaceObject.PropTypes.
|
|
1621
|
-
maxcharacter: shared_namespaceObject.PropTypes.
|
|
1616
|
+
step: shared_namespaceObject.PropTypes.number,
|
|
1617
|
+
max: shared_namespaceObject.PropTypes.number,
|
|
1618
|
+
min: shared_namespaceObject.PropTypes.number,
|
|
1619
|
+
maxlength: shared_namespaceObject.PropTypes.number,
|
|
1620
|
+
maxcharacter: shared_namespaceObject.PropTypes.number,
|
|
1622
1621
|
behavior: (0,shared_namespaceObject.InputBehaviorType)(),
|
|
1623
1622
|
showWordLimit: shared_namespaceObject.PropTypes.bool,
|
|
1624
1623
|
showControl: shared_namespaceObject.PropTypes.bool.def(true),
|
|
@@ -1633,6 +1632,12 @@ var inputType = {
|
|
|
1633
1632
|
withValidate: shared_namespaceObject.PropTypes.bool.def(true),
|
|
1634
1633
|
overMaxLengthLimit: shared_namespaceObject.PropTypes.bool.def(false),
|
|
1635
1634
|
showOverflowTooltips: shared_namespaceObject.PropTypes.bool.def(true),
|
|
1635
|
+
tooltipsOptions: {
|
|
1636
|
+
type: Object,
|
|
1637
|
+
"default": function _default() {
|
|
1638
|
+
return {};
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1636
1641
|
resize: shared_namespaceObject.PropTypes.bool.def(true),
|
|
1637
1642
|
autosize: shared_namespaceObject.PropTypes.oneOfType([Boolean, Object]).def(false),
|
|
1638
1643
|
stopPropagation: shared_namespaceObject.PropTypes.bool.def(true)
|
|
@@ -1653,6 +1658,7 @@ var EVENTS;
|
|
|
1653
1658
|
EVENTS["KEYUP"] = "keyup";
|
|
1654
1659
|
EVENTS["PASTE"] = "paste";
|
|
1655
1660
|
EVENTS["UPDATE"] = "update:modelValue";
|
|
1661
|
+
EVENTS["SEARCH"] = "search";
|
|
1656
1662
|
})(EVENTS || (EVENTS = {}));
|
|
1657
1663
|
/* eslint-disable-next-line */
|
|
1658
1664
|
function EventFunction(_value, _evt) {
|
|
@@ -1671,7 +1677,9 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
|
1671
1677
|
return evt;
|
|
1672
1678
|
}), EVENTS.CHANGE, EventFunction), EVENTS.CLEAR, function () {
|
|
1673
1679
|
return true;
|
|
1674
|
-
}), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), EVENTS.COMPOSITIONSTART, CompositionEventFunction), EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), EVENTS.COMPOSITIONEND, CompositionEventFunction))
|
|
1680
|
+
}), EVENTS.INPUT, EventFunction), EVENTS.KEYPRESS, EventFunction), EVENTS.KEYDOWN, EventFunction), EVENTS.KEYUP, EventFunction), EVENTS.ENTER, EventFunction), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_inputEmitEventsType, EVENTS.PASTE, PastEventFunction), EVENTS.COMPOSITIONSTART, CompositionEventFunction), EVENTS.COMPOSITIONUPDATE, CompositionEventFunction), EVENTS.COMPOSITIONEND, CompositionEventFunction), EVENTS.SEARCH, function (evt) {
|
|
1681
|
+
return evt;
|
|
1682
|
+
}));
|
|
1675
1683
|
/* harmony default export */ const input = ((0,external_vue_namespaceObject.defineComponent)({
|
|
1676
1684
|
name: 'Input',
|
|
1677
1685
|
directives: {
|
|
@@ -1709,7 +1717,9 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
|
1709
1717
|
var suffixCls = getCls('suffix-icon');
|
|
1710
1718
|
var suffixIconMap = {
|
|
1711
1719
|
search: function search() {
|
|
1712
|
-
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search,
|
|
1720
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
|
1721
|
+
"onClick": handleSearch
|
|
1722
|
+
}, null);
|
|
1713
1723
|
},
|
|
1714
1724
|
password: function password() {
|
|
1715
1725
|
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Unvisible, {
|
|
@@ -1782,16 +1792,16 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
|
1782
1792
|
var tooltips = (0,external_vue_namespaceObject.computed)(function () {
|
|
1783
1793
|
var _props$modelValue2;
|
|
1784
1794
|
if (showMaxLimit.value && ceilMaxLength.value - modelValueLength.value === 0) {
|
|
1785
|
-
return {
|
|
1795
|
+
return input_objectSpread({
|
|
1786
1796
|
content: t.value.maxlengthLimitTips
|
|
1787
|
-
};
|
|
1797
|
+
}, props.tooltipsOptions || {});
|
|
1788
1798
|
}
|
|
1789
|
-
return props.showOverflowTooltips && isOverflow.value && props.modelValue ? {
|
|
1799
|
+
return props.showOverflowTooltips && isOverflow.value && props.modelValue ? input_objectSpread({
|
|
1790
1800
|
content: (_props$modelValue2 = props.modelValue) === null || _props$modelValue2 === void 0 ? void 0 : _props$modelValue2.toString(),
|
|
1791
1801
|
sameWidth: true
|
|
1792
|
-
} : {
|
|
1802
|
+
}, props.tooltipsOptions || {}) : input_objectSpread({
|
|
1793
1803
|
disabled: true
|
|
1794
|
-
};
|
|
1804
|
+
}, props.tooltipsOptions || {});
|
|
1795
1805
|
});
|
|
1796
1806
|
var showMaxLimit = (0,external_vue_namespaceObject.computed)(function () {
|
|
1797
1807
|
return typeof props.maxlength === 'number' || typeof props.maxcharacter === 'number';
|
|
@@ -1884,6 +1894,10 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
|
1884
1894
|
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 || _formItem$validate2.call(formItem, 'blur');
|
|
1885
1895
|
}
|
|
1886
1896
|
}
|
|
1897
|
+
// type = search suffix icon click event
|
|
1898
|
+
function handleSearch(e) {
|
|
1899
|
+
ctx.emit(EVENTS.SEARCH, e);
|
|
1900
|
+
}
|
|
1887
1901
|
// 事件句柄生成器
|
|
1888
1902
|
function eventHandler(eventName) {
|
|
1889
1903
|
return function (e) {
|
|
@@ -1907,14 +1921,28 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
|
1907
1921
|
return eventName === e;
|
|
1908
1922
|
})) return;
|
|
1909
1923
|
if (eventName === EVENTS.INPUT) {
|
|
1910
|
-
ctx.emit(EVENTS.UPDATE, e.target.value, e);
|
|
1911
|
-
|
|
1924
|
+
// ctx.emit(EVENTS.UPDATE, isNumberInput.value ? handleNumber(e.target.value, 0) : e.target.value, e);
|
|
1925
|
+
ctx.emit(EVENTS.UPDATE, isNumberInput.value ?
|
|
1926
|
+
// 这里不直接使用 handleNumber,是因为 handleNumber 里有 min 和 max 的判断
|
|
1927
|
+
// https://github.com/TencentBlueKing/bkui-vue3/issues/2426
|
|
1928
|
+
function () {
|
|
1929
|
+
var precision = Number.isInteger(props.precision) ? props.precision : 0;
|
|
1930
|
+
var val = e.target.value;
|
|
1931
|
+
if (Number.isNaN(val)) {
|
|
1932
|
+
return isNum(props.min) ? props.min : 0;
|
|
1933
|
+
}
|
|
1934
|
+
if (val === '' || val === null || val === undefined) {
|
|
1935
|
+
return '';
|
|
1936
|
+
}
|
|
1937
|
+
return (+val).toFixed(precision);
|
|
1938
|
+
}() : e.target.value, e);
|
|
1939
|
+
} else if (eventName === EVENTS.CHANGE && isNumberInput.value) {
|
|
1912
1940
|
var _val = handleNumber(e.target.value, 0);
|
|
1913
1941
|
ctx.emit(EVENTS.UPDATE, _val, e);
|
|
1914
1942
|
ctx.emit(eventName, _val, e);
|
|
1915
1943
|
return;
|
|
1916
1944
|
}
|
|
1917
|
-
ctx.emit(eventName, e.target.value, e);
|
|
1945
|
+
ctx.emit(eventName, isNumberInput.value ? handleNumber(e.target.value, 0) : e.target.value, e);
|
|
1918
1946
|
};
|
|
1919
1947
|
}
|
|
1920
1948
|
var _map = [EVENTS.KEYUP, EVENTS.KEYDOWN, EVENTS.KEYPRESS, EVENTS.PASTE, EVENTS.CHANGE, EVENTS.INPUT].map(eventHandler),
|
|
@@ -2043,7 +2071,7 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
|
2043
2071
|
* Tencent is pleased to support the open source community by making
|
|
2044
2072
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2045
2073
|
*
|
|
2046
|
-
* Copyright (C)
|
|
2074
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2047
2075
|
*
|
|
2048
2076
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2049
2077
|
*
|
package/lib/input/input.css
CHANGED
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
box-sizing: border-box;
|
|
85
85
|
transition: all 0.3s;
|
|
86
86
|
flex-direction: column;
|
|
87
|
+
position: relative;
|
|
87
88
|
}
|
|
88
89
|
.bk-textarea ::placeholder {
|
|
89
90
|
font-size: 12px;
|
|
@@ -178,6 +179,11 @@
|
|
|
178
179
|
.bk-textarea:hover:not(.is-disabled) .show-clear-only-hover {
|
|
179
180
|
display: flex;
|
|
180
181
|
}
|
|
182
|
+
.bk-textarea--clear-icon {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 5px;
|
|
185
|
+
right: 10px;
|
|
186
|
+
}
|
|
181
187
|
.bk-input {
|
|
182
188
|
display: inline-flex;
|
|
183
189
|
align-items: stretch;
|
package/lib/input/input.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { IOptions } from '../directives';
|
|
2
3
|
export type InputAutoSize = {
|
|
3
4
|
minRows?: number;
|
|
4
5
|
maxRows?: number;
|
|
@@ -35,19 +36,19 @@ export declare const inputType: {
|
|
|
35
36
|
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
|
36
37
|
default: string;
|
|
37
38
|
};
|
|
38
|
-
step: import("vue-types").
|
|
39
|
+
step: import("vue-types").VueTypeValidableDef<number> & {
|
|
39
40
|
default: number;
|
|
40
41
|
};
|
|
41
|
-
max: import("vue-types").
|
|
42
|
+
max: import("vue-types").VueTypeValidableDef<number> & {
|
|
42
43
|
default: number;
|
|
43
44
|
};
|
|
44
|
-
min: import("vue-types").
|
|
45
|
+
min: import("vue-types").VueTypeValidableDef<number> & {
|
|
45
46
|
default: number;
|
|
46
47
|
};
|
|
47
|
-
maxlength: import("vue-types").
|
|
48
|
+
maxlength: import("vue-types").VueTypeValidableDef<number> & {
|
|
48
49
|
default: number;
|
|
49
50
|
};
|
|
50
|
-
maxcharacter: import("vue-types").
|
|
51
|
+
maxcharacter: import("vue-types").VueTypeValidableDef<number> & {
|
|
51
52
|
default: number;
|
|
52
53
|
};
|
|
53
54
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
|
@@ -98,6 +99,10 @@ export declare const inputType: {
|
|
|
98
99
|
} & {
|
|
99
100
|
default: boolean;
|
|
100
101
|
};
|
|
102
|
+
tooltipsOptions: {
|
|
103
|
+
type: PropType<Partial<IOptions>>;
|
|
104
|
+
default: () => {};
|
|
105
|
+
};
|
|
101
106
|
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
102
107
|
default: boolean;
|
|
103
108
|
} & {
|
|
@@ -126,7 +131,8 @@ export declare const enum EVENTS {
|
|
|
126
131
|
KEYPRESS = "keypress",
|
|
127
132
|
KEYUP = "keyup",
|
|
128
133
|
PASTE = "paste",
|
|
129
|
-
UPDATE = "update:modelValue"
|
|
134
|
+
UPDATE = "update:modelValue",
|
|
135
|
+
SEARCH = "search"
|
|
130
136
|
}
|
|
131
137
|
declare function EventFunction(_value: any, _evt: KeyboardEvent): any;
|
|
132
138
|
declare function PastEventFunction(_value: any, _e: ClipboardEvent): boolean;
|
|
@@ -146,6 +152,7 @@ export declare const inputEmitEventsType: {
|
|
|
146
152
|
compositionstart: typeof CompositionEventFunction;
|
|
147
153
|
compositionupdate: typeof CompositionEventFunction;
|
|
148
154
|
compositionend: typeof CompositionEventFunction;
|
|
155
|
+
search: (evt: Event) => Event;
|
|
149
156
|
};
|
|
150
157
|
export type InputType = ExtractPropTypes<typeof inputType>;
|
|
151
158
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -180,19 +187,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
180
187
|
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
|
181
188
|
default: string;
|
|
182
189
|
};
|
|
183
|
-
step: import("vue-types").
|
|
190
|
+
step: import("vue-types").VueTypeValidableDef<number> & {
|
|
184
191
|
default: number;
|
|
185
192
|
};
|
|
186
|
-
max: import("vue-types").
|
|
193
|
+
max: import("vue-types").VueTypeValidableDef<number> & {
|
|
187
194
|
default: number;
|
|
188
195
|
};
|
|
189
|
-
min: import("vue-types").
|
|
196
|
+
min: import("vue-types").VueTypeValidableDef<number> & {
|
|
190
197
|
default: number;
|
|
191
198
|
};
|
|
192
|
-
maxlength: import("vue-types").
|
|
199
|
+
maxlength: import("vue-types").VueTypeValidableDef<number> & {
|
|
193
200
|
default: number;
|
|
194
201
|
};
|
|
195
|
-
maxcharacter: import("vue-types").
|
|
202
|
+
maxcharacter: import("vue-types").VueTypeValidableDef<number> & {
|
|
196
203
|
default: number;
|
|
197
204
|
};
|
|
198
205
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
|
@@ -243,6 +250,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
250
|
} & {
|
|
244
251
|
default: boolean;
|
|
245
252
|
};
|
|
253
|
+
tooltipsOptions: {
|
|
254
|
+
type: PropType<Partial<IOptions>>;
|
|
255
|
+
default: () => {};
|
|
256
|
+
};
|
|
246
257
|
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
247
258
|
default: boolean;
|
|
248
259
|
} & {
|
|
@@ -271,6 +282,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
271
282
|
compositionstart: typeof CompositionEventFunction;
|
|
272
283
|
compositionupdate: typeof CompositionEventFunction;
|
|
273
284
|
compositionend: typeof CompositionEventFunction;
|
|
285
|
+
search: (evt: Event) => Event;
|
|
274
286
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
275
287
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
|
276
288
|
default: string;
|
|
@@ -303,19 +315,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
303
315
|
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
|
304
316
|
default: string;
|
|
305
317
|
};
|
|
306
|
-
step: import("vue-types").
|
|
318
|
+
step: import("vue-types").VueTypeValidableDef<number> & {
|
|
307
319
|
default: number;
|
|
308
320
|
};
|
|
309
|
-
max: import("vue-types").
|
|
321
|
+
max: import("vue-types").VueTypeValidableDef<number> & {
|
|
310
322
|
default: number;
|
|
311
323
|
};
|
|
312
|
-
min: import("vue-types").
|
|
324
|
+
min: import("vue-types").VueTypeValidableDef<number> & {
|
|
313
325
|
default: number;
|
|
314
326
|
};
|
|
315
|
-
maxlength: import("vue-types").
|
|
327
|
+
maxlength: import("vue-types").VueTypeValidableDef<number> & {
|
|
316
328
|
default: number;
|
|
317
329
|
};
|
|
318
|
-
maxcharacter: import("vue-types").
|
|
330
|
+
maxcharacter: import("vue-types").VueTypeValidableDef<number> & {
|
|
319
331
|
default: number;
|
|
320
332
|
};
|
|
321
333
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
|
@@ -366,6 +378,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
366
378
|
} & {
|
|
367
379
|
default: boolean;
|
|
368
380
|
};
|
|
381
|
+
tooltipsOptions: {
|
|
382
|
+
type: PropType<Partial<IOptions>>;
|
|
383
|
+
default: () => {};
|
|
384
|
+
};
|
|
369
385
|
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
370
386
|
default: boolean;
|
|
371
387
|
} & {
|
|
@@ -392,6 +408,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
392
408
|
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
|
393
409
|
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
|
394
410
|
onClear?: () => any;
|
|
411
|
+
onSearch?: (evt: Event) => any;
|
|
395
412
|
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
|
396
413
|
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
|
397
414
|
}, {
|
|
@@ -420,6 +437,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
420
437
|
withValidate: boolean;
|
|
421
438
|
overMaxLengthLimit: boolean;
|
|
422
439
|
showOverflowTooltips: boolean;
|
|
440
|
+
tooltipsOptions: {};
|
|
423
441
|
autosize: boolean | InputAutoSize;
|
|
424
442
|
stopPropagation: boolean;
|
|
425
443
|
}, {}>;
|
package/lib/input/input.less
CHANGED
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
box-sizing: border-box;
|
|
60
60
|
transition: all .3s;
|
|
61
61
|
flex-direction: column;
|
|
62
|
+
position: relative;
|
|
62
63
|
.placeholder();
|
|
63
64
|
|
|
64
65
|
&.resizable {
|
|
@@ -138,6 +139,12 @@
|
|
|
138
139
|
display: flex;
|
|
139
140
|
}
|
|
140
141
|
}
|
|
142
|
+
|
|
143
|
+
&--clear-icon {
|
|
144
|
+
position: absolute;
|
|
145
|
+
top: 5px;
|
|
146
|
+
right: 10px;
|
|
147
|
+
}
|
|
141
148
|
}
|
|
142
149
|
|
|
143
150
|
.@{bk-prefix}-input {
|
|
@@ -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
|
@keyframes loading-scale-animate {
|
|
132
133
|
0% {
|
|
@@ -214,6 +215,7 @@
|
|
|
214
215
|
box-sizing: border-box;
|
|
215
216
|
transition: all 0.3s;
|
|
216
217
|
flex-direction: column;
|
|
218
|
+
position: relative;
|
|
217
219
|
}
|
|
218
220
|
.bk-textarea ::placeholder {
|
|
219
221
|
font-size: 12px;
|
|
@@ -308,6 +310,11 @@
|
|
|
308
310
|
.bk-textarea:hover:not(.is-disabled) .show-clear-only-hover {
|
|
309
311
|
display: flex;
|
|
310
312
|
}
|
|
313
|
+
.bk-textarea--clear-icon {
|
|
314
|
+
position: absolute;
|
|
315
|
+
top: 5px;
|
|
316
|
+
right: 10px;
|
|
317
|
+
}
|
|
311
318
|
.bk-input {
|
|
312
319
|
display: inline-flex;
|
|
313
320
|
align-items: stretch;
|
package/lib/link/index.js
CHANGED
|
@@ -55,7 +55,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
|
55
55
|
* Tencent is pleased to support the open source community by making
|
|
56
56
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
57
57
|
*
|
|
58
|
-
* Copyright (C)
|
|
58
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
59
59
|
*
|
|
60
60
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
61
61
|
*
|
|
@@ -133,7 +133,7 @@ var LinkThemeEnum;
|
|
|
133
133
|
* Tencent is pleased to support the open source community by making
|
|
134
134
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
135
135
|
*
|
|
136
|
-
* Copyright (C)
|
|
136
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
137
137
|
*
|
|
138
138
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
139
139
|
*
|
|
@@ -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-link {
|
|
132
133
|
font-size: var(--font-size-medium);
|
package/lib/loading/index.js
CHANGED
|
@@ -103,7 +103,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
103
103
|
* Tencent is pleased to support the open source community by making
|
|
104
104
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
105
105
|
*
|
|
106
|
-
* Copyright (C)
|
|
106
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
107
107
|
*
|
|
108
108
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
109
109
|
*
|
|
@@ -239,7 +239,7 @@ var loadingTypes = {
|
|
|
239
239
|
* Tencent is pleased to support the open source community by making
|
|
240
240
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
241
241
|
*
|
|
242
|
-
* Copyright (C)
|
|
242
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
243
243
|
*
|
|
244
244
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
245
245
|
*
|
|
@@ -316,21 +316,29 @@ var vBkloading = {
|
|
|
316
316
|
mounted: function mounted(el, binding) {
|
|
317
317
|
if (binding.value) {
|
|
318
318
|
createInstance(el, binding);
|
|
319
|
+
if (!binding.value.loading) {
|
|
320
|
+
var _instance$vm;
|
|
321
|
+
// 只要loading不为真,就必须隐藏loading遮罩层
|
|
322
|
+
var instance = el[INSTANCE_KEY];
|
|
323
|
+
if (instance !== null && instance !== void 0 && (_instance$vm = instance.vm) !== null && _instance$vm !== void 0 && (_instance$vm = _instance$vm.$el) !== null && _instance$vm !== void 0 && (_instance$vm = _instance$vm.parentNode) !== null && _instance$vm !== void 0 && _instance$vm.style) {
|
|
324
|
+
instance.vm.$el.parentNode.style.display = 'none';
|
|
325
|
+
}
|
|
326
|
+
}
|
|
319
327
|
}
|
|
320
328
|
},
|
|
321
329
|
updated: function updated(el, binding) {
|
|
322
|
-
var _instance$
|
|
330
|
+
var _instance$vm2;
|
|
323
331
|
var instance = el[INSTANCE_KEY];
|
|
324
332
|
var value = binding.value;
|
|
325
333
|
updateOptions(value, instance.options);
|
|
326
|
-
if (instance !== null && instance !== void 0 && (_instance$
|
|
334
|
+
if (instance !== null && instance !== void 0 && (_instance$vm2 = instance.vm) !== null && _instance$vm2 !== void 0 && (_instance$vm2 = _instance$vm2.$el) !== null && _instance$vm2 !== void 0 && (_instance$vm2 = _instance$vm2.parentNode) !== null && _instance$vm2 !== void 0 && _instance$vm2.style) {
|
|
327
335
|
instance.vm.$el.parentNode.style.display = value.loading ? '' : 'none';
|
|
328
336
|
}
|
|
329
337
|
},
|
|
330
338
|
unmounted: function unmounted(el) {
|
|
331
|
-
var _instance$
|
|
339
|
+
var _instance$vm3, _instance$instance;
|
|
332
340
|
var instance = el[INSTANCE_KEY];
|
|
333
|
-
el === null || el === void 0 || el.removeChild(instance === null || instance === void 0 || (_instance$
|
|
341
|
+
el === null || el === void 0 || el.removeChild(instance === null || instance === void 0 || (_instance$vm3 = instance.vm) === null || _instance$vm3 === void 0 || (_instance$vm3 = _instance$vm3.$el) === null || _instance$vm3 === void 0 ? void 0 : _instance$vm3.parentNode);
|
|
334
342
|
instance === null || instance === void 0 || (_instance$instance = instance.instance) === null || _instance$instance === void 0 || _instance$instance.unmount();
|
|
335
343
|
el[INSTANCE_KEY] = null;
|
|
336
344
|
}
|
|
@@ -340,7 +348,7 @@ var vBkloading = {
|
|
|
340
348
|
* Tencent is pleased to support the open source community by making
|
|
341
349
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
342
350
|
*
|
|
343
|
-
* Copyright (C)
|
|
351
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
344
352
|
*
|
|
345
353
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
346
354
|
*
|
|
@@ -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
|
@keyframes loading-scale-animate {
|
|
132
133
|
0% {
|
package/lib/locale/index.d.ts
CHANGED