bkui-vue 0.0.1-beta.37 → 0.0.1-beta.38
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 +57 -0
- package/dist/{bkui-vue.esm.js → index.esm.js} +12 -6
- package/dist/index.umd.js +57 -0
- package/dist/style.css +1 -5902
- package/package.json +17 -29
- package/README_EN.md +0 -93
- package/dist/bkui-vue.cjs.js +0 -20346
- package/dist/bkui-vue.umd.js +0 -20349
- package/lib/alert/alert.css +0 -75
- package/lib/alert/alert.d.ts +0 -62
- package/lib/alert/alert.js +0 -1
- package/lib/alert/alert.less +0 -110
- package/lib/alert/alert.variable.css +0 -168
- package/lib/alert/index.d.ts +0 -180
- package/lib/animate-number/animate-number.d.ts +0 -27
- package/lib/animate-number/animate-number.js +0 -1
- package/lib/animate-number/index.d.ts +0 -97
- package/lib/backtop/backtop.css +0 -42
- package/lib/backtop/backtop.d.ts +0 -60
- package/lib/backtop/backtop.js +0 -1
- package/lib/backtop/backtop.less +0 -18
- package/lib/backtop/backtop.variable.css +0 -135
- package/lib/backtop/index.d.ts +0 -166
- package/lib/badge/badge.css +0 -121
- package/lib/badge/badge.d.ts +0 -91
- package/lib/badge/badge.js +0 -1
- package/lib/badge/badge.less +0 -137
- package/lib/badge/badge.variable.css +0 -214
- package/lib/badge/index.d.ts +0 -217
- package/lib/breadcrumb/breadcrumb-item.d.ts +0 -36
- package/lib/breadcrumb/breadcrumb.css +0 -68
- package/lib/breadcrumb/breadcrumb.d.ts +0 -54
- package/lib/breadcrumb/breadcrumb.js +0 -1
- package/lib/breadcrumb/breadcrumb.less +0 -65
- package/lib/breadcrumb/breadcrumb.variable.css +0 -161
- package/lib/breadcrumb/index.d.ts +0 -194
- package/lib/breadcrumb/props.d.ts +0 -4
- package/lib/button/button-group.d.ts +0 -6
- package/lib/button/button.css +0 -265
- package/lib/button/button.d.ts +0 -143
- package/lib/button/button.js +0 -1
- package/lib/button/button.less +0 -195
- package/lib/button/button.variable.css +0 -358
- package/lib/button/index.d.ts +0 -226
- package/lib/card/card.css +0 -63
- package/lib/card/card.d.ts +0 -69
- package/lib/card/card.js +0 -1
- package/lib/card/card.less +0 -44
- package/lib/card/card.variable.css +0 -156
- package/lib/card/index.d.ts +0 -187
- package/lib/checkbox/checkbox-group.d.ts +0 -48
- package/lib/checkbox/checkbox.css +0 -64
- package/lib/checkbox/checkbox.d.ts +0 -114
- package/lib/checkbox/checkbox.js +0 -1
- package/lib/checkbox/checkbox.less +0 -80
- package/lib/checkbox/checkbox.variable.css +0 -157
- package/lib/checkbox/common.d.ts +0 -13
- package/lib/checkbox/index.d.ts +0 -261
- package/lib/checkbox/type.d.ts +0 -19
- package/lib/code-diff/code-diff.css +0 -186
- package/lib/code-diff/code-diff.d.ts +0 -80
- package/lib/code-diff/code-diff.js +0 -1
- package/lib/code-diff/code-diff.less +0 -238
- package/lib/code-diff/code-diff.variable.css +0 -279
- package/lib/code-diff/index.d.ts +0 -154
- package/lib/collapse/collapse.css +0 -30
- package/lib/collapse/collapse.d.ts +0 -106
- package/lib/collapse/collapse.js +0 -1
- package/lib/collapse/collapse.less +0 -37
- package/lib/collapse/collapse.variable.css +0 -30
- package/lib/collapse/index.d.ts +0 -166
- package/lib/components.d.ts +0 -41
- package/lib/date-picker/date-picker.css +0 -407
- package/lib/date-picker/date-picker.d.ts +0 -294
- package/lib/date-picker/date-picker.js +0 -1
- package/lib/date-picker/date-picker.less +0 -526
- package/lib/date-picker/date-picker.variable.css +0 -500
- package/lib/date-picker/fecha.d.ts +0 -6
- package/lib/date-picker/index.d.ts +0 -713
- package/lib/date-picker/interface.d.ts +0 -22
- package/lib/date-picker/props.d.ts +0 -111
- package/lib/date-picker/utils.d.ts +0 -97
- package/lib/dialog/dialog.css +0 -68
- package/lib/dialog/dialog.d.ts +0 -113
- package/lib/dialog/dialog.js +0 -1
- package/lib/dialog/dialog.less +0 -80
- package/lib/dialog/dialog.variable.css +0 -68
- package/lib/dialog/index.d.ts +0 -286
- package/lib/directives/clickoutside.d.ts +0 -3
- package/lib/directives/directives.js +0 -2
- package/lib/directives/directives.js.LICENSE.txt +0 -14
- package/lib/directives/index.d.ts +0 -3
- package/lib/directives/mousewheel.d.ts +0 -3
- package/lib/directives/tooltips.d.ts +0 -17
- package/lib/divider/divider.css +0 -38
- package/lib/divider/divider.d.ts +0 -48
- package/lib/divider/divider.js +0 -1
- package/lib/divider/divider.less +0 -53
- package/lib/divider/divider.variable.css +0 -131
- package/lib/divider/index.d.ts +0 -142
- package/lib/divider/props.d.ts +0 -21
- package/lib/dropdown/dropdown-item.d.ts +0 -19
- package/lib/dropdown/dropdown-menu.d.ts +0 -16
- package/lib/dropdown/dropdown.css +0 -43
- package/lib/dropdown/dropdown.d.ts +0 -61
- package/lib/dropdown/dropdown.js +0 -1
- package/lib/dropdown/dropdown.less +0 -54
- package/lib/dropdown/dropdown.variable.css +0 -136
- package/lib/dropdown/index.d.ts +0 -192
- package/lib/exception/exception.css +0 -32
- package/lib/exception/exception.d.ts +0 -26
- package/lib/exception/exception.js +0 -1
- package/lib/exception/exception.less +0 -39
- package/lib/exception/exception.variable.css +0 -125
- package/lib/exception/index.d.ts +0 -96
- package/lib/fixed-navbar/fixed-navbar.css +0 -42
- package/lib/fixed-navbar/fixed-navbar.d.ts +0 -34
- package/lib/fixed-navbar/fixed-navbar.js +0 -1
- package/lib/fixed-navbar/fixed-navbar.less +0 -53
- package/lib/fixed-navbar/fixed-navbar.variable.css +0 -135
- package/lib/fixed-navbar/index.d.ts +0 -112
- package/lib/form/common.d.ts +0 -3
- package/lib/form/form-item.d.ts +0 -145
- package/lib/form/form.css +0 -48
- package/lib/form/form.d.ts +0 -64
- package/lib/form/form.js +0 -1
- package/lib/form/form.less +0 -63
- package/lib/form/form.variable.css +0 -48
- package/lib/form/index.d.ts +0 -246
- package/lib/form/type.d.ts +0 -21
- package/lib/form/validator.d.ts +0 -8
- package/lib/icon/angle-double-down-line.d.ts +0 -4
- package/lib/icon/angle-double-down-line.js +0 -1
- package/lib/icon/angle-double-left-line.d.ts +0 -4
- package/lib/icon/angle-double-left-line.js +0 -1
- package/lib/icon/angle-double-left.d.ts +0 -4
- package/lib/icon/angle-double-left.js +0 -1
- package/lib/icon/angle-double-right-line.d.ts +0 -4
- package/lib/icon/angle-double-right-line.js +0 -1
- package/lib/icon/angle-double-right.d.ts +0 -4
- package/lib/icon/angle-double-right.js +0 -1
- package/lib/icon/angle-double-up-line.d.ts +0 -4
- package/lib/icon/angle-double-up-line.js +0 -1
- package/lib/icon/angle-down-fill.d.ts +0 -4
- package/lib/icon/angle-down-fill.js +0 -1
- package/lib/icon/angle-down-line.d.ts +0 -4
- package/lib/icon/angle-down-line.js +0 -1
- package/lib/icon/angle-down.d.ts +0 -4
- package/lib/icon/angle-down.js +0 -1
- package/lib/icon/angle-left.d.ts +0 -4
- package/lib/icon/angle-left.js +0 -1
- package/lib/icon/angle-right.d.ts +0 -4
- package/lib/icon/angle-right.js +0 -1
- package/lib/icon/angle-up-fill.d.ts +0 -4
- package/lib/icon/angle-up-fill.js +0 -1
- package/lib/icon/angle-up.d.ts +0 -4
- package/lib/icon/angle-up.js +0 -1
- package/lib/icon/arrows-left.d.ts +0 -4
- package/lib/icon/arrows-left.js +0 -1
- package/lib/icon/arrows-right.d.ts +0 -4
- package/lib/icon/arrows-right.js +0 -1
- package/lib/icon/bk.d.ts +0 -4
- package/lib/icon/bk.js +0 -1
- package/lib/icon/circle.d.ts +0 -4
- package/lib/icon/circle.js +0 -1
- package/lib/icon/close.d.ts +0 -4
- package/lib/icon/close.js +0 -1
- package/lib/icon/code.d.ts +0 -4
- package/lib/icon/code.js +0 -1
- package/lib/icon/cog-shape.d.ts +0 -4
- package/lib/icon/cog-shape.js +0 -1
- package/lib/icon/collapse-left.d.ts +0 -4
- package/lib/icon/collapse-left.js +0 -1
- package/lib/icon/copy.d.ts +0 -4
- package/lib/icon/copy.js +0 -1
- package/lib/icon/done.d.ts +0 -4
- package/lib/icon/done.js +0 -1
- package/lib/icon/down-shape.d.ts +0 -4
- package/lib/icon/down-shape.js +0 -1
- package/lib/icon/down-small.d.ts +0 -4
- package/lib/icon/down-small.js +0 -1
- package/lib/icon/ellipsis.d.ts +0 -4
- package/lib/icon/ellipsis.js +0 -1
- package/lib/icon/error.d.ts +0 -4
- package/lib/icon/error.js +0 -1
- package/lib/icon/eye.d.ts +0 -4
- package/lib/icon/eye.js +0 -1
- package/lib/icon/folder-open.d.ts +0 -4
- package/lib/icon/folder-open.js +0 -1
- package/lib/icon/folder-shape-open.d.ts +0 -4
- package/lib/icon/folder-shape-open.js +0 -1
- package/lib/icon/folder-shape.d.ts +0 -4
- package/lib/icon/folder-shape.js +0 -1
- package/lib/icon/folder.d.ts +0 -4
- package/lib/icon/folder.js +0 -1
- package/lib/icon/help-document-fill.d.ts +0 -4
- package/lib/icon/help-document-fill.js +0 -1
- package/lib/icon/help-fill.d.ts +0 -4
- package/lib/icon/help-fill.js +0 -1
- package/lib/icon/help.d.ts +0 -4
- package/lib/icon/help.js +0 -1
- package/lib/icon/icon.d.ts +0 -12
- package/lib/icon/icon.js +0 -1
- package/lib/icon/index.d.ts +0 -53
- package/lib/icon/info-line.d.ts +0 -4
- package/lib/icon/info-line.js +0 -1
- package/lib/icon/info.d.ts +0 -4
- package/lib/icon/info.js +0 -1
- package/lib/icon/left-shape.d.ts +0 -4
- package/lib/icon/left-shape.js +0 -1
- package/lib/icon/play-shape.d.ts +0 -4
- package/lib/icon/play-shape.js +0 -1
- package/lib/icon/plus.d.ts +0 -4
- package/lib/icon/plus.js +0 -1
- package/lib/icon/qq.d.ts +0 -4
- package/lib/icon/qq.js +0 -1
- package/lib/icon/right-shape.d.ts +0 -4
- package/lib/icon/right-shape.js +0 -1
- package/lib/icon/search.d.ts +0 -4
- package/lib/icon/search.js +0 -1
- package/lib/icon/share.d.ts +0 -4
- package/lib/icon/share.js +0 -1
- package/lib/icon/spinner.d.ts +0 -4
- package/lib/icon/spinner.js +0 -1
- package/lib/icon/success.d.ts +0 -4
- package/lib/icon/success.js +0 -1
- package/lib/icon/switcher-loading.d.ts +0 -4
- package/lib/icon/switcher-loading.js +0 -1
- package/lib/icon/text-file.d.ts +0 -4
- package/lib/icon/text-file.js +0 -1
- package/lib/icon/tree-application-shape.d.ts +0 -4
- package/lib/icon/tree-application-shape.js +0 -1
- package/lib/icon/unvisible.d.ts +0 -4
- package/lib/icon/unvisible.js +0 -1
- package/lib/icon/up-shape.d.ts +0 -4
- package/lib/icon/up-shape.js +0 -1
- package/lib/icon/warn.d.ts +0 -4
- package/lib/icon/warn.js +0 -1
- package/lib/icon/weixin.d.ts +0 -4
- package/lib/icon/weixin.js +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/input/index.d.ts +0 -443
- package/lib/input/input.css +0 -190
- package/lib/input/input.d.ts +0 -254
- package/lib/input/input.js +0 -1
- package/lib/input/input.less +0 -214
- package/lib/input/input.variable.css +0 -284
- package/lib/link/index.d.ts +0 -164
- package/lib/link/link.css +0 -55
- package/lib/link/link.d.ts +0 -58
- package/lib/link/link.js +0 -1
- package/lib/link/link.less +0 -74
- package/lib/link/link.variable.css +0 -148
- package/lib/loading/index.d.ts +0 -164
- package/lib/loading/loading.css +0 -261
- package/lib/loading/loading.d.ts +0 -94
- package/lib/loading/loading.js +0 -1
- package/lib/loading/loading.less +0 -197
- package/lib/loading/loading.variable.css +0 -354
- package/lib/menu/index.d.ts +0 -188
- package/lib/menu/menu-group.d.ts +0 -14
- package/lib/menu/menu-item.d.ts +0 -16
- package/lib/menu/menu.css +0 -182
- package/lib/menu/menu.d.ts +0 -64
- package/lib/menu/menu.js +0 -1
- package/lib/menu/menu.less +0 -180
- package/lib/menu/menu.variable.css +0 -275
- package/lib/menu/submenu.css +0 -3
- package/lib/menu/submenu.d.ts +0 -22
- package/lib/menu/submenu.less +0 -5
- package/lib/menu/submenu.variable.css +0 -96
- package/lib/menu/utils.d.ts +0 -41
- package/lib/message/index.d.ts +0 -2
- package/lib/message/message.css +0 -53
- package/lib/message/message.js +0 -1
- package/lib/message/message.less +0 -61
- package/lib/message/message.variable.css +0 -146
- package/lib/message/messageConstructor.d.ts +0 -73
- package/lib/modal/index.d.ts +0 -214
- package/lib/modal/modal.css +0 -11
- package/lib/modal/modal.d.ts +0 -65
- package/lib/modal/modal.js +0 -1
- package/lib/modal/modal.less +0 -12
- package/lib/modal/modal.variable.css +0 -11
- package/lib/modal/props.mixin.d.ts +0 -26
- package/lib/navigation/index.d.ts +0 -2
- package/lib/navigation/navigation-title.d.ts +0 -25
- package/lib/navigation/navigation.css +0 -184
- package/lib/navigation/navigation.d.ts +0 -111
- package/lib/navigation/navigation.js +0 -1
- package/lib/navigation/navigation.less +0 -210
- package/lib/navigation/navigation.variable.css +0 -277
- package/lib/notify/index.d.ts +0 -2
- package/lib/notify/notify.css +0 -49
- package/lib/notify/notify.js +0 -1
- package/lib/notify/notify.less +0 -58
- package/lib/notify/notify.variable.css +0 -142
- package/lib/notify/notifyConstructor.d.ts +0 -91
- package/lib/pagination/index.d.ts +0 -395
- package/lib/pagination/pagination.css +0 -179
- package/lib/pagination/pagination.d.ts +0 -220
- package/lib/pagination/pagination.js +0 -1
- package/lib/pagination/pagination.less +0 -201
- package/lib/pagination/pagination.variable.css +0 -272
- package/lib/pagination/type.d.ts +0 -6
- package/lib/pagination/use-limit.d.ts +0 -8
- package/lib/pagination/use-list.d.ts +0 -8
- package/lib/pagination/use-small-list.d.ts +0 -5
- package/lib/pagination/use-total.d.ts +0 -5
- package/lib/popover/index.d.ts +0 -287
- package/lib/popover/popover.css +0 -65
- package/lib/popover/popover.d.ts +0 -117
- package/lib/popover/popover.js +0 -1
- package/lib/popover/popover.less +0 -82
- package/lib/popover/popover.variable.css +0 -158
- package/lib/popover/props.d.ts +0 -77
- package/lib/preset.d.ts +0 -7
- package/lib/process/index.d.ts +0 -205
- package/lib/process/process.css +0 -138
- package/lib/process/process.d.ts +0 -131
- package/lib/process/process.js +0 -1
- package/lib/process/process.less +0 -178
- package/lib/process/process.variable.css +0 -231
- package/lib/progress/circle.d.ts +0 -6
- package/lib/progress/index.d.ts +0 -398
- package/lib/progress/line.d.ts +0 -6
- package/lib/progress/progress.css +0 -94
- package/lib/progress/progress.d.ts +0 -171
- package/lib/progress/progress.js +0 -1
- package/lib/progress/progress.less +0 -90
- package/lib/progress/progress.variable.css +0 -187
- package/lib/radio/common.d.ts +0 -13
- package/lib/radio/index.d.ts +0 -277
- package/lib/radio/radio-button.d.ts +0 -91
- package/lib/radio/radio-group.d.ts +0 -41
- package/lib/radio/radio.css +0 -138
- package/lib/radio/radio.d.ts +0 -87
- package/lib/radio/radio.js +0 -1
- package/lib/radio/radio.less +0 -173
- package/lib/radio/radio.variable.css +0 -231
- package/lib/radio/type.d.ts +0 -9
- package/lib/rate/index.d.ts +0 -113
- package/lib/rate/rate.css +0 -10
- package/lib/rate/rate.d.ts +0 -32
- package/lib/rate/rate.js +0 -1
- package/lib/rate/rate.less +0 -11
- package/lib/rate/rate.variable.css +0 -10
- package/lib/rate/star.css +0 -24
- package/lib/rate/star.d.ts +0 -74
- package/lib/rate/star.less +0 -29
- package/lib/rate/star.variable.css +0 -24
- package/lib/resize-layout/index.d.ts +0 -336
- package/lib/resize-layout/resize-layout.css +0 -189
- package/lib/resize-layout/resize-layout.d.ts +0 -127
- package/lib/resize-layout/resize-layout.js +0 -1
- package/lib/resize-layout/resize-layout.less +0 -233
- package/lib/resize-layout/resize-layout.variable.css +0 -282
- package/lib/select/common.d.ts +0 -33
- package/lib/select/index.d.ts +0 -1347
- package/lib/select/option.d.ts +0 -25
- package/lib/select/optionGroup.d.ts +0 -54
- package/lib/select/select.css +0 -325
- package/lib/select/select.d.ts +0 -395
- package/lib/select/select.js +0 -1
- package/lib/select/select.less +0 -324
- package/lib/select/select.variable.css +0 -418
- package/lib/select/type.d.ts +0 -31
- package/lib/shared/helper.d.ts +0 -92
- package/lib/shared/index.d.ts +0 -52
- package/lib/shared/mask-manager.d.ts +0 -76
- package/lib/shared/pop-manager.d.ts +0 -26
- package/lib/shared/popover.d.ts +0 -127
- package/lib/shared/scrollbar-width.d.ts +0 -1
- package/lib/shared/shared.js +0 -1
- package/lib/shared/utils.d.ts +0 -6
- package/lib/shared/vue-types.d.ts +0 -115
- package/lib/shared/z-index-manager.d.ts +0 -93
- package/lib/sideslider/index.d.ts +0 -206
- package/lib/sideslider/sideslider.css +0 -69
- package/lib/sideslider/sideslider.d.ts +0 -75
- package/lib/sideslider/sideslider.js +0 -1
- package/lib/sideslider/sideslider.less +0 -86
- package/lib/sideslider/sideslider.variable.css +0 -162
- package/lib/slider/index.d.ts +0 -27
- package/lib/slider/slider-button.d.ts +0 -80
- package/lib/slider/slider.css +0 -149
- package/lib/slider/slider.d.ts +0 -201
- package/lib/slider/slider.js +0 -1
- package/lib/slider/slider.less +0 -179
- package/lib/slider/slider.variable.css +0 -242
- package/lib/steps/index.d.ts +0 -250
- package/lib/steps/steps.css +0 -288
- package/lib/steps/steps.d.ts +0 -161
- package/lib/steps/steps.js +0 -1
- package/lib/steps/steps.less +0 -324
- package/lib/steps/steps.variable.css +0 -381
- package/lib/styles/index.d.ts +0 -47
- package/lib/styles/mixins/animate.css +0 -21
- package/lib/styles/mixins/animate.less +0 -27
- package/lib/styles/mixins/animate.variable.css +0 -21
- package/lib/styles/mixins/ellipsis.less +0 -8
- package/lib/styles/mixins/mixins.css +0 -21
- package/lib/styles/mixins/mixins.less +0 -3
- package/lib/styles/mixins/mixins.variable.css +0 -21
- package/lib/styles/mixins/popper.css +0 -43
- package/lib/styles/mixins/popper.less +0 -52
- package/lib/styles/mixins/popper.variable.css +0 -43
- package/lib/styles/mixins/size.less +0 -13
- package/lib/styles/reset.css +0 -273
- package/lib/styles/reset.less +0 -313
- package/lib/styles/reset.variable.css +0 -273
- package/lib/styles/themes/themes.less +0 -126
- package/lib/swiper/index.d.ts +0 -181
- package/lib/swiper/swiper.css +0 -91
- package/lib/swiper/swiper.d.ts +0 -65
- package/lib/swiper/swiper.js +0 -1
- package/lib/swiper/swiper.less +0 -107
- package/lib/swiper/swiper.variable.css +0 -91
- package/lib/switcher/index.d.ts +0 -286
- package/lib/switcher/switcher.css +0 -272
- package/lib/switcher/switcher.d.ts +0 -113
- package/lib/switcher/switcher.js +0 -1
- package/lib/switcher/switcher.less +0 -358
- package/lib/switcher/switcher.variable.css +0 -365
- package/lib/tab/index.d.ts +0 -443
- package/lib/tab/props.d.ts +0 -191
- package/lib/tab/tab-nav.d.ts +0 -165
- package/lib/tab/tab-panel.d.ts +0 -73
- package/lib/tab/tab.css +0 -148
- package/lib/tab/tab.d.ts +0 -140
- package/lib/tab/tab.js +0 -1
- package/lib/tab/tab.less +0 -222
- package/lib/tab/tab.variable.css +0 -241
- package/lib/table/const.d.ts +0 -4
- package/lib/table/index.d.ts +0 -302
- package/lib/table/props.d.ts +0 -117
- package/lib/table/render.d.ts +0 -83
- package/lib/table/table.css +0 -91
- package/lib/table/table.d.ts +0 -119
- package/lib/table/table.js +0 -1
- package/lib/table/table.less +0 -115
- package/lib/table/table.variable.css +0 -184
- package/lib/table/utils.d.ts +0 -69
- package/lib/tag/index.d.ts +0 -229
- package/lib/tag/tag.css +0 -97
- package/lib/tag/tag.d.ts +0 -84
- package/lib/tag/tag.js +0 -1
- package/lib/tag/tag.less +0 -113
- package/lib/tag/tag.variable.css +0 -190
- package/lib/tag-input/common.d.ts +0 -24
- package/lib/tag-input/index.d.ts +0 -2
- package/lib/tag-input/list-tag-render.d.ts +0 -47
- package/lib/tag-input/tag-input.css +0 -208
- package/lib/tag-input/tag-input.d.ts +0 -374
- package/lib/tag-input/tag-input.js +0 -1
- package/lib/tag-input/tag-input.less +0 -250
- package/lib/tag-input/tag-input.variable.css +0 -301
- package/lib/tag-input/tag-props.d.ts +0 -131
- package/lib/tag-input/tag-render.d.ts +0 -38
- package/lib/timeline/index.d.ts +0 -129
- package/lib/timeline/timeline.css +0 -235
- package/lib/timeline/timeline.d.ts +0 -81
- package/lib/timeline/timeline.js +0 -1
- package/lib/timeline/timeline.less +0 -239
- package/lib/timeline/timeline.variable.css +0 -328
- package/lib/transfer/index.d.ts +0 -351
- package/lib/transfer/transfer.css +0 -158
- package/lib/transfer/transfer.d.ts +0 -185
- package/lib/transfer/transfer.js +0 -1
- package/lib/transfer/transfer.less +0 -171
- package/lib/transfer/transfer.variable.css +0 -251
- package/lib/tree/index.d.ts +0 -287
- package/lib/tree/props.d.ts +0 -89
- package/lib/tree/tree.css +0 -50
- package/lib/tree/tree.d.ts +0 -111
- package/lib/tree/tree.js +0 -1
- package/lib/tree/tree.less +0 -63
- package/lib/tree/tree.variable.css +0 -143
- package/lib/tree/util.d.ts +0 -70
- package/lib/use-form.d.ts +0 -3
- package/lib/use-message.d.ts +0 -2
- package/lib/virtual-render/index.d.ts +0 -556
- package/lib/virtual-render/props.d.ts +0 -157
- package/lib/virtual-render/v-virtual-render.d.ts +0 -7
- package/lib/virtual-render/virtual-render.css +0 -33
- package/lib/virtual-render/virtual-render.d.ts +0 -244
- package/lib/virtual-render/virtual-render.js +0 -1
- package/lib/virtual-render/virtual-render.less +0 -43
- package/lib/virtual-render/virtual-render.variable.css +0 -33
package/lib/tree/tree.d.ts
DELETED
@@ -1,111 +0,0 @@
|
|
1
|
-
import { TreePropTypes as defineTypes } from './props';
|
2
|
-
export declare type TreePropTypes = defineTypes;
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
4
|
-
data: import("vue-types").VueTypeDef<any[]> & {
|
5
|
-
default: () => any[];
|
6
|
-
};
|
7
|
-
label: import("vue-types").VueTypeDef<any>;
|
8
|
-
children: import("vue-types").VueTypeValidableDef<string> & {
|
9
|
-
default: string;
|
10
|
-
} & {
|
11
|
-
default: string;
|
12
|
-
};
|
13
|
-
indent: import("vue-types").VueTypeValidableDef<number> & {
|
14
|
-
default: number;
|
15
|
-
} & {
|
16
|
-
default: number;
|
17
|
-
};
|
18
|
-
lineHeight: import("vue-types").VueTypeValidableDef<number> & {
|
19
|
-
default: number;
|
20
|
-
} & {
|
21
|
-
default: number;
|
22
|
-
};
|
23
|
-
levelLine: import("vue-types").VueTypeDef<any> & {
|
24
|
-
default: any;
|
25
|
-
};
|
26
|
-
virtualRender: import("vue-types").VueTypeValidableDef<boolean> & {
|
27
|
-
default: boolean;
|
28
|
-
} & {
|
29
|
-
default: boolean;
|
30
|
-
};
|
31
|
-
prefixIcon: import("vue-types").VueTypeDef<any> & {
|
32
|
-
default: any;
|
33
|
-
};
|
34
|
-
async: import("vue-types").VueTypeShape<{
|
35
|
-
callback: (item: any, cb: any) => Promise<any>;
|
36
|
-
cache: Boolean;
|
37
|
-
}>;
|
38
|
-
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
39
|
-
default: number;
|
40
|
-
} & {
|
41
|
-
default: number;
|
42
|
-
};
|
43
|
-
}, {
|
44
|
-
renderData: import("vue").ComputedRef<any[]>;
|
45
|
-
flatData: {
|
46
|
-
data: any[];
|
47
|
-
schema: any[] | Map<string, any>;
|
48
|
-
levelLineSchema: {};
|
49
|
-
};
|
50
|
-
root: import("vue").Ref<any>;
|
51
|
-
hanldeTreeNodeClick: (item: any) => void;
|
52
|
-
handleNodeContentClick: (item: any) => void;
|
53
|
-
handleNodeActionClick: (node: any) => void;
|
54
|
-
getActionIcon: (item: any) => any;
|
55
|
-
getRootIcon: (item: any) => JSX.Element;
|
56
|
-
getVirtualLines: (node: any) => JSX.Element[];
|
57
|
-
getNodePrefixIcon: (item: any) => any;
|
58
|
-
getLoadingIcon: (item: any) => JSX.Element | "";
|
59
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "check"[], "check", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
60
|
-
data: import("vue-types").VueTypeDef<any[]> & {
|
61
|
-
default: () => any[];
|
62
|
-
};
|
63
|
-
label: import("vue-types").VueTypeDef<any>;
|
64
|
-
children: import("vue-types").VueTypeValidableDef<string> & {
|
65
|
-
default: string;
|
66
|
-
} & {
|
67
|
-
default: string;
|
68
|
-
};
|
69
|
-
indent: import("vue-types").VueTypeValidableDef<number> & {
|
70
|
-
default: number;
|
71
|
-
} & {
|
72
|
-
default: number;
|
73
|
-
};
|
74
|
-
lineHeight: import("vue-types").VueTypeValidableDef<number> & {
|
75
|
-
default: number;
|
76
|
-
} & {
|
77
|
-
default: number;
|
78
|
-
};
|
79
|
-
levelLine: import("vue-types").VueTypeDef<any> & {
|
80
|
-
default: any;
|
81
|
-
};
|
82
|
-
virtualRender: import("vue-types").VueTypeValidableDef<boolean> & {
|
83
|
-
default: boolean;
|
84
|
-
} & {
|
85
|
-
default: boolean;
|
86
|
-
};
|
87
|
-
prefixIcon: import("vue-types").VueTypeDef<any> & {
|
88
|
-
default: any;
|
89
|
-
};
|
90
|
-
async: import("vue-types").VueTypeShape<{
|
91
|
-
callback: (item: any, cb: any) => Promise<any>;
|
92
|
-
cache: Boolean;
|
93
|
-
}>;
|
94
|
-
offsetLeft: import("vue-types").VueTypeValidableDef<number> & {
|
95
|
-
default: number;
|
96
|
-
} & {
|
97
|
-
default: number;
|
98
|
-
};
|
99
|
-
}>> & {
|
100
|
-
onCheck?: (...args: any[]) => any;
|
101
|
-
}, {
|
102
|
-
data: any[];
|
103
|
-
lineHeight: number;
|
104
|
-
prefixIcon: any;
|
105
|
-
children: string;
|
106
|
-
indent: number;
|
107
|
-
levelLine: any;
|
108
|
-
virtualRender: boolean;
|
109
|
-
offsetLeft: number;
|
110
|
-
}>;
|
111
|
-
export default _default;
|
package/lib/tree/tree.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,n){if("object"==typeof exports&&"object"==typeof module)module.exports=n(require("../shared"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/defineProperty"),require("vue"),require("../icon/"),require("../virtual-render"),require("@babel/runtime/helpers/toConsumableArray"));else if("function"==typeof define&&define.amd)define(["../shared","@babel/runtime/helpers/typeof","@babel/runtime/helpers/defineProperty","vue","../icon/","../virtual-render","@babel/runtime/helpers/toConsumableArray"],n);else{var r="object"==typeof exports?n(require("../shared"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/defineProperty"),require("vue"),require("../icon/"),require("../virtual-render"),require("@babel/runtime/helpers/toConsumableArray")):n(e["../shared"],e["@babel/runtime/helpers/typeof"],e["@babel/runtime/helpers/defineProperty"],e.vue,e["../icon/"],e["../virtual-render"],e["@babel/runtime/helpers/toConsumableArray"]);for(var t in r)("object"==typeof exports?exports:e)[t]=r[t]}}(self,((e,n,r,t,o,i,a)=>(()=>{var l={5877:(e,n,r)=>{var t=r(3570),o=r(1171),i=o;i.v1=t,i.v4=o,e.exports=i},5327:e=>{for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var t=r||0,o=n;return[o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],"-",o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]],o[e[t++]]].join("")}},5217:e=>{var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);e.exports=function(){return n(r),r}}else{var t=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),t[n]=e>>>((3&n)<<3)&255;return t}}},3570:(e,n,r)=>{var t,o,i=r(5217),a=r(5327),l=0,u=0;e.exports=function(e,n,r){var c=n&&r||0,s=n||[],d=(e=e||{}).node||t,f=void 0!==e.clockseq?e.clockseq:o;if(null==d||null==f){var p=i();null==d&&(d=t=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==f&&(f=o=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),y=void 0!==e.nsecs?e.nsecs:u+1,h=v-l+(y-u)/1e4;if(h<0&&void 0===e.clockseq&&(f=f+1&16383),(h<0||v>l)&&void 0===e.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=v,u=y,o=f;var _=(1e4*(268435455&(v+=122192928e5))+y)%4294967296;s[c++]=_>>>24&255,s[c++]=_>>>16&255,s[c++]=_>>>8&255,s[c++]=255&_;var b=v/4294967296*1e4&268435455;s[c++]=b>>>8&255,s[c++]=255&b,s[c++]=b>>>24&15|16,s[c++]=b>>>16&255,s[c++]=f>>>8|128,s[c++]=255&f;for(var m=0;m<6;++m)s[c+m]=d[m];return n||a(s)}},1171:(e,n,r)=>{var t=r(5217),o=r(5327);e.exports=function(e,n,r){var i=n&&r||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||t)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var l=0;l<16;++l)n[i+l]=a[l];return n||o(a)}},7685:e=>{"use strict";e.exports=o},4212:n=>{"use strict";n.exports=e},3511:e=>{"use strict";e.exports=i},311:e=>{"use strict";e.exports=r},642:e=>{"use strict";e.exports=a},8541:e=>{"use strict";e.exports=n},748:e=>{"use strict";e.exports=t}},u={};function c(e){var n=u[e];if(void 0!==n)return n.exports;var r=u[e]={exports:{}};return l[e](r,r.exports,c),r.exports}c.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return c.d(n,{a:n}),n},c.d=(e,n)=>{for(var r in n)c.o(n,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},c.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";c.r(s),c.d(s,{default:()=>w});var e=c(4212),n=c(8541),r=c.n(n),t=c(311),o=c.n(t),i=c(748),a=c(7685),l=c(3511),u=c.n(l),d={data:e.PropTypes.arrayOf(e.PropTypes.any).def([]),label:e.PropTypes.oneOfType([e.PropTypes.func.def(void 0),e.PropTypes.string.def("label")]),children:e.PropTypes.string.def("children"),indent:e.PropTypes.number.def(18),lineHeight:e.PropTypes.number.def(32),levelLine:e.PropTypes.oneOfType([e.PropTypes.bool.def(!1),e.PropTypes.func.def(void 0),e.PropTypes.string.def("1px dashed #c3cdd7")]).def(!1),virtualRender:e.PropTypes.bool.def(!1),prefixIcon:e.PropTypes.oneOfType([e.PropTypes.func.def((function(){})),e.PropTypes.bool.def(!1)]).def(!0),async:e.PropTypes.shape({callback:e.PropTypes.func.def(null),cache:e.PropTypes.bool.def(!0)}),offsetLeft:e.PropTypes.number.def(5)},f=c(642),p=c.n(f),v=c(5877),y=void 0,h="1px dashed #c3cdd7",_=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=e.data,a=e.children,l=[],u=0,c=new Map;function s(e,n,r,o){var i=(t||[]).find((function(n){return n.__uuid===e}));return i?i[o]:n[r]}function d(e,n){return s(e,n,"isOpen","__isOpen")}function f(e,n){return s(e,n,"checked","__checked")}function p(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=e.length,y=0;y<s;y++){var h=e[y];if(Array.isArray(h))p(h,n,t,i);else if("object"===r()(h)&&null!==h){var _=h.__uuid||(0,v.v4)(),b=null!==i?"".concat(i,"-").concat(y):"".concat(y),m=!!(h[a]||[]).length,g=o()({__depth:n,__index:y,__uuid:_,__parentId:t,__hasChild:m,__path:b,__isRoot:null===t,__order:u,__isOpen:d(_,h)&&m,__checked:f(_,h)},a,null);Object.assign(h,{__uuid:_}),c.set(_,g),u+=1,l.push(Object.assign(Object.assign({},h),o()({},a,null))),Object.prototype.hasOwnProperty.call(h,a)&&p(h[a]||[],n+1,_,b)}}}return p(n||i),[l,c]},b=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=e[n];return"boolean"==typeof a?a?t:o:m(r,e,n,i)},m=function(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=n[t];if("string"==typeof i)return"object"===r()(e)&&null!==e?(Object.prototype.hasOwnProperty.call(e,i)||console.error("cannot find node label with key ".concat(i)),e[i]):i;if("function"==typeof i){var a=i.apply(y,[e].concat(p()(o)));return"string"==typeof a?a:void console.error("props label with function return value is not string, please check and return string")}},g=function(e,n){return m(e,n,"label")},x=function(e,n){return e.get(n)||{}},N=function(e,n,r){var t;return null===(t=x(e,n))||void 0===t?void 0:t[r]},C=function(e,n){return{"--level-line":b(n,"levelLine",e,h,null,["tree"]),"--lineHeight":"".concat(n.lineHeight,"px"),"--indent":"".concat(n.indent,"px"),"--offset-left":"".concat(n.offsetLeft,"px")}},P=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},t=r.schema,o=N(t,e.__uuid,"__depth");return Object.assign({"--depth":o},"function"==typeof n.levelLine?{"--level-line":b(n,"levelLine",e,h,null,["node"])}:{})},O=function(e,n,r){var t=x(n,e.__uuid)||{};return{"is-root":t.__isRoot,"bk-tree-node":!0,"is-open":t.__isOpen,"is-virtual-render":r.virtualRender,"level-line":r.levelLine}},T=function(n,r){var t=(x(r,n.__uuid)||{}).__checked;return o()({"is-checked":t},(0,e.resolveClassName)("node-row"),!0)},j=function(e,n,r,t){var o=e.split("-").reduce((function(e,n){var t=Number(n);return Array.isArray(e)?e[t]:e[r][t]}),n);Object.assign(o,t||{})};const k=(0,i.defineComponent)({name:"Tree",props:d,emits:["check"],setup:function(n,t){var l=this.$createElement,u=_(n),c=[],s=(0,i.reactive)({data:u[0],schema:u[1],levelLineSchema:{}});(0,i.watch)((function(){return[n.data]}),(function(e){var r=_(n,e,d.value);s.data=r[0],s.schema=r[1]}),{deep:!0});var d=(0,i.computed)((function(){return Array.from(s.schema.values())})),f=function(e){return s.schema.get(e)},p=function(e,n){var r;return null===(r=f(e.__uuid))||void 0===r?void 0:r[n]},v=function(e,n,r){return s.schema.set(e.__uuid,Object.assign(Object.assign({},f(e.__uuid)),o()({},n,r)))},y=function(e){return p(e,"__path")},h=function(e){return p(e,"__isRoot")},b=function(e){return p(e,"__isOpen")},m=function(e){return p(e,"__hasChild")},g=(0,i.computed)((function(){return s.data.filter((function(e){return T(e)}))})),x=function(e){var n;return"object"===r()(e)?b(e):"string"==typeof e&&(null===(n=f(e))||void 0===n?void 0:n.__isOpen)},N=function(n){return x(n)?(0,i.createVNode)(a.FolderShapeOpen,{class:(0,e.resolveClassName)("tree-icon")},null):(0,i.createVNode)(a.Folder,{class:(0,e.resolveClassName)("tree-icon")},null)},C=function(e){if("string"==typeof e)return e;if("object"===r()(e)&&null!==e){if(e.__v_isVNode)return e;var n=e.node,t=e.className,o=e.text,i=e.style;return l(n,{class:t,style:i},o)}return null},P=function(e,t){if("object"===r()(e)&&null!==e){v(t,"__isOpen",!0);var i=Array.isArray(e)?e:[e];!function(e,n,r,t,i){j(e,n,r,o()({},t,i))}(y(t),n.data,n.children,n.children,i)}},O=function(e){if(e.async){var r=n.async||{},t=r.callback,o=void 0===t?null:t,i=r.cache,a=void 0===i||i;"function"!=typeof o||e.cached?console.error("async need to set prop: asyncLoad with function wich will return promise object"):(Object.assign(e,{loading:!0}),o(e,(function(n){return P(n,e)})).then((function(n){return P(n,e)})).catch((function(e){return console.error("load remote data error:",e)})).finally((function(){j(y(e),n.data,n.children,Object.assign({loading:!1},a?{cached:!0}:{}))})))}m(e)&&function(e){var n=!x(e);v(e,"__isOpen",n),n||g.value.filter((function(n){return String.prototype.startsWith.call(y(n),y(e))})).forEach((function(e){return v(e,"__isOpen",n)}))}(e)},T=function(e){return h(e)||x(e)||x(p(e,"__parentId"))},k=(0,i.ref)(),w=function(){var n;if(null===(n=k.value)||void 0===n?void 0:n.$el){var r=".".concat((0,e.resolveClassName)("tree-node")),t=".".concat((0,e.resolveClassName)("node-content"));Array.prototype.forEach.call(k.value.$el.querySelectorAll(r),(function(e){var n=e.querySelectorAll("".concat(t," span")),r=Array.prototype.slice.call(n,-1)[0];if(r){var o=e.offsetWidth-r.offsetLeft;r.style.setProperty("max-width","".concat(o,"px"))}}))}};return(0,i.onMounted)((function(){w()})),(0,i.onUpdated)((function(){w()})),{renderData:g,flatData:s,root:k,hanldeTreeNodeClick:O,handleNodeContentClick:function(e){c.includes(e.__uuid)||(c.forEach((function(e){return v({__uuid:e},"__checked",!1)})),c.length=0,v(e,"__checked",!0),c.push(e.__uuid),b(e)||O(e),t.emit("check",e,f(e.__uuid)))},handleNodeActionClick:function(e){O(e)},getActionIcon:function(e){var r=null;return"function"==typeof n.prefixIcon&&"default"!==(r=n.prefixIcon(h(e),m(e)||e.async,x(e),"action",e))?C(r):("default"===r||"boolean"==typeof n.prefixIcon&&n.prefixIcon)&&(m(e)||e.async)?x(e)?(0,i.createVNode)(a.DownShape,null,null):(0,i.createVNode)(a.RightShape,null,null):null},getRootIcon:N,getVirtualLines:function(e){if(!n.levelLine)return null;var r=p(e,"__depth")+1;return new Array(r).fill("").map((function(e,n){return n})).filter((function(n){return function(e,n){if(h(n))return!1;var r=y(n),t="".concat(r).split("-").slice(0,e+1);if(t.join("-")===r)return!0;var o=t.pop(),i=parseInt(o,10);t.push("".concat(i+1));var a=t.join("-");return d.value.some((function(e){return e.__path===a}))}(n,e)})).filter((function(e){return e>0})).map((function(e){return(0,i.createVNode)("span",{class:"node-virtual-line",style:(n=r-e,{"--depth":n})},null);var n}))},getNodePrefixIcon:function(r){var t=null;return"function"==typeof n.prefixIcon&&"default"!==(t=n.prefixIcon(h(r),m(r)||r.async,x(r),"node_type",r))?C(t):"default"===t||"boolean"==typeof n.prefixIcon&&n.prefixIcon?h(r)||m(r)?N(r):(0,i.createVNode)(a.TextFile,{class:(0,e.resolveClassName)("tree-icon")},null):null},getLoadingIcon:function(e){return e.loading?(0,i.createVNode)(a.Spinner,null,null):""}}},render:function(){var n=this,r=this.$props,t=function(t){return(0,i.createVNode)("div",{class:T(t,n.flatData.schema)},[(0,i.createVNode)("div",{class:O(t,n.flatData.schema,r),style:P(t,r,n.flatData)},[(0,i.createVNode)("span",{class:(0,e.resolveClassName)("node-action"),onClick:function(){return n.handleNodeActionClick(t)}},[n.getActionIcon(t)]),(0,i.createVNode)("span",{class:(0,e.resolveClassName)("node-content"),onClick:function(){return n.handleNodeContentClick(t)}},[[n.getNodePrefixIcon(t),n.getLoadingIcon(t)],(0,i.createVNode)("span",{class:(0,e.resolveClassName)("node-text")},[g(t,r)])]),n.getVirtualLines(t)])])};return(0,i.createVNode)(u(),{class:(0,e.resolveClassName)("tree"),style:C(null,r),list:this.renderData,lineHeight:r.lineHeight,enabled:r.virtualRender,contentClassName:(0,e.resolveClassName)("container"),throttleDelay:0,ref:"root"},{default:function(e){return(e.data||[]).map(t)}})}}),w=(0,e.withInstall)(k)})(),s})()));
|
package/lib/tree/tree.less
DELETED
@@ -1,63 +0,0 @@
|
|
1
|
-
@import '../styles/themes/themes.less';
|
2
|
-
.@{bk-prefix}-tree {
|
3
|
-
.@{bk-prefix}-node-row {
|
4
|
-
padding-left: calc(var(--offset-left));
|
5
|
-
|
6
|
-
&.is-checked {
|
7
|
-
background-color: #ebf2ff;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
.@{bk-prefix}-tree-node {
|
12
|
-
position: relative;
|
13
|
-
display: flex;
|
14
|
-
height: var(--lineHeight);
|
15
|
-
padding-left: 0;
|
16
|
-
line-height: var(--lineHeight);
|
17
|
-
cursor: pointer;
|
18
|
-
align-items: center;
|
19
|
-
|
20
|
-
&:not(.is-root) {
|
21
|
-
margin-left: calc(var(--depth)*var(--indent));
|
22
|
-
|
23
|
-
&.level-line {
|
24
|
-
&::before {
|
25
|
-
position: absolute;
|
26
|
-
top: calc(50% + 1px);
|
27
|
-
left: calc(0px - var(--indent) + 6px);
|
28
|
-
z-index: 1;
|
29
|
-
width: calc(var(--indent) - 6px);
|
30
|
-
height: 0;
|
31
|
-
pointer-events: none;
|
32
|
-
border-bottom: var(--level-line);
|
33
|
-
content: '';
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
.node-virtual-line {
|
39
|
-
position: absolute;
|
40
|
-
top: -12px;
|
41
|
-
bottom: 50%;
|
42
|
-
left: calc(var(--depth) * var(--indent) * -1 + 6px);
|
43
|
-
display: inline-block;
|
44
|
-
width: 0;
|
45
|
-
border-left: var(--level-line);
|
46
|
-
}
|
47
|
-
|
48
|
-
.@{bk-prefix}-tree-icon {
|
49
|
-
margin: 0 6px 0 4px;
|
50
|
-
}
|
51
|
-
|
52
|
-
.@{bk-prefix}-node-content {
|
53
|
-
display: inline-flex;
|
54
|
-
align-items: center;
|
55
|
-
|
56
|
-
.@{bk-prefix}-node-text {
|
57
|
-
overflow: hidden;
|
58
|
-
text-overflow: ellipsis;
|
59
|
-
white-space: nowrap;
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
@@ -1,143 +0,0 @@
|
|
1
|
-
:root {
|
2
|
-
--bk-prefix: bk;
|
3
|
-
--popover-max-height: 216px;
|
4
|
-
--primary-color: #3a84ff;
|
5
|
-
--success-color: #2dcb56;
|
6
|
-
--warning-color: #ff9c01;
|
7
|
-
--danger-color: #ea3636;
|
8
|
-
--default-color: #63656e;
|
9
|
-
--gray-color: #979ba5;
|
10
|
-
--light-gray: #c4c6cc;
|
11
|
-
--white-color: white;
|
12
|
-
--disable-color: #dcdee5;
|
13
|
-
--font-size-base: 12px;
|
14
|
-
--font-size-medium: 14px;
|
15
|
-
--font-size-large: 16px;
|
16
|
-
--line-height-base: 16px;
|
17
|
-
--line-height-medium: 16px;
|
18
|
-
--line-height-large: 18px;
|
19
|
-
--component-size-small: 26px;
|
20
|
-
--component-size-base: 32px;
|
21
|
-
--component-size-large: 38px;
|
22
|
-
--border-width-base: 1px;
|
23
|
-
--border-style-base: solid;
|
24
|
-
--border-radius-base: 2px;
|
25
|
-
--input-disabled-bg: #fafbfd;
|
26
|
-
--input-disabled-border: var(--disable-color);
|
27
|
-
--input-height-base: var(--component-size-base);
|
28
|
-
--input-color: var(--default-color);
|
29
|
-
--input-bg: white;
|
30
|
-
--input-border-color: var(--light-gray);
|
31
|
-
--input-broder-radius: 3px;
|
32
|
-
--input-shadow-color: #a3c5fd;
|
33
|
-
--input-horizontal-padding: 10px;
|
34
|
-
--input-block-color: #f4f6fa;
|
35
|
-
--input-icon-size: var(--font-size-large);
|
36
|
-
--input-maxlength-color: #979ba5;
|
37
|
-
--button-primary-hover-color: #5594fa;
|
38
|
-
--button-danger-hover-color: #ff5656;
|
39
|
-
--button-success-hover-color: #45e35f;
|
40
|
-
--button-warning-hover-color: #ffb848;
|
41
|
-
--button-default-hover-border-color: #979ba5;
|
42
|
-
--button-primary-active-color: #2c77f4;
|
43
|
-
--button-danger-active-color: #db2626;
|
44
|
-
--button-success-active-color: #1ab943;
|
45
|
-
--button-warning-active-color: #eb9000;
|
46
|
-
--fixed-navbar-background: #fff;
|
47
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
48
|
-
--switch-default-color: #fff;
|
49
|
-
--switch-grey-color: #c4c6cc;
|
50
|
-
--breadcrumb-black-color: #979ba5;
|
51
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
52
|
-
--breadcrumb-fn-main-color: #63656e;
|
53
|
-
--link-default-hover-color: #979ba5;
|
54
|
-
--link-primary-hover-color: #699df4;
|
55
|
-
--link-success-hover-color: #45e35f;
|
56
|
-
--link-warning-hover-color: #ffb848;
|
57
|
-
--link-danger-hover-color: #ff5656;
|
58
|
-
--link-default-disabled-color: #dcdee5;
|
59
|
-
--link-primary-disabled-color: #a3c5fd;
|
60
|
-
--link-success-disabled-color: #94f5a4;
|
61
|
-
--link-warning-disabled-color: #ffd695;
|
62
|
-
--link-danger-disabled-color: #fd9c9c;
|
63
|
-
--message-color: var(--default-color);
|
64
|
-
--message-primary-bg-color: #f0f8ff;
|
65
|
-
--message-primary-border-color: #e1ecff;
|
66
|
-
--message-warning-bg-color: #fff4e2;
|
67
|
-
--message-warning-border-color: #ffe8c3;
|
68
|
-
--message-success-bg-color: #f2fff4;
|
69
|
-
--message-success-border-color: #dcffe2;
|
70
|
-
--message-danger-bg-color: #ffeded;
|
71
|
-
--message-danger-border-color: #ffdddd;
|
72
|
-
--slider-default-bg: #dcdee5;
|
73
|
-
--slider-disable-bar-bg: #979ba5;
|
74
|
-
--menu-bg-color: #182132;
|
75
|
-
--submenu-bg-color: #151d2c;
|
76
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
77
|
-
--menu-color: #96a2b9;
|
78
|
-
--menu-group-color: var(--default-color);
|
79
|
-
--menu-width: 260px;
|
80
|
-
--menu-collapse-width: 60px;
|
81
|
-
--menu-active-color: white;
|
82
|
-
--nav-header-bg-color: #182132;
|
83
|
-
--nav-bg-color: #182132;
|
84
|
-
--date-picker-disabled-bg: #fafbfd;
|
85
|
-
--date-picker-dropdown-mb: 4px;
|
86
|
-
--date-picker-dropdown-bg: #fff;
|
87
|
-
--table-bg-color: var(--white-color);
|
88
|
-
--table-border-color: #dcdee5;
|
89
|
-
--table-head-bg-color: #fafbfd;
|
90
|
-
--table-head-font-color: #313238;
|
91
|
-
--table-body-font-color: #575961;
|
92
|
-
--table-row-hover-bg-color: #f5f7fa;
|
93
|
-
}
|
94
|
-
.bk-tree .bk-node-row {
|
95
|
-
padding-left: calc(var(--offset-left));
|
96
|
-
}
|
97
|
-
.bk-tree .bk-node-row.is-checked {
|
98
|
-
background-color: #ebf2ff;
|
99
|
-
}
|
100
|
-
.bk-tree .bk-tree-node {
|
101
|
-
position: relative;
|
102
|
-
display: flex;
|
103
|
-
height: var(--lineHeight);
|
104
|
-
padding-left: 0;
|
105
|
-
line-height: var(--lineHeight);
|
106
|
-
cursor: pointer;
|
107
|
-
align-items: center;
|
108
|
-
}
|
109
|
-
.bk-tree .bk-tree-node:not(.is-root) {
|
110
|
-
margin-left: calc(var(--depth)*var(--indent));
|
111
|
-
}
|
112
|
-
.bk-tree .bk-tree-node:not(.is-root).level-line::before {
|
113
|
-
position: absolute;
|
114
|
-
top: calc(50% + 1px);
|
115
|
-
left: calc(0px - var(--indent) + 6px);
|
116
|
-
z-index: 1;
|
117
|
-
width: calc(var(--indent) - 6px);
|
118
|
-
height: 0;
|
119
|
-
pointer-events: none;
|
120
|
-
border-bottom: var(--level-line);
|
121
|
-
content: '';
|
122
|
-
}
|
123
|
-
.bk-tree .bk-tree-node .node-virtual-line {
|
124
|
-
position: absolute;
|
125
|
-
top: -12px;
|
126
|
-
bottom: 50%;
|
127
|
-
left: calc(var(--depth) * var(--indent) * -1 + 6px);
|
128
|
-
display: inline-block;
|
129
|
-
width: 0;
|
130
|
-
border-left: var(--level-line);
|
131
|
-
}
|
132
|
-
.bk-tree .bk-tree-node .bk-tree-icon {
|
133
|
-
margin: 0 6px 0 4px;
|
134
|
-
}
|
135
|
-
.bk-tree .bk-tree-node .bk-node-content {
|
136
|
-
display: inline-flex;
|
137
|
-
align-items: center;
|
138
|
-
}
|
139
|
-
.bk-tree .bk-tree-node .bk-node-content .bk-node-text {
|
140
|
-
overflow: hidden;
|
141
|
-
text-overflow: ellipsis;
|
142
|
-
white-space: nowrap;
|
143
|
-
}
|
package/lib/tree/util.d.ts
DELETED
@@ -1,70 +0,0 @@
|
|
1
|
-
import { TreePropTypes } from './props';
|
2
|
-
/**
|
3
|
-
* 扁平化当前数据
|
4
|
-
* @param arrData
|
5
|
-
* @returns
|
6
|
-
*/
|
7
|
-
export declare const getFlatdata: (props: TreePropTypes, treeData?: Array<any>, cachedSchema?: any[]) => (any[] | Map<string, any>)[];
|
8
|
-
/**
|
9
|
-
* 获取当前节点显示Label
|
10
|
-
* @param item 当前节点
|
11
|
-
* @param props Props
|
12
|
-
*/
|
13
|
-
export declare const getLabel: (item: any, props: TreePropTypes) => any;
|
14
|
-
/**
|
15
|
-
* 根据Props获取Tree样式设置
|
16
|
-
* @param item
|
17
|
-
* @param props
|
18
|
-
* @returns
|
19
|
-
*/
|
20
|
-
export declare const getTreeStyle: (item: any, props: TreePropTypes) => {
|
21
|
-
'--level-line': any;
|
22
|
-
'--lineHeight': string;
|
23
|
-
'--indent': string;
|
24
|
-
'--offset-left': string;
|
25
|
-
};
|
26
|
-
/**
|
27
|
-
* 获取节点样式配置
|
28
|
-
* @param item
|
29
|
-
* @param props
|
30
|
-
* @returns
|
31
|
-
*/
|
32
|
-
export declare const getNodeItemStyle: any;
|
33
|
-
/**
|
34
|
-
* 获取当前渲染节点Class List
|
35
|
-
* @param item
|
36
|
-
* @returns
|
37
|
-
*/
|
38
|
-
export declare const getNodeItemClass: (item: any, schema: any, props: TreePropTypes) => {
|
39
|
-
'is-root': any;
|
40
|
-
'bk-tree-node': boolean;
|
41
|
-
'is-open': any;
|
42
|
-
'is-virtual-render': boolean;
|
43
|
-
'level-line': any;
|
44
|
-
};
|
45
|
-
/**
|
46
|
-
* 获取当前渲染节点Class List
|
47
|
-
* @param item
|
48
|
-
* @returns
|
49
|
-
*/
|
50
|
-
export declare const getNodeRowClass: (item: any, schema: any) => {
|
51
|
-
[x: string]: any;
|
52
|
-
'is-checked': any;
|
53
|
-
};
|
54
|
-
/**
|
55
|
-
* 根据路径更新指定节点Child-Data
|
56
|
-
* @param path 节点路径
|
57
|
-
* @param treeData Tree Data
|
58
|
-
* @param childKey Child Key
|
59
|
-
* @param nodekey 节点key
|
60
|
-
* @param nodeValue 节点值
|
61
|
-
*/
|
62
|
-
export declare const updateTreeNode: (path: string, treeData: any[], childKey: string, nodekey: string, nodeValue: any) => void;
|
63
|
-
/**
|
64
|
-
* 根据路径更新指定节点Child-Data
|
65
|
-
* @param path 节点路径
|
66
|
-
* @param treeData Tree Data
|
67
|
-
* @param childKey Child Key
|
68
|
-
* @param assignVal value
|
69
|
-
*/
|
70
|
-
export declare const assignTreeNode: (path: string, treeData: any[], childKey: string, assignVal: any) => void;
|
package/lib/use-form.d.ts
DELETED
package/lib/use-message.d.ts
DELETED