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/table/table.d.ts
DELETED
@@ -1,119 +0,0 @@
|
|
1
|
-
import { Column } from './props';
|
2
|
-
declare const _default: import("vue").DefineComponent<{
|
3
|
-
data: import("vue-types").VueTypeDef<any[]> & {
|
4
|
-
default: () => any[];
|
5
|
-
};
|
6
|
-
columns: import("vue-types").VueTypeDef<Column[]>;
|
7
|
-
activeColumn: import("vue-types").VueTypeDef<number | number[]>;
|
8
|
-
columnPick: import("vue-types").VueTypeDef<string> & {
|
9
|
-
default: string;
|
10
|
-
};
|
11
|
-
height: import("vue-types").VueTypeDef<string | number> & {
|
12
|
-
default: string | number;
|
13
|
-
};
|
14
|
-
minHeight: import("vue-types").VueTypeDef<string | number> & {
|
15
|
-
default: string | number;
|
16
|
-
};
|
17
|
-
rowHeight: import("vue-types").VueTypeDef<any> & {
|
18
|
-
default: any;
|
19
|
-
};
|
20
|
-
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
21
|
-
default: number;
|
22
|
-
} & {
|
23
|
-
default: number;
|
24
|
-
};
|
25
|
-
showHead: import("vue-types").VueTypeValidableDef<boolean> & {
|
26
|
-
default: boolean;
|
27
|
-
} & {
|
28
|
-
default: boolean;
|
29
|
-
};
|
30
|
-
virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
|
-
default: boolean;
|
32
|
-
} & {
|
33
|
-
default: boolean;
|
34
|
-
};
|
35
|
-
border: import("vue-types").VueTypeDef<string[]> & {
|
36
|
-
default: () => string[];
|
37
|
-
};
|
38
|
-
pagination: import("vue-types").VueTypeDef<boolean | {
|
39
|
-
[key: string]: any;
|
40
|
-
}> & {
|
41
|
-
default: boolean | (() => {
|
42
|
-
[key: string]: any;
|
43
|
-
});
|
44
|
-
};
|
45
|
-
remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
|
46
|
-
default: boolean;
|
47
|
-
} & {
|
48
|
-
default: boolean;
|
49
|
-
};
|
50
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick")[], "columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
51
|
-
data: import("vue-types").VueTypeDef<any[]> & {
|
52
|
-
default: () => any[];
|
53
|
-
};
|
54
|
-
columns: import("vue-types").VueTypeDef<Column[]>;
|
55
|
-
activeColumn: import("vue-types").VueTypeDef<number | number[]>;
|
56
|
-
columnPick: import("vue-types").VueTypeDef<string> & {
|
57
|
-
default: string;
|
58
|
-
};
|
59
|
-
height: import("vue-types").VueTypeDef<string | number> & {
|
60
|
-
default: string | number;
|
61
|
-
};
|
62
|
-
minHeight: import("vue-types").VueTypeDef<string | number> & {
|
63
|
-
default: string | number;
|
64
|
-
};
|
65
|
-
rowHeight: import("vue-types").VueTypeDef<any> & {
|
66
|
-
default: any;
|
67
|
-
};
|
68
|
-
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
69
|
-
default: number;
|
70
|
-
} & {
|
71
|
-
default: number;
|
72
|
-
};
|
73
|
-
showHead: import("vue-types").VueTypeValidableDef<boolean> & {
|
74
|
-
default: boolean;
|
75
|
-
} & {
|
76
|
-
default: boolean;
|
77
|
-
};
|
78
|
-
virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
79
|
-
default: boolean;
|
80
|
-
} & {
|
81
|
-
default: boolean;
|
82
|
-
};
|
83
|
-
border: import("vue-types").VueTypeDef<string[]> & {
|
84
|
-
default: () => string[];
|
85
|
-
};
|
86
|
-
pagination: import("vue-types").VueTypeDef<boolean | {
|
87
|
-
[key: string]: any;
|
88
|
-
}> & {
|
89
|
-
default: boolean | (() => {
|
90
|
-
[key: string]: any;
|
91
|
-
});
|
92
|
-
};
|
93
|
-
remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
|
94
|
-
default: boolean;
|
95
|
-
} & {
|
96
|
-
default: boolean;
|
97
|
-
};
|
98
|
-
}>> & {
|
99
|
-
onColumnPick?: (...args: any[]) => any;
|
100
|
-
onPageLimitChange?: (...args: any[]) => any;
|
101
|
-
onPageValueChange?: (...args: any[]) => any;
|
102
|
-
onRowClick?: (...args: any[]) => any;
|
103
|
-
onRowDblClick?: (...args: any[]) => any;
|
104
|
-
}, {
|
105
|
-
height: string | number;
|
106
|
-
data: any[];
|
107
|
-
minHeight: string | number;
|
108
|
-
border: string[];
|
109
|
-
headHeight: number;
|
110
|
-
pagination: boolean | {
|
111
|
-
[key: string]: any;
|
112
|
-
};
|
113
|
-
columnPick: string;
|
114
|
-
rowHeight: any;
|
115
|
-
showHead: boolean;
|
116
|
-
virtualEnabled: boolean;
|
117
|
-
remotePagination: boolean;
|
118
|
-
}>;
|
119
|
-
export default _default;
|
package/lib/table/table.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("@babel/runtime/helpers/defineProperty"),require("vue"),require("../virtual-render"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("../pagination"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("lodash"));else if("function"==typeof define&&define.amd)define(["../shared","@babel/runtime/helpers/defineProperty","vue","../virtual-render","@babel/runtime/helpers/classCallCheck","@babel/runtime/helpers/createClass","../pagination","@babel/runtime/helpers/typeof","@babel/runtime/helpers/toConsumableArray","lodash"],t);else{var r="object"==typeof exports?t(require("../shared"),require("@babel/runtime/helpers/defineProperty"),require("vue"),require("../virtual-render"),require("@babel/runtime/helpers/classCallCheck"),require("@babel/runtime/helpers/createClass"),require("../pagination"),require("@babel/runtime/helpers/typeof"),require("@babel/runtime/helpers/toConsumableArray"),require("lodash")):t(e["../shared"],e["@babel/runtime/helpers/defineProperty"],e.vue,e["../virtual-render"],e["@babel/runtime/helpers/classCallCheck"],e["@babel/runtime/helpers/createClass"],e["../pagination"],e["@babel/runtime/helpers/typeof"],e["@babel/runtime/helpers/toConsumableArray"],e.lodash);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,a,i,l,s,c)=>(()=>{"use strict";var u={5801:e=>{e.exports=i},4212:t=>{t.exports=e},3511:e=>{e.exports=n},3162:e=>{e.exports=o},5111:e=>{e.exports=a},311:e=>{e.exports=t},642:e=>{e.exports=s},8541:e=>{e.exports=l},467:e=>{e.exports=c},748:e=>{e.exports=r}},p={};function d(e){var t=p[e];if(void 0!==t)return t.exports;var r=p[e]={exports:{}};return u[e](r,r.exports,d),r.exports}d.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return d.d(t,{a:t}),t},d.d=(e,t)=>{for(var r in t)d.o(t,r)&&!d.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},d.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),d.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return(()=>{d.r(f),d.d(f,{default:()=>q});var e=d(4212),t=d(311),r=d.n(t),n=d(748),o=d(3511),a=d.n(o),i=["none","row","col","outer"],l={data:e.PropTypes.arrayOf(e.PropTypes.any).def([]),columns:e.PropTypes.arrayOf(e.PropTypes.shape({label:e.PropTypes.oneOfType([e.PropTypes.func.def((function(){return""})),e.PropTypes.string.def("")]),field:e.PropTypes.oneOfType([e.PropTypes.func.def((function(){return""})),e.PropTypes.string.def("")]),render:e.PropTypes.oneOfType([e.PropTypes.func.def((function(){return""})),e.PropTypes.string.def("")]),width:e.PropTypes.oneOfType([e.PropTypes.number.def(void 0),e.PropTypes.string.def("auto")])})),activeColumn:e.PropTypes.oneOfType([e.PropTypes.number.def(-1),e.PropTypes.arrayOf(e.PropTypes.number.def(-1))]),columnPick:e.PropTypes.commonType(["multi","single","disabled"],"columnPick").def("disabled"),height:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def("auto"),minHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def("auto"),rowHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.func]).def(40),headHeight:e.PropTypes.number.def(40),showHead:e.PropTypes.bool.def(!0),virtualEnabled:e.PropTypes.bool.def(!1),border:e.PropTypes.arrayOf(e.PropTypes.commonType(i,"border")).def(["row"]),pagination:e.PropTypes.oneOfType([e.PropTypes.bool.def(!1),e.PropTypes.object.def({})]).def(!1),remotePagination:e.PropTypes.bool.def(!1)},s=d(3162),c=d.n(s),u=d(5111),p=d.n(u),h=d(5801),v=d.n(h),m=p()((function e(t,r){c()(this,e),this.props=null,this.ctx=null,this.props=t,this.ctx=r})),b=d(8541),y=d.n(b),g=d(642),C=d.n(g),P=d(467),T=void 0,k=function(e,t,r){var n;if(Object.prototype.hasOwnProperty.call(e,t))return"function"==typeof e[t]?(n=e[t]).call.apply(n,[T].concat(C()(r))):e[t]},x=function(e){return"disabled"!==e.columnPick?"multi"===e.columnPick?Array.isArray(e.activeColumn)?e.activeColumn:O(e.activeColumn):Array.isArray(e.activeColumn)?O(e.activeColumn[0]):O(e.activeColumn):[]},O=function(e){return/^\d+$/.test("".concat(e))?[parseInt("".concat(e),10)]:[]},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="";return n=/^auto|null|undefined$/gi.test("".concat(e))?t:/^\d+\.?\d+$/.test("".concat(e))?"".concat(e,"px"):e,r&&(n="calc(".concat(n," - ").concat(r,")")),n},j=function(e,t){if(e){if("object"===y()(e)){var r=Object.prototype.hasOwnProperty.call(e,"current")?e.current:e.value;return/\d+/.test(r)||(r=1),Object.assign(Object.assign(Object.assign({},t),e),{current:r})}return t}return{}},N=function(){function t(e,r,n,o){c()(this,t),this.props=e,this.context=r,this.reactiveProp=n,this.colgroups=o,this.plugins=new m(e,r)}return p()(t,[{key:"propActiveCols",get:function(){return this.reactiveProp.activeColumns}},{key:"renderTableHeadSchema",value:function(){return this.$createElement,(0,n.createVNode)("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderHeader()])}},{key:"renderTableBodySchema",value:function(e){return this.$createElement,(0,n.createVNode)("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderTBody(e)])}},{key:"renderTableFooter",value:function(e){var t=this;return this.$createElement,(0,n.createVNode)(v(),(0,n.mergeProps)(e,{modelValue:e.current,onLimitChange:function(e){return t.handlePageLimitChange(e)},onChange:function(e){return t.hanlePageChange(e)}}),null)}},{key:"handlePageLimitChange",value:function(e){Object.assign(this.props.pagination,{limit:e}),this.context.emit("pageLimitChange",e)}},{key:"hanlePageChange",value:function(e){Object.assign(this.props.pagination,{current:e,value:e}),this.context.emit("pageValueChange",e)}},{key:"setColumnActive",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.propActiveCols.find((function(t){return t.index===e}));Object.assign(r,{active:!r.active}),t&&this.propActiveCols.filter((function(t){return t.index!==e&&t.active})).forEach((function(e){Object.assign(e,{active:!1})}))}},{key:"handleColumnHeadClick",value:function(e){"disabled"!==this.props.columnPick&&(this.setColumnActive(e,"single"===this.props.columnPick),this.context.emit("column-pick",this.propActiveCols))}},{key:"renderHeader",value:function(){var t=this,r=(this.$createElement,{"--row-height":"".concat(k(this.props,"headHeight",["thead"]),"px")});return(0,n.createVNode)("thead",{style:r},[(0,n.createVNode)("tr",null,[this.props.columns.map((function(r,o){return(0,n.createVNode)("th",{colspan:1,rowspan:1,class:(0,e.classes)({active:t.isColActive(o)}),onClick:function(){return t.handleColumnHeadClick(o)}},[(0,n.createVNode)("div",{class:"cell"},[k(r,"label",[r])])])}))])])}},{key:"renderTBody",value:function(e){var t=this;return this.$createElement,(0,n.createVNode)("tbody",null,[e.map((function(r,o){var a={"--row-height":"".concat(k(t.props,"rowHeight",["tbody",r,o]),"px")};return(0,n.createVNode)("tr",{style:a,onClick:function(n){return t.handleRowClick(n,r,o,e)},onDblclick:function(n){return t.handleRowDblClick(n,r,o,e)}},[t.props.columns.map((function(a){return(0,n.createVNode)("td",{colspan:1,rowspan:1},[(0,n.createVNode)("div",{class:"cell"},[t.renderCell(r,a,o,e)])])}))])}))])}},{key:"handleRowClick",value:function(e,t,r,n){this.context.emit("rowClick",e,t,r,n,this)}},{key:"handleRowDblClick",value:function(e,t,r,n){this.context.emit("rowDblClick",e,t,r,n,this)}},{key:"renderCell",value:function(e,t,r,n){var o=e[k(t,"field",[t,e])];return"function"==typeof t.render?t.render(o,e,r,n):o}},{key:"isColActive",value:function(e){return"disabled"!==this.props.columnPick&&this.propActiveCols.some((function(t){return t.index===e&&t.active}))}},{key:"renderColGroup",value:function(){var t=this;return this.$createElement,(0,n.createVNode)("colgroup",null,[(this.colgroups||[]).map((function(r,o){var a,i=(0,e.classes)({active:t.isColActive(o)}),l={width:(a=r.calcWidth,w(a,"auto"))};return(0,n.createVNode)("col",{class:i,style:l},null)}))])}}]),t}();const V=(0,n.defineComponent)({name:"Table",props:l,emits:["columnPick","rowClick","rowDblClick","pageLimitChange","pageValueChange"],setup:function(t,o){this.$createElement;var l=(0,n.reactive)(x(t)),s=(0,n.reactive)(t.columns.map((function(e){return Object.assign(Object.assign({},e),{calcWidth:null})}))),c=(0,n.ref)(0),u=(0,n.ref)(0),p=(0,n.reactive)({count:0,limit:10,current:1});p=j(t.pagination,p);var d=function(){if(!t.pagination||t.remotePagination)return c.value=0,void(u.value=t.data.length);c.value=(p.current-1)*p.limit,u.value=p.current*p.limit};d();var f=null,h=(0,n.ref)(),v=function(){return(t.columns||[]).map((function(e,t){return{index:t,active:l.some((function(e){return e===t})),_column:e}}))},m=(0,n.reactive)({activeColumns:v(),scrollTranslateY:0});(0,n.watch)((function(){return[t.activeColumn,t.columns]}),(function(){(0,n.nextTick)((function(){m.activeColumns=v();var e=x(t);m.activeColumns.forEach((function(t,r){Object.assign(t,{active:e.some((function(e){return e===r}))})}))}))}),{deep:!0});var b=new N(t,o,m,s),y=(0,n.computed)((function(){return{minHeight:w(t.minHeight,"auto")}}));(0,n.watchEffect)((function(){p=j(t.pagination,p),d()}));var g=(0,n.computed)((function(){return t.data.slice(c.value,u.value)})),T=(0,n.computed)((function(){return t.pagination?t.remotePagination?p:Object.assign(Object.assign({},p),{count:t.data.length}):null})),k=(0,n.computed)((function(){var e,r=w(t.height),n=t.showHead?w(t.headHeight):"0",o=(e=t.height,!/^\d+\.?\d*(px|%)?$/.test("".concat(e))),a=t.pagination?40:0,i="calc(".concat(r," - ").concat(n," - ").concat(a,"px - 2px)");return Object.assign({display:"block"},o?{maxHeight:i}:{height:i})})),O=(0,n.computed)((function(){return(0,e.classes)(r()({},(0,e.resolveClassName)("table"),!0),(o=["row"],"string"==typeof(n=t.border)&&o.push(n),Array.isArray(n)&&o.push.apply(o,C()(n.filter((function(e){return i.includes(e)})))),C()(new Set(o)).map((function(e){return"bordered-".concat(e)})).join(" ")));var n,o})),V=(0,e.classes)(r()({},(0,e.resolveClassName)("table-head"),!0)),q=(0,e.classes)(r()({},(0,e.resolveClassName)("table-body"),!0)),A=(0,e.classes)(r()({},(0,e.resolveClassName)("table-footer"),!0)),H=function(e){var t=e[1];m.scrollTranslateY=t.translateY};return(0,n.onMounted)((function(){f=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(0,P.throttle)((function(){"function"==typeof t&&t()}),r),a=new ResizeObserver((function(){o()}));return n&&"function"==typeof t&&t(),{start:function(){a.observe(e)},stop:function(){a.disconnect(),a.unobserve(e)}}}(h.value,(function(){!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,n=(e.getBoundingClientRect()||{}).width,o=[],a=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object.assign(e,{calcWidth:t}),r&&(n-=t)<0&&(n=0)};if(t.forEach((function(e,t){var i=String(e.width),l=!0;if(/^\d+\.?\d*(px)?$/.test(i)){var s=Number(i.replace("px",""));a(e,s),l=!1}if(/^\d+\.?\d*%$/.test(i)){var c=r;if(n>0){var u=Number(i.replace("%",""));c=n*u/100}a(e,c),l=!1}l&&o.push(t)})),o.length>0){var i=r;n>0&&(i=n/o.length,o.forEach((function(e){return a(t[e],i,!1)})))}}(h.value,s,20)}),60,!0),f.start()})),(0,n.onBeforeUnmount)((function(){f.stop(),f=null})),o.expose({plugins:b.plugins}),function(){return(0,n.createVNode)("div",{class:O.value,style:y.value,ref:h},[(0,n.createVNode)("div",{class:V},[t.showHead&&b.renderTableHeadSchema()]),(0,n.createVNode)(a(),{lineHeight:t.rowHeight,class:q,style:k.value,list:g.value,onContentScroll:H,throttleDelay:0,enabled:t.virtualEnabled},{default:function(e){return b.renderTableBodySchema(e.data||t.data)},afterContent:function(){return(0,n.createVNode)("div",{class:(0,e.resolveClassName)("table-fixed")},null)}}),(0,n.createVNode)("div",{class:A},[t.pagination&&b.renderTableFooter(T.value)])])}}}),q=(0,e.withInstall)(V)})(),f})()));
|
package/lib/table/table.less
DELETED
@@ -1,120 +0,0 @@
|
|
1
|
-
@import '../styles/themes/themes.less';
|
2
|
-
|
3
|
-
.@{bk-prefix}-table {
|
4
|
-
height: 100%;
|
5
|
-
overflow: hidden;
|
6
|
-
border-top: 1px solid @table-border-color;
|
7
|
-
border-bottom: 1px solid @table-border-color;
|
8
|
-
.@{bk-prefix}-table-body {
|
9
|
-
overflow: auto;
|
10
|
-
}
|
11
|
-
|
12
|
-
.@{bk-prefix}-table-head,
|
13
|
-
.@{bk-prefix}-table-body {
|
14
|
-
background: @table-bg-color;
|
15
|
-
|
16
|
-
table {
|
17
|
-
width: 100%;
|
18
|
-
border-collapse: collapse;
|
19
|
-
|
20
|
-
th,
|
21
|
-
td {
|
22
|
-
min-width: 80px;
|
23
|
-
|
24
|
-
.cell {
|
25
|
-
height: var(--row-height);
|
26
|
-
padding: 0 15px;
|
27
|
-
overflow: hidden;
|
28
|
-
line-height: var(--row-height);
|
29
|
-
color: @table-body-font-color;
|
30
|
-
text-align: left;
|
31
|
-
text-overflow: ellipsis;
|
32
|
-
white-space: nowrap;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
thead {
|
37
|
-
th {
|
38
|
-
position: sticky;
|
39
|
-
top: 0;
|
40
|
-
z-index: 1;
|
41
|
-
color: @table-head-font-color;
|
42
|
-
background-color: @table-head-bg-color;
|
43
|
-
|
44
|
-
&.active,
|
45
|
-
&:hover {
|
46
|
-
background: #f0f1f5;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
}
|
50
|
-
|
51
|
-
tbody {
|
52
|
-
tr {
|
53
|
-
&:hover {
|
54
|
-
td {
|
55
|
-
background: @table-row-hover-bg-color;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
|
63
|
-
.@{bk-prefix}-table-footer {
|
64
|
-
line-height: 40px;
|
65
|
-
}
|
66
|
-
|
67
|
-
&.bordered-row {
|
68
|
-
.cell {
|
69
|
-
border-bottom: 1px solid @table-border-color;
|
70
|
-
}
|
71
|
-
}
|
72
|
-
|
73
|
-
&.bordered-outer {
|
74
|
-
border-right: 1px solid @table-border-color;
|
75
|
-
border-left: 1px solid @table-border-color;
|
76
|
-
}
|
77
|
-
|
78
|
-
&.bordered-col {
|
79
|
-
th,
|
80
|
-
td {
|
81
|
-
.cell {
|
82
|
-
border-right: 1px solid @table-border-color;
|
83
|
-
}
|
84
|
-
|
85
|
-
&:last-child {
|
86
|
-
.cell {
|
87
|
-
border-right: none;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
}
|
93
|
-
|
94
|
-
&.bordered-none {
|
95
|
-
th,
|
96
|
-
td {
|
97
|
-
.cell {
|
98
|
-
border-top: none;
|
99
|
-
border-right: none;
|
100
|
-
border-bottom: none;
|
101
|
-
border-left: none;
|
102
|
-
}
|
103
|
-
}
|
104
|
-
}
|
105
|
-
|
106
|
-
.@{bk-prefix}-table-fixed {
|
107
|
-
width: 100%;
|
108
|
-
}
|
109
|
-
|
110
|
-
colgroup {
|
111
|
-
col {
|
112
|
-
background: @table-bg-color;
|
113
|
-
|
114
|
-
&.active {
|
115
|
-
position: relative;
|
116
|
-
background: #f0f1f5;
|
117
|
-
}
|
118
|
-
}
|
119
|
-
}
|
120
|
-
}
|
@@ -1,183 +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-table {
|
95
|
-
height: 100%;
|
96
|
-
overflow: hidden;
|
97
|
-
border-top: 1px solid var(--table-border-color);
|
98
|
-
border-bottom: 1px solid var(--table-border-color);
|
99
|
-
}
|
100
|
-
.bk-table .bk-table-body {
|
101
|
-
overflow: auto;
|
102
|
-
}
|
103
|
-
.bk-table .bk-table-head,
|
104
|
-
.bk-table .bk-table-body {
|
105
|
-
background: var(--table-bg-color);
|
106
|
-
}
|
107
|
-
.bk-table .bk-table-head table,
|
108
|
-
.bk-table .bk-table-body table {
|
109
|
-
width: 100%;
|
110
|
-
border-collapse: collapse;
|
111
|
-
}
|
112
|
-
.bk-table .bk-table-head table th,
|
113
|
-
.bk-table .bk-table-body table th,
|
114
|
-
.bk-table .bk-table-head table td,
|
115
|
-
.bk-table .bk-table-body table td {
|
116
|
-
min-width: 80px;
|
117
|
-
}
|
118
|
-
.bk-table .bk-table-head table th .cell,
|
119
|
-
.bk-table .bk-table-body table th .cell,
|
120
|
-
.bk-table .bk-table-head table td .cell,
|
121
|
-
.bk-table .bk-table-body table td .cell {
|
122
|
-
height: var(--row-height);
|
123
|
-
padding: 0 15px;
|
124
|
-
overflow: hidden;
|
125
|
-
line-height: var(--row-height);
|
126
|
-
color: var(--table-body-font-color);
|
127
|
-
text-align: left;
|
128
|
-
text-overflow: ellipsis;
|
129
|
-
white-space: nowrap;
|
130
|
-
}
|
131
|
-
.bk-table .bk-table-head table thead th,
|
132
|
-
.bk-table .bk-table-body table thead th {
|
133
|
-
position: sticky;
|
134
|
-
top: 0;
|
135
|
-
z-index: 1;
|
136
|
-
color: var(--table-head-font-color);
|
137
|
-
background-color: var(--table-head-bg-color);
|
138
|
-
}
|
139
|
-
.bk-table .bk-table-head table thead th.active,
|
140
|
-
.bk-table .bk-table-body table thead th.active,
|
141
|
-
.bk-table .bk-table-head table thead th:hover,
|
142
|
-
.bk-table .bk-table-body table thead th:hover {
|
143
|
-
background: #f0f1f5;
|
144
|
-
}
|
145
|
-
.bk-table .bk-table-head table tbody tr:hover td,
|
146
|
-
.bk-table .bk-table-body table tbody tr:hover td {
|
147
|
-
background: var(--table-row-hover-bg-color);
|
148
|
-
}
|
149
|
-
.bk-table .bk-table-footer {
|
150
|
-
line-height: 40px;
|
151
|
-
}
|
152
|
-
.bk-table.bordered-row .cell {
|
153
|
-
border-bottom: 1px solid var(--table-border-color);
|
154
|
-
}
|
155
|
-
.bk-table.bordered-outer {
|
156
|
-
border-right: 1px solid var(--table-border-color);
|
157
|
-
border-left: 1px solid var(--table-border-color);
|
158
|
-
}
|
159
|
-
.bk-table.bordered-col th .cell,
|
160
|
-
.bk-table.bordered-col td .cell {
|
161
|
-
border-right: 1px solid var(--table-border-color);
|
162
|
-
}
|
163
|
-
.bk-table.bordered-col th:last-child .cell,
|
164
|
-
.bk-table.bordered-col td:last-child .cell {
|
165
|
-
border-right: none;
|
166
|
-
}
|
167
|
-
.bk-table.bordered-none th .cell,
|
168
|
-
.bk-table.bordered-none td .cell {
|
169
|
-
border-top: none;
|
170
|
-
border-right: none;
|
171
|
-
border-bottom: none;
|
172
|
-
border-left: none;
|
173
|
-
}
|
174
|
-
.bk-table .bk-table-fixed {
|
175
|
-
width: 100%;
|
176
|
-
}
|
177
|
-
.bk-table colgroup col {
|
178
|
-
background: var(--table-bg-color);
|
179
|
-
}
|
180
|
-
.bk-table colgroup col.active {
|
181
|
-
position: relative;
|
182
|
-
background: #f0f1f5;
|
183
|
-
}
|
package/lib/table/utils.d.ts
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
import { GroupColumn, TablePropTypes } from './props';
|
2
|
-
/**
|
3
|
-
* 解析Prop值 | 可能为多种类型 & 函数返回的场景
|
4
|
-
* @param prop 当前Prop
|
5
|
-
* @param key 要处理的Key
|
6
|
-
* @param args 如果是函数,传递参数
|
7
|
-
* @returns
|
8
|
-
*/
|
9
|
-
export declare const resolvePropVal: (prop: any, key: string, args: any[]) => any;
|
10
|
-
/**
|
11
|
-
* 处理Props中的ActiveColumn,解析为统一的数组格式
|
12
|
-
* @param props
|
13
|
-
* @returns
|
14
|
-
*/
|
15
|
-
export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
|
16
|
-
/**
|
17
|
-
* 统一处理数字类型参数
|
18
|
-
* @param prop
|
19
|
-
* @returns
|
20
|
-
*/
|
21
|
-
export declare const resolveNumberToNumArray: (prop: number) => number[];
|
22
|
-
export declare const resolveWidth: (propWidth: string | number) => string | number;
|
23
|
-
/**
|
24
|
-
* 解析可为数字或者字符串设置的样式配置
|
25
|
-
* @param val 配置值
|
26
|
-
* @param defaultValue 默认值
|
27
|
-
* @param offset 偏移量
|
28
|
-
* @returns 标准化px string
|
29
|
-
*/
|
30
|
-
export declare const resolveNumberOrStringToPix: (val: string | number, defaultValue?: string | number, offset?: any) => string | number;
|
31
|
-
/**
|
32
|
-
* 格式化Border配置为标准Class
|
33
|
-
* @param val
|
34
|
-
* @returns
|
35
|
-
*/
|
36
|
-
export declare const resolvePropBorderToClassStr: (val: string | string[]) => string;
|
37
|
-
/**
|
38
|
-
* 根据Props Column配置计算并设置列宽度
|
39
|
-
* @param root 当前根元素
|
40
|
-
* @param colgroups Columns配置
|
41
|
-
* @param autoWidth 自动填充宽度
|
42
|
-
*/
|
43
|
-
export declare const resolveColumnWidth: (root: HTMLElement, colgroups: GroupColumn[], autoWidth?: number) => void;
|
44
|
-
/**
|
45
|
-
* 监听目标元素的Resize事件
|
46
|
-
* @param root 目标元素
|
47
|
-
* @param callbackFn 执行函数
|
48
|
-
* @param delay 延迟执行时间,默认 60
|
49
|
-
* @param immediate 是否立即执行回调函数
|
50
|
-
* @returns "{ start: () => void, stop: () => void }"
|
51
|
-
*/
|
52
|
-
export declare const observerResize: (root: HTMLElement, callbackFn: () => void, delay?: number, immediate?: boolean) => {
|
53
|
-
start: () => void;
|
54
|
-
stop: () => void;
|
55
|
-
};
|
56
|
-
/**
|
57
|
-
* 判定为数值 | px | %
|
58
|
-
* @param val
|
59
|
-
* @returns
|
60
|
-
*/
|
61
|
-
export declare const isPercentPixOrNumber: (val: string | number) => boolean;
|
62
|
-
/**
|
63
|
-
* 处理 Prop中的分页配置
|
64
|
-
* prop中的配置会覆盖本地的配置
|
65
|
-
* @param propPagination 用户传入的配置
|
66
|
-
* @param defVal 默认配置
|
67
|
-
* @returns 返回值
|
68
|
-
*/
|
69
|
-
export declare const resolvePaginationOption: (propPagination: any, defVal: any) => any;
|