bkui-vue 2.0.2-beta.9 → 2.0.2-beta.90
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 +24631 -18441
- 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 -11
- package/lib/select/index.js +68 -66
- package/lib/select/optionGroup.d.ts +12 -1
- package/lib/select/select.d.ts +21 -4
- 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 +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/locale/index.js
CHANGED
|
@@ -26,6 +26,7 @@ var __webpack_exports__ = {};
|
|
|
26
26
|
// EXPORTS
|
|
27
27
|
__webpack_require__.d(__webpack_exports__, {
|
|
28
28
|
en: () => (/* reexport */ lang_en),
|
|
29
|
+
jp: () => (/* reexport */ ja_jp),
|
|
29
30
|
zhCn: () => (/* reexport */ zh_cn)
|
|
30
31
|
});
|
|
31
32
|
|
|
@@ -34,7 +35,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
34
35
|
* Tencent is pleased to support the open source community by making
|
|
35
36
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
36
37
|
*
|
|
37
|
-
* Copyright (C)
|
|
38
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
38
39
|
*
|
|
39
40
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
40
41
|
*
|
|
@@ -237,12 +238,177 @@ var en = {
|
|
|
237
238
|
}
|
|
238
239
|
};
|
|
239
240
|
/* harmony default export */ const lang_en = (en);
|
|
241
|
+
;// CONCATENATED MODULE: ../../packages/locale/src/lang/ja-jp.ts
|
|
242
|
+
/*
|
|
243
|
+
* Tencent is pleased to support the open source community by making
|
|
244
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
245
|
+
*
|
|
246
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
247
|
+
*
|
|
248
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
249
|
+
*
|
|
250
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
|
251
|
+
*
|
|
252
|
+
* ---------------------------------------------------
|
|
253
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
254
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
|
255
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
|
256
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
257
|
+
*
|
|
258
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
|
259
|
+
* the Software.
|
|
260
|
+
*
|
|
261
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
|
262
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
263
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
264
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
265
|
+
* IN THE SOFTWARE.
|
|
266
|
+
*/
|
|
267
|
+
var jp = {
|
|
268
|
+
lang: 'ja',
|
|
269
|
+
steps: {
|
|
270
|
+
step1: 'ステップ1',
|
|
271
|
+
step2: 'ステップ2',
|
|
272
|
+
step3: 'ステップ3'
|
|
273
|
+
},
|
|
274
|
+
datePicker: {
|
|
275
|
+
selectDate: '日付を選択',
|
|
276
|
+
selectTime: '時間を選択',
|
|
277
|
+
clear: 'クリア',
|
|
278
|
+
ok: 'OK',
|
|
279
|
+
weekdays: {
|
|
280
|
+
sun: '日',
|
|
281
|
+
mon: '月',
|
|
282
|
+
tue: '火',
|
|
283
|
+
wed: '水',
|
|
284
|
+
thu: '木',
|
|
285
|
+
fri: '金',
|
|
286
|
+
sat: '土'
|
|
287
|
+
},
|
|
288
|
+
hour: '時',
|
|
289
|
+
min: '分',
|
|
290
|
+
sec: '秒',
|
|
291
|
+
toNow: '現在まで'
|
|
292
|
+
},
|
|
293
|
+
dialog: {
|
|
294
|
+
ok: 'OK',
|
|
295
|
+
cancel: 'キャンセル',
|
|
296
|
+
prev: '前へ',
|
|
297
|
+
next: '次へ'
|
|
298
|
+
},
|
|
299
|
+
popConfirm: {
|
|
300
|
+
ok: 'OK',
|
|
301
|
+
cancel: 'キャンセル'
|
|
302
|
+
},
|
|
303
|
+
form: {
|
|
304
|
+
notBeEmpty: '空にできません',
|
|
305
|
+
incorrectFormat: 'フォーマットが正しくありません',
|
|
306
|
+
max: '最大値',
|
|
307
|
+
min: '最小値',
|
|
308
|
+
maxLen: '最大の長さ',
|
|
309
|
+
verifyError: '検証エラー'
|
|
310
|
+
},
|
|
311
|
+
pagination: {
|
|
312
|
+
eachPage: '各ページ',
|
|
313
|
+
strip: '項目',
|
|
314
|
+
total: '合計'
|
|
315
|
+
},
|
|
316
|
+
process: {
|
|
317
|
+
step1: 'ステップ1',
|
|
318
|
+
step2: 'ステップ2',
|
|
319
|
+
step3: 'ステップ3',
|
|
320
|
+
step4: 'ステップ4'
|
|
321
|
+
},
|
|
322
|
+
searchSelect: {
|
|
323
|
+
pleaseSelect: '選択してください',
|
|
324
|
+
loading: 'ロード中...',
|
|
325
|
+
filterQueryMustHasValue: 'フィルターに一つ以上の値を選択する必要があります',
|
|
326
|
+
ok: 'OK',
|
|
327
|
+
cancel: 'キャンセル',
|
|
328
|
+
or: 'or',
|
|
329
|
+
and: 'and',
|
|
330
|
+
logical: 'ロジック:'
|
|
331
|
+
},
|
|
332
|
+
select: {
|
|
333
|
+
noData: 'データなし',
|
|
334
|
+
noMatchedData: '一致するデータがありません',
|
|
335
|
+
loading: '読み込み中...',
|
|
336
|
+
pleaseSelect: '選択してください',
|
|
337
|
+
enterKeywords: 'キーワードを入力してください',
|
|
338
|
+
all: 'すべて',
|
|
339
|
+
selectAll: 'すべて選択'
|
|
340
|
+
},
|
|
341
|
+
table: {
|
|
342
|
+
emptyText: 'データがありません',
|
|
343
|
+
confirm: 'OK',
|
|
344
|
+
reset: 'リセット',
|
|
345
|
+
sort: 'ソート',
|
|
346
|
+
setting: {
|
|
347
|
+
title: 'テーブル設定',
|
|
348
|
+
fields: {
|
|
349
|
+
title: '表示フィールド設定',
|
|
350
|
+
subtitle: function subtitle(max) {
|
|
351
|
+
return "\uFF08\u6700\u5927".concat(max, "\u9805\u76EE\uFF09");
|
|
352
|
+
},
|
|
353
|
+
selectAll: 'すべて選択'
|
|
354
|
+
},
|
|
355
|
+
lineHeight: {
|
|
356
|
+
title: 'テーブル行の高さ',
|
|
357
|
+
small: '小',
|
|
358
|
+
medium: '中',
|
|
359
|
+
large: '大'
|
|
360
|
+
},
|
|
361
|
+
options: {
|
|
362
|
+
ok: 'OK',
|
|
363
|
+
cancel: 'キャンセル'
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
transfer: {
|
|
368
|
+
sourceList: 'ソースリスト',
|
|
369
|
+
targetList: 'ターゲットリスト',
|
|
370
|
+
removeAll: 'すべて削除',
|
|
371
|
+
selectAll: 'すべて選択',
|
|
372
|
+
noData: 'データがありません',
|
|
373
|
+
noSelected: '選択されていません',
|
|
374
|
+
search: '検索'
|
|
375
|
+
},
|
|
376
|
+
upload: {
|
|
377
|
+
uploadSuccess: 'アップロード成功',
|
|
378
|
+
uploadFailed: 'アップロード失敗',
|
|
379
|
+
drapFileOr: 'ここにファイルをドラッグまたは',
|
|
380
|
+
clickUpload: 'クリックしてアップロード',
|
|
381
|
+
uploadLabel: 'ファイルをアップロード'
|
|
382
|
+
},
|
|
383
|
+
input: {
|
|
384
|
+
placeholder: '入力してください',
|
|
385
|
+
maxlengthLimitTips: '文字数制限に達しました'
|
|
386
|
+
},
|
|
387
|
+
tagInput: {
|
|
388
|
+
placeholder: '入力してEnterキーで終了'
|
|
389
|
+
},
|
|
390
|
+
message: {
|
|
391
|
+
assistant: 'アシスタント',
|
|
392
|
+
details: '詳細',
|
|
393
|
+
copySuccess: 'コピー成功',
|
|
394
|
+
copyFailed: 'コピー失敗'
|
|
395
|
+
},
|
|
396
|
+
cascader: {
|
|
397
|
+
pleaseSelect: '選択してください',
|
|
398
|
+
noData: 'データがありません',
|
|
399
|
+
emptyText: '該当する検索結果がありません'
|
|
400
|
+
},
|
|
401
|
+
versionLog: {
|
|
402
|
+
current: '現在のバージョン'
|
|
403
|
+
}
|
|
404
|
+
};
|
|
405
|
+
/* harmony default export */ const ja_jp = (jp);
|
|
240
406
|
;// CONCATENATED MODULE: ../../packages/locale/src/lang/zh-cn.ts
|
|
241
407
|
/*
|
|
242
408
|
* Tencent is pleased to support the open source community by making
|
|
243
409
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
244
410
|
*
|
|
245
|
-
* Copyright (C)
|
|
411
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
246
412
|
*
|
|
247
413
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
248
414
|
*
|
|
@@ -450,7 +616,7 @@ var zhCn = {
|
|
|
450
616
|
* Tencent is pleased to support the open source community by making
|
|
451
617
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
452
618
|
*
|
|
453
|
-
* Copyright (C)
|
|
619
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
454
620
|
*
|
|
455
621
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
456
622
|
*
|
|
@@ -473,6 +639,8 @@ var zhCn = {
|
|
|
473
639
|
*/
|
|
474
640
|
|
|
475
641
|
|
|
642
|
+
|
|
476
643
|
var __webpack_exports__en = __webpack_exports__.en;
|
|
644
|
+
var __webpack_exports__jp = __webpack_exports__.jp;
|
|
477
645
|
var __webpack_exports__zhCn = __webpack_exports__.zhCn;
|
|
478
|
-
export { __webpack_exports__en as en, __webpack_exports__zhCn as zhCn };
|
|
646
|
+
export { __webpack_exports__en as en, __webpack_exports__jp as jp, __webpack_exports__zhCn as zhCn };
|
package/lib/menu/index.js
CHANGED
|
@@ -137,7 +137,7 @@ const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () =>
|
|
|
137
137
|
* Tencent is pleased to support the open source community by making
|
|
138
138
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
139
139
|
*
|
|
140
|
-
* Copyright (C)
|
|
140
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
141
141
|
*
|
|
142
142
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
143
143
|
*
|
|
@@ -289,7 +289,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
289
289
|
* Tencent is pleased to support the open source community by making
|
|
290
290
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
291
291
|
*
|
|
292
|
-
* Copyright (C)
|
|
292
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
293
293
|
*
|
|
294
294
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
295
295
|
*
|
|
@@ -425,7 +425,7 @@ var menuProps = {
|
|
|
425
425
|
* Tencent is pleased to support the open source community by making
|
|
426
426
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
427
427
|
*
|
|
428
|
-
* Copyright (C)
|
|
428
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
429
429
|
*
|
|
430
430
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
431
431
|
*
|
|
@@ -467,20 +467,23 @@ var menuProps = {
|
|
|
467
467
|
collapse = _useMenuInject.collapse;
|
|
468
468
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
|
469
469
|
resolveClassName = _usePrefix.resolveClassName;
|
|
470
|
-
var
|
|
470
|
+
var renderGroupName = function renderGroupName() {
|
|
471
|
+
if (slots.name) {
|
|
472
|
+
return slots.name();
|
|
473
|
+
}
|
|
471
474
|
if (collapse.value) {
|
|
472
475
|
// 收起
|
|
473
476
|
return props.foldName !== undefined ? props.foldName : props.name;
|
|
474
477
|
}
|
|
475
478
|
return props.name;
|
|
476
|
-
}
|
|
479
|
+
};
|
|
477
480
|
return function () {
|
|
478
481
|
var _slots$default;
|
|
479
482
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
|
480
483
|
"class": "".concat(resolveClassName('menu-group'))
|
|
481
484
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
|
482
485
|
"class": "group-name"
|
|
483
|
-
}, [
|
|
486
|
+
}, [renderGroupName()]), (0,external_vue_namespaceObject.createVNode)("ul", {
|
|
484
487
|
"class": "group-wrap"
|
|
485
488
|
}, [(_slots$default = slots["default"]) === null || _slots$default === void 0 ? void 0 : _slots$default.call(slots)])]);
|
|
486
489
|
};
|
|
@@ -493,7 +496,7 @@ var menuProps = {
|
|
|
493
496
|
* Tencent is pleased to support the open source community by making
|
|
494
497
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
495
498
|
*
|
|
496
|
-
* Copyright (C)
|
|
499
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
497
500
|
*
|
|
498
501
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
499
502
|
*
|
|
@@ -593,7 +596,7 @@ const _namespaceObject = _x({ ["AngleDown"]: () => __WEBPACK_EXTERNAL_MODULE_bku
|
|
|
593
596
|
* Tencent is pleased to support the open source community by making
|
|
594
597
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
595
598
|
*
|
|
596
|
-
* Copyright (C)
|
|
599
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
597
600
|
*
|
|
598
601
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
599
602
|
*
|
|
@@ -705,7 +708,7 @@ var subMenuProps = {
|
|
|
705
708
|
* Tencent is pleased to support the open source community by making
|
|
706
709
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
707
710
|
*
|
|
708
|
-
* Copyright (C)
|
|
711
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
709
712
|
*
|
|
710
713
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
711
714
|
*
|
package/lib/menu/menu.css
CHANGED
|
@@ -178,17 +178,18 @@
|
|
|
178
178
|
.bk-menu-item:hover {
|
|
179
179
|
color: white;
|
|
180
180
|
cursor: pointer;
|
|
181
|
+
background-color: #31394F;
|
|
181
182
|
}
|
|
182
183
|
.bk-menu-item.is-active {
|
|
183
184
|
color: white;
|
|
184
185
|
background: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
|
185
186
|
}
|
|
186
187
|
.bk-menu-item.is-disabled {
|
|
187
|
-
color: #
|
|
188
|
+
color: #6E788B;
|
|
188
189
|
cursor: not-allowed;
|
|
189
190
|
}
|
|
190
191
|
.bk-menu-item.is-disabled:hover {
|
|
191
|
-
color: #
|
|
192
|
+
color: #6E788B;
|
|
192
193
|
cursor: not-allowed;
|
|
193
194
|
background: none;
|
|
194
195
|
}
|
|
@@ -207,7 +208,7 @@
|
|
|
207
208
|
display: inline-block;
|
|
208
209
|
width: 3px;
|
|
209
210
|
height: 3px;
|
|
210
|
-
background: #
|
|
211
|
+
background: #6E788B;
|
|
211
212
|
background-color: white;
|
|
212
213
|
border-radius: 50%;
|
|
213
214
|
}
|
|
@@ -230,7 +231,7 @@
|
|
|
230
231
|
overflow: hidden;
|
|
231
232
|
font-size: 12px;
|
|
232
233
|
line-height: 16px;
|
|
233
|
-
color: #
|
|
234
|
+
color: #6E788B;
|
|
234
235
|
text-overflow: clip;
|
|
235
236
|
white-space: nowrap;
|
|
236
237
|
}
|
package/lib/menu/menu.less
CHANGED
|
@@ -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% {
|
|
@@ -308,17 +309,18 @@
|
|
|
308
309
|
.bk-menu-item:hover {
|
|
309
310
|
color: white;
|
|
310
311
|
cursor: pointer;
|
|
312
|
+
background-color: #31394F;
|
|
311
313
|
}
|
|
312
314
|
.bk-menu-item.is-active {
|
|
313
315
|
color: white;
|
|
314
316
|
background: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
|
315
317
|
}
|
|
316
318
|
.bk-menu-item.is-disabled {
|
|
317
|
-
color: #
|
|
319
|
+
color: #6E788B;
|
|
318
320
|
cursor: not-allowed;
|
|
319
321
|
}
|
|
320
322
|
.bk-menu-item.is-disabled:hover {
|
|
321
|
-
color: #
|
|
323
|
+
color: #6E788B;
|
|
322
324
|
cursor: not-allowed;
|
|
323
325
|
background: none;
|
|
324
326
|
}
|
|
@@ -337,7 +339,7 @@
|
|
|
337
339
|
display: inline-block;
|
|
338
340
|
width: 3px;
|
|
339
341
|
height: 3px;
|
|
340
|
-
background: #
|
|
342
|
+
background: #6E788B;
|
|
341
343
|
background-color: white;
|
|
342
344
|
border-radius: 50%;
|
|
343
345
|
}
|
|
@@ -360,7 +362,7 @@
|
|
|
360
362
|
overflow: hidden;
|
|
361
363
|
font-size: 12px;
|
|
362
364
|
line-height: 16px;
|
|
363
|
-
color: #
|
|
365
|
+
color: #6E788B;
|
|
364
366
|
text-overflow: clip;
|
|
365
367
|
white-space: nowrap;
|
|
366
368
|
}
|
|
@@ -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-menu {
|
|
132
133
|
display: block;
|
package/lib/message/index.js
CHANGED
|
@@ -1020,7 +1020,7 @@ function _defineProperty(obj, key, value) {
|
|
|
1020
1020
|
;// CONCATENATED MODULE: external "vue"
|
|
1021
1021
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1022
1022
|
var y = x => () => x
|
|
1023
|
-
const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
|
1023
|
+
const external_vue_namespaceObject = x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
|
1024
1024
|
;// CONCATENATED MODULE: external "../shared"
|
|
1025
1025
|
var shared_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1026
1026
|
var shared_y = x => () => x
|
|
@@ -1033,7 +1033,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
1033
1033
|
* Tencent is pleased to support the open source community by making
|
|
1034
1034
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1035
1035
|
*
|
|
1036
|
-
* Copyright (C)
|
|
1036
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1037
1037
|
*
|
|
1038
1038
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1039
1039
|
*
|
|
@@ -1063,6 +1063,23 @@ var instances = {
|
|
|
1063
1063
|
'bottom-right': []
|
|
1064
1064
|
};
|
|
1065
1065
|
var seed = 1;
|
|
1066
|
+
// 更新指定位置的所有 Message 实例的位置
|
|
1067
|
+
var updateModalPosition = function updateModalPosition(position, spacing) {
|
|
1068
|
+
var initialOffset = 30;
|
|
1069
|
+
var offsetTop = initialOffset;
|
|
1070
|
+
instances[position].forEach(function (vm) {
|
|
1071
|
+
if (vm.el) {
|
|
1072
|
+
// 获取当前实例的实际高度(包括详情展开后的高度)
|
|
1073
|
+
var currentHeight = vm.el.offsetHeight || 0;
|
|
1074
|
+
// 直接更新 DOM 元素的 top 样式,确保位置立即生效
|
|
1075
|
+
vm.el.style.top = "".concat(offsetTop, "px");
|
|
1076
|
+
// 同时更新 props,保持数据一致性
|
|
1077
|
+
vm.props.offsetY = offsetTop;
|
|
1078
|
+
// 然后累加当前实例的高度和间距,用于计算下一个实例的位置
|
|
1079
|
+
offsetTop += currentHeight + spacing;
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
};
|
|
1066
1083
|
var Message = function Message(constructor, options) {
|
|
1067
1084
|
var opts = options;
|
|
1068
1085
|
var position = opts.position || 'top-right';
|
|
@@ -1085,17 +1102,11 @@ var Message = function Message(constructor, options) {
|
|
|
1085
1102
|
opts = _objectSpread(_objectSpread({}, opts), {}, {
|
|
1086
1103
|
offsetX: horizontalOffset,
|
|
1087
1104
|
offsetY: verticalOffset,
|
|
1088
|
-
id: id
|
|
1105
|
+
id: id,
|
|
1106
|
+
spacing: spacing
|
|
1089
1107
|
});
|
|
1090
1108
|
var container = document.createElement('div');
|
|
1091
1109
|
var vm = (0,external_vue_namespaceObject.createVNode)(constructor, opts);
|
|
1092
|
-
// const updateModalPosition = () => {
|
|
1093
|
-
// let offsetTop = 30;
|
|
1094
|
-
// instances[position].forEach((vm) => {
|
|
1095
|
-
// offsetTop += (vm.el.offsetHeight || 0) + spacing;
|
|
1096
|
-
// vm.props.offsetY = offsetTop;
|
|
1097
|
-
// });
|
|
1098
|
-
// };
|
|
1099
1110
|
vm.props.onDestroy = function (id) {
|
|
1100
1111
|
use_message_close(id, position, spacing, userOnClose);
|
|
1101
1112
|
(0,external_vue_namespaceObject.render)(null, container);
|
|
@@ -1104,13 +1115,19 @@ var Message = function Message(constructor, options) {
|
|
|
1104
1115
|
instances[position].forEach(function (item) {
|
|
1105
1116
|
if (item.props.id !== id) {
|
|
1106
1117
|
var _item$component;
|
|
1107
|
-
|
|
1118
|
+
// 关闭其他实例的详情时,传入 shouldEmit = false 避免触发无限循环
|
|
1119
|
+
(_item$component = item.component) === null || _item$component === void 0 || (_item$component = _item$component.exposed) === null || _item$component === void 0 || _item$component.setDetailsShow(null, false, false);
|
|
1108
1120
|
}
|
|
1109
1121
|
});
|
|
1110
|
-
//
|
|
1111
|
-
//
|
|
1112
|
-
//
|
|
1113
|
-
|
|
1122
|
+
// 等待 DOM 更新完成后再更新位置
|
|
1123
|
+
// 详情展开/收起时,DOM 高度会变化,需要等待渲染完成
|
|
1124
|
+
// 由于事件已经在详情内容渲染完成后才 emit,这里只需要等待 Vue 响应式更新和浏览器布局完成
|
|
1125
|
+
var currentSpacing = spacing || 10;
|
|
1126
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
|
1127
|
+
requestAnimationFrame(function () {
|
|
1128
|
+
updateModalPosition(position, currentSpacing);
|
|
1129
|
+
});
|
|
1130
|
+
});
|
|
1114
1131
|
};
|
|
1115
1132
|
(0,external_vue_namespaceObject.render)(vm, container);
|
|
1116
1133
|
instances[position].push(vm);
|
|
@@ -1124,21 +1141,23 @@ var Message = function Message(constructor, options) {
|
|
|
1124
1141
|
};
|
|
1125
1142
|
function use_message_close(id, position, spacing, userOnClose) {
|
|
1126
1143
|
userOnClose === null || userOnClose === void 0 || userOnClose();
|
|
1127
|
-
var verticalProperty = position.startsWith('top') ? 'top' : 'bottom';
|
|
1128
1144
|
var instanceIndex = -1;
|
|
1129
1145
|
instances[position].forEach(function (item, index) {
|
|
1130
1146
|
if (item.props.id === id) {
|
|
1131
1147
|
instanceIndex = index;
|
|
1132
1148
|
}
|
|
1133
1149
|
});
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
var len = instances[position].length;
|
|
1137
|
-
for (var i = instanceIndex; i < len; i++) {
|
|
1138
|
-
var pos = parseInt(instances[position][i].el.style[verticalProperty], 10) - removeHeight - spacing;
|
|
1139
|
-
instances[position][i].component.props.offsetY = pos;
|
|
1150
|
+
if (instanceIndex === -1) {
|
|
1151
|
+
return;
|
|
1140
1152
|
}
|
|
1153
|
+
// 移除实例
|
|
1141
1154
|
instances[position].splice(instanceIndex, 1);
|
|
1155
|
+
// 重新计算所有剩余实例的位置
|
|
1156
|
+
// 使用传入的 spacing,如果没有则从第一个实例获取,或使用默认值 10
|
|
1157
|
+
var currentSpacing = spacing || (instances[position].length > 0 ? instances[position][0].props.spacing : 10) || 10;
|
|
1158
|
+
(0,external_vue_namespaceObject.nextTick)(function () {
|
|
1159
|
+
updateModalPosition(position, currentSpacing);
|
|
1160
|
+
});
|
|
1142
1161
|
}
|
|
1143
1162
|
/* harmony default export */ const use_message = (Message);
|
|
1144
1163
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
@@ -1207,7 +1226,7 @@ function messageConstructor_objectSpread(e) { for (var r = 1; r < arguments.leng
|
|
|
1207
1226
|
* Tencent is pleased to support the open source community by making
|
|
1208
1227
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1209
1228
|
*
|
|
1210
|
-
* Copyright (C)
|
|
1229
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1211
1230
|
*
|
|
1212
1231
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1213
1232
|
*
|
|
@@ -1445,8 +1464,15 @@ var messageProps = {
|
|
|
1445
1464
|
return targetJson;
|
|
1446
1465
|
};
|
|
1447
1466
|
var setDetailsShow = function setDetailsShow(e, isShow) {
|
|
1467
|
+
var shouldEmit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
1448
1468
|
toolOperation.isDetailShow = isShow !== null && isShow !== void 0 ? isShow : !toolOperation.isDetailShow;
|
|
1449
1469
|
fixMesage(e, toolOperation.isDetailShow);
|
|
1470
|
+
// 用于在详情内容渲染完成后 emit 事件的回调
|
|
1471
|
+
var emitAfterRender = function emitAfterRender() {
|
|
1472
|
+
if (shouldEmit && _typeof(props.message) === 'object' && !(0,external_vue_namespaceObject.isVNode)(props.message)) {
|
|
1473
|
+
emit('detail', toolOperation.isDetailShow, props.id);
|
|
1474
|
+
}
|
|
1475
|
+
};
|
|
1450
1476
|
if (toolOperation.isDetailShow && _typeof(props.message) === 'object' && !(0,external_vue_namespaceObject.isVNode)(props.message)) {
|
|
1451
1477
|
if (props.message.type === MessageContentType.JSON || !props.message.type) {
|
|
1452
1478
|
var targetJson = parseToJson(props.message.details);
|
|
@@ -1457,15 +1483,23 @@ var messageProps = {
|
|
|
1457
1483
|
refJsonContent.value.append(formatter.render());
|
|
1458
1484
|
}
|
|
1459
1485
|
copyMessage();
|
|
1486
|
+
// 详情内容渲染完成后,再 emit 事件以更新位置
|
|
1487
|
+
emitAfterRender();
|
|
1460
1488
|
});
|
|
1461
|
-
}
|
|
1462
|
-
if (props.message.type === MessageContentType.KEY_VALUE) {
|
|
1489
|
+
} else if (props.message.type === MessageContentType.KEY_VALUE) {
|
|
1463
1490
|
setTimeout(function () {
|
|
1464
1491
|
copyMessage();
|
|
1465
1492
|
copyValueItem();
|
|
1493
|
+
// 详情内容渲染完成后,再 emit 事件以更新位置
|
|
1494
|
+
emitAfterRender();
|
|
1466
1495
|
});
|
|
1496
|
+
} else {
|
|
1497
|
+
// 如果没有详情内容需要渲染,立即 emit
|
|
1498
|
+
emitAfterRender();
|
|
1467
1499
|
}
|
|
1468
|
-
|
|
1500
|
+
} else {
|
|
1501
|
+
// 收起详情时,立即 emit 事件
|
|
1502
|
+
emitAfterRender();
|
|
1469
1503
|
}
|
|
1470
1504
|
};
|
|
1471
1505
|
var fixMesage = function fixMesage(_e, isFix) {
|
|
@@ -1717,7 +1751,7 @@ var messageProps = {
|
|
|
1717
1751
|
"class": "".concat(_this2.resolveClassName('message-icon'))
|
|
1718
1752
|
}, [renderIcon()]), (0,external_vue_namespaceObject.createVNode)("div", {
|
|
1719
1753
|
"class": "describe"
|
|
1720
|
-
}, [(_this2$$slots$title = (_this2$$slots$title2 = (_this2$$slots = _this2.$slots).title) === null || _this2$$slots$title2 === void 0 ? void 0 : _this2$$slots$title2.call(_this2$$slots)) !== null && _this2$$slots$title !== void 0 ? _this2$$slots$title : "\u3010".concat(_this2.message.code, "\u3011").concat(_this2.message.overview, " ").concat(_this2.message.suggestion)])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
|
1754
|
+
}, [(_this2$$slots$title = (_this2$$slots$title2 = (_this2$$slots = _this2.$slots).title) === null || _this2$$slots$title2 === void 0 ? void 0 : _this2$$slots$title2.call(_this2$$slots)) !== null && _this2$$slots$title !== void 0 ? _this2$$slots$title : "".concat(_this2.message.code ? "\u3010".concat(_this2.message.code, "\u3011") : '').concat(_this2.message.overview, " ").concat(_this2.message.suggestion)])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
|
1721
1755
|
"class": "tools"
|
|
1722
1756
|
}, [_this2.renderMessageActions()])]), _this2.toolOperation.isDetailShow && (0,external_vue_namespaceObject.createVNode)("div", {
|
|
1723
1757
|
"class": "message-detail"
|
|
@@ -1762,7 +1796,7 @@ var messageProps = {
|
|
|
1762
1796
|
* Tencent is pleased to support the open source community by making
|
|
1763
1797
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1764
1798
|
*
|
|
1765
|
-
* Copyright (C)
|
|
1799
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1766
1800
|
*
|
|
1767
1801
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1768
1802
|
*
|
|
@@ -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-message {
|
|
132
133
|
position: fixed;
|
|
@@ -152,7 +152,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
152
|
})>;
|
|
153
153
|
visible: import("vue").Ref<boolean>;
|
|
154
154
|
close: (e: Event) => void;
|
|
155
|
-
setDetailsShow: (e: MouseEvent, isShow?: boolean) => void;
|
|
155
|
+
setDetailsShow: (e: MouseEvent, isShow?: boolean, shouldEmit?: boolean) => void;
|
|
156
156
|
fixMesage: (_e: MouseEvent, isFix?: boolean) => void;
|
|
157
157
|
copyMessage: () => void;
|
|
158
158
|
parseToJson: (value: any) => any;
|