bkui-vue 0.0.1-beta.36 → 0.0.1-beta.39
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} +52 -39
- package/dist/index.umd.js +57 -0
- package/dist/style.css +1 -5868
- package/package.json +17 -29
- package/README_EN.md +0 -93
- package/dist/bkui-vue.cjs.js +0 -20339
- package/dist/bkui-vue.umd.js +0 -20342
- 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 -417
- package/lib/input/input.css +0 -150
- package/lib/input/input.d.ts +0 -237
- package/lib/input/input.js +0 -1
- package/lib/input/input.less +0 -165
- package/lib/input/input.variable.css +0 -243
- 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 -51
- 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 -81
- package/lib/table/table.css +0 -90
- package/lib/table/table.d.ts +0 -119
- package/lib/table/table.js +0 -1
- package/lib/table/table.less +0 -120
- package/lib/table/table.variable.css +0 -183
- 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 -40
- 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 -51
- package/lib/virtual-render/virtual-render.variable.css +0 -40
package/lib/tab/tab-nav.d.ts
DELETED
@@ -1,165 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
2
|
-
tabAdd: {
|
3
|
-
type: FunctionConstructor;
|
4
|
-
default: () => any;
|
5
|
-
};
|
6
|
-
tabChange: {
|
7
|
-
type: FunctionConstructor;
|
8
|
-
default: (name: string) => string;
|
9
|
-
};
|
10
|
-
tabRemove: {
|
11
|
-
type: FunctionConstructor;
|
12
|
-
default: (name: string) => string;
|
13
|
-
};
|
14
|
-
tabSort: {
|
15
|
-
type: FunctionConstructor;
|
16
|
-
default: () => any;
|
17
|
-
};
|
18
|
-
tabDrag: {
|
19
|
-
type: FunctionConstructor;
|
20
|
-
default: () => any;
|
21
|
-
};
|
22
|
-
active: import("vue-types").VueTypeDef<string | number> & {
|
23
|
-
default: string | number;
|
24
|
-
};
|
25
|
-
panels: {
|
26
|
-
type: import("vue").PropType<import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
27
|
-
[key: string]: any;
|
28
|
-
}>[]>;
|
29
|
-
default: () => any[];
|
30
|
-
};
|
31
|
-
closable: BooleanConstructor;
|
32
|
-
addable: BooleanConstructor;
|
33
|
-
sortable: BooleanConstructor;
|
34
|
-
sortType: import("vue-types").VueTypeDef<string> & {
|
35
|
-
default: string;
|
36
|
-
};
|
37
|
-
labelHeight: import("vue-types").VueTypeValidableDef<number> & {
|
38
|
-
default: number;
|
39
|
-
} & {
|
40
|
-
default: number;
|
41
|
-
};
|
42
|
-
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
43
|
-
default: number;
|
44
|
-
} & {
|
45
|
-
default: number;
|
46
|
-
};
|
47
|
-
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
48
|
-
default: boolean;
|
49
|
-
} & {
|
50
|
-
default: boolean;
|
51
|
-
};
|
52
|
-
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
53
|
-
default: boolean;
|
54
|
-
} & {
|
55
|
-
default: boolean;
|
56
|
-
};
|
57
|
-
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
58
|
-
default: number;
|
59
|
-
} & {
|
60
|
-
default: number;
|
61
|
-
};
|
62
|
-
}, {
|
63
|
-
navs: import("vue").ComputedRef<any[]>;
|
64
|
-
dragenterIndex: import("vue").Ref<number>;
|
65
|
-
dragStartIndex: import("vue").Ref<number>;
|
66
|
-
draggingEle: import("vue").Ref<string>;
|
67
|
-
guid: string;
|
68
|
-
}, unknown, {}, {
|
69
|
-
/**
|
70
|
-
* @description 判断拖动的元素是否是在同一个tab。
|
71
|
-
* 使用guid,相比 el1.parentNode === el2.parentNode 判断,性能要高
|
72
|
-
* @param el1 {string} 拖动的元素
|
73
|
-
* @param el2 {string} 触发的元素
|
74
|
-
* @return {boolean}
|
75
|
-
*/
|
76
|
-
distinctRoots(el1: string, el2: string): boolean;
|
77
|
-
handleTabAdd(e: MouseEvent): void;
|
78
|
-
dragstart(index: number, $event: DragEvent): void;
|
79
|
-
dragenter(index: any): void;
|
80
|
-
dragend(): void;
|
81
|
-
drop(index: any, sortType: any): false;
|
82
|
-
handleTabChange(name: string): void;
|
83
|
-
handleTabRemove(index: number, panel: any): void;
|
84
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
85
|
-
tabAdd: {
|
86
|
-
type: FunctionConstructor;
|
87
|
-
default: () => any;
|
88
|
-
};
|
89
|
-
tabChange: {
|
90
|
-
type: FunctionConstructor;
|
91
|
-
default: (name: string) => string;
|
92
|
-
};
|
93
|
-
tabRemove: {
|
94
|
-
type: FunctionConstructor;
|
95
|
-
default: (name: string) => string;
|
96
|
-
};
|
97
|
-
tabSort: {
|
98
|
-
type: FunctionConstructor;
|
99
|
-
default: () => any;
|
100
|
-
};
|
101
|
-
tabDrag: {
|
102
|
-
type: FunctionConstructor;
|
103
|
-
default: () => any;
|
104
|
-
};
|
105
|
-
active: import("vue-types").VueTypeDef<string | number> & {
|
106
|
-
default: string | number;
|
107
|
-
};
|
108
|
-
panels: {
|
109
|
-
type: import("vue").PropType<import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
110
|
-
[key: string]: any;
|
111
|
-
}>[]>;
|
112
|
-
default: () => any[];
|
113
|
-
};
|
114
|
-
closable: BooleanConstructor;
|
115
|
-
addable: BooleanConstructor;
|
116
|
-
sortable: BooleanConstructor;
|
117
|
-
sortType: import("vue-types").VueTypeDef<string> & {
|
118
|
-
default: string;
|
119
|
-
};
|
120
|
-
labelHeight: import("vue-types").VueTypeValidableDef<number> & {
|
121
|
-
default: number;
|
122
|
-
} & {
|
123
|
-
default: number;
|
124
|
-
};
|
125
|
-
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
126
|
-
default: number;
|
127
|
-
} & {
|
128
|
-
default: number;
|
129
|
-
};
|
130
|
-
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
131
|
-
default: boolean;
|
132
|
-
} & {
|
133
|
-
default: boolean;
|
134
|
-
};
|
135
|
-
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
136
|
-
default: boolean;
|
137
|
-
} & {
|
138
|
-
default: boolean;
|
139
|
-
};
|
140
|
-
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
141
|
-
default: number;
|
142
|
-
} & {
|
143
|
-
default: number;
|
144
|
-
};
|
145
|
-
}>>, {
|
146
|
-
closable: boolean;
|
147
|
-
active: string | number;
|
148
|
-
sortType: string;
|
149
|
-
tabAdd: Function;
|
150
|
-
tabChange: Function;
|
151
|
-
tabRemove: Function;
|
152
|
-
tabSort: Function;
|
153
|
-
tabDrag: Function;
|
154
|
-
panels: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
155
|
-
[key: string]: any;
|
156
|
-
}>[];
|
157
|
-
addable: boolean;
|
158
|
-
sortable: boolean;
|
159
|
-
labelHeight: number;
|
160
|
-
scrollStep: number;
|
161
|
-
validateActive: boolean;
|
162
|
-
changeOnHover: boolean;
|
163
|
-
changeOnHoverDelay: number;
|
164
|
-
}>;
|
165
|
-
export default _default;
|
package/lib/tab/tab-panel.d.ts
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
2
|
-
name: import("vue-types").VueTypeDef<string | number> & {
|
3
|
-
default: string | number;
|
4
|
-
};
|
5
|
-
label: (import("vue-types").VueTypeValidableDef<string> & {
|
6
|
-
default: string;
|
7
|
-
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
8
|
-
default: (...args: any[]) => any;
|
9
|
-
});
|
10
|
-
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
11
|
-
default: boolean;
|
12
|
-
};
|
13
|
-
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
14
|
-
default: boolean;
|
15
|
-
} & {
|
16
|
-
default: boolean;
|
17
|
-
};
|
18
|
-
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
19
|
-
default: boolean;
|
20
|
-
};
|
21
|
-
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
22
|
-
default: boolean;
|
23
|
-
};
|
24
|
-
renderDirective: import("vue-types").VueTypeDef<string> & {
|
25
|
-
default: string;
|
26
|
-
};
|
27
|
-
panel: (import("vue-types").VueTypeValidableDef<string> & {
|
28
|
-
default: string;
|
29
|
-
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
30
|
-
default: (...args: any[]) => any;
|
31
|
-
});
|
32
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
|
-
name: import("vue-types").VueTypeDef<string | number> & {
|
34
|
-
default: string | number;
|
35
|
-
};
|
36
|
-
label: (import("vue-types").VueTypeValidableDef<string> & {
|
37
|
-
default: string;
|
38
|
-
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
39
|
-
default: (...args: any[]) => any;
|
40
|
-
});
|
41
|
-
closable: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
|
-
default: boolean;
|
43
|
-
};
|
44
|
-
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
|
-
default: boolean;
|
46
|
-
} & {
|
47
|
-
default: boolean;
|
48
|
-
};
|
49
|
-
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
50
|
-
default: boolean;
|
51
|
-
};
|
52
|
-
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
53
|
-
default: boolean;
|
54
|
-
};
|
55
|
-
renderDirective: import("vue-types").VueTypeDef<string> & {
|
56
|
-
default: string;
|
57
|
-
};
|
58
|
-
panel: (import("vue-types").VueTypeValidableDef<string> & {
|
59
|
-
default: string;
|
60
|
-
}) | (import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
61
|
-
default: (...args: any[]) => any;
|
62
|
-
});
|
63
|
-
}>>, {
|
64
|
-
name: string | number;
|
65
|
-
label: string | ((...args: any[]) => any);
|
66
|
-
closable: boolean;
|
67
|
-
visible: boolean;
|
68
|
-
disabled: boolean;
|
69
|
-
panel: string | ((...args: any[]) => any);
|
70
|
-
sortable: boolean;
|
71
|
-
renderDirective: string;
|
72
|
-
}>;
|
73
|
-
export default _default;
|
package/lib/tab/tab.css
DELETED
@@ -1,148 +0,0 @@
|
|
1
|
-
.bk-tab {
|
2
|
-
position: relative;
|
3
|
-
display: flex;
|
4
|
-
width: 100%;
|
5
|
-
}
|
6
|
-
.bk-tab--top {
|
7
|
-
flex-direction: column;
|
8
|
-
}
|
9
|
-
.bk-tab--right {
|
10
|
-
flex-direction: row-reverse;
|
11
|
-
}
|
12
|
-
.bk-tab-header {
|
13
|
-
display: flex;
|
14
|
-
color: #63656e;
|
15
|
-
}
|
16
|
-
.bk-tab-header > div {
|
17
|
-
display: flex;
|
18
|
-
margin-bottom: -1px;
|
19
|
-
flex-wrap: nowrap;
|
20
|
-
}
|
21
|
-
.bk-tab--card .bk-tab-header > div,
|
22
|
-
.bk-tab--border-card .bk-tab-header > div {
|
23
|
-
border-right: 1px solid #dcdee5;
|
24
|
-
}
|
25
|
-
.bk-tab--top .bk-tab-header-nav {
|
26
|
-
overflow-x: auto;
|
27
|
-
overflow-y: visible;
|
28
|
-
}
|
29
|
-
.bk-tab--left .bk-tab-header-nav,
|
30
|
-
.bk-tab--right .bk-tab-header-nav {
|
31
|
-
overflow-x: visible;
|
32
|
-
overflow-y: auto;
|
33
|
-
}
|
34
|
-
.bk-tab--card .bk-tab-header-nav,
|
35
|
-
.bk-tab--border-card .bk-tab-header-nav {
|
36
|
-
border-left: 1px solid #dcdee5;
|
37
|
-
}
|
38
|
-
.bk-tab-header-nav::-webkit-scrollbar {
|
39
|
-
display: none;
|
40
|
-
width: 0;
|
41
|
-
height: 0;
|
42
|
-
}
|
43
|
-
.bk-tab-header-operation .bk-tab-header-item {
|
44
|
-
padding: 0 12px;
|
45
|
-
}
|
46
|
-
.bk-tab--left .bk-tab-header {
|
47
|
-
border-right: 1px solid #dcdee5;
|
48
|
-
}
|
49
|
-
.bk-tab--right .bk-tab-header {
|
50
|
-
border-left: 1px solid #dcdee5;
|
51
|
-
}
|
52
|
-
.bk-tab--left .bk-tab-header,
|
53
|
-
.bk-tab--right .bk-tab-header {
|
54
|
-
flex-direction: column;
|
55
|
-
}
|
56
|
-
.bk-tab--left .bk-tab-header > div,
|
57
|
-
.bk-tab--right .bk-tab-header > div {
|
58
|
-
flex-direction: column;
|
59
|
-
}
|
60
|
-
.bk-tab--card .bk-tab-header {
|
61
|
-
border-bottom: 1px solid #dcdee5;
|
62
|
-
}
|
63
|
-
.bk-tab--border-card .bk-tab-header {
|
64
|
-
background: #FAFBFD;
|
65
|
-
border: solid #dcdee5;
|
66
|
-
border-width: 1px 1px 1px 0;
|
67
|
-
}
|
68
|
-
.bk-tab--unborder-card .bk-tab-header {
|
69
|
-
border-bottom: 1px solid #dcdee5;
|
70
|
-
}
|
71
|
-
.bk-tab-header-item {
|
72
|
-
display: flex;
|
73
|
-
white-space: nowrap;
|
74
|
-
cursor: pointer;
|
75
|
-
justify-content: center;
|
76
|
-
align-items: center;
|
77
|
-
}
|
78
|
-
.bk-tab-header-item:hover {
|
79
|
-
color: #3a84ff;
|
80
|
-
}
|
81
|
-
.bk-tab-header-item:hover .bk-tab-header-item-close {
|
82
|
-
display: block;
|
83
|
-
margin-left: 5px;
|
84
|
-
color: #ea3636;
|
85
|
-
}
|
86
|
-
.bk-tab--top .bk-tab-header-item {
|
87
|
-
padding: 0 20px;
|
88
|
-
}
|
89
|
-
.bk-tab--left .bk-tab-header-item,
|
90
|
-
.bk-tab--right .bk-tab-header-item {
|
91
|
-
padding: 0 12px;
|
92
|
-
}
|
93
|
-
.bk-tab--left .bk-tab-header-item {
|
94
|
-
text-align: right;
|
95
|
-
}
|
96
|
-
.bk-tab--card .bk-tab-header-item {
|
97
|
-
border-top: 1px solid #dcdee5;
|
98
|
-
}
|
99
|
-
.bk-tab--card .bk-tab-header-item,
|
100
|
-
.bk-tab--border-card .bk-tab-header-item {
|
101
|
-
border-right: 1px solid #dcdee5;
|
102
|
-
border-bottom: 1px solid #dcdee5;
|
103
|
-
}
|
104
|
-
.bk-tab--card .bk-tab-header-item:last-of-type,
|
105
|
-
.bk-tab--border-card .bk-tab-header-item:last-of-type {
|
106
|
-
border-right: none;
|
107
|
-
}
|
108
|
-
.bk-tab-header-operation .bk-tab-header-item {
|
109
|
-
padding-right: 12px;
|
110
|
-
padding-left: 12px;
|
111
|
-
}
|
112
|
-
.bk-tab-header-item-close {
|
113
|
-
display: none;
|
114
|
-
font-size: 16px;
|
115
|
-
color: #c4c6cc;
|
116
|
-
}
|
117
|
-
.bk-tab-header--active {
|
118
|
-
color: #3a84ff;
|
119
|
-
}
|
120
|
-
.bk-tab--card .bk-tab-header--active,
|
121
|
-
.bk-tab--border-card .bk-tab-header--active {
|
122
|
-
border-bottom-color: white;
|
123
|
-
}
|
124
|
-
.bk-tab--unborder-card .bk-tab-header--active {
|
125
|
-
border-bottom: 2px solid #3a84ff;
|
126
|
-
}
|
127
|
-
.bk-tab--left .bk-tab-header--active {
|
128
|
-
border-right: 2px solid #3a84ff;
|
129
|
-
}
|
130
|
-
.bk-tab--right .bk-tab-header--active {
|
131
|
-
border-left: 2px solid #3a84ff;
|
132
|
-
}
|
133
|
-
.bk-tab-header--disabled {
|
134
|
-
color: #aaa;
|
135
|
-
pointer-events: none;
|
136
|
-
cursor: not-allowed;
|
137
|
-
}
|
138
|
-
.bk-tab-content {
|
139
|
-
flex: 1;
|
140
|
-
padding: 10px;
|
141
|
-
}
|
142
|
-
.bk-tab--border-card .bk-tab-content {
|
143
|
-
border: solid #dcdee5;
|
144
|
-
border-width: 0 1px 1px;
|
145
|
-
}
|
146
|
-
.bk-tab-panel {
|
147
|
-
height: 100%;
|
148
|
-
}
|
package/lib/tab/tab.d.ts
DELETED
@@ -1,140 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
2
|
-
active: import("vue-types").VueTypeDef<string | number> & {
|
3
|
-
default: string | number;
|
4
|
-
};
|
5
|
-
type: import("vue-types").VueTypeDef<string> & {
|
6
|
-
default: string;
|
7
|
-
};
|
8
|
-
tabPosition: import("vue-types").VueTypeDef<string> & {
|
9
|
-
default: string;
|
10
|
-
};
|
11
|
-
closable: BooleanConstructor;
|
12
|
-
addable: BooleanConstructor;
|
13
|
-
sortable: BooleanConstructor;
|
14
|
-
sortType: import("vue-types").VueTypeDef<string> & {
|
15
|
-
default: string;
|
16
|
-
};
|
17
|
-
labelHeight: import("vue-types").VueTypeValidableDef<number> & {
|
18
|
-
default: number;
|
19
|
-
} & {
|
20
|
-
default: number;
|
21
|
-
};
|
22
|
-
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
23
|
-
default: number;
|
24
|
-
} & {
|
25
|
-
default: number;
|
26
|
-
};
|
27
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
28
|
-
default: string;
|
29
|
-
} & {
|
30
|
-
default: string;
|
31
|
-
};
|
32
|
-
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
33
|
-
default: boolean;
|
34
|
-
} & {
|
35
|
-
default: boolean;
|
36
|
-
};
|
37
|
-
showHeader: import("vue-types").VueTypeValidableDef<boolean> & {
|
38
|
-
default: boolean;
|
39
|
-
} & {
|
40
|
-
default: boolean;
|
41
|
-
};
|
42
|
-
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
43
|
-
default: boolean;
|
44
|
-
} & {
|
45
|
-
default: boolean;
|
46
|
-
};
|
47
|
-
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
48
|
-
default: number;
|
49
|
-
} & {
|
50
|
-
default: number;
|
51
|
-
};
|
52
|
-
}, {
|
53
|
-
isMounted: import("vue").Ref<boolean>;
|
54
|
-
panels: import("vue").Ref<any[]>;
|
55
|
-
}, unknown, {}, {
|
56
|
-
tabAdd(e: MouseEvent): void;
|
57
|
-
tabChange(name: string): void;
|
58
|
-
tabRemove(index: number, panel: any): void;
|
59
|
-
tabSort(dragTabIndex: number, dropTabIndex: number, sortType: string): false;
|
60
|
-
tabDrag(dragTabIndex: number, dragEvent: DragEvent): void;
|
61
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "drag" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active" | "sort")[], "change" | "drag" | "sort" | "add" | "add-panel" | "tab-change" | "remove-panel" | "sort-change" | "on-drag-tab" | "remove" | "update:active", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
62
|
-
active: import("vue-types").VueTypeDef<string | number> & {
|
63
|
-
default: string | number;
|
64
|
-
};
|
65
|
-
type: import("vue-types").VueTypeDef<string> & {
|
66
|
-
default: string;
|
67
|
-
};
|
68
|
-
tabPosition: import("vue-types").VueTypeDef<string> & {
|
69
|
-
default: string;
|
70
|
-
};
|
71
|
-
closable: BooleanConstructor;
|
72
|
-
addable: BooleanConstructor;
|
73
|
-
sortable: BooleanConstructor;
|
74
|
-
sortType: import("vue-types").VueTypeDef<string> & {
|
75
|
-
default: string;
|
76
|
-
};
|
77
|
-
labelHeight: import("vue-types").VueTypeValidableDef<number> & {
|
78
|
-
default: number;
|
79
|
-
} & {
|
80
|
-
default: number;
|
81
|
-
};
|
82
|
-
scrollStep: import("vue-types").VueTypeValidableDef<number> & {
|
83
|
-
default: number;
|
84
|
-
} & {
|
85
|
-
default: number;
|
86
|
-
};
|
87
|
-
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
88
|
-
default: string;
|
89
|
-
} & {
|
90
|
-
default: string;
|
91
|
-
};
|
92
|
-
validateActive: import("vue-types").VueTypeValidableDef<boolean> & {
|
93
|
-
default: boolean;
|
94
|
-
} & {
|
95
|
-
default: boolean;
|
96
|
-
};
|
97
|
-
showHeader: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
|
-
default: boolean;
|
99
|
-
} & {
|
100
|
-
default: boolean;
|
101
|
-
};
|
102
|
-
changeOnHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
103
|
-
default: boolean;
|
104
|
-
} & {
|
105
|
-
default: boolean;
|
106
|
-
};
|
107
|
-
changeOnHoverDelay: import("vue-types").VueTypeValidableDef<number> & {
|
108
|
-
default: number;
|
109
|
-
} & {
|
110
|
-
default: number;
|
111
|
-
};
|
112
|
-
}>> & {
|
113
|
-
onDrag?: (...args: any[]) => any;
|
114
|
-
onChange?: (...args: any[]) => any;
|
115
|
-
onAdd?: (...args: any[]) => any;
|
116
|
-
"onAdd-panel"?: (...args: any[]) => any;
|
117
|
-
"onTab-change"?: (...args: any[]) => any;
|
118
|
-
"onRemove-panel"?: (...args: any[]) => any;
|
119
|
-
"onSort-change"?: (...args: any[]) => any;
|
120
|
-
"onOn-drag-tab"?: (...args: any[]) => any;
|
121
|
-
onRemove?: (...args: any[]) => any;
|
122
|
-
"onUpdate:active"?: (...args: any[]) => any;
|
123
|
-
onSort?: (...args: any[]) => any;
|
124
|
-
}, {
|
125
|
-
type: string;
|
126
|
-
closable: boolean;
|
127
|
-
extCls: string;
|
128
|
-
active: string | number;
|
129
|
-
showHeader: boolean;
|
130
|
-
sortType: string;
|
131
|
-
addable: boolean;
|
132
|
-
sortable: boolean;
|
133
|
-
labelHeight: number;
|
134
|
-
scrollStep: number;
|
135
|
-
validateActive: boolean;
|
136
|
-
changeOnHover: boolean;
|
137
|
-
changeOnHoverDelay: number;
|
138
|
-
tabPosition: string;
|
139
|
-
}>;
|
140
|
-
export default _default;
|
package/lib/tab/tab.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon/"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon/"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon/")):t(e["../shared"],e.vue,e["../icon/"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n)=>(()=>{"use strict";var a={7685:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return a[e](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{BkTab:()=>u,BkTabPanel:()=>c,default:()=>b});var e=o(4212),t=o(748),n={tabAdd:{type:Function,default:function(){return{}}},tabChange:{type:Function,default:function(e){return e}},tabRemove:{type:Function,default:function(e){return e}},tabSort:{type:Function,default:function(){return{}}},tabDrag:{type:Function,default:function(){return{}}}},a={active:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(""),type:e.PropTypes.commonType(["card","border-card","unborder-card"],"type").def("border-card"),tabPosition:e.PropTypes.commonType(["left","right","top"],"position").def("top"),closable:Boolean,addable:Boolean,sortable:Boolean,sortType:e.PropTypes.commonType(["replace","insert","top"],"sortType").def("replace"),labelHeight:e.PropTypes.number.def(50),scrollStep:e.PropTypes.number.def(200),extCls:e.PropTypes.string.def(""),validateActive:e.PropTypes.bool.def(!0),showHeader:e.PropTypes.bool.def(!0),changeOnHover:e.PropTypes.bool.def(!1),changeOnHoverDelay:e.PropTypes.number.def(1e3)},r=Object.assign({active:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(""),panels:{type:Array,default:function(){return[]}},closable:Boolean,addable:Boolean,sortable:Boolean,sortType:e.PropTypes.commonType(["replace","insert","top"],"sortType").def("replace"),labelHeight:e.PropTypes.number.def(50),scrollStep:e.PropTypes.number.def(200),validateActive:e.PropTypes.bool.def(!0),changeOnHover:e.PropTypes.bool.def(!1),changeOnHoverDelay:e.PropTypes.number.def(1e3)},n),s={name:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(""),label:e.PropTypes.string||e.PropTypes.func,closable:e.PropTypes.bool,visible:e.PropTypes.bool.def(!0),disabled:e.PropTypes.bool,sortable:e.PropTypes.bool,renderDirective:e.PropTypes.commonType(["if","show"],"render").def("show"),panel:e.PropTypes.string||e.PropTypes.func},l=o(7685);const d=(0,t.defineComponent)({name:"TabNav",props:r,setup:function(e){return{navs:(0,t.computed)((function(){if(!Array.isArray(e.panels)||!e.panels.length)return[];var n=[],a=!1;return e.panels.filter((function(r,o){if(!r.props)return null;var i=r.props,s=i.name,l=i.label,d=i.closable,p=i.visible,c=i.disabled,u=i.sortable;return!!p&&(e.active===s&&(a=!0),n.push({name:s,closable:d,visible:p,disabled:c,sortable:u,tabLabel:function(e){return r.slots.label?(0,t.h)(r.slots.label):[void 0,""].includes(e)?"选项卡".concat(o+1):"string"==typeof e?e:"function"==typeof e?(0,t.h)(e):e}(l)}),!0)})),!a&&e.validateActive&&e.panels[0].props&&e.tabChange(e.panels[0].props.name),n})),dragenterIndex:(0,t.ref)(-1),dragStartIndex:(0,t.ref)(-1),draggingEle:(0,t.ref)(""),guid:Math.random().toString(16).substr(4)+Math.random().toString(16).substr(4)}},methods:{distinctRoots:function(e,t){return e===t},handleTabAdd:function(e){this.tabAdd(e)},dragstart:function(e,t){this.dragStartIndex=e,this.draggingEle=this.guid,Object.assign(t.dataTransfer,{effectAllowed:"move"}),this.tabDrag(e,t)},dragenter:function(e){this.distinctRoots(this.draggingEle,this.guid)&&(this.dragenterIndex=e)},dragend:function(){this.dragenterIndex=-1,this.dragStartIndex=-1,this.draggingEle=null},drop:function(e,t){if(!this.distinctRoots(this.draggingEle,this.guid))return!1;this.tabSort(this.dragStartIndex,e,t)},handleTabChange:function(e){this.tabChange(e)},handleTabRemove:function(e,t){this.tabRemove(e,t)}},render:function(){var e=this,n=arguments[0],a=this.active,r=this.closable,o=this.addable,i=this.sortable,s=this.sortType,d=this.labelHeight,p=this.dragstart,c=this.dragenter,u=this.dragend,b=this.drop,f=function(){return e.navs.map((function(n,o){if(!n)return null;var d,f=n.name,h=n.disabled,v=n.tabLabel,g=function(e,t){return e||t};return(0,t.createVNode)("div",{key:f,onClick:function(){return e.handleTabChange(f)},draggable:g(n.sortable,i),onDragstart:function(e){return p(o,e)},onDragenter:function(e){e.preventDefault(),c(o)},onDragleave:function(e){e.preventDefault()},onDragover:function(e){e.preventDefault()},onDragend:function(e){e.preventDefault(),u()},onDrop:function(e){e.preventDefault(),b(o,s)},class:(d=["bk-tab-header-item"],h&&d.push("bk-tab-header--disabled"),a===f&&d.push("bk-tab-header--active"),d.join(" "))},[(0,t.createVNode)("div",null,[v]),g(n.closable,r)&&(0,t.createVNode)(l.Close,{class:"bk-tab-header-item-close",onClick:function(){return e.handleTabRemove(o,n)}},null)])}))},h=function(){var a,r,i,s,d=[];return"function"==typeof e.$slots.add?d.push(null===(r=(a=e.$slots).add)||void 0===r?void 0:r.call(a,n)):o&&d.push((0,t.createVNode)("div",{onClick:e.handleTabAdd},[(0,t.createVNode)(l.Plus,{width:26,height:26},null)])),"function"==typeof e.$slots.setting&&d.push(null===(s=(i=e.$slots).setting)||void 0===s?void 0:s.call(i,n)),d.length?(0,t.createVNode)("div",{class:"bk-tab-header-operation"},[d.map((function(e,n){return(0,t.createVNode)("div",{class:"bk-tab-header-item",key:n},[e])}))]):null};return(0,t.createVNode)("div",{style:{lineHeight:"".concat(d,"px")},class:"bk-tab-header"},[(0,t.createVNode)("div",{class:"bk-tab-header-nav"},[f()]),h()])}}),p=(0,t.defineComponent)({name:"Tab",components:{TabNav:d},props:a,emits:["add-panel","tab-change","remove-panel","sort-change","on-drag-tab","add","change","remove","update:active","sort","drag"],setup:function(e,n){var a=n.slots,r=(0,t.ref)(!1),o=(0,t.ref)([]),i=(0,t.getCurrentInstance)();"function"==typeof a.panel&&(o.value=a.panel()),"function"==typeof a.default&&(o.value=a.default());var s=function e(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=n.children;return(r||[]).forEach((function(n){var r=n.type;"TabPanel"===(r=r.name||r)&&n.component?a.push(n.component):r!==t.Fragment&&"template"!==r||e(n,a)})),a},l=function(){if(a.default){var e=i.subTree.children[1].children;if(!e)return;var t=e[0],n=s(t);(n.length!==o.value.length||!n.every((function(e,t){return e.uid===o.value[t].uid})))&&(o.value=n)}};return(0,t.onMounted)((function(){l(),r.value=!0})),(0,t.onUpdated)((function(){l()})),{isMounted:r,panels:o}},methods:{tabAdd:function(e){this.$emit("add",{e}),this.$emit("add-panel",{e})},tabChange:function(e){this.$emit("change",e),this.$emit("tab-change",e),this.$emit("update:active",e)},tabRemove:function(e,t){this.$emit("remove",e,t),this.$emit("remove-panel",e,t)},tabSort:function(e,t,n){if("insert"===n)if(e<t)this.panels.splice(t+1,0,this.panels[e]),this.panels.splice(e,1);else{if(!(e>t))return!1;this.panels.splice(t,0,this.panels[e]),this.panels.splice(e+1,1)}else{var a=this.panels[t];this.panels[t]=this.panels[e],this.panels[e]=a}this.$emit("sort",e,t,n),this.$emit("sort-change",e,t,n)},tabDrag:function(e,t){this.$emit("drag",e,t),this.$emit("on-drag-tab",e,t)}},render:function(){var e,n,a,r,o=this;return(0,t.createVNode)("div",{class:"top"===o.tabPosition?"bk-tab bk-tab--".concat(o.tabPosition," bk-tab--").concat(o.type," ").concat(o.extCls):"bk-tab bk-tab--".concat(o.tabPosition," ").concat(o.extCls)},[(a=o.panels,r={panels:a,active:o.active,type:o.type,closable:o.closable,addable:o.addable,sortable:o.sortable,sortType:o.sortType,labelHeight:o.labelHeight,scrollStep:o.scrollStep,validateActive:o.validateActive,changeOnHover:o.changeOnHover,changeOnHoverDelay:o.changeOnHoverDelay,tabAdd:o.tabAdd,tabChange:o.tabChange,tabRemove:o.tabRemove,tabSort:o.tabSort,tabDrag:o.tabDrag},a&&Array.isArray(a)?(0,t.createVNode)(d,r,o.$slots):null),(0,t.createVNode)("div",{class:"bk-tab-content"},[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])])}}),c=(0,t.defineComponent)({name:"TabPanel",props:s,render:function(){var e=this,n=arguments[0],a=this.name===this.$parent.active,r=function(){return!e.visible||"if"===e.renderDirective&&!a?null:"function"==typeof e.panel?e.panel(n):"function"==typeof e.$slots.default?e.$slots.default(null):"function"==typeof e.$slots.panel?e.$slots.panel(null):null};return(0,t.withDirectives)((0,t.createVNode)("div",{ref:"content",class:"bk-tab-panel"},[r()]),[[t.vShow,a]])}});var u=(0,e.withInstallProps)(p,{TabPanel:c});const b=u})(),i})()));
|