bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10
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/dist/index.cjs.js +162 -164
- package/dist/index.esm.js +31999 -29678
- package/dist/index.umd.js +162 -164
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +6 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +7 -7
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +6 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -30
- package/lib/components.js +31 -29
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +3 -3
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +340 -224
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +9 -1
- package/lib/dialog/dialog.css +172 -150
- package/lib/dialog/dialog.d.ts +55 -124
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +175 -150
- package/lib/dialog/index.d.ts +132 -296
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +16 -41
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -167
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +17 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +12 -11
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +25 -22
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.variable.css +3 -0
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +44 -312
- package/lib/modal/index.js +286 -672
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +151 -76
- package/lib/modal/modal.d.ts +19 -117
- package/lib/modal/modal.less +103 -56
- package/lib/modal/modal.variable.css +154 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +107 -63
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -15
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +62 -44
- package/lib/pop-confirm/index.js +17 -14
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +62 -44
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -31
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +30 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +8 -9
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18762 -0
- 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/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +754 -419
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +117 -7
- package/lib/search-select/utils.d.ts +22 -9
- package/lib/select/index.d.ts +185 -67
- package/lib/select/index.js +1396 -136
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +56 -14
- package/lib/select/select.d.ts +74 -26
- package/lib/select/select.less +70 -21
- package/lib/select/select.variable.css +59 -14
- package/lib/select/selectTagInput.d.ts +13 -6
- package/lib/select/type.d.ts +4 -5
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +108 -96
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +51 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +58 -188
- package/lib/sideslider/index.js +83 -57
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +26 -88
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +30 -100
- package/lib/table/const.d.ts +12 -12
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +220 -305
- package/lib/table/index.js +18165 -688
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +13 -0
- package/lib/table/props.d.ts +49 -39
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +58 -47
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +9 -46
- package/lib/table/use-column.d.ts +18 -139
- package/lib/table/use-common.d.ts +5 -5
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -6
- package/lib/table-column/index.d.ts +127 -431
- package/lib/table-column/index.js +43 -117
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +12 -12
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +6 -6
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +56 -67
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +12 -9
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +64 -20
- package/lib/tree/index.js +17595 -72
- package/lib/tree/props.d.ts +24 -6
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +62 -65
- package/lib/upload/props.d.ts +4 -1
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/upload.variable.css +3 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
package/lib/tree/props.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
2
|
declare enum TreeSearchMatchEnum {
|
3
|
-
|
4
|
-
|
3
|
+
FULL = "full",
|
4
|
+
FUZZY = "fuzzy"
|
5
5
|
}
|
6
6
|
declare enum TreeSearchResultEnum {
|
7
|
-
|
8
|
-
|
7
|
+
LIST = "list",
|
8
|
+
TREE = "tree"
|
9
9
|
}
|
10
10
|
/**
|
11
11
|
* Tree Prop: prefixIcon function
|
@@ -214,14 +214,32 @@ export declare const treeProps: {
|
|
214
214
|
} & {
|
215
215
|
default: boolean;
|
216
216
|
};
|
217
|
+
/**
|
218
|
+
* 在显示复选框的情况下,是否严格的遵循父子互相关联的做法
|
219
|
+
*/
|
220
|
+
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
221
|
+
default: boolean;
|
222
|
+
} & {
|
223
|
+
default: boolean;
|
224
|
+
};
|
225
|
+
/**
|
226
|
+
* 是否开启监听Tree节点进入Tree容器可视区域
|
227
|
+
*/
|
228
|
+
intersectionObserver: import("vue-types").VueTypeDef<boolean | IIntersectionObserver> & {
|
229
|
+
default: boolean | (() => IIntersectionObserver);
|
230
|
+
};
|
217
231
|
};
|
218
232
|
type AsyncOption = {
|
219
233
|
callback: (item: any, cb: any) => Promise<any>;
|
220
|
-
cache:
|
234
|
+
cache: boolean;
|
221
235
|
deepAutoOpen?: string;
|
222
236
|
};
|
237
|
+
export type IIntersectionObserver = {
|
238
|
+
enabled: boolean;
|
239
|
+
callback: (node: any, level: number, index: number) => void;
|
240
|
+
};
|
223
241
|
export type SearchOption = {
|
224
|
-
value:
|
242
|
+
value: boolean | number | string;
|
225
243
|
match?: `${TreeSearchMatchEnum}` | Function;
|
226
244
|
resultType?: `${TreeSearchResultEnum}`;
|
227
245
|
showChildNodes?: boolean;
|
package/lib/tree/tree.css
CHANGED
@@ -15,11 +15,85 @@
|
|
15
15
|
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
16
16
|
border-radius: 4px;
|
17
17
|
}
|
18
|
+
.bk-scrollbar-wrapper {
|
19
|
+
position: relative;
|
20
|
+
overflow: hidden;
|
21
|
+
}
|
22
|
+
.bk-scrollbar-wrapper .bk-scrollbar-content-el {
|
23
|
+
display: inline-flex;
|
24
|
+
flex-direction: column;
|
25
|
+
width: 100%;
|
26
|
+
}
|
27
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
28
|
+
z-index: 1;
|
29
|
+
position: absolute;
|
30
|
+
right: 0;
|
31
|
+
bottom: 0;
|
32
|
+
pointer-events: none;
|
33
|
+
overflow: hidden;
|
34
|
+
}
|
35
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
36
|
+
background-color: #F0F1F5;
|
37
|
+
cursor: pointer;
|
38
|
+
}
|
39
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
40
|
+
background-color: #979BA5;
|
41
|
+
}
|
42
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
43
|
+
top: 0;
|
44
|
+
width: 8px;
|
45
|
+
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
46
|
+
}
|
47
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
48
|
+
left: 0;
|
49
|
+
height: 8px;
|
50
|
+
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
51
|
+
}
|
52
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
53
|
+
right: auto;
|
54
|
+
left: 0;
|
55
|
+
top: 0;
|
56
|
+
bottom: 0;
|
57
|
+
min-height: 0;
|
58
|
+
min-width: 8px;
|
59
|
+
width: auto;
|
60
|
+
}
|
61
|
+
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
62
|
+
pointer-events: none;
|
63
|
+
-webkit-touch-callout: none;
|
64
|
+
-webkit-user-select: none;
|
65
|
+
-khtml-user-select: none;
|
66
|
+
-moz-user-select: none;
|
67
|
+
-ms-user-select: none;
|
68
|
+
user-select: none;
|
69
|
+
}
|
70
|
+
.bk-scrollbar-wrapper .bk-scrollbar {
|
71
|
+
position: absolute;
|
72
|
+
left: 0;
|
73
|
+
right: 0;
|
74
|
+
min-height: 8px;
|
75
|
+
}
|
76
|
+
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
77
|
+
position: absolute;
|
78
|
+
content: '';
|
79
|
+
background: #DCDEE5;
|
80
|
+
border-radius: 6px;
|
81
|
+
left: 1px;
|
82
|
+
right: 1px;
|
83
|
+
top: 1px;
|
84
|
+
bottom: 1px;
|
85
|
+
opacity: 0;
|
86
|
+
transition: opacity 0.2s 0.9s linear;
|
87
|
+
}
|
88
|
+
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
89
|
+
opacity: 0.9;
|
90
|
+
transition-delay: 0s;
|
91
|
+
transition-duration: 0s;
|
92
|
+
}
|
18
93
|
.bk-virtual-render {
|
19
94
|
position: relative;
|
20
95
|
}
|
21
|
-
.bk-virtual-render .bk-virtual-content
|
22
|
-
.bk-virtual-render.bk-virtual-content {
|
96
|
+
.bk-virtual-render .bk-virtual-content {
|
23
97
|
position: absolute;
|
24
98
|
top: 0;
|
25
99
|
bottom: 0;
|
package/lib/tree/tree.d.ts
CHANGED
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
};
|
46
46
|
async: import("vue-types").VueTypeShape<{
|
47
47
|
callback: (item: any, cb: any) => Promise<any>;
|
48
|
-
cache:
|
48
|
+
cache: boolean;
|
49
49
|
deepAutoOpen?: string;
|
50
50
|
}>;
|
51
51
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -60,7 +60,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
60
|
default: string;
|
61
61
|
} & {
|
62
62
|
default: string;
|
63
|
-
};
|
63
|
+
}; /**
|
64
|
+
* 将制定元素滚动到顶部
|
65
|
+
* @param option
|
66
|
+
*/
|
64
67
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
65
68
|
default: boolean;
|
66
69
|
} & {
|
@@ -120,6 +123,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
120
123
|
} & {
|
121
124
|
default: boolean;
|
122
125
|
};
|
126
|
+
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
127
|
+
default: boolean;
|
128
|
+
} & {
|
129
|
+
default: boolean;
|
130
|
+
};
|
131
|
+
intersectionObserver: import("vue-types").VueTypeDef<boolean | import("./props").IIntersectionObserver> & {
|
132
|
+
default: boolean | (() => import("./props").IIntersectionObserver);
|
133
|
+
};
|
123
134
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
124
135
|
nodeClick: (..._args: any[]) => boolean;
|
125
136
|
nodeCollapse: (..._args: any[]) => boolean;
|
@@ -129,6 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
129
140
|
nodeDragOver: (..._args: any[]) => boolean;
|
130
141
|
nodeDragLeave: (..._args: any[]) => boolean;
|
131
142
|
nodeDrop: (..._args: any[]) => boolean;
|
143
|
+
nodeEnterView: (..._args: any[]) => boolean;
|
132
144
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
133
145
|
data: import("vue-types").VueTypeDef<any[]> & {
|
134
146
|
default: () => any[];
|
@@ -170,7 +182,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
170
182
|
};
|
171
183
|
async: import("vue-types").VueTypeShape<{
|
172
184
|
callback: (item: any, cb: any) => Promise<any>;
|
173
|
-
cache:
|
185
|
+
cache: boolean;
|
174
186
|
deepAutoOpen?: string;
|
175
187
|
}>;
|
176
188
|
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
@@ -185,7 +197,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
185
197
|
default: string;
|
186
198
|
} & {
|
187
199
|
default: string;
|
188
|
-
};
|
200
|
+
}; /**
|
201
|
+
* 将制定元素滚动到顶部
|
202
|
+
* @param option
|
203
|
+
*/
|
189
204
|
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
190
205
|
default: boolean;
|
191
206
|
} & {
|
@@ -245,15 +260,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
245
260
|
} & {
|
246
261
|
default: boolean;
|
247
262
|
};
|
263
|
+
checkStrictly: import("vue-types").VueTypeValidableDef<boolean> & {
|
264
|
+
default: boolean;
|
265
|
+
} & {
|
266
|
+
default: boolean;
|
267
|
+
};
|
268
|
+
intersectionObserver: import("vue-types").VueTypeDef<boolean | import("./props").IIntersectionObserver> & {
|
269
|
+
default: boolean | (() => import("./props").IIntersectionObserver);
|
270
|
+
};
|
248
271
|
}>> & {
|
272
|
+
onNodeChecked?: (...args: any[]) => any;
|
249
273
|
onNodeClick?: (...args: any[]) => any;
|
250
274
|
onNodeCollapse?: (...args: any[]) => any;
|
251
|
-
onNodeExpand?: (...args: any[]) => any;
|
252
|
-
onNodeChecked?: (...args: any[]) => any;
|
253
|
-
onNodeDragStart?: (...args: any[]) => any;
|
254
|
-
onNodeDragOver?: (...args: any[]) => any;
|
255
275
|
onNodeDragLeave?: (...args: any[]) => any;
|
276
|
+
onNodeDragOver?: (...args: any[]) => any;
|
277
|
+
onNodeDragStart?: (...args: any[]) => any;
|
256
278
|
onNodeDrop?: (...args: any[]) => any;
|
279
|
+
onNodeEnterView?: (...args: any[]) => any;
|
280
|
+
onNodeExpand?: (...args: any[]) => any;
|
257
281
|
}, {
|
258
282
|
data: any[];
|
259
283
|
height: number;
|
@@ -281,5 +305,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
281
305
|
expandAll: boolean;
|
282
306
|
nodeContentAction: any;
|
283
307
|
keepSlotData: boolean;
|
308
|
+
checkStrictly: boolean;
|
309
|
+
intersectionObserver: boolean | import("./props").IIntersectionObserver;
|
284
310
|
}, {}>;
|
285
311
|
export default _default;
|
package/lib/tree/tree.less
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-F-scroll-x {
|
128
131
|
overflow-x: auto;
|
@@ -141,11 +144,85 @@
|
|
141
144
|
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
142
145
|
border-radius: 4px;
|
143
146
|
}
|
147
|
+
.bk-scrollbar-wrapper {
|
148
|
+
position: relative;
|
149
|
+
overflow: hidden;
|
150
|
+
}
|
151
|
+
.bk-scrollbar-wrapper .bk-scrollbar-content-el {
|
152
|
+
display: inline-flex;
|
153
|
+
flex-direction: column;
|
154
|
+
width: 100%;
|
155
|
+
}
|
156
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
157
|
+
z-index: 1;
|
158
|
+
position: absolute;
|
159
|
+
right: 0;
|
160
|
+
bottom: 0;
|
161
|
+
pointer-events: none;
|
162
|
+
overflow: hidden;
|
163
|
+
}
|
164
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
165
|
+
background-color: #F0F1F5;
|
166
|
+
cursor: pointer;
|
167
|
+
}
|
168
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
169
|
+
background-color: #979BA5;
|
170
|
+
}
|
171
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
172
|
+
top: 0;
|
173
|
+
width: 8px;
|
174
|
+
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
175
|
+
}
|
176
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
177
|
+
left: 0;
|
178
|
+
height: 8px;
|
179
|
+
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
180
|
+
}
|
181
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
182
|
+
right: auto;
|
183
|
+
left: 0;
|
184
|
+
top: 0;
|
185
|
+
bottom: 0;
|
186
|
+
min-height: 0;
|
187
|
+
min-width: 8px;
|
188
|
+
width: auto;
|
189
|
+
}
|
190
|
+
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
191
|
+
pointer-events: none;
|
192
|
+
-webkit-touch-callout: none;
|
193
|
+
-webkit-user-select: none;
|
194
|
+
-khtml-user-select: none;
|
195
|
+
-moz-user-select: none;
|
196
|
+
-ms-user-select: none;
|
197
|
+
user-select: none;
|
198
|
+
}
|
199
|
+
.bk-scrollbar-wrapper .bk-scrollbar {
|
200
|
+
position: absolute;
|
201
|
+
left: 0;
|
202
|
+
right: 0;
|
203
|
+
min-height: 8px;
|
204
|
+
}
|
205
|
+
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
206
|
+
position: absolute;
|
207
|
+
content: '';
|
208
|
+
background: #DCDEE5;
|
209
|
+
border-radius: 6px;
|
210
|
+
left: 1px;
|
211
|
+
right: 1px;
|
212
|
+
top: 1px;
|
213
|
+
bottom: 1px;
|
214
|
+
opacity: 0;
|
215
|
+
transition: opacity 0.2s 0.9s linear;
|
216
|
+
}
|
217
|
+
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
218
|
+
opacity: 0.9;
|
219
|
+
transition-delay: 0s;
|
220
|
+
transition-duration: 0s;
|
221
|
+
}
|
144
222
|
.bk-virtual-render {
|
145
223
|
position: relative;
|
146
224
|
}
|
147
|
-
.bk-virtual-render .bk-virtual-content
|
148
|
-
.bk-virtual-render.bk-virtual-content {
|
225
|
+
.bk-virtual-render .bk-virtual-content {
|
149
226
|
position: absolute;
|
150
227
|
top: 0;
|
151
228
|
bottom: 0;
|
package/lib/tree/use-empty.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
declare const _default: (props: any) => {
|
2
|
-
renderEmpty: (type: '
|
2
|
+
renderEmpty: (type: '403' | '404' | '500' | 'building' | 'empty' | 'login' | 'search-empty') => JSX.Element;
|
3
3
|
};
|
4
4
|
export default _default;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { IIntersectionObserver, TreePropTypes } from './props';
|
2
|
+
type IntersectionObserverOptions = {
|
3
|
+
rootMargin?: string;
|
4
|
+
threshold?: number | number[];
|
5
|
+
root?: Element | null;
|
6
|
+
};
|
7
|
+
type IntersectionObserverResponseValue = {
|
8
|
+
level: number;
|
9
|
+
node: Record<string, any>;
|
10
|
+
index: number;
|
11
|
+
entry: IntersectionObserverEntry;
|
12
|
+
};
|
13
|
+
type IntersectionObserverResponse = {
|
14
|
+
beforeResponse?: (entry: IntersectionObserverEntry) => IntersectionObserverResponseValue;
|
15
|
+
};
|
16
|
+
declare const _default: (props: TreePropTypes) => {
|
17
|
+
unobserveAll: () => void;
|
18
|
+
intersectionObserver: import("vue").ComputedRef<{
|
19
|
+
enabled: boolean | IIntersectionObserver;
|
20
|
+
once: boolean;
|
21
|
+
callback: any;
|
22
|
+
}>;
|
23
|
+
initIntersectionObserver: (target: Element | Element[] | Node | Node[], options: IntersectionObserverOptions, resp?: IntersectionObserverResponse) => void;
|
24
|
+
initRootMutationObserver: (root: Element, callback: any) => void;
|
25
|
+
getLastVisibleElement: (offsetY: number, root: HTMLElement) => HTMLElement[];
|
26
|
+
};
|
27
|
+
export default _default;
|
@@ -8,7 +8,7 @@ declare const _default: (props: TreePropTypes, ctx: any, flatData: IFlatData, _r
|
|
8
8
|
setNodeAction: (args: any | any[], action: string, value: any) => void;
|
9
9
|
setNodeOpened: (item: any, isOpen?: any, e?: MouseEvent, fireEmit?: boolean) => void;
|
10
10
|
setSelect: (nodes: any, selected?: boolean, autoOpen?: boolean) => void;
|
11
|
-
setOpen: (item: any
|
12
|
-
setNodeAttribute: (node: any, attrName: string | string[], value:
|
11
|
+
setOpen: (item: any | any[], isOpen?: boolean, autoOpenParents?: boolean) => void;
|
12
|
+
setNodeAttribute: (node: any, attrName: string | string[], value: (boolean | number | string)[] | boolean | number | string, loopParent?: boolean) => void;
|
13
13
|
};
|
14
14
|
export default _default;
|
@@ -6,6 +6,7 @@ declare const _default: (flatData: {
|
|
6
6
|
getSchemaVal: (node: any) => any;
|
7
7
|
getNodeAttr: (node: any, attr: string) => any;
|
8
8
|
getNodeId: (node: any) => any;
|
9
|
+
getNodeById: (id: any) => any;
|
9
10
|
getNodeParentId: (node: any) => any;
|
10
11
|
getParentNodeData: (node: any) => any;
|
11
12
|
getNodePathById: (id: string) => any;
|
@@ -47,5 +48,13 @@ declare const _default: (flatData: {
|
|
47
48
|
parentId: any;
|
48
49
|
};
|
49
50
|
};
|
51
|
+
getIntersectionResponse: (target: HTMLElement | Record<string, any>) => {
|
52
|
+
level: any;
|
53
|
+
target: HTMLElement | Record<string, any>;
|
54
|
+
index: any;
|
55
|
+
parent: any;
|
56
|
+
node: HTMLElement | Record<string, any>;
|
57
|
+
isRoot: any;
|
58
|
+
};
|
50
59
|
};
|
51
60
|
export default _default;
|
package/lib/tree/use-search.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { SearchOption, TreePropTypes } from './props';
|
2
2
|
declare const _default: (props: TreePropTypes) => {
|
3
|
-
searchFn: (itemValue:
|
3
|
+
searchFn: (itemValue: number | string, item: any) => any;
|
4
4
|
refSearch: import("vue").Ref<string | number | boolean | SearchOption>;
|
5
5
|
isSearchActive: import("vue").ComputedRef<boolean>;
|
6
6
|
isSearchDisabled: boolean;
|
package/lib/tree/util.d.ts
CHANGED
@@ -34,8 +34,8 @@ export declare const getNodeItemStyle: any;
|
|
34
34
|
* @returns
|
35
35
|
*/
|
36
36
|
export declare const getNodeItemClass: (item: any, schema: WeakMap<Object, any>, props: TreePropTypes, showTree?: boolean) => {
|
37
|
+
[x: string]: any;
|
37
38
|
'is-root': any;
|
38
|
-
'bk-tree-node': boolean;
|
39
39
|
'is-open': any;
|
40
40
|
'is-virtual-render': boolean;
|
41
41
|
'level-line': boolean;
|
package/lib/upload/index.d.ts
CHANGED
@@ -84,6 +84,9 @@ declare const Upload: {
|
|
84
84
|
default: string;
|
85
85
|
};
|
86
86
|
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
87
|
+
selectChange: {
|
88
|
+
type: import("vue").PropType<(event: Event) => boolean | void>;
|
89
|
+
};
|
87
90
|
beforeUpload: {
|
88
91
|
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
89
92
|
};
|
@@ -198,6 +201,9 @@ declare const Upload: {
|
|
198
201
|
default: string;
|
199
202
|
};
|
200
203
|
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
204
|
+
selectChange: {
|
205
|
+
type: import("vue").PropType<(event: Event) => boolean | void>;
|
206
|
+
};
|
201
207
|
beforeUpload: {
|
202
208
|
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
203
209
|
};
|
@@ -341,6 +347,9 @@ declare const Upload: {
|
|
341
347
|
default: string;
|
342
348
|
};
|
343
349
|
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
350
|
+
selectChange: {
|
351
|
+
type: import("vue").PropType<(event: Event) => boolean | void>;
|
352
|
+
};
|
344
353
|
beforeUpload: {
|
345
354
|
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
346
355
|
};
|
@@ -481,6 +490,9 @@ declare const Upload: {
|
|
481
490
|
default: string;
|
482
491
|
};
|
483
492
|
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
493
|
+
selectChange: {
|
494
|
+
type: import("vue").PropType<(event: Event) => boolean | void>;
|
495
|
+
};
|
484
496
|
beforeUpload: {
|
485
497
|
type: import("vue").PropType<(file: import("./upload.type").UploadRawFile) => boolean | Promise<boolean>>;
|
486
498
|
};
|