bkui-vue 0.0.1-beta.5 → 0.0.1-beta.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -19
- package/dist/index.cjs.js +57 -0
- package/dist/index.esm.js +20913 -0
- package/dist/index.umd.js +57 -0
- package/dist/style.css +1 -2009
- package/lib/alert/alert.d.ts +25 -16
- package/lib/alert/alert.variable.css +33 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +33 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.d.ts +41 -20
- package/lib/badge/badge.variable.css +33 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +43 -1
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +41 -21
- package/lib/button/button.d.ts +67 -31
- package/lib/button/button.less +44 -29
- package/lib/button/button.variable.css +74 -21
- package/lib/button/index.d.ts +237 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +33 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +12 -0
- package/lib/checkbox/checkbox.d.ts +33 -30
- package/lib/checkbox/checkbox.less +17 -0
- package/lib/checkbox/checkbox.variable.css +45 -0
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +253 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +9 -12
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +280 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.d.ts +166 -0
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +41 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +294 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +501 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +111 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.css +34 -0
- package/lib/dialog/dialog.d.ts +132 -30
- package/lib/dialog/dialog.less +6 -0
- package/lib/dialog/dialog.variable.css +34 -0
- package/lib/dialog/index.d.ts +441 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +132 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +63 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +137 -0
- package/lib/dropdown/index.d.ts +200 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +33 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +33 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +145 -0
- package/lib/form/form.css +110 -0
- package/lib/form/form.d.ts +64 -0
- package/lib/form/form.less +138 -0
- package/lib/form/form.variable.css +204 -0
- package/lib/form/index.d.ts +262 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -0
- package/lib/form/validator.d.ts +8 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +1 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +1 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +1 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +1 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +1 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +1 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +1 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +1 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +1 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +1 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +1 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +1 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +1 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +1 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +1 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +1 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +1 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +1 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +1 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +1 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +1 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +1 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +1 -0
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/index.d.ts +54 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +1 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +1 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +1 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +451 -0
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +66 -4
- package/lib/input/input.d.ts +122 -47
- package/lib/input/input.less +84 -8
- package/lib/input/input.variable.css +100 -4
- package/lib/link/index.d.ts +164 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +33 -0
- package/lib/loading/index.d.ts +172 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +110 -73
- package/lib/loading/loading.d.ts +67 -20
- package/lib/loading/loading.less +75 -58
- package/lib/loading/loading.variable.css +143 -73
- package/lib/menu/index.d.ts +188 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +64 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +276 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +22 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +97 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +62 -0
- package/lib/message/message.less +72 -0
- package/lib/message/message.variable.css +156 -0
- package/lib/message/messageConstructor.d.ts +106 -0
- package/lib/modal/index.d.ts +362 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +20 -0
- package/lib/modal/modal.d.ts +91 -15
- package/lib/modal/modal.less +27 -0
- package/lib/modal/modal.variable.css +20 -0
- package/lib/modal/props.mixin.d.ts +31 -1
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +111 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +278 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +143 -0
- package/lib/notify/notifyConstructor.d.ts +91 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +273 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +318 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +89 -45
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +56 -14
- package/lib/popover/props.d.ts +89 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +1 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +232 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +33 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +278 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +29 -20
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +8 -2
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +9 -2
- package/lib/radio/radio.variable.css +41 -2
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +283 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1377 -0
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +248 -17
- package/lib/select/select.d.ts +282 -156
- package/lib/select/select.less +251 -46
- package/lib/select/select.variable.css +281 -17
- package/lib/select/type.d.ts +31 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +52 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +8 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +328 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +97 -18
- package/lib/sideslider/sideslider.variable.css +33 -0
- package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider-button.d.ts +80 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +201 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +243 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +382 -0
- package/lib/styles/index.d.ts +47 -0
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +53 -2
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +286 -0
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +49 -33
- package/lib/switcher/switcher.less +211 -153
- package/lib/switcher/switcher.variable.css +182 -135
- package/lib/tab/index.d.ts +443 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +191 -0
- package/lib/tab/tab-nav.d.ts +165 -0
- package/lib/tab/tab-panel.d.ts +73 -0
- package/lib/tab/tab.css +148 -0
- package/lib/tab/tab.d.ts +140 -0
- package/lib/tab/tab.less +222 -0
- package/lib/tab/tab.variable.css +242 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +306 -0
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +83 -0
- package/lib/table/plugins/head-filter.variable.css +162 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +116 -0
- package/lib/table/props.d.ts +143 -0
- package/lib/table/render.d.ts +110 -0
- package/lib/table/table.css +192 -0
- package/lib/table/table.d.ts +89 -36
- package/lib/table/table.less +131 -2
- package/lib/table/table.variable.css +225 -0
- package/lib/table/use-common.d.ts +17 -0
- package/lib/table/utils.d.ts +83 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +130 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +208 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +302 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +329 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +252 -0
- package/lib/tree/index.d.ts +287 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +111 -0
- package/lib/tree/tree.less +63 -0
- package/lib/tree/tree.variable.css +144 -0
- package/lib/tree/util.d.ts +70 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +97 -78
- package/dist/bkui-vue.cjs.js +0 -4887
- package/dist/bkui-vue.esm.js +0 -4883
- package/dist/bkui-vue.umd.js +0 -4890
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.js +0 -1
- package/lib/styles/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,306 @@
|
|
1
|
+
declare const BkTable: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
height: string | number;
|
7
|
+
data: any[];
|
8
|
+
border: string[];
|
9
|
+
minHeight: string | number;
|
10
|
+
headHeight: number;
|
11
|
+
pagination: boolean | {
|
12
|
+
[key: string]: any;
|
13
|
+
};
|
14
|
+
columnPick: string;
|
15
|
+
rowHeight: any;
|
16
|
+
showHead: boolean;
|
17
|
+
virtualEnabled: boolean;
|
18
|
+
remotePagination: boolean;
|
19
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
20
|
+
data: import("vue-types").VueTypeDef<any[]> & {
|
21
|
+
default: () => any[];
|
22
|
+
};
|
23
|
+
columns: import("vue-types").VueTypeDef<import("./props").Column[]>;
|
24
|
+
activeColumn: import("vue-types").VueTypeDef<number | number[]>;
|
25
|
+
columnPick: import("vue-types").VueTypeDef<string> & {
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
29
|
+
default: string | number;
|
30
|
+
};
|
31
|
+
minHeight: import("vue-types").VueTypeDef<string | number> & {
|
32
|
+
default: string | number;
|
33
|
+
};
|
34
|
+
rowHeight: import("vue-types").VueTypeDef<any> & {
|
35
|
+
default: any;
|
36
|
+
};
|
37
|
+
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
38
|
+
default: number;
|
39
|
+
} & {
|
40
|
+
default: number;
|
41
|
+
};
|
42
|
+
showHead: import("vue-types").VueTypeValidableDef<boolean> & {
|
43
|
+
default: boolean;
|
44
|
+
} & {
|
45
|
+
default: boolean;
|
46
|
+
};
|
47
|
+
thead: import("vue-types").VueTypeShape<import("./props").Thead>;
|
48
|
+
virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
49
|
+
default: boolean;
|
50
|
+
} & {
|
51
|
+
default: boolean;
|
52
|
+
};
|
53
|
+
border: import("vue-types").VueTypeDef<string[]> & {
|
54
|
+
default: () => string[];
|
55
|
+
};
|
56
|
+
pagination: import("vue-types").VueTypeDef<boolean | {
|
57
|
+
[key: string]: any;
|
58
|
+
}> & {
|
59
|
+
default: boolean | (() => {
|
60
|
+
[key: string]: any;
|
61
|
+
});
|
62
|
+
};
|
63
|
+
remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
|
64
|
+
default: boolean;
|
65
|
+
} & {
|
66
|
+
default: boolean;
|
67
|
+
};
|
68
|
+
}>> & {
|
69
|
+
onColumnPick?: (...args: any[]) => any;
|
70
|
+
onPageLimitChange?: (...args: any[]) => any;
|
71
|
+
onPageValueChange?: (...args: any[]) => any;
|
72
|
+
onRowClick?: (...args: any[]) => any;
|
73
|
+
onRowDblClick?: (...args: any[]) => any;
|
74
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "height" | "data" | "border" | "minHeight" | "headHeight" | "pagination" | "columnPick" | "rowHeight" | "showHead" | "virtualEnabled" | "remotePagination">;
|
75
|
+
$attrs: {
|
76
|
+
[x: string]: unknown;
|
77
|
+
};
|
78
|
+
$refs: {
|
79
|
+
[x: string]: unknown;
|
80
|
+
};
|
81
|
+
$slots: Readonly<{
|
82
|
+
[name: string]: import("vue").Slot;
|
83
|
+
}>;
|
84
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
85
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
86
|
+
$emit: (event: "columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick", ...args: any[]) => void;
|
87
|
+
$el: any;
|
88
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
89
|
+
data: import("vue-types").VueTypeDef<any[]> & {
|
90
|
+
default: () => any[];
|
91
|
+
};
|
92
|
+
columns: import("vue-types").VueTypeDef<import("./props").Column[]>;
|
93
|
+
activeColumn: import("vue-types").VueTypeDef<number | number[]>;
|
94
|
+
columnPick: import("vue-types").VueTypeDef<string> & {
|
95
|
+
default: string;
|
96
|
+
};
|
97
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
98
|
+
default: string | number;
|
99
|
+
};
|
100
|
+
minHeight: import("vue-types").VueTypeDef<string | number> & {
|
101
|
+
default: string | number;
|
102
|
+
};
|
103
|
+
rowHeight: import("vue-types").VueTypeDef<any> & {
|
104
|
+
default: any;
|
105
|
+
};
|
106
|
+
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
107
|
+
default: number;
|
108
|
+
} & {
|
109
|
+
default: number;
|
110
|
+
};
|
111
|
+
showHead: import("vue-types").VueTypeValidableDef<boolean> & {
|
112
|
+
default: boolean;
|
113
|
+
} & {
|
114
|
+
default: boolean;
|
115
|
+
};
|
116
|
+
thead: import("vue-types").VueTypeShape<import("./props").Thead>;
|
117
|
+
virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
118
|
+
default: boolean;
|
119
|
+
} & {
|
120
|
+
default: boolean;
|
121
|
+
};
|
122
|
+
border: import("vue-types").VueTypeDef<string[]> & {
|
123
|
+
default: () => string[];
|
124
|
+
};
|
125
|
+
pagination: import("vue-types").VueTypeDef<boolean | {
|
126
|
+
[key: string]: any;
|
127
|
+
}> & {
|
128
|
+
default: boolean | (() => {
|
129
|
+
[key: string]: any;
|
130
|
+
});
|
131
|
+
};
|
132
|
+
remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
|
133
|
+
default: boolean;
|
134
|
+
} & {
|
135
|
+
default: boolean;
|
136
|
+
};
|
137
|
+
}>> & {
|
138
|
+
onColumnPick?: (...args: any[]) => any;
|
139
|
+
onPageLimitChange?: (...args: any[]) => any;
|
140
|
+
onPageValueChange?: (...args: any[]) => any;
|
141
|
+
onRowClick?: (...args: any[]) => any;
|
142
|
+
onRowDblClick?: (...args: any[]) => any;
|
143
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick")[], string, {
|
144
|
+
height: string | number;
|
145
|
+
data: any[];
|
146
|
+
border: string[];
|
147
|
+
minHeight: string | number;
|
148
|
+
headHeight: number;
|
149
|
+
pagination: boolean | {
|
150
|
+
[key: string]: any;
|
151
|
+
};
|
152
|
+
columnPick: string;
|
153
|
+
rowHeight: any;
|
154
|
+
showHead: boolean;
|
155
|
+
virtualEnabled: boolean;
|
156
|
+
remotePagination: boolean;
|
157
|
+
}> & {
|
158
|
+
beforeCreate?: (() => void) | (() => void)[];
|
159
|
+
created?: (() => void) | (() => void)[];
|
160
|
+
beforeMount?: (() => void) | (() => void)[];
|
161
|
+
mounted?: (() => void) | (() => void)[];
|
162
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
163
|
+
updated?: (() => void) | (() => void)[];
|
164
|
+
activated?: (() => void) | (() => void)[];
|
165
|
+
deactivated?: (() => void) | (() => void)[];
|
166
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
167
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
168
|
+
destroyed?: (() => void) | (() => void)[];
|
169
|
+
unmounted?: (() => void) | (() => void)[];
|
170
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
171
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
172
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
173
|
+
};
|
174
|
+
$forceUpdate: () => void;
|
175
|
+
$nextTick: typeof import("vue").nextTick;
|
176
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
177
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
178
|
+
data: import("vue-types").VueTypeDef<any[]> & {
|
179
|
+
default: () => any[];
|
180
|
+
};
|
181
|
+
columns: import("vue-types").VueTypeDef<import("./props").Column[]>;
|
182
|
+
activeColumn: import("vue-types").VueTypeDef<number | number[]>;
|
183
|
+
columnPick: import("vue-types").VueTypeDef<string> & {
|
184
|
+
default: string;
|
185
|
+
};
|
186
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
187
|
+
default: string | number;
|
188
|
+
};
|
189
|
+
minHeight: import("vue-types").VueTypeDef<string | number> & {
|
190
|
+
default: string | number;
|
191
|
+
};
|
192
|
+
rowHeight: import("vue-types").VueTypeDef<any> & {
|
193
|
+
default: any;
|
194
|
+
};
|
195
|
+
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
196
|
+
default: number;
|
197
|
+
} & {
|
198
|
+
default: number;
|
199
|
+
};
|
200
|
+
showHead: import("vue-types").VueTypeValidableDef<boolean> & {
|
201
|
+
default: boolean;
|
202
|
+
} & {
|
203
|
+
default: boolean;
|
204
|
+
};
|
205
|
+
thead: import("vue-types").VueTypeShape<import("./props").Thead>;
|
206
|
+
virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
207
|
+
default: boolean;
|
208
|
+
} & {
|
209
|
+
default: boolean;
|
210
|
+
};
|
211
|
+
border: import("vue-types").VueTypeDef<string[]> & {
|
212
|
+
default: () => string[];
|
213
|
+
};
|
214
|
+
pagination: import("vue-types").VueTypeDef<boolean | {
|
215
|
+
[key: string]: any;
|
216
|
+
}> & {
|
217
|
+
default: boolean | (() => {
|
218
|
+
[key: string]: any;
|
219
|
+
});
|
220
|
+
};
|
221
|
+
remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
|
222
|
+
default: boolean;
|
223
|
+
} & {
|
224
|
+
default: boolean;
|
225
|
+
};
|
226
|
+
}>> & {
|
227
|
+
onColumnPick?: (...args: any[]) => any;
|
228
|
+
onPageLimitChange?: (...args: any[]) => any;
|
229
|
+
onPageValueChange?: (...args: any[]) => any;
|
230
|
+
onRowClick?: (...args: any[]) => any;
|
231
|
+
onRowDblClick?: (...args: any[]) => any;
|
232
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
233
|
+
__isFragment?: never;
|
234
|
+
__isTeleport?: never;
|
235
|
+
__isSuspense?: never;
|
236
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
237
|
+
data: import("vue-types").VueTypeDef<any[]> & {
|
238
|
+
default: () => any[];
|
239
|
+
};
|
240
|
+
columns: import("vue-types").VueTypeDef<import("./props").Column[]>;
|
241
|
+
activeColumn: import("vue-types").VueTypeDef<number | number[]>;
|
242
|
+
columnPick: import("vue-types").VueTypeDef<string> & {
|
243
|
+
default: string;
|
244
|
+
};
|
245
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
246
|
+
default: string | number;
|
247
|
+
};
|
248
|
+
minHeight: import("vue-types").VueTypeDef<string | number> & {
|
249
|
+
default: string | number;
|
250
|
+
};
|
251
|
+
rowHeight: import("vue-types").VueTypeDef<any> & {
|
252
|
+
default: any;
|
253
|
+
};
|
254
|
+
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
255
|
+
default: number;
|
256
|
+
} & {
|
257
|
+
default: number;
|
258
|
+
};
|
259
|
+
showHead: import("vue-types").VueTypeValidableDef<boolean> & {
|
260
|
+
default: boolean;
|
261
|
+
} & {
|
262
|
+
default: boolean;
|
263
|
+
};
|
264
|
+
thead: import("vue-types").VueTypeShape<import("./props").Thead>;
|
265
|
+
virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
266
|
+
default: boolean;
|
267
|
+
} & {
|
268
|
+
default: boolean;
|
269
|
+
};
|
270
|
+
border: import("vue-types").VueTypeDef<string[]> & {
|
271
|
+
default: () => string[];
|
272
|
+
};
|
273
|
+
pagination: import("vue-types").VueTypeDef<boolean | {
|
274
|
+
[key: string]: any;
|
275
|
+
}> & {
|
276
|
+
default: boolean | (() => {
|
277
|
+
[key: string]: any;
|
278
|
+
});
|
279
|
+
};
|
280
|
+
remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
|
281
|
+
default: boolean;
|
282
|
+
} & {
|
283
|
+
default: boolean;
|
284
|
+
};
|
285
|
+
}>> & {
|
286
|
+
onColumnPick?: (...args: any[]) => any;
|
287
|
+
onPageLimitChange?: (...args: any[]) => any;
|
288
|
+
onPageValueChange?: (...args: any[]) => any;
|
289
|
+
onRowClick?: (...args: any[]) => any;
|
290
|
+
onRowDblClick?: (...args: any[]) => any;
|
291
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick")[], "columnPick" | "pageLimitChange" | "pageValueChange" | "rowClick" | "rowDblClick", {
|
292
|
+
height: string | number;
|
293
|
+
data: any[];
|
294
|
+
border: string[];
|
295
|
+
minHeight: string | number;
|
296
|
+
headHeight: number;
|
297
|
+
pagination: boolean | {
|
298
|
+
[key: string]: any;
|
299
|
+
};
|
300
|
+
columnPick: string;
|
301
|
+
rowHeight: any;
|
302
|
+
showHead: boolean;
|
303
|
+
virtualEnabled: boolean;
|
304
|
+
remotePagination: boolean;
|
305
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
306
|
+
export default BkTable;
|
package/lib/table/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("vue"),require("../shared"),require("../directives")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../directives"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e.Directives)}(this,(function(e,r,t,o){"use strict";function s(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a={exports:{}};!function(e){e.exports=function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")},e.exports.default=e.exports,e.exports.__esModule=!0}(a);var i=s(a.exports),n=function e(o){var s=this;i(this,e),this.table=null,this.showHeader=!0,this.headerHeight=r.ref(44),this.bodyWidth=r.ref(null),this.scrollY=r.ref(!1),this.gutterWidth=t.scrollbarWidth(),this.bodyHeight=r.ref(null),this.footerHeight=r.ref(44),this.paginationHeight=r.ref(0),Object.keys(o).forEach((function(e){r.isRef(s[e])?s[e].value=o[e]:s[e]=o[e]}))},l={showHeader:t.PropTypes.bool.def(!0),headerBorder:t.PropTypes.bool.def(!0),defaultSort:t.PropTypes.object.def({prop:"",order:""})},d=r.defineComponent({name:"BkTable",props:l,directives:{mousewheel:o.mousewheel},setup:function(e){var t,o=(t=r.getCurrentInstance().refs,{handleHeaderFooterMousewheel:function(e,r){var o=r.pixelX,s=r.pixelY;Math.abs(o)>=Math.abs(s)&&(t.bodyWrapper.scrollLeft+=r.pixelX/5)}}).handleHeaderFooterMousewheel,s=r.getCurrentInstance(),a=new n({table:s,showHeader:e.showHeader});return console.error("layout",a),{handleHeaderFooterMousewheel:o}},render:function(){var e=t.classes({"bk-table":!0});return r.createVNode("div",{class:e},[this.showHeader?r.withDirectives(r.createVNode("div",{ref:"headerWrapper",class:"bk-table-header-wrapper"},null),[[r.resolveDirective("mousewheel"),this.handleHeaderFooterMousewheel]]):""])}});d.install=function(e){e.component(d.name,d)},e.default=d,Object.defineProperty(e,"__esModule",{value:!0})}));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../virtual-render"),require("lodash"),require("../pagination"),require("../checkbox"),require("../icon"),require("../popover"),require("../icon/"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../virtual-render","lodash","../pagination","../checkbox","../icon","../popover","../icon/"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../virtual-render"),require("lodash"),require("../pagination"),require("../checkbox"),require("../icon"),require("../popover"),require("../icon/")):t(e["../shared"],e.vue,e["../virtual-render"],e.lodash,e["../pagination"],e["../checkbox"],e["../icon"],e["../popover"],e["../icon/"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,o,i,a,c,l)=>(()=>{"use strict";var u={5800:e=>{e.exports=i},6870:e=>{e.exports=a},7685:e=>{e.exports=l},5801:e=>{e.exports=o},5537:e=>{e.exports=c},4212:t=>{t.exports=e},3511:e=>{e.exports=n},467:e=>{e.exports=r},748:e=>{e.exports=t}},s={};function p(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={exports:{}};return u[e](n,n.exports,p),n.exports}p.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return p.d(t,{a:t}),t},p.d=(e,t)=>{for(var n in t)p.o(t,n)&&!p.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},p.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),p.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var f={};return(()=>{p.r(f),p.d(f,{default:()=>I});var e=p(4212),t=p(748),n=p(3511),r=p.n(n);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a=p(467),c=["none","row","col","outer"],l=void 0,u=function(e,t,n){var r;if(Object.prototype.hasOwnProperty.call(e,t))return"function"==typeof e[t]?(r=e[t]).call.apply(r,[l].concat(i(n))):e[t]},s=function(e){return/^\d+$/.test("".concat(e))?[parseInt("".concat(e),10)]:[]},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"100%",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="";return r=/^auto|null|undefined$/gi.test("".concat(e))?t:/^\d+\.?\d+$/.test("".concat(e))?"".concat(e,"px"):e,n&&(r="calc(".concat(r," - ").concat(n,")")),r},h=function(e){var t=e.showHead,n=e.headHeight,r=e.thead,o=void 0===r?{}:r;return Object.assign({},{isShow:t,height:n},Object.assign({},o))},v=function(e,t,n){return"index"===n.type?e.__$table_row_index:e[t]},y=function(e){return"disabled"!==e.columnPick?"multi"===e.columnPick?Array.isArray(e.activeColumn)?e.activeColumn:s(e.activeColumn):Array.isArray(e.activeColumn)?s(e.activeColumn[0]):s(e.activeColumn):[]};function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var g=function(e,t){if(e){if("object"===m(e)){var n=Object.prototype.hasOwnProperty.call(e,"current")?e.current:e.value;return/\d+/.test(n)||(n=1),Object.assign(Object.assign(Object.assign({},t),e),{current:n})}return t}return{}};var b;!function(e){e.CURRENT="current",e.ALL="all"}(b||(b={}));var C={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")]),type:e.PropTypes.commonType(["selection","index","expand","none"],"columnType").def("none"),sort:e.PropTypes.oneOfType([e.PropTypes.shape({sortFn:e.PropTypes.func.def(null),sortScope:e.PropTypes.commonType(Object.values(b)).def(b.CURRENT)}),e.PropTypes.bool]).def(!1),filter:e.PropTypes.oneOfType([e.PropTypes.shape({list:e.PropTypes.arrayOf(e.PropTypes.any).def([]),filterFn:e.PropTypes.func.def(null)}),e.PropTypes.bool]).def(!1)})),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),thead:e.PropTypes.shape({height:e.PropTypes.number.def(40),isShow:e.PropTypes.bool.def(!0),cellFn:e.PropTypes.func.def(null)}),virtualEnabled:e.PropTypes.bool.def(!1),border:e.PropTypes.arrayOf(e.PropTypes.commonType(c,"border")).def(["row"]),pagination:e.PropTypes.oneOfType([e.PropTypes.bool.def(!1),e.PropTypes.object.def({})]).def(!1),remotePagination:e.PropTypes.bool.def(!1)};function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var O=p(5801),x=p.n(O);function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=p(5800),S=p.n(N),j=p(6870),V=p(5537),A=p.n(V);const _=(0,t.defineComponent)({name:"HeadFilter",props:{column:e.PropTypes.any.def({}),height:e.PropTypes.number.def(40)},emits:["change"],setup:function(n,r){var o=r.emit,a=n.column,c=(0,t.ref)(!1),l=(0,t.reactive)({isOpen:!1,checked:[]}),s=(0,t.computed)((function(){var t;return(0,e.classes)((w(t={},(0,e.resolveClassName)("table-head-action"),!0),w(t,"column-filter",!0),w(t,"--row-height","".concat(n.height,"px")),w(t,"active",l.checked.length),w(t,"opened",l.isOpen),t))})),p=(0,e.classes)(w({},(0,e.resolveClassName)("table-head-filter"),!0)),f=function(e){l.isOpen=e},d=[{name:"offset",options:{offset:[0,0]}}],h="light ".concat((0,e.resolveClassName)("table-head-filter")),y=(0,t.computed)((function(){var e=a.filter.list;return(void 0===e?[]:e).map((function(e){return Object.assign(Object.assign({},e),{checked:l.checked.includes(e.value)})}))})),m="function"==typeof a.filter.filterFn?function(e,t,r,o){return a.filter.filterFn(e,t,n.column,r,o)}:function(e,t){return!e.length||e.includes(v(t,u(a,"field",[a,t]),a))},g=function(){o("change",i(l.checked),m),c.value=!1},b=function(){l.checked.length&&(l.checked.splice(0,l.checked.length),c.value=!1,(0,t.nextTick)((function(){return o("change",l.checked,m)})))};return function(){return(0,t.createVNode)(A(),(0,t.mergeProps)({trigger:"click",isShow:c.value,placement:"bottom-end",stopBehaviors:["stopPropagation"],arrow:!1},{modifiers:d,theme:h},{boundary:document.body,onAfterShow:function(){return f(!0)},onAfterHidden:function(){return f(!1)}}),{default:function(){return(0,t.createVNode)(j.AngleDownLine,{class:s.value,onClick:function(){return c.value=!0}},null)},content:function(){var e,n;return(0,t.createVNode)("div",{class:p},[(0,t.createVNode)(N.BkCheckboxGroup,{class:"content-list",modelValue:l.checked,"onUpdate:modelValue":function(e){return l.checked=e}},(n=e=y.value.map((function(e){return(0,t.createVNode)("div",{class:"list-item"},[(0,t.createVNode)(S(),{label:e.value},{default:function(){return[e.text]}})])})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!(0,t.isVNode)(n)?e:{default:function(){return[e]}})),(0,t.createVNode)("div",{class:"content-footer"},[(0,t.createVNode)("span",{class:"btn-filter-save",onClick:g},[(0,t.createTextVNode)("确定")]),(0,t.createVNode)("span",{class:"btn-filter-split"},null),(0,t.createVNode)("span",{class:["btn-filter-reset",l.checked.length?"":"disable"],onClick:b},[(0,t.createTextVNode)("重置")])])])}})}}});var E,F=p(7685);!function(e){e.ASC="asc",e.DESC="desc"}(E||(E={}));const H=(0,t.defineComponent)({name:"HeadSort",props:{column:e.PropTypes.any.def({})},emits:["change"],setup:function(n,r){var o=r.emit,i=(0,t.ref)(""),a=function(e,t){var r,a;e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault(),i.value=t;var c=n.column.field,l=function(e){return v(e,c,n.column)},u="function"==typeof(null===(r=n.column.sort)||void 0===r?void 0:r.sortFn)?null===(a=n.column.sort)||void 0===a?void 0:a.sortFn:function(e,t){var n=l(e),r=l(t);return"number"==typeof n&&"number"==typeof r?n-r:String.prototype.localeCompare.call(n,r)};o("change",(function(e,n){return u(e,n)*(t===E.DESC?-1:1)}),t)};return function(){return(0,t.createVNode)("span",{class:(0,e.resolveClassName)("head-cell-sort")},[(0,t.createVNode)(F.AngleDownFill,{class:["sort-action","sort-asc",i.value===E.ASC?"active":""],onClick:function(e){return a(e,E.ASC)}},null),(0,t.createVNode)(F.AngleUpFill,{class:["sort-action","sort-desc",i.value===E.DESC?"active":""],onClick:function(e){return a(e,E.DESC)}},null)])}}});var q,R=k((function e(t,n){T(this,e),this.props=null,this.ctx=null,this.props=t,this.ctx=n}));!function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick"}(q||(q={}));var D=function(){function n(t,r,o,i){var a=this;T(this,n),this.getColumnClass=function(e){return"".concat(a.uuid,"-column-").concat(e)},this.props=t,this.context=r,this.reactiveProp=o,this.colgroups=i,this.plugins=new R(t,r),this.uuid=(0,e.random)(8),this.events=new Map}return k(n,[{key:"propActiveCols",get:function(){return this.reactiveProp.activeColumns}},{key:"renderTableHeadSchema",value:function(){var e=h(this.props).isShow;return void 0===e||e?(0,t.createVNode)("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderHeader()]):null}},{key:"renderTableBodySchema",value:function(e){return(0,t.createVNode)("table",{cellpadding:0,cellspacing:0},[this.renderColGroup(),this.renderTBody(e)])}},{key:"renderTableFooter",value:function(e){var n=this;return(0,t.createVNode)(x(),(0,t.mergeProps)(e,{modelValue:e.current,onLimitChange:function(e){return n.handlePageLimitChange(e)},onChange:function(e){return n.hanlePageChange(e)}}),null)}},{key:"on",value:function(e,t){return this.events.has(e)||this.events.set(e,[]),this.events.get(e).push(t),this}},{key:"destroy",value:function(){this.events.clear(),this.events=null}},{key:"emitEvent",value:function(e,t){var n=this;this.events.has(e)&&this.events.get(e).forEach((function(e){"function"==typeof e&&Reflect.apply(e,n,t)}))}},{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],n=this.propActiveCols.find((function(t){return t.index===e}));Object.assign(n,{active:!n.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:"getSortCell",value:function(e,n){var r=this;return(0,t.createVNode)(H,{column:e,onChange:function(t,o){r.emitEvent(q.ON_SORT_BY_CLICK,[{sortFn:t,column:e,index:n,type:o}])}},null)}},{key:"getFilterCell",value:function(e,n){var r=this;return(0,t.createVNode)(_,{column:e,height:this.props.headHeight,onChange:function(t,o){r.emitEvent(q.ON_FILTER_CLICK,[{filterFn:function(e,n){return o(t,e,n)},checked:t,column:e,index:n}])}},null)}},{key:"renderHeader",value:function(){var n=this,r=h(this.props),o=r.cellFn,i={"--row-height":"".concat(u(r,"height",["thead"]),"px")},a=function(e,t){var r=[];return e.sort&&r.push(n.getSortCell(e,t)),e.filter&&r.push(n.getFilterCell(e,t)),"function"==typeof o?(r.unshift(o(e,t)),r):(r.unshift(u(e,"label",[e,t])),r)};return(0,t.createVNode)("thead",{style:i},[(0,t.createVNode)("tr",null,[this.props.columns.map((function(r,o){return(0,t.createVNode)("th",{colspan:1,rowspan:1,class:(0,e.classes)({active:n.isColActive(o)}),onClick:function(){return n.handleColumnHeadClick(o)}},[(0,t.createVNode)("div",{class:"cell"},[a(r,o)])])}))])])}},{key:"renderTBody",value:function(e){var n=this;return(0,t.createVNode)("tbody",null,[e.map((function(r,o){var i={"--row-height":"".concat(u(n.props,"rowHeight",["tbody",r,o]),"px")};return(0,t.createVNode)("tr",{style:i,onClick:function(t){return n.handleRowClick(t,r,o,e)},onDblclick:function(t){return n.handleRowDblClick(t,r,o,e)}},[n.props.columns.map((function(i,a){return(0,t.createVNode)("td",{class:n.getColumnClass(a),colspan:1,rowspan:1},[(0,t.createVNode)("div",{class:"cell"},[n.renderCell(r,i,o,e)])])}))])}))])}},{key:"handleRowClick",value:function(e,t,n,r){this.context.emit("rowClick",e,t,n,r,this)}},{key:"handleRowDblClick",value:function(e,t,n,r){this.context.emit("rowDblClick",e,t,n,r,this)}},{key:"renderCell",value:function(e,t,n,r){var o=v(e,u(t,"field",[t,e]),t);return"function"==typeof t.render?t.render(o,e,n,r):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 n=this;return(0,t.createVNode)("colgroup",null,[(this.colgroups||[]).map((function(r,o){var i,a=(0,e.classes)({active:n.isColActive(o)}),c="".concat((i=r.calcWidth,d(i,"auto"))).replace(/px$/i,"");return(0,t.createVNode)("col",{class:a,width:c},null)}))])}}]),n}();const L=(0,t.defineComponent)({name:"Table",props:C,emits:["columnPick","rowClick","rowDblClick","pageLimitChange","pageValueChange"],setup:function(n,o){var l=(0,t.reactive)(n.columns.map((function(e){return Object.assign(Object.assign({},e),{calcWidth:null})}))),u=null,s=null,p=null,f=(0,t.ref)(),h=function(e){var n=(0,t.reactive)([]);if("disabled"===e.columnPick)return{activeColumns:n};var r=(0,t.reactive)(y(e));return(0,t.watchEffect)((function(){n=(e.columns||[]).map((function(e,t){return{index:t,active:r.some((function(e){return e===t})),_column:e}}));var t=y(e);n.forEach((function(e,n){Object.assign(e,{active:t.some((function(e){return e===n}))})}))})),{activeColumns:n}}(n).activeColumns,v=function(e){var n=(0,t.ref)(0),r=(0,t.ref)(0),o=(0,t.computed)((function(){return e.data.map((function(e,t){return Object.assign(Object.assign({},e),{__$table_row_index:t+1})}))})),a=(0,t.reactive)({count:0,limit:10,current:1});a=g(e.pagination,a);var c=function(){if(!e.pagination||e.remotePagination)return n.value=0,void(r.value=e.data.length);n.value=(a.current-1)*a.limit,r.value=a.current*a.limit};c();var l=(0,t.reactive)([]),u=function(t,a){l.splice.apply(l,[0,l.length].concat(i(o.value.slice(n.value,r.value)))),function(t){if("function"==typeof t){var n=l.filter((function(n,r){return t(n,r,e.data)}));l.splice.apply(l,[0,l.length].concat(i(n)))}}(t),function(e){"function"==typeof e&&l.sort(e)}(a)},s=(0,t.computed)((function(){return e.pagination?e.remotePagination?a:Object.assign(Object.assign({},a),{count:e.data.length}):null}));return{pageData:l,localPagination:s,resolvePageData:u,watchEffectFn:function(t,n){a=g(e.pagination,a),c(),u(t,n)}}}(n),m=v.pageData,b=v.localPagination,C=v.resolvePageData,T=v.watchEffectFn,P=function(n,r){var o,a=(0,t.ref)("auto"),l=(0,t.computed)((function(){return(0,e.classes)(w({},(0,e.resolveClassName)("table"),!0),(r=["row"],"string"==typeof(t=n.border)&&r.push(t),Array.isArray(t)&&r.push.apply(r,i(t.filter((function(e){return c.includes(e)})))),i(new Set(r)).map((function(e){return"bordered-".concat(e)})).join(" ")));var t,r})),u=(0,e.classes)(w({},(0,e.resolveClassName)("table-head"),!0)),s=(0,e.classes)(w({},(0,e.resolveClassName)("table-body"),!0)),p=(0,e.classes)((w(o={},(0,e.resolveClassName)("table-footer"),!0),w(o,"is-hidden",!n.pagination),o)),f=(0,t.computed)((function(){return{minHeight:d(n.minHeight,"auto")}})),h=(0,t.computed)((function(){var e,t=(e=n.height,!/^\d+\.?\d*(px|%)?$/.test("".concat(e))),r=d(n.height),o=n.showHead?d(n.headHeight):"0",i=n.pagination?40:0,a="calc(".concat(r," - ").concat(o," - ").concat(i,"px - 2px)");return Object.assign({display:"block"},t?{maxHeight:a}:{height:a})}));(0,t.onMounted)((function(){v(null==r?void 0:r.value)}));var v=function(e){if(e){var t=r.value.parentElement.getBoundingClientRect().height;a.value="".concat(t,"px")}};return{tableClass:l,headClass:u,contentClass:s,footerClass:p,wrapperStyle:f,contentStyle:h,resetTableHeight:v}}(n),k=P.tableClass,O=P.headClass,x=P.contentClass,N=P.footerClass,S=P.wrapperStyle,j=P.contentStyle,V=(0,t.reactive)({scrollTranslateY:0,activeColumns:h}),A=new D(n,o,V,l);(0,t.watchEffect)((function(){T(s,u)})),A.on(q.ON_SORT_BY_CLICK,(function(e){var t=e.sortFn;u=t,m.sort(u)})).on(q.ON_FILTER_CLICK,(function(e){var t=e.filterFn;C(s=t,u)}));var _=function(e){var t=e[1];V.scrollTranslateY=t.translateY};return(0,t.onMounted)((function(){p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(0,a.throttle)((function(){"function"==typeof t&&t()}),n),i=new ResizeObserver((function(){o()}));return r&&"function"==typeof t&&t(),{start:function(){i.observe(e)},stop:function(){i.disconnect(),i.unobserve(e)}}}(f.value,(function(){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20,r=(e.getBoundingClientRect()||{}).width-4,o=[],i=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object.assign(e,{calcWidth:t}),n&&(r-=t)<0&&(r=0)};if(t.forEach((function(e,t){var a=String(e.width),c=!0;if(/^\d+\.?\d*(px)?$/.test(a)){var l=Number(a.replace("px",""));i(e,l),c=!1}if(/^\d+\.?\d*%$/.test(a)){var u=n;if(r>0){var s=Number(a.replace("%",""));u=r*s/100}i(e,u),c=!1}c&&o.push(t)})),o.length>0){var a=n;r>0&&(a=r/o.length,o.forEach((function(e){return i(t[e],a,!1)})))}}(f.value,l,20)}),60,!0),p.start()})),(0,t.onBeforeUnmount)((function(){p.stop(),p=null,A.destroy()})),o.expose({plugins:A.plugins}),function(){return(0,t.createVNode)("div",{class:k.value,style:S.value,ref:f},[(0,t.createVNode)("div",{class:O},[A.renderTableHeadSchema()]),(0,t.createVNode)(r(),{lineHeight:n.rowHeight,class:x,style:j.value,list:m,onContentScroll:_,throttleDelay:0,enabled:n.virtualEnabled},{default:function(e){return A.renderTableBodySchema(e.data||n.data)},afterContent:function(){return(0,t.createVNode)("div",{class:(0,e.resolveClassName)("table-fixed")},null)}}),(0,t.createVNode)("div",{class:N},[n.pagination&&A.renderTableFooter(b.value)])])}}}),I=(0,e.withInstall)(L)})(),f})()));
|
@@ -0,0 +1,68 @@
|
|
1
|
+
.bk-table-head-action {
|
2
|
+
display: flex;
|
3
|
+
width: 32px;
|
4
|
+
height: var(--row-height);
|
5
|
+
margin-left: 4px;
|
6
|
+
font-size: 12px;
|
7
|
+
color: #c4c6cc;
|
8
|
+
cursor: pointer;
|
9
|
+
align-items: center;
|
10
|
+
}
|
11
|
+
.bk-table-head-action.active {
|
12
|
+
color: #3a84ff;
|
13
|
+
}
|
14
|
+
.bk-table-head-action.opened {
|
15
|
+
color: inherit;
|
16
|
+
}
|
17
|
+
.bk-table-head-filter {
|
18
|
+
padding: 5px 0 0 0;
|
19
|
+
background-color: #fff;
|
20
|
+
border-radius: 2px;
|
21
|
+
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1);
|
22
|
+
}
|
23
|
+
.bk-table-head-filter .content-list {
|
24
|
+
max-width: 200px;
|
25
|
+
min-width: 140px;
|
26
|
+
overflow: auto;
|
27
|
+
}
|
28
|
+
.bk-table-head-filter .content-list .list-item {
|
29
|
+
width: 100%;
|
30
|
+
height: 32px;
|
31
|
+
padding: 0 10px;
|
32
|
+
font-size: 12px;
|
33
|
+
line-height: 32px;
|
34
|
+
color: #63656e;
|
35
|
+
text-align: left;
|
36
|
+
}
|
37
|
+
.bk-table-head-filter .content-list .list-item:hover {
|
38
|
+
background: #f0f1f5;
|
39
|
+
}
|
40
|
+
.bk-table-head-filter .content-footer {
|
41
|
+
display: flex;
|
42
|
+
height: 42px;
|
43
|
+
padding: 0 10px;
|
44
|
+
border-top: solid 1px #dcdee5;
|
45
|
+
justify-content: center;
|
46
|
+
align-items: center;
|
47
|
+
}
|
48
|
+
.bk-table-head-filter .content-footer span {
|
49
|
+
display: inline-flex;
|
50
|
+
height: 100%;
|
51
|
+
padding: 6px 12px;
|
52
|
+
font-size: 14px;
|
53
|
+
line-height: 22px;
|
54
|
+
color: #3a84ff;
|
55
|
+
cursor: pointer;
|
56
|
+
align-items: center;
|
57
|
+
}
|
58
|
+
.bk-table-head-filter .content-footer span.btn-filter-split {
|
59
|
+
width: 1px;
|
60
|
+
height: calc(100% - 12px);
|
61
|
+
padding: 6px 0;
|
62
|
+
cursor: default;
|
63
|
+
background: #f0f1f5;
|
64
|
+
}
|
65
|
+
.bk-table-head-filter .content-footer span.btn-filter-reset.disable {
|
66
|
+
color: #979ba5;
|
67
|
+
cursor: not-allowed;
|
68
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
@import '../styles/themes/themes.less';
|
2
|
+
.@{bk-prefix}-table-head-action {
|
3
|
+
display: flex;
|
4
|
+
width: 32px;
|
5
|
+
height: var(--row-height);
|
6
|
+
margin-left: 4px;
|
7
|
+
font-size: 12px;
|
8
|
+
color: #c4c6cc;
|
9
|
+
cursor: pointer;
|
10
|
+
align-items: center;
|
11
|
+
|
12
|
+
&.active {
|
13
|
+
color: #3a84ff;
|
14
|
+
}
|
15
|
+
|
16
|
+
&.opened {
|
17
|
+
color: inherit;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.@{bk-prefix}-table-head-filter {
|
22
|
+
|
23
|
+
padding: 5px 0 0 0;
|
24
|
+
background-color: #fff;
|
25
|
+
// border: 1px solid #dcdee5;
|
26
|
+
border-radius: 2px;
|
27
|
+
box-shadow: 0px 3px 6px 0px rgba(0,0,0,.10);
|
28
|
+
|
29
|
+
.content-list {
|
30
|
+
max-width: 200px;
|
31
|
+
min-width: 140px;
|
32
|
+
overflow: auto;
|
33
|
+
|
34
|
+
.list-item {
|
35
|
+
width: 100%;
|
36
|
+
height: 32px;
|
37
|
+
padding: 0 10px;
|
38
|
+
font-size: 12px;
|
39
|
+
line-height: 32px;
|
40
|
+
color: #63656e;
|
41
|
+
text-align: left;
|
42
|
+
|
43
|
+
&:hover {
|
44
|
+
background: #f0f1f5;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.content-footer {
|
50
|
+
display: flex;
|
51
|
+
height: 42px;
|
52
|
+
padding: 0 10px;
|
53
|
+
border-top: solid 1px #dcdee5;
|
54
|
+
justify-content: center;
|
55
|
+
align-items: center;
|
56
|
+
|
57
|
+
span {
|
58
|
+
display: inline-flex;
|
59
|
+
height: 100%;
|
60
|
+
padding: 6px 12px;
|
61
|
+
font-size: 14px;
|
62
|
+
line-height: 22px;
|
63
|
+
color: @primary-color;
|
64
|
+
cursor: pointer;
|
65
|
+
align-items: center;
|
66
|
+
|
67
|
+
&.btn-filter-split {
|
68
|
+
width: 1px;
|
69
|
+
height: calc(100% - 12px);
|
70
|
+
padding: 6px 0;
|
71
|
+
cursor: default;
|
72
|
+
background: #f0f1f5;
|
73
|
+
}
|
74
|
+
|
75
|
+
&.btn-filter-reset {
|
76
|
+
&.disable {
|
77
|
+
color: @gray-color;
|
78
|
+
cursor: not-allowed;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,162 @@
|
|
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
|
+
--table-row-active-bg-color: #f0f1f5;
|
94
|
+
}
|
95
|
+
.bk-table-head-action {
|
96
|
+
display: flex;
|
97
|
+
width: 32px;
|
98
|
+
height: var(--row-height);
|
99
|
+
margin-left: 4px;
|
100
|
+
font-size: 12px;
|
101
|
+
color: #c4c6cc;
|
102
|
+
cursor: pointer;
|
103
|
+
align-items: center;
|
104
|
+
}
|
105
|
+
.bk-table-head-action.active {
|
106
|
+
color: #3a84ff;
|
107
|
+
}
|
108
|
+
.bk-table-head-action.opened {
|
109
|
+
color: inherit;
|
110
|
+
}
|
111
|
+
.bk-table-head-filter {
|
112
|
+
padding: 5px 0 0 0;
|
113
|
+
background-color: #fff;
|
114
|
+
border-radius: 2px;
|
115
|
+
box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.1);
|
116
|
+
}
|
117
|
+
.bk-table-head-filter .content-list {
|
118
|
+
max-width: 200px;
|
119
|
+
min-width: 140px;
|
120
|
+
overflow: auto;
|
121
|
+
}
|
122
|
+
.bk-table-head-filter .content-list .list-item {
|
123
|
+
width: 100%;
|
124
|
+
height: 32px;
|
125
|
+
padding: 0 10px;
|
126
|
+
font-size: 12px;
|
127
|
+
line-height: 32px;
|
128
|
+
color: #63656e;
|
129
|
+
text-align: left;
|
130
|
+
}
|
131
|
+
.bk-table-head-filter .content-list .list-item:hover {
|
132
|
+
background: #f0f1f5;
|
133
|
+
}
|
134
|
+
.bk-table-head-filter .content-footer {
|
135
|
+
display: flex;
|
136
|
+
height: 42px;
|
137
|
+
padding: 0 10px;
|
138
|
+
border-top: solid 1px #dcdee5;
|
139
|
+
justify-content: center;
|
140
|
+
align-items: center;
|
141
|
+
}
|
142
|
+
.bk-table-head-filter .content-footer span {
|
143
|
+
display: inline-flex;
|
144
|
+
height: 100%;
|
145
|
+
padding: 6px 12px;
|
146
|
+
font-size: 14px;
|
147
|
+
line-height: 22px;
|
148
|
+
color: var(--primary-color);
|
149
|
+
cursor: pointer;
|
150
|
+
align-items: center;
|
151
|
+
}
|
152
|
+
.bk-table-head-filter .content-footer span.btn-filter-split {
|
153
|
+
width: 1px;
|
154
|
+
height: calc(100% - 12px);
|
155
|
+
padding: 6px 0;
|
156
|
+
cursor: default;
|
157
|
+
background: #f0f1f5;
|
158
|
+
}
|
159
|
+
.bk-table-head-filter .content-footer span.btn-filter-reset.disable {
|
160
|
+
color: var(--gray-color);
|
161
|
+
cursor: not-allowed;
|
162
|
+
}
|