bkui-vue 2.0.2-beta.5 → 2.0.2-beta.51
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 +133 -132
- package/dist/index.esm.js +16844 -14959
- package/dist/index.umd.js +133 -132
- 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 +1 -0
- package/lib/affix/index.js +2 -2
- package/lib/alert/alert.variable.css +1 -0
- package/lib/alert/index.js +2 -2
- package/lib/animate-number/index.js +2 -2
- package/lib/backtop/backtop.variable.css +1 -0
- package/lib/backtop/index.js +2 -2
- package/lib/badge/badge.variable.css +1 -0
- package/lib/badge/index.js +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +1 -0
- package/lib/breadcrumb/index.js +3 -3
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.variable.css +1 -0
- package/lib/button/index.js +3 -3
- package/lib/card/card.variable.css +1 -0
- package/lib/card/index.js +2 -2
- package/lib/cascader/cascader.css +26 -24
- package/lib/cascader/cascader.d.ts +12 -0
- package/lib/cascader/cascader.less +78 -76
- package/lib/cascader/cascader.variable.css +27 -24
- package/lib/cascader/index.d.ts +26 -0
- package/lib/cascader/index.js +120 -70
- package/lib/checkbox/checkbox.variable.css +1 -0
- package/lib/checkbox/index.js +5 -5
- package/lib/code-diff/code-diff.variable.css +1 -0
- package/lib/code-diff/index.js +2 -2
- package/lib/collapse/collapse.variable.css +1 -0
- package/lib/collapse/index.js +3 -3
- package/lib/collapse-transition/collapse-transition.variable.css +1 -0
- package/lib/collapse-transition/index.js +2 -2
- package/lib/color-picker/color-picker.variable.css +1 -0
- package/lib/color-picker/index.js +33 -29
- package/lib/components.d.ts +1 -2
- package/lib/components.js +2 -3
- package/lib/config-provider/config-provider.variable.css +1 -0
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +6 -6
- package/lib/container/container.variable.css +1 -0
- package/lib/container/index.js +5 -5
- package/lib/date-picker/date-picker.variable.css +1 -0
- package/lib/date-picker/index.js +74 -79
- 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 +21 -1
- package/lib/dialog/index.js +13 -36
- package/lib/directives/index.js +22 -18
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +1 -0
- package/lib/divider/index.js +3 -3
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +15 -10
- package/lib/exception/exception.variable.css +1 -0
- package/lib/exception/index.js +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +19 -0
- package/lib/form/form.css +16 -4
- package/lib/form/form.less +24 -6
- package/lib/form/form.variable.css +17 -4
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +44 -36
- 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 +1 -0
- package/lib/image/image.variable.css +1 -0
- package/lib/image/index.js +15 -18
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -2
- 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 +22 -2
- package/lib/input/index.d.ts +39 -20
- package/lib/input/index.js +33 -30
- package/lib/input/input.d.ts +30 -16
- package/lib/input/input.variable.css +1 -0
- package/lib/link/index.js +2 -2
- package/lib/link/link.variable.css +1 -0
- package/lib/loading/index.js +3 -3
- package/lib/loading/loading.variable.css +1 -0
- 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.variable.css +1 -0
- package/lib/menu/submenu.variable.css +1 -0
- package/lib/message/index.js +4 -4
- package/lib/message/message.variable.css +1 -0
- package/lib/modal/index.js +7 -6
- package/lib/modal/modal.css +20 -1
- package/lib/modal/modal.variable.css +21 -1
- package/lib/navigation/index.js +3 -3
- package/lib/navigation/navigation.variable.css +1 -0
- package/lib/notify/index.js +3 -3
- package/lib/notify/notify.variable.css +1 -0
- package/lib/overflow-title/index.js +3 -3
- package/lib/pagination/index.js +6 -6
- package/lib/pagination/pagination.variable.css +1 -0
- package/lib/pop-confirm/index.d.ts +584 -0
- package/lib/pop-confirm/index.js +10 -6
- package/lib/pop-confirm/pop-confirm.d.ts +292 -0
- package/lib/pop-confirm/pop-confirm.variable.css +1 -0
- package/lib/pop-confirm/props.d.ts +146 -0
- package/lib/popover/index.js +24 -27
- package/lib/popover/popover.variable.css +1 -0
- 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 +1 -0
- package/lib/progress/index.js +4 -4
- package/lib/progress/progress.variable.css +1 -0
- package/lib/radio/index.js +5 -5
- package/lib/radio/radio.variable.css +1 -0
- package/lib/rate/index.js +3 -3
- package/lib/rate/rate.variable.css +1 -0
- package/lib/resize-layout/index.js +2 -2
- package/lib/resize-layout/resize-layout.variable.css +1 -0
- package/lib/scrollbar/css/scrollbar.variable.css +1 -0
- package/lib/scrollbar/index.js +6 -6
- package/lib/search-select/index.d.ts +21 -3
- package/lib/search-select/index.js +73 -41
- package/lib/search-select/input.d.ts +3 -0
- package/lib/search-select/search-select.d.ts +7 -1
- package/lib/search-select/search-select.variable.css +1 -0
- package/lib/search-select/selected.d.ts +6 -0
- package/lib/select/index.d.ts +22 -3
- package/lib/select/index.js +39 -39
- package/lib/select/select.d.ts +11 -1
- package/lib/select/select.variable.css +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.js +5 -3
- package/lib/sideslider/sideslider.variable.css +1 -0
- 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 +1 -0
- package/lib/steps/index.js +2 -2
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +1 -0
- package/lib/styles/mixins/animate.variable.css +1 -0
- package/lib/styles/mixins/popper.variable.css +1 -0
- package/lib/styles/mixins/scroll.variable.css +1 -0
- package/lib/styles/reset.variable.css +1 -0
- package/lib/styles/themes/themes.less +3 -0
- package/lib/swiper/index.js +2 -2
- package/lib/swiper/swiper.variable.css +1 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.variable.css +1 -0
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +26 -23
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/tab/tab.variable.css +1 -0
- package/lib/table/index.js +39 -47
- package/lib/table/plugins/head-filter.variable.css +1 -0
- package/lib/table/plugins/head-sort.variable.css +1 -0
- package/lib/table/plugins/settings.variable.css +1 -0
- package/lib/table/table.variable.css +1 -0
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.variable.css +1 -0
- package/lib/tag-input/index.d.ts +3 -0
- package/lib/tag-input/index.js +1398 -38
- package/lib/tag-input/tag-input.d.ts +1 -0
- package/lib/tag-input/tag-input.variable.css +1 -0
- package/lib/time-picker/index.js +1 -1
- package/lib/time-picker/time-picker.variable.css +1 -0
- package/lib/timeline/index.js +1353 -4
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.variable.css +1 -0
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +4 -4
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/transfer/transfer.variable.css +1 -0
- package/lib/tree/constant.d.ts +2 -0
- package/lib/tree/index.d.ts +48 -0
- package/lib/tree/index.js +221 -71
- package/lib/tree/props.d.ts +20 -0
- package/lib/tree/tree.css +46 -0
- package/lib/tree/tree.d.ts +22 -0
- package/lib/tree/tree.less +57 -2
- package/lib/tree/tree.variable.css +47 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/upload/index.js +8 -8
- package/lib/upload/upload.variable.css +1 -0
- package/lib/virtual-render/index.js +7 -7
- package/lib/virtual-render/virtual-render.variable.css +1 -0
- package/lib/volar.components.d.ts +1 -1
- package/package.json +13 -2
- package/dist/style.css +0 -1
- package/lib/plugin-popover/index.d.ts +0 -27
- package/lib/plugin-popover/index.js +0 -65
- package/lib/plugins/index.d.ts +0 -1
- package/lib/plugins/index.js +0 -64
package/lib/tree/tree.css
CHANGED
@@ -257,13 +257,33 @@
|
|
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;
|
263
265
|
}
|
264
266
|
.bk-tree .bk-node-row.is-selected {
|
265
267
|
background-color: #ebf2ff;
|
266
268
|
}
|
269
|
+
.bk-tree .bk-node-row.drop-before::before {
|
270
|
+
content: '';
|
271
|
+
position: absolute;
|
272
|
+
top: 0;
|
273
|
+
left: 0;
|
274
|
+
right: 0;
|
275
|
+
height: 1px;
|
276
|
+
background-color: #2196F3;
|
277
|
+
}
|
278
|
+
.bk-tree .bk-node-row.drop-after::before {
|
279
|
+
content: '';
|
280
|
+
position: absolute;
|
281
|
+
bottom: 0;
|
282
|
+
left: 0;
|
283
|
+
right: 0;
|
284
|
+
height: 1px;
|
285
|
+
background-color: #2196F3;
|
286
|
+
}
|
267
287
|
.bk-tree-node {
|
268
288
|
position: relative;
|
269
289
|
display: flex;
|
@@ -276,6 +296,20 @@
|
|
276
296
|
.bk-tree-node:not(.is-root) {
|
277
297
|
margin-left: calc(var(--depth)*var(--indent));
|
278
298
|
}
|
299
|
+
.bk-tree-node:not(.is-root).level-line .bk-node-action.empty-child {
|
300
|
+
position: relative;
|
301
|
+
}
|
302
|
+
.bk-tree-node:not(.is-root).level-line .bk-node-action.empty-child::before {
|
303
|
+
position: absolute;
|
304
|
+
top: calc(50% + 1px);
|
305
|
+
left: 0;
|
306
|
+
right: 0;
|
307
|
+
z-index: 1;
|
308
|
+
height: 0;
|
309
|
+
pointer-events: none;
|
310
|
+
border-bottom: var(--level-line);
|
311
|
+
content: '';
|
312
|
+
}
|
279
313
|
.bk-tree-node:not(.is-root).level-line::before {
|
280
314
|
position: absolute;
|
281
315
|
top: calc(50% + 1px);
|
@@ -309,6 +343,7 @@
|
|
309
343
|
.bk-tree-node .bk-node-action {
|
310
344
|
margin-right: 6px;
|
311
345
|
color: #979ba5;
|
346
|
+
min-width: 14px;
|
312
347
|
}
|
313
348
|
.bk-tree-node .bk-tree-icon {
|
314
349
|
margin: 0 6px 0 4px;
|
@@ -319,6 +354,9 @@
|
|
319
354
|
align-items: center;
|
320
355
|
min-width: 0;
|
321
356
|
}
|
357
|
+
.bk-tree-node .bk-node-content .node-check-box {
|
358
|
+
display: inline-flex;
|
359
|
+
}
|
322
360
|
.bk-tree-node .bk-node-content .bk-checkbox {
|
323
361
|
margin: 0;
|
324
362
|
}
|
@@ -340,3 +378,11 @@
|
|
340
378
|
.bk-tree-drop-disabled .bk-tree-node {
|
341
379
|
cursor: no-drop;
|
342
380
|
}
|
381
|
+
.bk-tree .insert-line {
|
382
|
+
position: absolute;
|
383
|
+
height: 2px;
|
384
|
+
background: #2196F3;
|
385
|
+
display: none;
|
386
|
+
pointer-events: none;
|
387
|
+
z-index: 999;
|
388
|
+
}
|
package/lib/tree/tree.d.ts
CHANGED
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
49
|
}>>;
|
50
50
|
cache: boolean;
|
51
51
|
deepAutoOpen?: string;
|
52
|
+
trigger?: string[];
|
52
53
|
}>;
|
53
54
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
54
55
|
default: number;
|
@@ -74,11 +75,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
74
75
|
disableDrop: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
75
76
|
default: (...args: any[]) => any;
|
76
77
|
};
|
78
|
+
dragThreshold: import("vue-types").VueTypeValidableDef<number> & {
|
79
|
+
default: number;
|
80
|
+
} & {
|
81
|
+
default: number;
|
82
|
+
};
|
77
83
|
dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
84
|
default: boolean;
|
79
85
|
} & {
|
80
86
|
default: boolean;
|
81
87
|
};
|
88
|
+
dragSortMode: import("vue-types").VueTypeDef<string> & {
|
89
|
+
default: string;
|
90
|
+
};
|
82
91
|
selectable: import("vue-types").VueTypeDef<any> & {
|
83
92
|
default: any;
|
84
93
|
};
|
@@ -138,6 +147,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
138
147
|
nodeDragStart: (..._args: any[]) => boolean;
|
139
148
|
nodeDragOver: (..._args: any[]) => boolean;
|
140
149
|
nodeDragLeave: (..._args: any[]) => boolean;
|
150
|
+
nodeDragSort: (..._args: any[]) => boolean;
|
141
151
|
nodeDrop: (..._args: any[]) => boolean;
|
142
152
|
nodeEnterView: (..._args: any[]) => boolean;
|
143
153
|
nodeSelected: (..._args: any[]) => boolean;
|
@@ -186,6 +196,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
186
196
|
}>>;
|
187
197
|
cache: boolean;
|
188
198
|
deepAutoOpen?: string;
|
199
|
+
trigger?: string[];
|
189
200
|
}>;
|
190
201
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
191
202
|
default: number;
|
@@ -211,11 +222,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
211
222
|
disableDrop: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
212
223
|
default: (...args: any[]) => any;
|
213
224
|
};
|
225
|
+
dragThreshold: import("vue-types").VueTypeValidableDef<number> & {
|
226
|
+
default: number;
|
227
|
+
} & {
|
228
|
+
default: number;
|
229
|
+
};
|
214
230
|
dragSort: import("vue-types").VueTypeValidableDef<boolean> & {
|
215
231
|
default: boolean;
|
216
232
|
} & {
|
217
233
|
default: boolean;
|
218
234
|
};
|
235
|
+
dragSortMode: import("vue-types").VueTypeDef<string> & {
|
236
|
+
default: string;
|
237
|
+
};
|
219
238
|
selectable: import("vue-types").VueTypeDef<any> & {
|
220
239
|
default: any;
|
221
240
|
};
|
@@ -273,6 +292,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
273
292
|
onNodeCollapse?: (...args: any[]) => any;
|
274
293
|
onNodeDragLeave?: (...args: any[]) => any;
|
275
294
|
onNodeDragOver?: (...args: any[]) => any;
|
295
|
+
onNodeDragSort?: (...args: any[]) => any;
|
276
296
|
onNodeDragStart?: (...args: any[]) => any;
|
277
297
|
onNodeDrop?: (...args: any[]) => any;
|
278
298
|
onNodeEnterView?: (...args: any[]) => any;
|
@@ -296,7 +316,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
296
316
|
virtualRender: boolean;
|
297
317
|
disableDrag: (...args: any[]) => any;
|
298
318
|
disableDrop: (...args: any[]) => any;
|
319
|
+
dragThreshold: number;
|
299
320
|
dragSort: boolean;
|
321
|
+
dragSortMode: string;
|
300
322
|
selectable: any;
|
301
323
|
disabledFolderSelectable: boolean;
|
302
324
|
showCheckbox: any;
|
package/lib/tree/tree.less
CHANGED
@@ -5,13 +5,38 @@
|
|
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;
|
11
13
|
|
12
14
|
&.is-selected {
|
13
15
|
background-color: #ebf2ff;
|
14
16
|
}
|
17
|
+
|
18
|
+
&.drop-before {
|
19
|
+
&::before {
|
20
|
+
content: '';
|
21
|
+
position: absolute;
|
22
|
+
top: 0;
|
23
|
+
left: 0;
|
24
|
+
right: 0;
|
25
|
+
height: 1px;
|
26
|
+
background-color: #2196F3;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
&.drop-after {
|
30
|
+
&::before {
|
31
|
+
content: '';
|
32
|
+
position: absolute;
|
33
|
+
bottom: 0;
|
34
|
+
left: 0;
|
35
|
+
right: 0;
|
36
|
+
height: 1px;
|
37
|
+
background-color: #2196F3;
|
38
|
+
}
|
39
|
+
}
|
15
40
|
}
|
16
41
|
|
17
42
|
&-node {
|
@@ -27,6 +52,25 @@
|
|
27
52
|
margin-left: calc(var(--depth)*var(--indent));
|
28
53
|
|
29
54
|
&.level-line {
|
55
|
+
|
56
|
+
.@{bk-prefix}-node-action {
|
57
|
+
&.empty-child {
|
58
|
+
position: relative;
|
59
|
+
|
60
|
+
&::before {
|
61
|
+
position: absolute;
|
62
|
+
top: calc(50% + 1px);
|
63
|
+
left: 0;
|
64
|
+
right: 0;
|
65
|
+
z-index: 1;
|
66
|
+
height: 0;
|
67
|
+
pointer-events: none;
|
68
|
+
border-bottom: var(--level-line);
|
69
|
+
content: '';
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
30
74
|
&::before {
|
31
75
|
position: absolute;
|
32
76
|
top: calc(50% + 1px);
|
@@ -47,6 +91,7 @@
|
|
47
91
|
}
|
48
92
|
}
|
49
93
|
|
94
|
+
|
50
95
|
.node-virtual-line {
|
51
96
|
position: absolute;
|
52
97
|
top: -12px;
|
@@ -68,6 +113,7 @@
|
|
68
113
|
.@{bk-prefix}-node-action {
|
69
114
|
margin-right: 6px;
|
70
115
|
color: #979ba5;
|
116
|
+
min-width: 14px;
|
71
117
|
}
|
72
118
|
|
73
119
|
.@{bk-prefix}-tree-icon {
|
@@ -80,6 +126,10 @@
|
|
80
126
|
align-items: center;
|
81
127
|
min-width: 0;
|
82
128
|
|
129
|
+
.node-check-box {
|
130
|
+
display: inline-flex;
|
131
|
+
}
|
132
|
+
|
83
133
|
.@{bk-prefix}-checkbox {
|
84
134
|
margin: 0;
|
85
135
|
|
@@ -108,7 +158,12 @@
|
|
108
158
|
}
|
109
159
|
}
|
110
160
|
|
111
|
-
|
112
|
-
|
161
|
+
.insert-line {
|
162
|
+
position: absolute;
|
163
|
+
height: 2px;
|
164
|
+
background: #2196F3;
|
165
|
+
display: none;
|
166
|
+
pointer-events: none;
|
167
|
+
z-index: 999;
|
113
168
|
}
|
114
169
|
}
|
@@ -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,33 @@
|
|
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;
|
393
396
|
}
|
394
397
|
.bk-tree .bk-node-row.is-selected {
|
395
398
|
background-color: #ebf2ff;
|
396
399
|
}
|
400
|
+
.bk-tree .bk-node-row.drop-before::before {
|
401
|
+
content: '';
|
402
|
+
position: absolute;
|
403
|
+
top: 0;
|
404
|
+
left: 0;
|
405
|
+
right: 0;
|
406
|
+
height: 1px;
|
407
|
+
background-color: #2196F3;
|
408
|
+
}
|
409
|
+
.bk-tree .bk-node-row.drop-after::before {
|
410
|
+
content: '';
|
411
|
+
position: absolute;
|
412
|
+
bottom: 0;
|
413
|
+
left: 0;
|
414
|
+
right: 0;
|
415
|
+
height: 1px;
|
416
|
+
background-color: #2196F3;
|
417
|
+
}
|
397
418
|
.bk-tree-node {
|
398
419
|
position: relative;
|
399
420
|
display: flex;
|
@@ -406,6 +427,20 @@
|
|
406
427
|
.bk-tree-node:not(.is-root) {
|
407
428
|
margin-left: calc(var(--depth)*var(--indent));
|
408
429
|
}
|
430
|
+
.bk-tree-node:not(.is-root).level-line .bk-node-action.empty-child {
|
431
|
+
position: relative;
|
432
|
+
}
|
433
|
+
.bk-tree-node:not(.is-root).level-line .bk-node-action.empty-child::before {
|
434
|
+
position: absolute;
|
435
|
+
top: calc(50% + 1px);
|
436
|
+
left: 0;
|
437
|
+
right: 0;
|
438
|
+
z-index: 1;
|
439
|
+
height: 0;
|
440
|
+
pointer-events: none;
|
441
|
+
border-bottom: var(--level-line);
|
442
|
+
content: '';
|
443
|
+
}
|
409
444
|
.bk-tree-node:not(.is-root).level-line::before {
|
410
445
|
position: absolute;
|
411
446
|
top: calc(50% + 1px);
|
@@ -439,6 +474,7 @@
|
|
439
474
|
.bk-tree-node .bk-node-action {
|
440
475
|
margin-right: 6px;
|
441
476
|
color: #979ba5;
|
477
|
+
min-width: 14px;
|
442
478
|
}
|
443
479
|
.bk-tree-node .bk-tree-icon {
|
444
480
|
margin: 0 6px 0 4px;
|
@@ -449,6 +485,9 @@
|
|
449
485
|
align-items: center;
|
450
486
|
min-width: 0;
|
451
487
|
}
|
488
|
+
.bk-tree-node .bk-node-content .node-check-box {
|
489
|
+
display: inline-flex;
|
490
|
+
}
|
452
491
|
.bk-tree-node .bk-node-content .bk-checkbox {
|
453
492
|
margin: 0;
|
454
493
|
}
|
@@ -470,3 +509,11 @@
|
|
470
509
|
.bk-tree-drop-disabled .bk-tree-node {
|
471
510
|
cursor: no-drop;
|
472
511
|
}
|
512
|
+
.bk-tree .insert-line {
|
513
|
+
position: absolute;
|
514
|
+
height: 2px;
|
515
|
+
background: #2196F3;
|
516
|
+
display: none;
|
517
|
+
pointer-events: none;
|
518
|
+
z-index: 999;
|
519
|
+
}
|
@@ -2,12 +2,12 @@ import { TreeNode, TreePropTypes } from './props';
|
|
2
2
|
import { IFlatData } from './util';
|
3
3
|
declare const _default: (props: TreePropTypes, ctx: any, flatData: IFlatData, _renderData: any, initOption: any) => {
|
4
4
|
renderTreeNode: (item: TreeNode, showTree?: boolean) => JSX.Element;
|
5
|
-
handleTreeNodeClick: (item: TreeNode, e: MouseEvent) => void;
|
5
|
+
handleTreeNodeClick: (item: TreeNode, e: MouseEvent, event?: string) => void;
|
6
6
|
deepAutoOpen: () => void;
|
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;
|
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
|
*
|
@@ -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
|
*
|
@@ -1145,7 +1145,7 @@ function virtual_render_objectSpread(e) { for (var r = 1; r < arguments.length;
|
|
1145
1145
|
* Tencent is pleased to support the open source community by making
|
1146
1146
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1147
1147
|
*
|
1148
|
-
* Copyright (C)
|
1148
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
1149
1149
|
*
|
1150
1150
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1151
1151
|
*
|
@@ -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
|
*
|
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.51",
|
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",
|