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/tree/props.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtractPropTypes, VNode } from 'vue';
|
|
1
|
+
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
|
2
2
|
declare enum TreeSearchMatchEnum {
|
|
3
3
|
FULL = "full",
|
|
4
4
|
FUZZY = "fuzzy"
|
|
@@ -11,6 +11,8 @@ export type TreeNode = {
|
|
|
11
11
|
[key: string]: unknown;
|
|
12
12
|
children?: TreeNode[];
|
|
13
13
|
};
|
|
14
|
+
export type DropType = 'child' | 'move' | 'sort';
|
|
15
|
+
export type DisableDropHandler = (data: TreeNode, type: DropType, target: TreeNode) => boolean;
|
|
14
16
|
/**
|
|
15
17
|
* Tree Prop: prefixIcon function
|
|
16
18
|
* @param {} isRoot 是否为分跟节点
|
|
@@ -129,8 +131,23 @@ export declare const treeProps: {
|
|
|
129
131
|
disableDrag: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
|
130
132
|
default: (...args: any[]) => any;
|
|
131
133
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
/**
|
|
135
|
+
* 是否禁用拖拽释放操作
|
|
136
|
+
* @param data
|
|
137
|
+
* @param type
|
|
138
|
+
* @param target
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
disableDrop: PropType<DisableDropHandler>;
|
|
142
|
+
/**
|
|
143
|
+
* 拖拽阈值
|
|
144
|
+
* 用于判断拖拽时鼠标位置与节点的距离
|
|
145
|
+
* 当鼠标位置与节点的距离大于此值时,才会触发拖拽
|
|
146
|
+
*/
|
|
147
|
+
dragThreshold: import("vue-types").VueTypeValidableDef<number> & {
|
|
148
|
+
default: number;
|
|
149
|
+
} & {
|
|
150
|
+
default: number;
|
|
134
151
|
};
|
|
135
152
|
/**
|
|
136
153
|
* 节点拖拽时可交换位置(开启拖拽可交换位置后将不支持改变层级)
|
|
@@ -140,6 +157,15 @@ export declare const treeProps: {
|
|
|
140
157
|
} & {
|
|
141
158
|
default: boolean;
|
|
142
159
|
};
|
|
160
|
+
/**
|
|
161
|
+
* 拖拽排序模式
|
|
162
|
+
* - any: 允许拖拽到任意位置
|
|
163
|
+
* - next: 只允许拖拽到同级节点的前后位置
|
|
164
|
+
* 默认 any
|
|
165
|
+
*/
|
|
166
|
+
dragSortMode: import("vue-types").VueTypeDef<string> & {
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
143
169
|
/**
|
|
144
170
|
* 节点是否可以选中
|
|
145
171
|
*/
|
|
@@ -157,6 +183,14 @@ export declare const treeProps: {
|
|
|
157
183
|
showCheckbox: import("vue-types").VueTypeDef<any> & {
|
|
158
184
|
default: any;
|
|
159
185
|
};
|
|
186
|
+
/**
|
|
187
|
+
* 是否禁用节点复选框
|
|
188
|
+
*/
|
|
189
|
+
disableCheck: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
190
|
+
default: boolean;
|
|
191
|
+
} & {
|
|
192
|
+
default: boolean;
|
|
193
|
+
};
|
|
160
194
|
/**
|
|
161
195
|
* 默认选中的节点id,selectable为false时无效
|
|
162
196
|
*/
|
package/lib/tree/tree.css
CHANGED
|
@@ -257,13 +257,39 @@
|
|
|
257
257
|
}
|
|
258
258
|
.bk-tree {
|
|
259
259
|
font-size: 14px;
|
|
260
|
+
position: relative;
|
|
260
261
|
}
|
|
261
262
|
.bk-tree .bk-node-row {
|
|
262
263
|
padding-left: calc(var(--offset-left));
|
|
264
|
+
position: relative;
|
|
265
|
+
}
|
|
266
|
+
.bk-tree .bk-node-row:hover {
|
|
267
|
+
background-color: #f5f7fa;
|
|
263
268
|
}
|
|
264
269
|
.bk-tree .bk-node-row.is-selected {
|
|
265
270
|
background-color: #ebf2ff;
|
|
266
271
|
}
|
|
272
|
+
.bk-tree .bk-node-row.is-selected:hover {
|
|
273
|
+
background-color: #e1ecff;
|
|
274
|
+
}
|
|
275
|
+
.bk-tree .bk-node-row.drop-before::before {
|
|
276
|
+
content: '';
|
|
277
|
+
position: absolute;
|
|
278
|
+
top: 0;
|
|
279
|
+
left: 0;
|
|
280
|
+
right: 0;
|
|
281
|
+
height: 1px;
|
|
282
|
+
background-color: #2196F3;
|
|
283
|
+
}
|
|
284
|
+
.bk-tree .bk-node-row.drop-after::before {
|
|
285
|
+
content: '';
|
|
286
|
+
position: absolute;
|
|
287
|
+
bottom: 0;
|
|
288
|
+
left: 0;
|
|
289
|
+
right: 0;
|
|
290
|
+
height: 1px;
|
|
291
|
+
background-color: #2196F3;
|
|
292
|
+
}
|
|
267
293
|
.bk-tree-node {
|
|
268
294
|
position: relative;
|
|
269
295
|
display: flex;
|
|
@@ -358,3 +384,11 @@
|
|
|
358
384
|
.bk-tree-drop-disabled .bk-tree-node {
|
|
359
385
|
cursor: no-drop;
|
|
360
386
|
}
|
|
387
|
+
.bk-tree .insert-line {
|
|
388
|
+
position: absolute;
|
|
389
|
+
height: 2px;
|
|
390
|
+
background: #2196F3;
|
|
391
|
+
display: none;
|
|
392
|
+
pointer-events: none;
|
|
393
|
+
z-index: 999;
|
|
394
|
+
}
|
package/lib/tree/tree.d.ts
CHANGED
|
@@ -72,14 +72,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
disableDrag: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
|
73
73
|
default: (...args: any[]) => any;
|
|
74
74
|
};
|
|
75
|
-
disableDrop: import("vue
|
|
76
|
-
|
|
75
|
+
disableDrop: import("vue").PropType<import("./props").DisableDropHandler>;
|
|
76
|
+
dragThreshold: import("vue-types").VueTypeValidableDef<number> & {
|
|
77
|
+
default: number;
|
|
78
|
+
} & {
|
|
79
|
+
default: number;
|
|
77
80
|
};
|
|
78
81
|
dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
79
82
|
default: boolean;
|
|
80
83
|
} & {
|
|
81
84
|
default: boolean;
|
|
82
85
|
};
|
|
86
|
+
dragSortMode: import("vue-types").VueTypeDef<string> & {
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
83
89
|
selectable: import("vue-types").VueTypeDef<any> & {
|
|
84
90
|
default: any;
|
|
85
91
|
};
|
|
@@ -91,6 +97,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
97
|
showCheckbox: import("vue-types").VueTypeDef<any> & {
|
|
92
98
|
default: any;
|
|
93
99
|
};
|
|
100
|
+
disableCheck: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
101
|
+
default: boolean;
|
|
102
|
+
} & {
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
94
105
|
checked: import("vue-types").VueTypeDef<any[]> & {
|
|
95
106
|
default: () => any[];
|
|
96
107
|
};
|
|
@@ -139,6 +150,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
139
150
|
nodeDragStart: (..._args: any[]) => boolean;
|
|
140
151
|
nodeDragOver: (..._args: any[]) => boolean;
|
|
141
152
|
nodeDragLeave: (..._args: any[]) => boolean;
|
|
153
|
+
nodeDragSort: (..._args: any[]) => boolean;
|
|
142
154
|
nodeDrop: (..._args: any[]) => boolean;
|
|
143
155
|
nodeEnterView: (..._args: any[]) => boolean;
|
|
144
156
|
nodeSelected: (..._args: any[]) => boolean;
|
|
@@ -210,14 +222,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
210
222
|
disableDrag: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
|
211
223
|
default: (...args: any[]) => any;
|
|
212
224
|
};
|
|
213
|
-
disableDrop: import("vue
|
|
214
|
-
|
|
225
|
+
disableDrop: import("vue").PropType<import("./props").DisableDropHandler>;
|
|
226
|
+
dragThreshold: import("vue-types").VueTypeValidableDef<number> & {
|
|
227
|
+
default: number;
|
|
228
|
+
} & {
|
|
229
|
+
default: number;
|
|
215
230
|
};
|
|
216
231
|
dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
217
232
|
default: boolean;
|
|
218
233
|
} & {
|
|
219
234
|
default: boolean;
|
|
220
235
|
};
|
|
236
|
+
dragSortMode: import("vue-types").VueTypeDef<string> & {
|
|
237
|
+
default: string;
|
|
238
|
+
};
|
|
221
239
|
selectable: import("vue-types").VueTypeDef<any> & {
|
|
222
240
|
default: any;
|
|
223
241
|
};
|
|
@@ -229,6 +247,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
247
|
showCheckbox: import("vue-types").VueTypeDef<any> & {
|
|
230
248
|
default: any;
|
|
231
249
|
};
|
|
250
|
+
disableCheck: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
251
|
+
default: boolean;
|
|
252
|
+
} & {
|
|
253
|
+
default: boolean;
|
|
254
|
+
};
|
|
232
255
|
checked: import("vue-types").VueTypeDef<any[]> & {
|
|
233
256
|
default: () => any[];
|
|
234
257
|
};
|
|
@@ -275,6 +298,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
275
298
|
onNodeCollapse?: (...args: any[]) => any;
|
|
276
299
|
onNodeDragLeave?: (...args: any[]) => any;
|
|
277
300
|
onNodeDragOver?: (...args: any[]) => any;
|
|
301
|
+
onNodeDragSort?: (...args: any[]) => any;
|
|
278
302
|
onNodeDragStart?: (...args: any[]) => any;
|
|
279
303
|
onNodeDrop?: (...args: any[]) => any;
|
|
280
304
|
onNodeEnterView?: (...args: any[]) => any;
|
|
@@ -297,11 +321,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
297
321
|
levelLine: any;
|
|
298
322
|
virtualRender: boolean;
|
|
299
323
|
disableDrag: (...args: any[]) => any;
|
|
300
|
-
|
|
324
|
+
dragThreshold: number;
|
|
301
325
|
dragSort: boolean;
|
|
326
|
+
dragSortMode: string;
|
|
302
327
|
selectable: any;
|
|
303
328
|
disabledFolderSelectable: boolean;
|
|
304
329
|
showCheckbox: any;
|
|
330
|
+
disableCheck: boolean;
|
|
305
331
|
showNodeTypeIcon: boolean;
|
|
306
332
|
autoCheckChildren: any;
|
|
307
333
|
autoOpenParentNode: boolean;
|
package/lib/tree/tree.less
CHANGED
|
@@ -5,12 +5,45 @@
|
|
|
5
5
|
|
|
6
6
|
.@{bk-prefix}-tree {
|
|
7
7
|
font-size: 14px;
|
|
8
|
+
position: relative;
|
|
8
9
|
|
|
9
10
|
.@{bk-prefix}-node-row {
|
|
10
11
|
padding-left: calc(var(--offset-left));
|
|
12
|
+
position: relative;
|
|
13
|
+
|
|
14
|
+
&:hover {
|
|
15
|
+
background-color: #f5f7fa;
|
|
16
|
+
}
|
|
11
17
|
|
|
12
18
|
&.is-selected {
|
|
13
19
|
background-color: #ebf2ff;
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
background-color: #e1ecff;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.drop-before {
|
|
27
|
+
&::before {
|
|
28
|
+
content: '';
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: 0;
|
|
31
|
+
left: 0;
|
|
32
|
+
right: 0;
|
|
33
|
+
height: 1px;
|
|
34
|
+
background-color: #2196F3;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&.drop-after {
|
|
38
|
+
&::before {
|
|
39
|
+
content: '';
|
|
40
|
+
position: absolute;
|
|
41
|
+
bottom: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
right: 0;
|
|
44
|
+
height: 1px;
|
|
45
|
+
background-color: #2196F3;
|
|
46
|
+
}
|
|
14
47
|
}
|
|
15
48
|
}
|
|
16
49
|
|
|
@@ -66,6 +99,7 @@
|
|
|
66
99
|
}
|
|
67
100
|
}
|
|
68
101
|
|
|
102
|
+
|
|
69
103
|
.node-virtual-line {
|
|
70
104
|
position: absolute;
|
|
71
105
|
top: -12px;
|
|
@@ -132,7 +166,12 @@
|
|
|
132
166
|
}
|
|
133
167
|
}
|
|
134
168
|
|
|
135
|
-
|
|
136
|
-
|
|
169
|
+
.insert-line {
|
|
170
|
+
position: absolute;
|
|
171
|
+
height: 2px;
|
|
172
|
+
background: #2196F3;
|
|
173
|
+
display: none;
|
|
174
|
+
pointer-events: none;
|
|
175
|
+
z-index: 999;
|
|
137
176
|
}
|
|
138
177
|
}
|
|
@@ -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-F-scroll-x {
|
|
132
133
|
overflow-x: auto;
|
|
@@ -387,13 +388,39 @@
|
|
|
387
388
|
}
|
|
388
389
|
.bk-tree {
|
|
389
390
|
font-size: 14px;
|
|
391
|
+
position: relative;
|
|
390
392
|
}
|
|
391
393
|
.bk-tree .bk-node-row {
|
|
392
394
|
padding-left: calc(var(--offset-left));
|
|
395
|
+
position: relative;
|
|
396
|
+
}
|
|
397
|
+
.bk-tree .bk-node-row:hover {
|
|
398
|
+
background-color: #f5f7fa;
|
|
393
399
|
}
|
|
394
400
|
.bk-tree .bk-node-row.is-selected {
|
|
395
401
|
background-color: #ebf2ff;
|
|
396
402
|
}
|
|
403
|
+
.bk-tree .bk-node-row.is-selected:hover {
|
|
404
|
+
background-color: #e1ecff;
|
|
405
|
+
}
|
|
406
|
+
.bk-tree .bk-node-row.drop-before::before {
|
|
407
|
+
content: '';
|
|
408
|
+
position: absolute;
|
|
409
|
+
top: 0;
|
|
410
|
+
left: 0;
|
|
411
|
+
right: 0;
|
|
412
|
+
height: 1px;
|
|
413
|
+
background-color: #2196F3;
|
|
414
|
+
}
|
|
415
|
+
.bk-tree .bk-node-row.drop-after::before {
|
|
416
|
+
content: '';
|
|
417
|
+
position: absolute;
|
|
418
|
+
bottom: 0;
|
|
419
|
+
left: 0;
|
|
420
|
+
right: 0;
|
|
421
|
+
height: 1px;
|
|
422
|
+
background-color: #2196F3;
|
|
423
|
+
}
|
|
397
424
|
.bk-tree-node {
|
|
398
425
|
position: relative;
|
|
399
426
|
display: flex;
|
|
@@ -488,3 +515,11 @@
|
|
|
488
515
|
.bk-tree-drop-disabled .bk-tree-node {
|
|
489
516
|
cursor: no-drop;
|
|
490
517
|
}
|
|
518
|
+
.bk-tree .insert-line {
|
|
519
|
+
position: absolute;
|
|
520
|
+
height: 2px;
|
|
521
|
+
background: #2196F3;
|
|
522
|
+
display: none;
|
|
523
|
+
pointer-events: none;
|
|
524
|
+
z-index: 999;
|
|
525
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TreeNode } from './props';
|
|
2
|
+
type InsertPosition = 'insertAfter' | 'insertBefore';
|
|
3
|
+
export declare function useArrayMove(): {
|
|
4
|
+
moveElement: (arr: TreeNode[], sourceIndex: number, targetIndex: number, sourceChildCount?: number, targetChildCount?: number, position?: InsertPosition) => TreeNode[];
|
|
5
|
+
};
|
|
6
|
+
export {};
|
|
@@ -7,9 +7,11 @@ declare const _default: (props: TreePropTypes, ctx: any, flatData: IFlatData, _r
|
|
|
7
7
|
asyncNodeClick: (item: TreeNode) => Promise<boolean> | Promise<void | Record<string, unknown>>;
|
|
8
8
|
setNodeAction: (args: TreeNode | TreeNode[], action: string, value: unknown) => void;
|
|
9
9
|
setNodeOpened: (item: TreeNode, isOpen?: any, e?: MouseEvent, fireEmit?: boolean) => void;
|
|
10
|
-
setSelect: (nodes: TreeNode | TreeNode[], selected?: boolean, autoOpen?: boolean, triggerEvent?: boolean) => void;
|
|
10
|
+
setSelect: (nodes: TreeNode | TreeNode[], selected?: boolean, autoOpen?: boolean, triggerEvent?: boolean, event?: string) => void;
|
|
11
11
|
setOpen: (item: TreeNode, isOpen?: boolean, autoOpenParents?: boolean) => void;
|
|
12
12
|
setNodeAttribute: (node: TreeNode, attrName: string | string[], value: (boolean | number | string)[] | boolean | number | string, loopParent?: boolean) => void;
|
|
13
13
|
isIndeterminate: (item: TreeNode) => any;
|
|
14
|
+
deepUpdateChildNode: (node: TreeNode, attr: string | string[], value: unknown | unknown[]) => void;
|
|
15
|
+
updateParentChecked: (item: TreeNode, isChecked: any) => void;
|
|
14
16
|
};
|
|
15
17
|
export default _default;
|
|
@@ -12,6 +12,9 @@ declare const _default: (flatData: {
|
|
|
12
12
|
getNodePathById: (id: string) => any;
|
|
13
13
|
getNodeAttrById: (id: string, attr: string) => any;
|
|
14
14
|
getNodeParentIdById: (id: string) => any;
|
|
15
|
+
getNodeIndexById: (id: string) => number;
|
|
16
|
+
getNodeIndexByNode: (node: TreeNode) => number;
|
|
17
|
+
getRootNodeList: () => TreeNode[];
|
|
15
18
|
getParentNodeAttr: (node: TreeNode, attrName: string) => any;
|
|
16
19
|
getParentNode: (node: TreeNode) => any;
|
|
17
20
|
setNodeAttr: (node: TreeNode, attr: string, val: unknown, id?: any) => void;
|
package/lib/upload/index.js
CHANGED
|
@@ -1264,7 +1264,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
|
|
|
1264
1264
|
* Tencent is pleased to support the open source community by making
|
|
1265
1265
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1266
1266
|
*
|
|
1267
|
-
* Copyright (C)
|
|
1267
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1268
1268
|
*
|
|
1269
1269
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1270
1270
|
*
|
|
@@ -1309,7 +1309,7 @@ var EUploadStatus;
|
|
|
1309
1309
|
* Tencent is pleased to support the open source community by making
|
|
1310
1310
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1311
1311
|
*
|
|
1312
|
-
* Copyright (C)
|
|
1312
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1313
1313
|
*
|
|
1314
1314
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1315
1315
|
*
|
|
@@ -1563,7 +1563,7 @@ const progress_less_namespaceObject = progress_less_x({ });
|
|
|
1563
1563
|
* Tencent is pleased to support the open source community by making
|
|
1564
1564
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1565
1565
|
*
|
|
1566
|
-
* Copyright (C)
|
|
1566
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1567
1567
|
*
|
|
1568
1568
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1569
1569
|
*
|
|
@@ -1793,7 +1793,7 @@ const button_less_namespaceObject = button_less_x({ });
|
|
|
1793
1793
|
* Tencent is pleased to support the open source community by making
|
|
1794
1794
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1795
1795
|
*
|
|
1796
|
-
* Copyright (C)
|
|
1796
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1797
1797
|
*
|
|
1798
1798
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1799
1799
|
*
|
|
@@ -2057,7 +2057,7 @@ var spark_md5_default = /*#__PURE__*/__webpack_require__.n(spark_md5);
|
|
|
2057
2057
|
* Tencent is pleased to support the open source community by making
|
|
2058
2058
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2059
2059
|
*
|
|
2060
|
-
* Copyright (C)
|
|
2060
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2061
2061
|
*
|
|
2062
2062
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2063
2063
|
*
|
|
@@ -2398,7 +2398,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
2398
2398
|
* Tencent is pleased to support the open source community by making
|
|
2399
2399
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2400
2400
|
*
|
|
2401
|
-
* Copyright (C)
|
|
2401
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2402
2402
|
*
|
|
2403
2403
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2404
2404
|
*
|
|
@@ -2645,7 +2645,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
|
2645
2645
|
* Tencent is pleased to support the open source community by making
|
|
2646
2646
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2647
2647
|
*
|
|
2648
|
-
* Copyright (C)
|
|
2648
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2649
2649
|
*
|
|
2650
2650
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2651
2651
|
*
|
|
@@ -2932,7 +2932,7 @@ function upload_arrayLikeToArray(arr, len) { if (len == null || len > arr.length
|
|
|
2932
2932
|
* Tencent is pleased to support the open source community by making
|
|
2933
2933
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2934
2934
|
*
|
|
2935
|
-
* Copyright (C)
|
|
2935
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2936
2936
|
*
|
|
2937
2937
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2938
2938
|
*
|
|
@@ -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% {
|
|
@@ -145,7 +145,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
145
145
|
* Tencent is pleased to support the open source community by making
|
|
146
146
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
147
147
|
*
|
|
148
|
-
* Copyright (C)
|
|
148
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
149
149
|
*
|
|
150
150
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
151
151
|
*
|
|
@@ -274,7 +274,7 @@ var virtualRenderProps = _objectSpread({
|
|
|
274
274
|
* Tencent is pleased to support the open source community by making
|
|
275
275
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
276
276
|
*
|
|
277
|
-
* Copyright (C)
|
|
277
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
278
278
|
*
|
|
279
279
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
280
280
|
*
|
|
@@ -333,7 +333,7 @@ var virtualRenderProps = _objectSpread({
|
|
|
333
333
|
* Tencent is pleased to support the open source community by making
|
|
334
334
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
335
335
|
*
|
|
336
|
-
* Copyright (C)
|
|
336
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
337
337
|
*
|
|
338
338
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
339
339
|
*
|
|
@@ -427,7 +427,7 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
|
|
|
427
427
|
* Tencent is pleased to support the open source community by making
|
|
428
428
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
429
429
|
*
|
|
430
|
-
* Copyright (C)
|
|
430
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
431
431
|
*
|
|
432
432
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
433
433
|
*
|
|
@@ -661,7 +661,7 @@ function use_tag_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
|
661
661
|
* Tencent is pleased to support the open source community by making
|
|
662
662
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
663
663
|
*
|
|
664
|
-
* Copyright (C)
|
|
664
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
665
665
|
*
|
|
666
666
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
667
667
|
*
|
|
@@ -782,7 +782,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
|
782
782
|
* Tencent is pleased to support the open source community by making
|
|
783
783
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
784
784
|
*
|
|
785
|
-
* Copyright (C)
|
|
785
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
786
786
|
*
|
|
787
787
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
788
788
|
*
|
|
@@ -958,6 +958,10 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
|
958
958
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
|
959
959
|
var _props$scrollbar;
|
|
960
960
|
instance = new VisibleRender(binding, refRoot.value);
|
|
961
|
+
// 在执行渲染前,先设置正确的容器尺寸
|
|
962
|
+
// 当 props.height 是数字时,使用 props.height 作为 offsetHeight
|
|
963
|
+
// 避免 popover 首次显示时 DOM 元素 offsetHeight 为 0 导致计算错误
|
|
964
|
+
setDelegateEl();
|
|
961
965
|
if ((_props$scrollbar = props.scrollbar) !== null && _props$scrollbar !== void 0 && _props$scrollbar.enabled) {
|
|
962
966
|
virtualRoot.value = new scrollbar_namespaceObject.VirtualElement({
|
|
963
967
|
delegateElement: refRoot.value,
|
|
@@ -1145,7 +1149,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
|
1145
1149
|
* Tencent is pleased to support the open source community by making
|
|
1146
1150
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1147
1151
|
*
|
|
1148
|
-
* Copyright (C)
|
|
1152
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1149
1153
|
*
|
|
1150
1154
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1151
1155
|
*
|
|
@@ -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-F-scroll-x {
|
|
132
133
|
overflow-x: auto;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Tencent is pleased to support the open source community by making
|
|
3
3
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4
4
|
*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
6
6
|
*
|
|
7
7
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
8
8
|
*
|
|
@@ -99,6 +99,7 @@ declare module '@vue/runtime-core' {
|
|
|
99
99
|
BkCodeDiff: typeof import('./code-diff/code-diff').default;
|
|
100
100
|
BkSearchSelect: typeof import('./search-select/search-select').default;
|
|
101
101
|
BkConfigProvider: typeof import('./config-provider/config-provider').default;
|
|
102
|
+
BkPopConfirm: typeof import('./pop-confirm/pop-confirm').default;
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
105
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bkui-vue",
|
|
3
|
-
"version": "2.0.2-beta.
|
|
3
|
+
"version": "2.0.2-beta.91",
|
|
4
4
|
"workspaces": [
|
|
5
5
|
"packages/**",
|
|
6
6
|
"scripts/cli",
|
|
@@ -88,7 +88,9 @@
|
|
|
88
88
|
"typescript": "~4.9.5",
|
|
89
89
|
"uuid": "~9.0.1",
|
|
90
90
|
"vue": "~3.3.4",
|
|
91
|
-
"vue-types": "~4.1.1"
|
|
91
|
+
"vue-types": "~4.1.1",
|
|
92
|
+
"ws": "~8.17.1",
|
|
93
|
+
"parse-url": "~8.1.0"
|
|
92
94
|
},
|
|
93
95
|
"peerDependencies": {
|
|
94
96
|
"highlight.js": "~11.5.0",
|
|
@@ -112,10 +114,19 @@
|
|
|
112
114
|
"path": "./node_modules/cz-lerna-changelog"
|
|
113
115
|
}
|
|
114
116
|
},
|
|
117
|
+
"resolutions": {
|
|
118
|
+
"braces": ">=3.0.3",
|
|
119
|
+
"cross-spawn": ">=7.0.5",
|
|
120
|
+
"nth-check": ">=2.0.1",
|
|
121
|
+
"parse-path": ">=5.0.0",
|
|
122
|
+
"shelljs": "^0.8.5",
|
|
123
|
+
"semver": ">=7.5.2"
|
|
124
|
+
},
|
|
115
125
|
"dependencies": {
|
|
116
126
|
"@floating-ui/dom": "~1.5.0",
|
|
117
127
|
"@popperjs/core": "~2.11.8",
|
|
118
128
|
"date-fns": "~2.30.0",
|
|
129
|
+
"dompurify": "3.2.6",
|
|
119
130
|
"js-calendar": "~1.2.3",
|
|
120
131
|
"json-formatter-js": "~2.3.4",
|
|
121
132
|
"lodash": "~4.17.21",
|