bkui-vue 0.0.1-beta.39 → 0.0.1-beta.41
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/lib/alert/alert.css +75 -0
- package/lib/alert/alert.d.ts +62 -0
- package/lib/alert/alert.js +1 -0
- package/lib/alert/alert.less +110 -0
- package/lib/alert/alert.variable.css +168 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/animate-number/animate-number.d.ts +27 -0
- package/lib/animate-number/animate-number.js +1 -0
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/backtop/backtop.css +42 -0
- package/lib/backtop/backtop.d.ts +60 -0
- package/lib/backtop/backtop.js +1 -0
- package/lib/backtop/backtop.less +18 -0
- package/lib/backtop/backtop.variable.css +135 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/badge/badge.css +121 -0
- package/lib/badge/badge.d.ts +91 -0
- package/lib/badge/badge.js +1 -0
- package/lib/badge/badge.less +137 -0
- package/lib/badge/badge.variable.css +214 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/breadcrumb/breadcrumb-item.d.ts +36 -0
- package/lib/breadcrumb/breadcrumb.css +68 -0
- package/lib/breadcrumb/breadcrumb.d.ts +54 -0
- package/lib/breadcrumb/breadcrumb.js +1 -0
- package/lib/breadcrumb/breadcrumb.less +65 -0
- package/lib/breadcrumb/breadcrumb.variable.css +161 -0
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/props.d.ts +4 -0
- package/lib/button/button-group.d.ts +6 -0
- package/lib/button/button.css +265 -0
- package/lib/button/button.d.ts +143 -0
- package/lib/button/button.js +1 -0
- package/lib/button/button.less +195 -0
- package/lib/button/button.variable.css +358 -0
- package/lib/button/index.d.ts +226 -0
- package/lib/card/card.css +63 -0
- package/lib/card/card.d.ts +69 -0
- package/lib/card/card.js +1 -0
- package/lib/card/card.less +44 -0
- package/lib/card/card.variable.css +156 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/checkbox/checkbox-group.d.ts +48 -0
- package/lib/checkbox/checkbox.css +64 -0
- package/lib/checkbox/checkbox.d.ts +114 -0
- package/lib/checkbox/checkbox.js +1 -0
- package/lib/checkbox/checkbox.less +80 -0
- package/lib/checkbox/checkbox.variable.css +157 -0
- package/lib/checkbox/common.d.ts +13 -0
- package/lib/checkbox/index.d.ts +261 -0
- package/lib/checkbox/type.d.ts +19 -0
- 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.js +1 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +279 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/collapse/collapse.css +30 -0
- package/lib/collapse/collapse.d.ts +106 -0
- package/lib/collapse/collapse.js +1 -0
- package/lib/collapse/collapse.less +37 -0
- package/lib/collapse/collapse.variable.css +30 -0
- package/lib/collapse/index.d.ts +166 -0
- 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.js +1 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +500 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -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 +68 -0
- package/lib/dialog/dialog.d.ts +113 -0
- package/lib/dialog/dialog.js +1 -0
- package/lib/dialog/dialog.less +80 -0
- package/lib/dialog/dialog.variable.css +68 -0
- package/lib/dialog/index.d.ts +286 -0
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/directives.js +2 -0
- package/lib/directives/directives.js.LICENSE.txt +14 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/mousewheel.d.ts +3 -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.js +1 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +131 -0
- package/lib/divider/index.d.ts +142 -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 +61 -0
- package/lib/dropdown/dropdown.js +1 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/exception/exception.css +32 -0
- package/lib/exception/exception.d.ts +26 -0
- package/lib/exception/exception.js +1 -0
- package/lib/exception/exception.less +39 -0
- package/lib/exception/exception.variable.css +125 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/fixed-navbar/fixed-navbar.css +42 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +34 -0
- package/lib/fixed-navbar/fixed-navbar.js +1 -0
- package/lib/fixed-navbar/fixed-navbar.less +53 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +135 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +145 -0
- package/lib/form/form.css +48 -0
- package/lib/form/form.d.ts +64 -0
- package/lib/form/form.js +1 -0
- package/lib/form/form.less +63 -0
- package/lib/form/form.variable.css +48 -0
- package/lib/form/index.d.ts +246 -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/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/icon.js +1 -0
- package/lib/icon/index.d.ts +53 -0
- 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 +443 -0
- package/lib/input/input.css +190 -0
- package/lib/input/input.d.ts +254 -0
- package/lib/input/input.js +1 -0
- package/lib/input/input.less +214 -0
- package/lib/input/input.variable.css +284 -0
- package/lib/link/index.d.ts +164 -0
- package/lib/link/link.css +55 -0
- package/lib/link/link.d.ts +58 -0
- package/lib/link/link.js +1 -0
- package/lib/link/link.less +74 -0
- package/lib/link/link.variable.css +148 -0
- package/lib/loading/index.d.ts +164 -0
- package/lib/loading/loading.css +261 -0
- package/lib/loading/loading.d.ts +94 -0
- package/lib/loading/loading.js +1 -0
- package/lib/loading/loading.less +197 -0
- package/lib/loading/loading.variable.css +354 -0
- package/lib/menu/index.d.ts +188 -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.js +1 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +275 -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 +96 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.js +1 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +146 -0
- package/lib/message/messageConstructor.d.ts +73 -0
- package/lib/modal/index.d.ts +214 -0
- package/lib/modal/modal.css +11 -0
- package/lib/modal/modal.d.ts +65 -0
- package/lib/modal/modal.js +1 -0
- package/lib/modal/modal.less +12 -0
- package/lib/modal/modal.variable.css +11 -0
- package/lib/modal/props.mixin.d.ts +26 -0
- package/lib/navigation/index.d.ts +2 -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.js +1 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +277 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.js +1 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +142 -0
- package/lib/notify/notifyConstructor.d.ts +91 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.js +1 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +272 -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 +287 -0
- package/lib/popover/popover.css +65 -0
- package/lib/popover/popover.d.ts +117 -0
- package/lib/popover/popover.js +1 -0
- package/lib/popover/popover.less +82 -0
- package/lib/popover/popover.variable.css +158 -0
- package/lib/popover/props.d.ts +77 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.js +1 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +231 -0
- package/lib/progress/circle.d.ts +6 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/line.d.ts +6 -0
- package/lib/progress/progress.css +94 -0
- package/lib/progress/progress.d.ts +171 -0
- package/lib/progress/progress.js +1 -0
- package/lib/progress/progress.less +90 -0
- package/lib/progress/progress.variable.css +187 -0
- package/lib/radio/common.d.ts +13 -0
- package/lib/radio/index.d.ts +277 -0
- package/lib/radio/radio-button.d.ts +91 -0
- package/lib/radio/radio-group.d.ts +41 -0
- package/lib/radio/radio.css +138 -0
- package/lib/radio/radio.d.ts +87 -0
- package/lib/radio/radio.js +1 -0
- package/lib/radio/radio.less +173 -0
- package/lib/radio/radio.variable.css +231 -0
- package/lib/radio/type.d.ts +9 -0
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/rate.css +10 -0
- package/lib/rate/rate.d.ts +32 -0
- package/lib/rate/rate.js +1 -0
- package/lib/rate/rate.less +11 -0
- package/lib/rate/rate.variable.css +10 -0
- package/lib/rate/star.css +24 -0
- package/lib/rate/star.d.ts +74 -0
- package/lib/rate/star.less +29 -0
- package/lib/rate/star.variable.css +24 -0
- package/lib/resize-layout/index.d.ts +336 -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.js +1 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +282 -0
- package/lib/select/common.d.ts +33 -0
- package/lib/select/index.d.ts +1347 -0
- package/lib/select/option.d.ts +25 -0
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +325 -0
- package/lib/select/select.d.ts +395 -0
- package/lib/select/select.js +1 -0
- package/lib/select/select.less +324 -0
- package/lib/select/select.variable.css +418 -0
- package/lib/select/type.d.ts +31 -0
- package/lib/shared/helper.d.ts +92 -0
- package/lib/shared/index.d.ts +52 -0
- package/lib/shared/mask-manager.d.ts +76 -0
- package/lib/shared/pop-manager.d.ts +26 -0
- package/lib/shared/popover.d.ts +127 -0
- package/lib/shared/scrollbar-width.d.ts +1 -0
- package/lib/shared/shared.js +1 -0
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +115 -0
- package/lib/shared/z-index-manager.d.ts +93 -0
- package/lib/sideslider/index.d.ts +206 -0
- package/lib/sideslider/sideslider.css +69 -0
- package/lib/sideslider/sideslider.d.ts +75 -0
- package/lib/sideslider/sideslider.js +1 -0
- package/lib/sideslider/sideslider.less +86 -0
- package/lib/sideslider/sideslider.variable.css +162 -0
- package/lib/slider/index.d.ts +27 -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.js +1 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +242 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.js +1 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +47 -0
- package/lib/styles/mixins/animate.css +21 -0
- package/lib/styles/mixins/animate.less +27 -0
- package/lib/styles/mixins/animate.variable.css +21 -0
- package/lib/styles/mixins/ellipsis.less +8 -0
- package/lib/styles/mixins/mixins.css +21 -0
- package/lib/styles/mixins/mixins.less +3 -0
- package/lib/styles/mixins/mixins.variable.css +21 -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 +13 -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 +126 -0
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.js +1 -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/switcher.css +272 -0
- package/lib/switcher/switcher.d.ts +113 -0
- package/lib/switcher/switcher.js +1 -0
- package/lib/switcher/switcher.less +358 -0
- package/lib/switcher/switcher.variable.css +365 -0
- package/lib/tab/index.d.ts +443 -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.js +1 -0
- package/lib/tab/tab.less +222 -0
- package/lib/tab/tab.variable.css +241 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +302 -0
- package/lib/table/props.d.ts +117 -0
- package/lib/table/render.d.ts +83 -0
- package/lib/table/table.css +91 -0
- package/lib/table/table.d.ts +119 -0
- package/lib/table/table.js +1 -0
- package/lib/table/table.less +115 -0
- package/lib/table/table.variable.css +184 -0
- package/lib/table/utils.d.ts +69 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +84 -0
- package/lib/tag/tag.js +1 -0
- package/lib/tag/tag.less +113 -0
- package/lib/tag/tag.variable.css +190 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -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.js +1 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +301 -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/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.js +1 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +328 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.js +1 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +251 -0
- package/lib/tree/index.d.ts +287 -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.js +1 -0
- package/lib/tree/tree.less +63 -0
- package/lib/tree/tree.variable.css +143 -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/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.js +1 -0
- package/lib/virtual-render/virtual-render.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +12 -11
@@ -0,0 +1,119 @@
|
|
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;
|
@@ -0,0 +1 @@
|
|
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,c,s)=>(()=>{"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=c},8541:e=>{e.exports=l},467:e=>{e.exports=s},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)},c=d(3162),s=d.n(c),u=d(5111),p=d.n(u),h=d(5801),v=d.n(h),m=p()((function e(t,r){s()(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,x=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]},k=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(r,n,o,a){var i=this;s()(this,t),this.getColumnClass=function(e){return"".concat(i.uuid,"-column-").concat(e)},this.props=r,this.context=n,this.reactiveProp=o,this.colgroups=a,this.plugins=new m(r,n),this.uuid=(0,e.random)(8)}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(x(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"},[x(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(x(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(o,a){return(0,n.createVNode)("td",{class:t.getColumnClass(a),colspan:1,rowspan:1},[(0,n.createVNode)("div",{class:"cell"},[t.renderCell(r,o,a,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[x(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="".concat((a=r.calcWidth,w(a,"auto"))).replace(/px$/i,"");return(0,n.createVNode)("col",{class:i,width: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)(k(t)),c=(0,n.reactive)(t.columns.map((function(e){return Object.assign(Object.assign({},e),{calcWidth:null})}))),s=(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 s.value=0,void(u.value=t.data.length);s.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=k(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,c),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(s.value,u.value)})),T=(0,n.computed)((function(){return t.pagination?t.remotePagination?p:Object.assign(Object.assign({},p),{count:t.data.length}):null})),x=(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-4,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 c=Number(i.replace("px",""));a(e,c),l=!1}if(/^\d+\.?\d*%$/.test(i)){var s=r;if(n>0){var u=Number(i.replace("%",""));s=n*u/100}a(e,s),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,c,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:x.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})()));
|
@@ -0,0 +1,115 @@
|
|
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
|
+
table-layout: fixed;
|
20
|
+
|
21
|
+
th,
|
22
|
+
td {
|
23
|
+
min-width: 80px;
|
24
|
+
|
25
|
+
.cell {
|
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
|
+
td,
|
69
|
+
th {
|
70
|
+
border-bottom: 1px solid @table-border-color;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
&.bordered-outer {
|
75
|
+
border-right: 1px solid @table-border-color;
|
76
|
+
border-left: 1px solid @table-border-color;
|
77
|
+
}
|
78
|
+
|
79
|
+
&.bordered-col {
|
80
|
+
th,
|
81
|
+
td {
|
82
|
+
border-right: 1px solid @table-border-color;
|
83
|
+
|
84
|
+
&:last-child {
|
85
|
+
border-right: none;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
&.bordered-none {
|
92
|
+
th,
|
93
|
+
td {
|
94
|
+
border-top: none;
|
95
|
+
border-right: none;
|
96
|
+
border-bottom: none;
|
97
|
+
border-left: none;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.@{bk-prefix}-table-fixed {
|
102
|
+
width: 100%;
|
103
|
+
}
|
104
|
+
|
105
|
+
colgroup {
|
106
|
+
col {
|
107
|
+
background: @table-bg-color;
|
108
|
+
|
109
|
+
&.active {
|
110
|
+
position: relative;
|
111
|
+
background: #f0f1f5;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
@@ -0,0 +1,184 @@
|
|
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
|
+
table-layout: fixed;
|
112
|
+
}
|
113
|
+
.bk-table .bk-table-head table th,
|
114
|
+
.bk-table .bk-table-body table th,
|
115
|
+
.bk-table .bk-table-head table td,
|
116
|
+
.bk-table .bk-table-body table td {
|
117
|
+
min-width: 80px;
|
118
|
+
}
|
119
|
+
.bk-table .bk-table-head table th .cell,
|
120
|
+
.bk-table .bk-table-body table th .cell,
|
121
|
+
.bk-table .bk-table-head table td .cell,
|
122
|
+
.bk-table .bk-table-body table td .cell {
|
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 td,
|
153
|
+
.bk-table.bordered-row th {
|
154
|
+
border-bottom: 1px solid var(--table-border-color);
|
155
|
+
}
|
156
|
+
.bk-table.bordered-outer {
|
157
|
+
border-right: 1px solid var(--table-border-color);
|
158
|
+
border-left: 1px solid var(--table-border-color);
|
159
|
+
}
|
160
|
+
.bk-table.bordered-col th,
|
161
|
+
.bk-table.bordered-col td {
|
162
|
+
border-right: 1px solid var(--table-border-color);
|
163
|
+
}
|
164
|
+
.bk-table.bordered-col th:last-child,
|
165
|
+
.bk-table.bordered-col td:last-child {
|
166
|
+
border-right: none;
|
167
|
+
}
|
168
|
+
.bk-table.bordered-none th,
|
169
|
+
.bk-table.bordered-none td {
|
170
|
+
border-top: none;
|
171
|
+
border-right: none;
|
172
|
+
border-bottom: none;
|
173
|
+
border-left: none;
|
174
|
+
}
|
175
|
+
.bk-table .bk-table-fixed {
|
176
|
+
width: 100%;
|
177
|
+
}
|
178
|
+
.bk-table colgroup col {
|
179
|
+
background: var(--table-bg-color);
|
180
|
+
}
|
181
|
+
.bk-table colgroup col.active {
|
182
|
+
position: relative;
|
183
|
+
background: #f0f1f5;
|
184
|
+
}
|
@@ -0,0 +1,69 @@
|
|
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;
|