bkui-vue 2.0.1-beta.60 → 2.0.1-beta.60.fix.1
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/README.md +0 -15
- package/dist/index.cjs.js +59 -59
- package/dist/index.esm.js +18048 -18492
- package/dist/index.umd.js +60 -60
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -262
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.d.ts +7 -0
- package/lib/alert/alert.variable.css +1 -262
- package/lib/alert/index.d.ts +15 -0
- package/lib/alert/index.js +6 -6
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -395
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -262
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -397
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -262
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -396
- package/lib/cascader/cascader.css +23 -153
- package/lib/cascader/cascader.variable.css +24 -415
- package/lib/cascader/index.js +1 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -147
- package/lib/checkbox/checkbox.d.ts +0 -32
- package/lib/checkbox/checkbox.less +0 -12
- package/lib/checkbox/checkbox.variable.css +1 -270
- package/lib/checkbox/index.d.ts +11 -46
- package/lib/checkbox/index.js +4 -9
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -262
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -262
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -262
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -262
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -262
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -392
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.d.ts +9 -0
- package/lib/date-picker/date-picker.variable.css +1 -262
- package/lib/date-picker/index.d.ts +19 -0
- package/lib/date-picker/index.js +17 -29
- package/lib/date-picker/panel/time-range.d.ts +9 -0
- package/lib/date-picker/panel/time.d.ts +10 -1
- package/lib/date-picker/props.d.ts +4 -0
- package/lib/date-picker/time-picker.d.ts +9 -0
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.d.ts +5 -16
- package/lib/dialog/dialog.variable.css +9 -400
- package/lib/dialog/index.d.ts +11 -34
- package/lib/dialog/props.d.ts +2 -7
- package/lib/directives/index.js +6 -12
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -262
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -392
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -262
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
- package/lib/form/form-item.d.ts +18 -6
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -262
- package/lib/form/index.d.ts +13 -6
- package/lib/form/index.js +6 -8
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -262
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -392
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +5 -3
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -262
- package/lib/input/index.js +9 -36
- package/lib/input/input.css +72 -202
- package/lib/input/input.variable.css +73 -464
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -262
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -408
- package/lib/menu/menu.css +18 -148
- package/lib/menu/menu.variable.css +19 -410
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -262
- package/lib/message/message.css +22 -153
- package/lib/message/message.less +2 -3
- package/lib/message/message.variable.css +2 -264
- package/lib/modal/index.d.ts +13 -41
- package/lib/modal/index.js +18 -33
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.d.ts +5 -16
- package/lib/modal/modal.variable.css +5 -396
- package/lib/modal/props.mixin.d.ts +2 -7
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -262
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -262
- package/lib/overflow-title/components/overflow-title.d.ts +7 -0
- package/lib/overflow-title/index.d.ts +15 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/props.d.ts +3 -0
- package/lib/pagination/index.d.ts +19 -0
- package/lib/pagination/index.js +9 -47
- package/lib/pagination/pagination.css +9 -139
- package/lib/pagination/pagination.d.ts +13 -0
- package/lib/pagination/pagination.less +13 -14
- package/lib/pagination/pagination.variable.css +9 -270
- package/lib/pop-confirm/index.d.ts +32 -0
- package/lib/pop-confirm/index.js +18 -16
- package/lib/pop-confirm/pop-confirm.css +1 -133
- package/lib/pop-confirm/pop-confirm.d.ts +14 -0
- package/lib/pop-confirm/pop-confirm.less +1 -3
- package/lib/pop-confirm/pop-confirm.variable.css +2 -265
- package/lib/pop-confirm/props.d.ts +7 -1
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.variable.css +1 -262
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -262
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -396
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +1 -262
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -262
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -262
- package/lib/scrollbar/index.d.ts +13 -133
- package/lib/scrollbar/index.js +18444 -1343
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{styles/themes/themes.css → scrollbar/scrollbar.variable.css} +76 -2
- package/lib/search-select/index.d.ts +72 -40
- package/lib/search-select/index.js +67 -85
- package/lib/search-select/input.d.ts +4 -5
- package/lib/search-select/search-select.css +33 -163
- package/lib/search-select/search-select.d.ts +39 -15
- package/lib/search-select/search-select.variable.css +34 -425
- package/lib/search-select/selected.d.ts +9 -11
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/common.d.ts +2 -2
- package/lib/select/index.d.ts +4 -32
- package/lib/select/index.js +59 -119
- package/lib/select/option.d.ts +5 -4
- package/lib/select/select.css +43 -175
- package/lib/select/select.d.ts +0 -12
- package/lib/select/select.less +4 -7
- package/lib/select/select.variable.css +44 -437
- package/lib/select/type.d.ts +10 -9
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -72
- package/lib/sideslider/index.d.ts +11 -34
- package/lib/sideslider/index.js +0 -1
- package/lib/sideslider/sideslider.css +9 -138
- package/lib/sideslider/sideslider.d.ts +5 -16
- package/lib/sideslider/sideslider.less +8 -7
- package/lib/sideslider/sideslider.variable.css +9 -269
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -262
- package/lib/steps/index.d.ts +18 -3
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.d.ts +11 -1
- package/lib/steps/steps.variable.css +1 -262
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -262
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -262
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -262
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -262
- package/lib/styles/themes/themes.less +129 -299
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -262
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -409
- package/lib/tab/index.d.ts +92 -0
- package/lib/tab/index.js +14 -1
- package/lib/tab/props.d.ts +35 -0
- package/lib/tab/tab-nav.d.ts +45 -2
- package/lib/tab/tab.css +17 -147
- package/lib/tab/tab.d.ts +44 -0
- package/lib/tab/tab.variable.css +1 -262
- package/lib/table/components/table-cell.d.ts +0 -22
- package/lib/table/components/table-column.d.ts +44 -1
- package/lib/table/const.d.ts +2 -15
- package/lib/table/events.d.ts +98 -2
- package/lib/table/index.d.ts +561 -89
- package/lib/table/index.js +3333 -3812
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +0 -131
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +0 -1
- package/lib/table/plugins/head-filter.variable.css +1 -263
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -262
- package/lib/table/plugins/settings.css +0 -131
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +1 -263
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +23 -0
- package/lib/table/{hooks → plugins}/use-shift-key.d.ts +2 -4
- package/lib/table/props.d.ts +30 -92
- package/lib/table/table.css +327 -597
- package/lib/table/table.d.ts +181 -47
- package/lib/table/table.less +101 -228
- package/lib/table/table.variable.css +328 -859
- package/lib/table/use-attributes.d.ts +62 -0
- package/lib/table/use-column.d.ts +155 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +18 -45
- package/lib/table-column/index.d.ts +132 -3
- package/lib/table-column/index.js +28 -17367
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.css +6 -136
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -263
- package/lib/tag-input/index.js +3 -3
- package/lib/tag-input/tag-input.css +18 -148
- package/lib/tag-input/tag-input.d.ts +14 -2
- package/lib/tag-input/tag-input.variable.css +1 -262
- package/lib/time-picker/index.d.ts +19 -0
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -262
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -262
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.variable.css +1 -262
- package/lib/tree/constant.d.ts +1 -3
- package/lib/tree/index.d.ts +7 -21
- package/lib/tree/index.js +18 -61
- package/lib/tree/props.d.ts +5 -12
- package/lib/tree/tree.css +78 -242
- package/lib/tree/tree.d.ts +3 -9
- package/lib/tree/tree.variable.css +79 -504
- package/lib/tree/use-node-action.d.ts +9 -10
- package/lib/tree/use-node-async.d.ts +1 -2
- package/lib/tree/use-node-attribute.d.ts +34 -42
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +5 -8
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +4 -27
- package/lib/upload/index.js +7 -30
- package/lib/upload/props.d.ts +2 -7
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +2 -13
- package/lib/upload/upload.type.d.ts +0 -6
- package/lib/upload/upload.variable.css +28 -419
- package/lib/virtual-render/index.d.ts +46 -12
- package/lib/virtual-render/index.js +148 -17469
- package/lib/virtual-render/props.d.ts +9 -2
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +17 -4
- package/lib/virtual-render/v-virtual-render.d.ts +1 -7
- package/lib/virtual-render/virtual-render.css +69 -225
- package/lib/virtual-render/virtual-render.d.ts +22 -6
- package/lib/virtual-render/virtual-render.less +11 -2
- package/lib/virtual-render/virtual-render.variable.css +70 -487
- package/lib/volar.components.d.ts +0 -2
- package/package.json +1 -1
- package/lib/scrollbar/css/scrollbar.css +0 -239
- package/lib/scrollbar/css/scrollbar.less +0 -139
- package/lib/scrollbar/css/scrollbar.variable.css +0 -499
- package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
- package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
- package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
- package/lib/scrollbar/handlers/touch.d.ts +0 -4
- package/lib/scrollbar/helper/class-names.d.ts +0 -21
- package/lib/scrollbar/helper/css.d.ts +0 -3
- package/lib/scrollbar/helper/dom.d.ts +0 -4
- package/lib/scrollbar/helper/event-manager.d.ts +0 -20
- package/lib/scrollbar/helper/util.d.ts +0 -11
- package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
- package/lib/scrollbar/update-geometry.d.ts +0 -8
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.variable.css +0 -130
- package/lib/table/components/ghost-body.d.ts +0 -2
- package/lib/table/hooks/use-cell.d.ts +0 -20
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-column-template.d.ts +0 -5
- package/lib/table/hooks/use-columns.d.ts +0 -69
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -16
- package/lib/table/hooks/use-layout.d.ts +0 -25
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -21
- package/lib/table/hooks/use-rows.d.ts +0 -30
- package/lib/table/hooks/use-settings.d.ts +0 -134
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
@@ -1,263 +1,3 @@
|
|
1
|
-
:root {
|
2
|
-
--bk-prefix: bk;
|
3
|
-
--popover-max-height: var(--popover-max-height);
|
4
|
-
--primary-color: var(--primary-color);
|
5
|
-
--success-color: var(--success-color);
|
6
|
-
--warning-color: var(--warning-color);
|
7
|
-
--danger-color: var(--danger-color);
|
8
|
-
--default-color: var(--default-color);
|
9
|
-
--gray-color: var(--gray-color);
|
10
|
-
--light-gray: var(--light-gray);
|
11
|
-
--white-color: var(--white-color);
|
12
|
-
--whitesmoke-color: var(--whitesmoke-color);
|
13
|
-
--disable-color: var(--disable-color);
|
14
|
-
--disable-bg-color: var(--disable-bg-color);
|
15
|
-
--border-color: var(--border-color);
|
16
|
-
--font-size-base: var(--font-size-base);
|
17
|
-
--font-size-medium: var(--font-size-medium);
|
18
|
-
--font-size-large: var(--font-size-large);
|
19
|
-
--line-height-base: var(--line-height-base);
|
20
|
-
--line-height-medium: var(--line-height-medium);
|
21
|
-
--line-height-large: var(--line-height-large);
|
22
|
-
--component-size-small: var(--component-size-small);
|
23
|
-
--component-size-base: var(--component-size-base);
|
24
|
-
--component-size-large: var(--component-size-large);
|
25
|
-
--component-size-small-padding: var(--component-size-small-padding);
|
26
|
-
--component-size-base-padding: var(--component-size-base-padding);
|
27
|
-
--component-size-large-padding: var(--component-size-large-padding);
|
28
|
-
--border-width-base: var(--border-width-base);
|
29
|
-
--border-style-base: var(--border-style-base);
|
30
|
-
--border-radius-base: var(--border-radius-base);
|
31
|
-
--border-style-color: var(--border-style-color);
|
32
|
-
--input-disabled-bg: var(--input-disabled-bg);
|
33
|
-
--input-disabled-border: var(--input-disabled-border);
|
34
|
-
--input-height-base: var(--input-height-base);
|
35
|
-
--input-color: var(--input-color);
|
36
|
-
--input-bg: var(--input-bg);
|
37
|
-
--input-border-color: var(--input-border-color);
|
38
|
-
--input-broder-radius: var(--input-broder-radius);
|
39
|
-
--input-shadow-color: var(--input-shadow-color);
|
40
|
-
--input-horizontal-padding: var(--input-horizontal-padding);
|
41
|
-
--input-block-color: var(--input-block-color);
|
42
|
-
--input-block-hover-color: var(--input-block-hover-color);
|
43
|
-
--input-icon-size: var(--input-icon-size);
|
44
|
-
--input-maxlength-color: var(--input-maxlength-color);
|
45
|
-
--button-primary-hover-color: var(--button-primary-hover-color);
|
46
|
-
--button-danger-hover-color: var(--button-danger-hover-color);
|
47
|
-
--button-success-hover-color: var(--button-success-hover-color);
|
48
|
-
--button-warning-hover-color: var(--button-warning-hover-color);
|
49
|
-
--button-default-hover-border-color: var(--button-default-hover-border-color);
|
50
|
-
--button-primary-active-color: var(--button-primary-active-color);
|
51
|
-
--button-danger-active-color: var(--button-danger-active-color);
|
52
|
-
--button-success-active-color: var(--button-success-active-color);
|
53
|
-
--button-warning-active-color: var(--button-warning-active-color);
|
54
|
-
--button-selected-bg-color: var(--button-selected-bg-color);
|
55
|
-
--button-disabled-selected-bg-color: var(--button-disabled-selected-bg-color);
|
56
|
-
--radio-font-color: var(--radio-font-color);
|
57
|
-
--radio-active-color: var(--radio-active-color);
|
58
|
-
--radio-hover-border-color: var(--radio-hover-border-color);
|
59
|
-
--radio-disabled-border: var(--radio-disabled-border);
|
60
|
-
--radio-disabled-font-color: var(--radio-disabled-font-color);
|
61
|
-
--radio-disabled-checked-bg: var(--radio-disabled-checked-bg);
|
62
|
-
--radio-button-checked-bg: var(--radio-button-checked-bg);
|
63
|
-
--radio-button-disabled-checked-bg: var(--radio-button-disabled-checked-bg);
|
64
|
-
--checkbox-disabled-checked-bg: var(--checkbox-disabled-checked-bg);
|
65
|
-
--fixed-navbar-background: var(--fixed-navbar-background);
|
66
|
-
--fixed-navbar-boxshadow-color: var(--fixed-navbar-boxshadow-color);
|
67
|
-
--switch-default-color: var(--switch-default-color);
|
68
|
-
--switch-grey-color: var(--switch-grey-color);
|
69
|
-
--breadcrumb-black-color: var(--breadcrumb-black-color);
|
70
|
-
--breadcrumb-primary-hover-color: var(--breadcrumb-primary-hover-color);
|
71
|
-
--breadcrumb-fn-main-color: var(--breadcrumb-fn-main-color);
|
72
|
-
--link-default-hover-color: var(--link-default-hover-color);
|
73
|
-
--link-primary-hover-color: var(--link-primary-hover-color);
|
74
|
-
--link-success-hover-color: var(--link-success-hover-color);
|
75
|
-
--link-warning-hover-color: var(--link-warning-hover-color);
|
76
|
-
--link-danger-hover-color: var(--link-danger-hover-color);
|
77
|
-
--link-default-disabled-color: var(--link-default-disabled-color);
|
78
|
-
--link-primary-disabled-color: var(--link-primary-disabled-color);
|
79
|
-
--link-success-disabled-color: var(--link-success-disabled-color);
|
80
|
-
--link-warning-disabled-color: var(--link-warning-disabled-color);
|
81
|
-
--link-danger-disabled-color: var(--link-danger-disabled-color);
|
82
|
-
--message-color: var(--message-color);
|
83
|
-
--message-primary-bg-color: var(--message-primary-bg-color);
|
84
|
-
--message-primary-border-color: var(--message-primary-border-color);
|
85
|
-
--message-primary-shadow-color: var(--message-primary-shadow-color);
|
86
|
-
--message-warning-bg-color: var(--message-warning-bg-color);
|
87
|
-
--message-warning-border-color: var(--message-warning-border-color);
|
88
|
-
--message-warning-shadow-color: var(--message-warning-shadow-color);
|
89
|
-
--message-success-bg-color: var(--message-success-bg-color);
|
90
|
-
--message-success-border-color: var(--message-success-border-color);
|
91
|
-
--message-success-shadow-color: var(--message-success-shadow-color);
|
92
|
-
--message-danger-bg-color: var(--message-danger-bg-color);
|
93
|
-
--message-danger-border-color: var(--message-danger-border-color);
|
94
|
-
--message-danger-shadow-color: var(--message-danger-shadow-color);
|
95
|
-
--slider-default-bg: var(--slider-default-bg);
|
96
|
-
--slider-disable-bar-bg: var(--slider-disable-bar-bg);
|
97
|
-
--menu-bg-color: var(--menu-bg-color);
|
98
|
-
--submenu-bg-color: var(--submenu-bg-color);
|
99
|
-
--menu-active-bg-color: var(--menu-active-bg-color);
|
100
|
-
--menu-color: var(--menu-color);
|
101
|
-
--menu-group-color: var(--menu-group-color);
|
102
|
-
--menu-width: var(--menu-width);
|
103
|
-
--menu-collapse-width: var(--menu-collapse-width);
|
104
|
-
--menu-active-color: var(--menu-active-color);
|
105
|
-
--nav-header-bg-color: var(--nav-header-bg-color);
|
106
|
-
--nav-bg-color: var(--nav-bg-color);
|
107
|
-
--date-picker-disabled-bg: var(--date-picker-disabled-bg);
|
108
|
-
--date-picker-dropdown-mb: var(--date-picker-dropdown-mb);
|
109
|
-
--date-picker-dropdown-bg: var(--date-picker-dropdown-bg);
|
110
|
-
--table-bg-color: var(--table-bg-color);
|
111
|
-
--table-border-color: var(--table-border-color);
|
112
|
-
--table-strip-color: var(--table-strip-color);
|
113
|
-
--table-head-bg-color: var(--table-head-bg-color);
|
114
|
-
--table-head-font-color: var(--table-head-font-color);
|
115
|
-
--table-body-font-color: var(--table-body-font-color);
|
116
|
-
--table-row-hover-bg-color: var(--table-row-hover-bg-color);
|
117
|
-
--table-row-active-bg-color: var(--table-row-active-bg-color);
|
118
|
-
--cascader-panel-border-color: var(--cascader-panel-border-color);
|
119
|
-
--cascader-panel-hover: var(--cascader-panel-hover);
|
120
|
-
--cascader-panel-active: var(--cascader-panel-active);
|
121
|
-
--cascader-panel-disabled-bg: var(--cascader-panel-disabled-bg);
|
122
|
-
--search-select-focus-border-color: var(--search-select-focus-border-color);
|
123
|
-
--search-select-focus-color: var(--search-select-focus-color);
|
124
|
-
--search-select-font-color: var(--search-select-font-color);
|
125
|
-
--search-select-placeholder-color: var(--search-select-placeholder-color);
|
126
|
-
--search-select-message-color: var(--search-select-message-color);
|
127
|
-
--search-select-menu-border-color: var(--search-select-menu-border-color);
|
128
|
-
--select-active-color: var(--select-active-color);
|
129
|
-
--select-hover-color: var(--select-hover-color);
|
130
|
-
}
|
131
|
-
:root :root {
|
132
|
-
--bk-prefix: bk;
|
133
|
-
--popover-max-height: 216px;
|
134
|
-
--primary-color: #3a84ff;
|
135
|
-
--success-color: #2dcb56;
|
136
|
-
--warning-color: #ff9c01;
|
137
|
-
--danger-color: #ea3636;
|
138
|
-
--default-color: #63656e;
|
139
|
-
--gray-color: #979ba5;
|
140
|
-
--light-gray: #c4c6cc;
|
141
|
-
--white-color: white;
|
142
|
-
--whitesmoke-color: #fafbfd;
|
143
|
-
--disable-color: #dcdee5;
|
144
|
-
--disable-bg-color: #f9fafd;
|
145
|
-
--border-color: #dcdee5;
|
146
|
-
--font-size-base: 12px;
|
147
|
-
--font-size-medium: 14px;
|
148
|
-
--font-size-large: 16px;
|
149
|
-
--line-height-base: 16px;
|
150
|
-
--line-height-medium: 16px;
|
151
|
-
--line-height-large: 18px;
|
152
|
-
--component-size-small: 26px;
|
153
|
-
--component-size-base: 32px;
|
154
|
-
--component-size-large: 40px;
|
155
|
-
--component-size-small-padding: 0 12px;
|
156
|
-
--component-size-base-padding: 0 14px;
|
157
|
-
--component-size-large-padding: 0 16px;
|
158
|
-
--border-width-base: 1px;
|
159
|
-
--border-style-base: solid;
|
160
|
-
--border-radius-base: 2px;
|
161
|
-
--border-style-color: var(--light-gray);
|
162
|
-
--input-disabled-bg: #fafbfd;
|
163
|
-
--input-disabled-border: var(--disable-color);
|
164
|
-
--input-height-base: var(--component-size-base);
|
165
|
-
--input-color: var(--default-color);
|
166
|
-
--input-bg: white;
|
167
|
-
--input-border-color: var(--light-gray);
|
168
|
-
--input-broder-radius: 3px;
|
169
|
-
--input-shadow-color: #a3c5fd;
|
170
|
-
--input-horizontal-padding: 8px;
|
171
|
-
--input-block-color: #f5f7fa;
|
172
|
-
--input-block-hover-color: #eaebf0;
|
173
|
-
--input-icon-size: var(--font-size-medium);
|
174
|
-
--input-maxlength-color: #979ba5;
|
175
|
-
--button-primary-hover-color: #5594fa;
|
176
|
-
--button-danger-hover-color: #ff5656;
|
177
|
-
--button-success-hover-color: #45e35f;
|
178
|
-
--button-warning-hover-color: #ffb848;
|
179
|
-
--button-default-hover-border-color: #979ba5;
|
180
|
-
--button-primary-active-color: #2c77f4;
|
181
|
-
--button-danger-active-color: #db2626;
|
182
|
-
--button-success-active-color: #1ab943;
|
183
|
-
--button-warning-active-color: #eb9000;
|
184
|
-
--button-selected-bg-color: #e1ecff;
|
185
|
-
--button-disabled-selected-bg-color: #f0f1f5;
|
186
|
-
--radio-font-color: #63656e;
|
187
|
-
--radio-active-color: #3a84ff;
|
188
|
-
--radio-hover-border-color: #979ba5;
|
189
|
-
--radio-disabled-border: #dcdee5;
|
190
|
-
--radio-disabled-font-color: #c4c6cc;
|
191
|
-
--radio-disabled-checked-bg: #a3c5fd;
|
192
|
-
--radio-button-checked-bg: #e1ecff;
|
193
|
-
--radio-button-disabled-checked-bg: #fafbfd;
|
194
|
-
--checkbox-disabled-checked-bg: #a3c5fd;
|
195
|
-
--fixed-navbar-background: #fff;
|
196
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
197
|
-
--switch-default-color: #fff;
|
198
|
-
--switch-grey-color: #c4c6cc;
|
199
|
-
--breadcrumb-black-color: #979ba5;
|
200
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
201
|
-
--breadcrumb-fn-main-color: #63656e;
|
202
|
-
--link-default-hover-color: #979ba5;
|
203
|
-
--link-primary-hover-color: #699df4;
|
204
|
-
--link-success-hover-color: #45e35f;
|
205
|
-
--link-warning-hover-color: #ffb848;
|
206
|
-
--link-danger-hover-color: #ff5656;
|
207
|
-
--link-default-disabled-color: #dcdee5;
|
208
|
-
--link-primary-disabled-color: #a3c5fd;
|
209
|
-
--link-success-disabled-color: #94f5a4;
|
210
|
-
--link-warning-disabled-color: #ffd695;
|
211
|
-
--link-danger-disabled-color: #fd9c9c;
|
212
|
-
--message-color: var(--default-color);
|
213
|
-
--message-primary-bg-color: #f0f8ff;
|
214
|
-
--message-primary-border-color: #e1ecff;
|
215
|
-
--message-primary-shadow-color: #e1e8f4;
|
216
|
-
--message-warning-bg-color: #fff4e2;
|
217
|
-
--message-warning-border-color: #ffe8c3;
|
218
|
-
--message-warning-shadow-color: #ede6db;
|
219
|
-
--message-success-bg-color: #f2fff4;
|
220
|
-
--message-success-border-color: #dcffe2;
|
221
|
-
--message-success-shadow-color: #cef0d7;
|
222
|
-
--message-danger-bg-color: #ffeded;
|
223
|
-
--message-danger-border-color: #ffdddd;
|
224
|
-
--message-danger-shadow-color: #f6dada;
|
225
|
-
--slider-default-bg: #dcdee5;
|
226
|
-
--slider-disable-bar-bg: #979ba5;
|
227
|
-
--menu-bg-color: #182132;
|
228
|
-
--submenu-bg-color: #151d2c;
|
229
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
230
|
-
--menu-color: #96a2b9;
|
231
|
-
--menu-group-color: var(--default-color);
|
232
|
-
--menu-width: 260px;
|
233
|
-
--menu-collapse-width: 60px;
|
234
|
-
--menu-active-color: white;
|
235
|
-
--nav-header-bg-color: #182132;
|
236
|
-
--nav-bg-color: #182132;
|
237
|
-
--date-picker-disabled-bg: #fafbfd;
|
238
|
-
--date-picker-dropdown-mb: 4px;
|
239
|
-
--date-picker-dropdown-bg: #fff;
|
240
|
-
--table-bg-color: var(--white-color);
|
241
|
-
--table-border-color: #dcdee5;
|
242
|
-
--table-strip-color: #fafbfd;
|
243
|
-
--table-head-bg-color: #fafbfd;
|
244
|
-
--table-head-font-color: #313238;
|
245
|
-
--table-body-font-color: #63656e;
|
246
|
-
--table-row-hover-bg-color: #f5f7fa;
|
247
|
-
--table-row-active-bg-color: #f0f1f5;
|
248
|
-
--cascader-panel-border-color: #dcdee5;
|
249
|
-
--cascader-panel-hover: #f5f7fa;
|
250
|
-
--cascader-panel-active: #e1ecff;
|
251
|
-
--cascader-panel-disabled-bg: #fff;
|
252
|
-
--search-select-focus-border-color: var(--primary-color);
|
253
|
-
--search-select-focus-color: #3c96ff;
|
254
|
-
--search-select-font-color: var(--default-color);
|
255
|
-
--search-select-placeholder-color: var(--light-gray);
|
256
|
-
--search-select-message-color: var(--danger-color);
|
257
|
-
--search-select-menu-border-color: var(--disable-color);
|
258
|
-
--select-active-color: #e1ecff;
|
259
|
-
--select-hover-color: #f5f7fa;
|
260
|
-
}
|
261
1
|
:root {
|
262
2
|
--bk-prefix: bk;
|
263
3
|
--popover-max-height: 216px;
|
@@ -369,10 +109,9 @@
|
|
369
109
|
--date-picker-dropdown-bg: #fff;
|
370
110
|
--table-bg-color: var(--white-color);
|
371
111
|
--table-border-color: #dcdee5;
|
372
|
-
--table-strip-color: #fafbfd;
|
373
112
|
--table-head-bg-color: #fafbfd;
|
374
113
|
--table-head-font-color: #313238;
|
375
|
-
--table-body-font-color: #
|
114
|
+
--table-body-font-color: #63656E;
|
376
115
|
--table-row-hover-bg-color: #f5f7fa;
|
377
116
|
--table-row-active-bg-color: #f0f1f5;
|
378
117
|
--cascader-panel-border-color: #dcdee5;
|
package/lib/tree/constant.d.ts
CHANGED
@@ -7,8 +7,7 @@ export declare enum EVENTS {
|
|
7
7
|
NODE_DRAG_START = "nodeDragStart",
|
8
8
|
NODE_DROP = "nodeDrop",
|
9
9
|
NODE_ENTER_VIEW = "nodeEnterView",
|
10
|
-
NODE_EXPAND = "nodeExpand"
|
11
|
-
NODE_SELECTED = "nodeSelected"
|
10
|
+
NODE_EXPAND = "nodeExpand"
|
12
11
|
}
|
13
12
|
export declare const TreeEmitEventsType: {
|
14
13
|
nodeClick: (..._args: any[]) => boolean;
|
@@ -20,7 +19,6 @@ export declare const TreeEmitEventsType: {
|
|
20
19
|
nodeDragLeave: (..._args: any[]) => boolean;
|
21
20
|
nodeDrop: (..._args: any[]) => boolean;
|
22
21
|
nodeEnterView: (..._args: any[]) => boolean;
|
23
|
-
nodeSelected: (..._args: any[]) => boolean;
|
24
22
|
};
|
25
23
|
/**
|
26
24
|
* 节点扩展属性
|
package/lib/tree/index.d.ts
CHANGED
@@ -39,9 +39,7 @@ declare const BkTree: {
|
|
39
39
|
default: any;
|
40
40
|
};
|
41
41
|
async: import("vue-types").VueTypeShape<{
|
42
|
-
callback: (item: any, cb: any) => Promise<
|
43
|
-
[key: string]: any;
|
44
|
-
}>>;
|
42
|
+
callback: (item: any, cb: any) => Promise<any>;
|
45
43
|
cache: boolean;
|
46
44
|
deepAutoOpen?: string;
|
47
45
|
}>;
|
@@ -135,7 +133,6 @@ declare const BkTree: {
|
|
135
133
|
onNodeDrop?: (...args: any[]) => any;
|
136
134
|
onNodeEnterView?: (...args: any[]) => any;
|
137
135
|
onNodeExpand?: (...args: any[]) => any;
|
138
|
-
onNodeSelected?: (...args: any[]) => any;
|
139
136
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
140
137
|
nodeClick: (..._args: any[]) => boolean;
|
141
138
|
nodeCollapse: (..._args: any[]) => boolean;
|
@@ -146,7 +143,6 @@ declare const BkTree: {
|
|
146
143
|
nodeDragLeave: (..._args: any[]) => boolean;
|
147
144
|
nodeDrop: (..._args: any[]) => boolean;
|
148
145
|
nodeEnterView: (..._args: any[]) => boolean;
|
149
|
-
nodeSelected: (..._args: any[]) => boolean;
|
150
146
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
151
147
|
data: import("vue-types").VueTypeDef<any[]> & {
|
152
148
|
default: () => any[];
|
@@ -187,9 +183,7 @@ declare const BkTree: {
|
|
187
183
|
default: any;
|
188
184
|
};
|
189
185
|
async: import("vue-types").VueTypeShape<{
|
190
|
-
callback: (item: any, cb: any) => Promise<
|
191
|
-
[key: string]: any;
|
192
|
-
}>>;
|
186
|
+
callback: (item: any, cb: any) => Promise<any>;
|
193
187
|
cache: boolean;
|
194
188
|
deepAutoOpen?: string;
|
195
189
|
}>;
|
@@ -283,7 +277,6 @@ declare const BkTree: {
|
|
283
277
|
onNodeDrop?: (...args: any[]) => any;
|
284
278
|
onNodeEnterView?: (...args: any[]) => any;
|
285
279
|
onNodeExpand?: (...args: any[]) => any;
|
286
|
-
onNodeSelected?: (...args: any[]) => any;
|
287
280
|
}, {
|
288
281
|
data: any[];
|
289
282
|
height: number;
|
@@ -295,7 +288,6 @@ declare const BkTree: {
|
|
295
288
|
children: string;
|
296
289
|
lineHeight: number;
|
297
290
|
offsetLeft: number;
|
298
|
-
intersectionObserver: boolean | import("./props").IIntersectionObserver;
|
299
291
|
nodeKey: string;
|
300
292
|
indent: number;
|
301
293
|
levelLine: any;
|
@@ -313,6 +305,7 @@ declare const BkTree: {
|
|
313
305
|
nodeContentAction: any;
|
314
306
|
keepSlotData: boolean;
|
315
307
|
checkStrictly: boolean;
|
308
|
+
intersectionObserver: boolean | import("./props").IIntersectionObserver;
|
316
309
|
}, true, {}, {}, {
|
317
310
|
P: {};
|
318
311
|
B: {};
|
@@ -360,9 +353,7 @@ declare const BkTree: {
|
|
360
353
|
default: any;
|
361
354
|
};
|
362
355
|
async: import("vue-types").VueTypeShape<{
|
363
|
-
callback: (item: any, cb: any) => Promise<
|
364
|
-
[key: string]: any;
|
365
|
-
}>>;
|
356
|
+
callback: (item: any, cb: any) => Promise<any>;
|
366
357
|
cache: boolean;
|
367
358
|
deepAutoOpen?: string;
|
368
359
|
}>;
|
@@ -456,7 +447,6 @@ declare const BkTree: {
|
|
456
447
|
onNodeDrop?: (...args: any[]) => any;
|
457
448
|
onNodeEnterView?: (...args: any[]) => any;
|
458
449
|
onNodeExpand?: (...args: any[]) => any;
|
459
|
-
onNodeSelected?: (...args: any[]) => any;
|
460
450
|
}, () => JSX.Element, {}, {}, {}, {
|
461
451
|
data: any[];
|
462
452
|
height: number;
|
@@ -468,7 +458,6 @@ declare const BkTree: {
|
|
468
458
|
children: string;
|
469
459
|
lineHeight: number;
|
470
460
|
offsetLeft: number;
|
471
|
-
intersectionObserver: boolean | import("./props").IIntersectionObserver;
|
472
461
|
nodeKey: string;
|
473
462
|
indent: number;
|
474
463
|
levelLine: any;
|
@@ -486,6 +475,7 @@ declare const BkTree: {
|
|
486
475
|
nodeContentAction: any;
|
487
476
|
keepSlotData: boolean;
|
488
477
|
checkStrictly: boolean;
|
478
|
+
intersectionObserver: boolean | import("./props").IIntersectionObserver;
|
489
479
|
}>;
|
490
480
|
__isFragment?: never;
|
491
481
|
__isTeleport?: never;
|
@@ -530,9 +520,7 @@ declare const BkTree: {
|
|
530
520
|
default: any;
|
531
521
|
};
|
532
522
|
async: import("vue-types").VueTypeShape<{
|
533
|
-
callback: (item: any, cb: any) => Promise<
|
534
|
-
[key: string]: any;
|
535
|
-
}>>;
|
523
|
+
callback: (item: any, cb: any) => Promise<any>;
|
536
524
|
cache: boolean;
|
537
525
|
deepAutoOpen?: string;
|
538
526
|
}>;
|
@@ -626,7 +614,6 @@ declare const BkTree: {
|
|
626
614
|
onNodeDrop?: (...args: any[]) => any;
|
627
615
|
onNodeEnterView?: (...args: any[]) => any;
|
628
616
|
onNodeExpand?: (...args: any[]) => any;
|
629
|
-
onNodeSelected?: (...args: any[]) => any;
|
630
617
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
631
618
|
nodeClick: (..._args: any[]) => boolean;
|
632
619
|
nodeCollapse: (..._args: any[]) => boolean;
|
@@ -637,7 +624,6 @@ declare const BkTree: {
|
|
637
624
|
nodeDragLeave: (..._args: any[]) => boolean;
|
638
625
|
nodeDrop: (..._args: any[]) => boolean;
|
639
626
|
nodeEnterView: (..._args: any[]) => boolean;
|
640
|
-
nodeSelected: (..._args: any[]) => boolean;
|
641
627
|
}, string, {
|
642
628
|
data: any[];
|
643
629
|
height: number;
|
@@ -649,7 +635,6 @@ declare const BkTree: {
|
|
649
635
|
children: string;
|
650
636
|
lineHeight: number;
|
651
637
|
offsetLeft: number;
|
652
|
-
intersectionObserver: boolean | import("./props").IIntersectionObserver;
|
653
638
|
nodeKey: string;
|
654
639
|
indent: number;
|
655
640
|
levelLine: any;
|
@@ -667,5 +652,6 @@ declare const BkTree: {
|
|
667
652
|
nodeContentAction: any;
|
668
653
|
keepSlotData: boolean;
|
669
654
|
checkStrictly: boolean;
|
655
|
+
intersectionObserver: boolean | import("./props").IIntersectionObserver;
|
670
656
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
671
657
|
export default BkTree;
|
package/lib/tree/index.js
CHANGED
@@ -17367,7 +17367,7 @@ function _slicedToArray(arr, i) {
|
|
17367
17367
|
;// CONCATENATED MODULE: external "vue"
|
17368
17368
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17369
17369
|
var external_vue_y = x => () => x
|
17370
|
-
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["
|
17370
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["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, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
|
17371
17371
|
;// CONCATENATED MODULE: external "../config-provider"
|
17372
17372
|
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
17373
17373
|
var config_provider_y = x => () => x
|
@@ -17463,12 +17463,11 @@ var EVENTS;
|
|
17463
17463
|
EVENTS["NODE_DROP"] = "nodeDrop";
|
17464
17464
|
EVENTS["NODE_ENTER_VIEW"] = "nodeEnterView";
|
17465
17465
|
EVENTS["NODE_EXPAND"] = "nodeExpand";
|
17466
|
-
EVENTS["NODE_SELECTED"] = "nodeSelected";
|
17467
17466
|
})(EVENTS || (EVENTS = {}));
|
17468
17467
|
var EMPTY = function EMPTY() {
|
17469
17468
|
return true;
|
17470
17469
|
};
|
17471
|
-
var TreeEmitEventsType = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(
|
17470
|
+
var TreeEmitEventsType = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, EVENTS.NODE_CLICK, EMPTY), EVENTS.NODE_COLLAPSE, EMPTY), EVENTS.NODE_EXPAND, EMPTY), EVENTS.NODE_CHECKED, EMPTY), EVENTS.NODE_DRAG_START, EMPTY), EVENTS.NODE_DRAG_OVER, EMPTY), EVENTS.NODE_DRAG_LEAVE, EMPTY), EVENTS.NODE_DROP, EMPTY), EVENTS.NODE_ENTER_VIEW, EMPTY);
|
17472
17471
|
/**
|
17473
17472
|
* 节点扩展属性
|
17474
17473
|
*/
|
@@ -17648,9 +17647,6 @@ var treeProps = {
|
|
17648
17647
|
* 是否支持多选
|
17649
17648
|
*/
|
17650
17649
|
showCheckbox: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.bool, shared_namespaceObject.PropTypes.func]).def(false),
|
17651
|
-
/**
|
17652
|
-
* 默认选中的节点id,selectable为false时无效
|
17653
|
-
*/
|
17654
17650
|
checked: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.any).def([]),
|
17655
17651
|
/**
|
17656
17652
|
* 是否显示节点类型Icon
|
@@ -18319,14 +18315,10 @@ var getNodeItemStyle = function getNodeItemStyle(item, props, flatData) {
|
|
18319
18315
|
var schema = flatData.schema;
|
18320
18316
|
var depth = (_schema$get = schema.get(item)) === null || _schema$get === void 0 ? void 0 : _schema$get[NODE_ATTRIBUTES.DEPTH];
|
18321
18317
|
if (showTree) {
|
18322
|
-
var args = ['node'];
|
18323
|
-
var levelLine = function levelLine() {
|
18324
|
-
return getPropsOneOfBoolValueWithDefault(props, 'levelLine', item, DEFAULT_LEVLE_LINE, null, args);
|
18325
|
-
};
|
18326
18318
|
return _objectSpread({
|
18327
18319
|
'--depth': depth
|
18328
18320
|
}, typeof props.levelLine === 'function' ? {
|
18329
|
-
'--level-line': levelLine
|
18321
|
+
'--level-line': getPropsOneOfBoolValueWithDefault(props, 'levelLine', item, DEFAULT_LEVLE_LINE, null, ['node'])
|
18330
18322
|
} : {});
|
18331
18323
|
}
|
18332
18324
|
return {};
|
@@ -18395,7 +18387,6 @@ var assignTreeNode = function assignTreeNode(path, treeData, childKey, assignVal
|
|
18395
18387
|
};
|
18396
18388
|
var resolveNodeItem = function resolveNodeItem(node) {
|
18397
18389
|
if (node === undefined || node === null) {
|
18398
|
-
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
18399
18390
|
return {
|
18400
18391
|
__IS_NULL: true
|
18401
18392
|
};
|
@@ -18615,7 +18606,7 @@ var use_node_action_this = undefined;
|
|
18615
18606
|
return val;
|
18616
18607
|
}
|
18617
18608
|
if (_typeof(val) === 'object' && val !== null) {
|
18618
|
-
if (
|
18609
|
+
if (val.__v_isVNode) {
|
18619
18610
|
return val;
|
18620
18611
|
}
|
18621
18612
|
var node = val.node,
|
@@ -18698,7 +18689,7 @@ var use_node_action_this = undefined;
|
|
18698
18689
|
});
|
18699
18690
|
setNodeAttr(parent, NODE_ATTRIBUTES.IS_CHECKED, isNeedChecked);
|
18700
18691
|
setNodeAttr(parent, NODE_ATTRIBUTES.IS_INDETERMINATE, (getChildNodes(parent) || []).some(function (node) {
|
18701
|
-
return !isNodeChecked(node)
|
18692
|
+
return !isNodeChecked(node);
|
18702
18693
|
}));
|
18703
18694
|
if (!isRootNode(parent)) {
|
18704
18695
|
updateParentChecked(parent, isChecked);
|
@@ -18718,17 +18709,17 @@ var use_node_action_this = undefined;
|
|
18718
18709
|
});
|
18719
18710
|
};
|
18720
18711
|
var handleNodeItemCheckboxChange = function handleNodeItemCheckboxChange(item, value, event) {
|
18721
|
-
event
|
18722
|
-
event
|
18723
|
-
event
|
18712
|
+
event.preventDefault();
|
18713
|
+
event.stopImmediatePropagation();
|
18714
|
+
event.stopPropagation();
|
18724
18715
|
setNodeAttr(item, NODE_ATTRIBUTES.IS_CHECKED, !!value);
|
18725
18716
|
if (value) {
|
18726
18717
|
setNodeAttr(item, NODE_ATTRIBUTES.IS_INDETERMINATE, false);
|
18727
18718
|
}
|
18728
18719
|
if (props.checkStrictly) {
|
18729
18720
|
deepUpdateChildNode(item, [NODE_ATTRIBUTES.IS_CHECKED, NODE_ATTRIBUTES.IS_INDETERMINATE], [!!value, false]);
|
18730
|
-
updateParentChecked(item, value);
|
18731
18721
|
}
|
18722
|
+
updateParentChecked(item, value);
|
18732
18723
|
ctx.emit(EVENTS.NODE_CHECKED, flatData.data.filter(function (t) {
|
18733
18724
|
return isNodeChecked(t);
|
18734
18725
|
}), flatData.data.filter(function (t) {
|
@@ -18874,18 +18865,9 @@ var use_node_action_this = undefined;
|
|
18874
18865
|
e.preventDefault();
|
18875
18866
|
handleTreeNodeClick(node, e);
|
18876
18867
|
};
|
18877
|
-
/**
|
18878
|
-
* 设置节点选中状态
|
18879
|
-
* @param nodes 选中节点,可以是多个
|
18880
|
-
* @param selected 是否选中 default:true
|
18881
|
-
* @param autoOpen 是否自动展开所有父级节点 default:true
|
18882
|
-
* @param triggerEvent 是否触发抛出事件 false
|
18883
|
-
* @returns
|
18884
|
-
*/
|
18885
18868
|
var setSelect = function setSelect(nodes) {
|
18886
18869
|
var selected = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
18887
18870
|
var autoOpen = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
18888
|
-
var triggerEvent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
18889
18871
|
var nodeList = Array.isArray(nodes) ? nodes : [nodes];
|
18890
18872
|
if (!nodeList.length) {
|
18891
18873
|
return;
|
@@ -18912,12 +18894,6 @@ var use_node_action_this = undefined;
|
|
18912
18894
|
}
|
18913
18895
|
setNodeAttr(resolvedItem, NODE_ATTRIBUTES.IS_SELECTED, selected);
|
18914
18896
|
selectedNodeId = getNodeId(resolvedItem);
|
18915
|
-
if (triggerEvent) {
|
18916
|
-
ctx.emit(EVENTS.NODE_SELECTED, {
|
18917
|
-
selected: selected,
|
18918
|
-
node: resolvedItem
|
18919
|
-
});
|
18920
|
-
}
|
18921
18897
|
/**
|
18922
18898
|
* 如果设置了自动展开
|
18923
18899
|
* 判定长度是为了处理异步节点,如果当前设置selected的节点为多级异步节点
|
@@ -18959,7 +18935,7 @@ var use_node_action_this = undefined;
|
|
18959
18935
|
var handleNodeContentClick = function handleNodeContentClick(item, e) {
|
18960
18936
|
var nodeActions = resolveNodeAction(item);
|
18961
18937
|
if (nodeActions.includes('selected')) {
|
18962
|
-
setSelect(item, true,
|
18938
|
+
setSelect(item, true, false);
|
18963
18939
|
}
|
18964
18940
|
if (nodeActions.includes('expand')) {
|
18965
18941
|
if (!isNodeOpened(item)) {
|
@@ -19092,8 +19068,7 @@ var use_node_action_this = undefined;
|
|
19092
19068
|
setNodeOpened: setNodeOpened,
|
19093
19069
|
setSelect: setSelect,
|
19094
19070
|
setOpen: setOpen,
|
19095
|
-
setNodeAttribute: setNodeAttribute
|
19096
|
-
isIndeterminate: isIndeterminate
|
19071
|
+
setNodeAttribute: setNodeAttribute
|
19097
19072
|
};
|
19098
19073
|
});
|
19099
19074
|
;// CONCATENATED MODULE: ../../packages/tree/src/use-node-drag.tsx
|
@@ -19791,7 +19766,7 @@ var use_tree_init_this = undefined;
|
|
19791
19766
|
return [props.data];
|
19792
19767
|
}, function (newData) {
|
19793
19768
|
var _props$async, _props$async2;
|
19794
|
-
var formatData = getFlatdata(newData
|
19769
|
+
var formatData = getFlatdata(newData, flatData.schema);
|
19795
19770
|
flatData.data = formatData[0];
|
19796
19771
|
flatData.schema = formatData[1];
|
19797
19772
|
if ((_props$async = props.async) !== null && _props$async !== void 0 && _props$async.callback && ((_props$async2 = props.async) === null || _props$async2 === void 0 ? void 0 : _props$async2.deepAutoOpen) === 'every') {
|
@@ -19920,11 +19895,9 @@ var use_tree_init_this = undefined;
|
|
19920
19895
|
var filterFn = function filterFn(item) {
|
19921
19896
|
if (isSearchActive.value) {
|
19922
19897
|
if (showChildNodes) {
|
19923
|
-
var _getNodePath;
|
19924
|
-
var itemPath = (_getNodePath = getNodePath(item)) !== null && _getNodePath !== void 0 ? _getNodePath : '';
|
19925
|
-
var asParentPath = "".concat(itemPath, "-");
|
19926
19898
|
return checkNodeIsOpen(item) && (isNodeMatched(item) || matchedNodePath.some(function (path) {
|
19927
|
-
|
19899
|
+
var _getNodePath;
|
19900
|
+
return ((_getNodePath = getNodePath(item)) !== null && _getNodePath !== void 0 ? _getNodePath : '').indexOf(path) === 0;
|
19928
19901
|
}));
|
19929
19902
|
}
|
19930
19903
|
return checkNodeIsOpen(item) && isNodeMatched(item);
|
@@ -19945,12 +19918,12 @@ var use_tree_init_this = undefined;
|
|
19945
19918
|
}),
|
19946
19919
|
renderTreeNode = _useNodeAction.renderTreeNode,
|
19947
19920
|
handleTreeNodeClick = _useNodeAction.handleTreeNodeClick,
|
19921
|
+
setNodeOpened = _useNodeAction.setNodeOpened,
|
19948
19922
|
setOpen = _useNodeAction.setOpen,
|
19949
19923
|
setNodeAction = _useNodeAction.setNodeAction,
|
19950
19924
|
setSelect = _useNodeAction.setSelect,
|
19951
19925
|
asyncNodeClick = _useNodeAction.asyncNodeClick,
|
19952
|
-
setNodeAttribute = _useNodeAction.setNodeAttribute
|
19953
|
-
isIndeterminate = _useNodeAction.isIndeterminate;
|
19926
|
+
setNodeAttribute = _useNodeAction.setNodeAttribute;
|
19954
19927
|
var handleSearch = (0,shared_namespaceObject.debounce)(120, function () {
|
19955
19928
|
matchedNodePath.length = 0;
|
19956
19929
|
flatData.data.forEach(function (item) {
|
@@ -19969,33 +19942,17 @@ var use_tree_init_this = undefined;
|
|
19969
19942
|
immediate: true
|
19970
19943
|
});
|
19971
19944
|
}
|
19972
|
-
(0,external_vue_namespaceObject.onMounted)(function () {
|
19973
|
-
if (props.virtualRender) {
|
19974
|
-
(0,external_vue_namespaceObject.nextTick)(function () {
|
19975
|
-
scrollToTop();
|
19976
|
-
});
|
19977
|
-
}
|
19978
|
-
});
|
19979
19945
|
/**
|
19980
19946
|
* 设置指定节点是否选中
|
19981
19947
|
* @param item Node item | Node Id
|
19982
19948
|
* @param checked
|
19983
|
-
* @param triggerEvent 是否触发抛出事件
|
19984
19949
|
*/
|
19985
19950
|
var setChecked = function setChecked(item) {
|
19986
19951
|
var checked = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
19987
|
-
var triggerEvent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
19988
19952
|
setNodeAction(resolveNodeItem(item), NODE_ATTRIBUTES.IS_CHECKED, checked);
|
19989
|
-
if (triggerEvent) {
|
19990
|
-
ctx.emit(EVENTS.NODE_CHECKED, flatData.data.filter(function (t) {
|
19991
|
-
return isNodeChecked(t);
|
19992
|
-
}), flatData.data.filter(function (t) {
|
19993
|
-
return isIndeterminate(t);
|
19994
|
-
}));
|
19995
|
-
}
|
19996
19953
|
};
|
19997
19954
|
onSelected(function (newData) {
|
19998
|
-
setSelect(newData, true, props.autoOpenParentNode
|
19955
|
+
setSelect(newData, true, props.autoOpenParentNode);
|
19999
19956
|
});
|
20000
19957
|
var getData = function getData() {
|
20001
19958
|
return flatData;
|
@@ -20062,7 +20019,7 @@ var use_tree_init_this = undefined;
|
|
20062
20019
|
setOpen: setOpen,
|
20063
20020
|
setChecked: setChecked,
|
20064
20021
|
setNodeAction: setNodeAction,
|
20065
|
-
setNodeOpened:
|
20022
|
+
setNodeOpened: setNodeOpened,
|
20066
20023
|
setSelect: setSelect,
|
20067
20024
|
scrollToTop: scrollToTop,
|
20068
20025
|
asyncNodeClick: asyncNodeClick,
|