bkui-vue 0.0.2-beta.1 → 0.0.2-beta.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +143 -161
- package/dist/index.esm.js +19198 -21160
- package/dist/index.umd.js +143 -161
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +122 -0
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/affix.variable.css +245 -1
- package/lib/affix/index.d.ts +4 -4
- package/lib/affix/index.js +321 -1
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +129 -119
- package/lib/alert/alert.variable.css +253 -1
- package/lib/alert/index.d.ts +10 -10
- package/lib/alert/index.js +214 -1
- package/lib/animate-number/index.d.ts +1 -1
- package/lib/animate-number/index.js +155 -1
- package/lib/backtop/backtop.css +133 -11
- package/lib/backtop/backtop.less +3 -1
- package/lib/backtop/backtop.variable.css +375 -9
- package/lib/backtop/index.d.ts +1 -1
- package/lib/backtop/index.js +188 -1
- package/lib/badge/badge.css +148 -26
- package/lib/badge/badge.d.ts +3 -2
- package/lib/badge/badge.variable.css +245 -1
- package/lib/badge/index.d.ts +10 -7
- package/lib/badge/index.js +235 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.css +131 -9
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +376 -10
- package/lib/breadcrumb/index.d.ts +6 -6
- package/lib/breadcrumb/index.js +309 -1
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +257 -115
- package/lib/button/button.less +105 -94
- package/lib/button/button.variable.css +265 -1
- package/lib/button/index.d.ts +4 -4
- package/lib/button/index.js +321 -1
- package/lib/card/card.css +130 -8
- package/lib/card/card.d.ts +1 -1
- package/lib/card/card.variable.css +375 -9
- package/lib/card/index.d.ts +4 -4
- package/lib/card/index.js +285 -1
- package/lib/cascader/cascader-panel.d.ts +1 -0
- package/lib/cascader/cascader.css +149 -27
- package/lib/cascader/cascader.d.ts +2 -12
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +394 -28
- package/lib/cascader/index.d.ts +9 -20
- package/lib/cascader/index.js +2036 -2
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +8 -3
- package/lib/checkbox/checkbox.css +131 -9
- package/lib/checkbox/checkbox.d.ts +14 -12
- package/lib/checkbox/checkbox.variable.css +245 -1
- package/lib/checkbox/index.d.ts +42 -31
- package/lib/checkbox/index.js +545 -1
- package/lib/code-diff/code-diff.css +122 -0
- package/lib/code-diff/code-diff.variable.css +245 -1
- package/lib/code-diff/index.d.ts +1 -1
- package/lib/code-diff/index.js +5501 -1
- package/lib/collapse/collapse.css +123 -1
- package/lib/collapse/collapse.variable.css +245 -1
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +570 -1
- package/lib/collapse-transition/collapse-transition.css +122 -0
- package/lib/collapse-transition/collapse-transition.d.ts +1 -0
- package/lib/collapse-transition/collapse-transition.variable.css +245 -1
- package/lib/collapse-transition/index.d.ts +128 -2
- package/lib/collapse-transition/index.js +177 -1
- package/lib/color-picker/color-picker.css +122 -0
- package/lib/color-picker/color-picker.d.ts +17 -1
- package/lib/color-picker/color-picker.variable.css +245 -1
- package/lib/color-picker/components/recommend-colors.d.ts +16 -0
- package/lib/color-picker/index.d.ts +22 -4
- package/lib/color-picker/index.js +2665 -1
- package/lib/components.d.ts +1 -1
- package/lib/components.js +530 -1
- package/lib/config-provider/config-provider.css +122 -0
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +245 -1
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/index.js +365 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/config-provider/use-global-config.d.ts +2 -0
- package/lib/config-provider/use-prefix.d.ts +2 -0
- package/lib/container/container.css +126 -4
- package/lib/container/container.variable.css +371 -5
- package/lib/container/index.d.ts +2 -2
- package/lib/container/index.js +391 -1
- package/lib/date-picker/base/confirm.d.ts +1 -0
- package/lib/date-picker/base/date-table.d.ts +1 -0
- package/lib/date-picker/base/month-table.d.ts +1 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -0
- package/lib/date-picker/base/time-spinner.d.ts +2 -1
- package/lib/date-picker/base/year-table.d.ts +1 -0
- package/lib/date-picker/date-picker.css +139 -17
- package/lib/date-picker/date-picker.d.ts +6 -3
- package/lib/date-picker/date-picker.variable.css +245 -1
- package/lib/date-picker/index.d.ts +21 -11
- package/lib/date-picker/index.js +5555 -1
- package/lib/date-picker/panel/date-range.d.ts +3 -1
- package/lib/date-picker/panel/date.d.ts +1 -0
- package/lib/date-picker/panel/time-range.d.ts +3 -2
- package/lib/date-picker/panel/time.d.ts +3 -2
- package/lib/date-picker/time-picker.d.ts +4 -3
- package/lib/dialog/dialog.css +133 -9
- package/lib/dialog/dialog.d.ts +4 -3
- package/lib/dialog/dialog.variable.css +378 -10
- package/lib/dialog/index.d.ts +11 -8
- package/lib/dialog/index.js +975 -2
- package/lib/dialog/props.d.ts +1 -1
- package/lib/directives/index.js +1385 -2
- package/lib/directives/tooltips.d.ts +3 -2
- package/lib/dist.index.js +87 -1
- package/lib/divider/divider.css +125 -3
- package/lib/divider/divider.less +3 -4
- package/lib/divider/divider.variable.css +245 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +169 -1
- package/lib/dropdown/dropdown.css +123 -0
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/dropdown.variable.css +368 -1
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/dropdown/index.js +369 -1
- package/lib/exception/exception.css +122 -0
- package/lib/exception/exception.variable.css +245 -1
- package/lib/exception/index.d.ts +2 -2
- package/lib/exception/index.js +385 -1
- package/lib/fixed-navbar/fixed-navbar.css +126 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +245 -1
- package/lib/fixed-navbar/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +154 -1
- package/lib/form/form.css +122 -0
- package/lib/form/form.variable.css +245 -1
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +952 -1
- package/lib/hooks.d.ts +1 -1
- package/lib/hooks.js +73 -1
- package/lib/icon/angle-double-down-line.js +191 -1
- package/lib/icon/angle-double-left-line.js +191 -1
- package/lib/icon/angle-double-left.js +191 -1
- package/lib/icon/angle-double-right-line.js +191 -1
- package/lib/icon/angle-double-right.js +191 -1
- package/lib/icon/angle-double-up-line.js +191 -1
- package/lib/icon/angle-down-fill.js +191 -1
- package/lib/icon/angle-down-line.js +191 -1
- package/lib/icon/angle-down.js +191 -1
- package/lib/icon/angle-left.js +191 -1
- package/lib/icon/angle-right.js +191 -1
- package/lib/icon/angle-up-fill.js +191 -1
- package/lib/icon/angle-up.js +191 -1
- package/lib/icon/archive-fill.js +191 -1
- package/lib/icon/arrows-left.js +191 -1
- package/lib/icon/arrows-right.js +191 -1
- package/lib/icon/assistant.d.ts +4 -0
- package/lib/icon/assistant.js +191 -0
- package/lib/icon/audio-fill.js +191 -1
- package/lib/icon/bk.js +191 -1
- package/lib/icon/circle.js +191 -1
- package/lib/icon/close-line.js +191 -1
- package/lib/icon/close.js +191 -1
- package/lib/icon/code.js +191 -1
- package/lib/icon/cog-shape.js +191 -1
- package/lib/icon/collapse-left.js +191 -1
- package/lib/icon/copy-shape.js +191 -1
- package/lib/icon/copy.js +191 -1
- package/lib/icon/data-shape.js +191 -1
- package/lib/icon/del.js +191 -1
- package/lib/icon/doc-fill.js +191 -1
- package/lib/icon/done.js +191 -1
- package/lib/icon/down-shape.js +191 -1
- package/lib/icon/down-small.js +191 -1
- package/lib/icon/edit-line.js +191 -1
- package/lib/icon/ellipsis.js +191 -1
- package/lib/icon/enlarge-line.js +191 -1
- package/lib/icon/error.js +191 -1
- package/lib/icon/excel-fill.js +191 -1
- package/lib/icon/exclamation-circle-shape.js +191 -1
- package/lib/icon/eye.js +191 -1
- package/lib/icon/filliscreen-line.js +191 -1
- package/lib/icon/fix-line.js +191 -1
- package/lib/icon/fix-shape.js +191 -1
- package/lib/icon/folder-open.js +191 -1
- package/lib/icon/folder-shape-open.js +191 -1
- package/lib/icon/folder-shape.js +191 -1
- package/lib/icon/folder.js +191 -1
- package/lib/icon/funnel.js +191 -1
- package/lib/icon/help-document-fill.js +191 -1
- package/lib/icon/help-fill.js +191 -1
- package/lib/icon/help.js +191 -1
- package/lib/icon/image-fill.js +276 -1
- package/lib/icon/img-error.js +276 -1
- package/lib/icon/img-placehoulder.js +276 -1
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +2399 -1
- package/lib/icon/info-line.js +276 -1
- package/lib/icon/info.js +276 -1
- package/lib/icon/left-shape.js +276 -1
- package/lib/icon/left-turn-line.js +276 -1
- package/lib/icon/narrow-line.js +276 -1
- package/lib/icon/original.js +276 -1
- package/lib/icon/pdf-fill.js +276 -1
- package/lib/icon/play-shape.js +276 -1
- package/lib/icon/plus.js +276 -1
- package/lib/icon/ppt-fill.js +276 -1
- package/lib/icon/qq.js +276 -1
- package/lib/icon/right-shape.js +276 -1
- package/lib/icon/right-turn-line.js +276 -1
- package/lib/icon/search.js +276 -1
- package/lib/icon/share.js +276 -1
- package/lib/icon/spinner.js +276 -1
- package/lib/icon/success.js +276 -1
- package/lib/icon/switcher-loading.js +276 -1
- package/lib/icon/text-file.js +276 -1
- package/lib/icon/text-fill.js +276 -1
- package/lib/icon/transfer.js +276 -1
- package/lib/icon/tree-application-shape.js +276 -1
- package/lib/icon/unfull-screen.js +276 -1
- package/lib/icon/unvisible.js +276 -1
- package/lib/icon/up-shape.js +276 -1
- package/lib/icon/upload.js +276 -1
- package/lib/icon/video-fill.js +276 -1
- package/lib/icon/warn.js +276 -1
- package/lib/icon/weixin-pro.js +276 -1
- package/lib/icon/weixin.js +276 -1
- package/lib/image/image-viewer.css +122 -0
- package/lib/image/image-viewer.less +5 -3
- package/lib/image/image-viewer.variable.css +366 -0
- package/lib/image/image.css +264 -0
- package/lib/image/image.d.ts +0 -1
- package/lib/image/image.less +4 -1
- package/lib/image/image.variable.css +630 -0
- package/lib/image/index.d.ts +1 -1
- package/lib/image/index.js +641 -1
- package/lib/index.js +97 -1
- package/lib/info-box/index.js +1165 -2
- package/lib/info-box/info-box.css +124 -0
- package/lib/info-box/info-box.d.ts +4 -0
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +247 -1
- package/lib/input/index.d.ts +153 -57
- package/lib/input/index.js +1226 -1
- package/lib/input/input.css +222 -72
- package/lib/input/input.d.ts +104 -15
- package/lib/input/input.less +53 -14
- package/lib/input/input.variable.css +467 -73
- package/lib/input/util.d.ts +6 -0
- package/lib/link/index.d.ts +7 -4
- package/lib/link/index.js +160 -1
- package/lib/link/link.css +138 -16
- package/lib/link/link.d.ts +2 -1
- package/lib/link/link.variable.css +245 -1
- package/lib/loading/index.d.ts +2 -2
- package/lib/loading/index.js +381 -1
- package/lib/loading/loading.css +142 -20
- package/lib/loading/loading.variable.css +387 -21
- package/lib/locale/index.js +465 -1
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.d.ts +2 -2
- package/lib/menu/index.js +724 -1
- package/lib/menu/menu.css +144 -22
- package/lib/menu/menu.variable.css +389 -23
- package/lib/menu/submenu.css +122 -0
- package/lib/menu/submenu.variable.css +245 -1
- package/lib/message/index.d.ts +0 -1
- package/lib/message/index.js +1795 -2
- package/lib/message/message.css +176 -30
- package/lib/message/message.less +81 -57
- package/lib/message/message.variable.css +278 -10
- package/lib/message/messageConstructor.d.ts +32 -9
- package/lib/modal/index.d.ts +10 -10
- package/lib/modal/index.js +396 -1
- package/lib/modal/modal.css +124 -0
- package/lib/modal/modal.d.ts +3 -3
- package/lib/modal/modal.variable.css +369 -1
- package/lib/modal/props.mixin.d.ts +1 -1
- package/lib/navigation/index.d.ts +4 -1
- package/lib/navigation/index.js +367 -1
- package/lib/navigation/navigation.css +124 -2
- package/lib/navigation/navigation.d.ts +1 -0
- package/lib/navigation/navigation.variable.css +245 -1
- package/lib/notify/index.d.ts +0 -1
- package/lib/notify/index.js +397 -1
- package/lib/notify/notify.css +129 -7
- package/lib/notify/notify.variable.css +245 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +257 -1
- package/lib/overflow-title/index.d.ts +387 -2
- package/lib/overflow-title/index.js +461 -1
- package/lib/overflow-title/props.d.ts +129 -0
- package/lib/pagination/index.d.ts +9 -9
- package/lib/pagination/index.js +880 -1
- package/lib/pagination/pagination.css +123 -1
- package/lib/pagination/pagination.d.ts +4 -4
- package/lib/pagination/pagination.variable.css +245 -1
- package/lib/plugin-popover/index.js +3905 -1
- package/lib/plugins/index.js +63 -1
- package/lib/pop-confirm/index.d.ts +1 -1
- package/lib/pop-confirm/index.js +273 -1
- package/lib/pop-confirm/pop-confirm.css +122 -0
- package/lib/pop-confirm/pop-confirm.less +9 -8
- package/lib/pop-confirm/pop-confirm.variable.css +245 -1
- package/lib/popover/const.d.ts +22 -9
- package/lib/popover/content.d.ts +34 -0
- package/lib/popover/index.d.ts +158 -73
- package/lib/popover/index.js +3913 -1
- package/lib/popover/popover.css +123 -0
- package/lib/popover/popover.d.ts +66 -30
- package/lib/popover/popover.less +3 -2
- package/lib/popover/popover.variable.css +246 -1
- package/lib/popover/props.d.ts +30 -7
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover2/index.d.ts +1 -1
- package/lib/popover2/index.js +107 -1
- package/lib/preset.d.ts +2 -0
- package/lib/preset.js +93 -1
- package/lib/process/index.d.ts +1 -1
- package/lib/process/index.js +759 -2
- package/lib/process/process.css +135 -13
- package/lib/process/process.variable.css +245 -1
- package/lib/progress/index.d.ts +8 -8
- package/lib/progress/index.js +431 -1
- package/lib/progress/progress.css +130 -8
- package/lib/progress/progress.d.ts +4 -4
- package/lib/progress/progress.variable.css +375 -9
- package/lib/radio/index.d.ts +26 -26
- package/lib/radio/index.js +627 -1
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +5 -5
- package/lib/radio/radio.css +153 -31
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +1 -1
- package/lib/radio/radio.variable.css +245 -1
- package/lib/rate/index.d.ts +12 -8
- package/lib/rate/index.js +338 -1
- package/lib/rate/rate.css +122 -0
- package/lib/rate/rate.d.ts +4 -3
- package/lib/rate/rate.less +5 -3
- package/lib/rate/rate.variable.css +366 -0
- package/lib/rate/star.css +122 -0
- package/lib/rate/star.less +6 -4
- package/lib/rate/star.variable.css +366 -0
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/index.js +429 -1
- package/lib/resize-layout/resize-layout.css +134 -0
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +12 -0
- package/lib/resize-layout/resize-layout.variable.css +257 -1
- package/lib/search-select/index.d.ts +62 -29
- package/lib/search-select/index.js +2729 -2
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/menu.d.ts +33 -2
- package/lib/search-select/search-select.css +193 -53
- package/lib/search-select/search-select.d.ts +23 -20
- package/lib/search-select/search-select.less +35 -14
- package/lib/search-select/search-select.variable.css +438 -54
- package/lib/search-select/selected.d.ts +5 -1
- package/lib/search-select/utils.d.ts +13 -5
- package/lib/select/common.d.ts +1 -0
- package/lib/select/index.d.ts +224 -111
- package/lib/select/index.js +2254 -2
- package/lib/select/option.d.ts +12 -0
- package/lib/select/optionGroup.d.ts +1 -0
- package/lib/select/select.css +159 -29
- package/lib/select/select.d.ts +94 -51
- package/lib/select/select.less +11 -1
- package/lib/select/select.variable.css +380 -6
- package/lib/select/selectTagInput.d.ts +9 -5
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/index.js +2689 -1
- package/lib/shared/mask-manager.d.ts +3 -4
- package/lib/shared/pop-manager.d.ts +6 -2
- package/lib/shared/popover.d.ts +2 -2
- package/lib/shared/vue-types.d.ts +5 -4
- package/lib/sideslider/index.d.ts +8 -8
- package/lib/sideslider/index.js +714 -2
- package/lib/sideslider/sideslider.css +123 -1
- package/lib/sideslider/sideslider.d.ts +3 -3
- package/lib/sideslider/sideslider.variable.css +245 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1291 -2
- package/lib/slider/slider.css +126 -4
- package/lib/slider/slider.less +6 -6
- package/lib/slider/slider.variable.css +245 -1
- package/lib/steps/index.d.ts +8 -8
- package/lib/steps/index.js +825 -2
- package/lib/steps/steps.css +158 -36
- package/lib/steps/steps.d.ts +4 -4
- package/lib/steps/steps.variable.css +245 -1
- package/lib/styles/index.d.ts +2 -0
- package/lib/styles/mixins/animate.css +126 -4
- package/lib/styles/mixins/animate.less +10 -6
- package/lib/styles/mixins/animate.variable.css +370 -4
- package/lib/styles/mixins/mixins.css +126 -4
- package/lib/styles/mixins/mixins.variable.css +126 -4
- package/lib/styles/mixins/popper.css +122 -0
- package/lib/styles/mixins/popper.less +6 -5
- package/lib/styles/mixins/popper.variable.css +245 -1
- package/lib/styles/mixins/scroll.css +122 -0
- package/lib/styles/mixins/scroll.variable.css +245 -1
- package/lib/styles/reset.css +122 -0
- package/lib/styles/reset.less +4 -2
- package/lib/styles/reset.variable.css +366 -0
- package/lib/styles/themes/themes.css +122 -0
- package/lib/styles/themes/themes.less +290 -121
- package/lib/styles/themes/themes.variable.css +122 -0
- package/lib/swiper/index.d.ts +1 -1
- package/lib/swiper/index.js +336 -1
- package/lib/swiper/swiper.css +122 -6
- package/lib/swiper/swiper.less +0 -8
- package/lib/swiper/swiper.variable.css +245 -7
- package/lib/switcher/index.d.ts +34 -20
- package/lib/switcher/index.js +277 -1
- package/lib/switcher/switcher.css +143 -21
- package/lib/switcher/switcher.d.ts +76 -7
- package/lib/switcher/switcher.variable.css +388 -22
- package/lib/tab/index.d.ts +6 -3
- package/lib/tab/index.js +914 -1
- package/lib/tab/tab-nav.d.ts +13 -2
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/tab/tab.css +139 -17
- package/lib/tab/tab.d.ts +1 -0
- package/lib/tab/tab.variable.css +245 -1
- package/lib/table/components/table-cell.d.ts +22 -15
- package/lib/table/components/table-column.d.ts +157 -220
- package/lib/table/const.d.ts +40 -56
- package/lib/table/events.d.ts +180 -0
- package/lib/table/index.d.ts +810 -435
- package/lib/table/index.js +6264 -1
- package/lib/table/plugins/head-filter.css +127 -2
- package/lib/table/plugins/head-filter.d.ts +3 -7
- package/lib/table/plugins/head-filter.less +8 -7
- package/lib/table/plugins/head-filter.variable.css +248 -1
- package/lib/table/plugins/head-sort.css +122 -0
- package/lib/table/plugins/head-sort.d.ts +3 -7
- package/lib/table/plugins/head-sort.variable.css +245 -1
- package/lib/table/plugins/settings.css +122 -0
- package/lib/table/plugins/settings.d.ts +12 -26
- package/lib/table/plugins/settings.less +3 -3
- package/lib/table/plugins/settings.variable.css +245 -1
- package/lib/table/plugins/use-column-resize.d.ts +30 -10
- package/lib/table/plugins/use-fixed-column.d.ts +10 -9
- package/lib/table/plugins/use-pagination.d.ts +7 -4
- package/lib/table/props.d.ts +221 -174
- package/lib/table/render.d.ts +12 -20
- package/lib/table/table.css +362 -154
- package/lib/table/table.d.ts +232 -98
- package/lib/table/table.less +83 -9
- package/lib/table/table.variable.css +607 -155
- package/lib/table/use-attributes.d.ts +55 -0
- package/lib/table/use-column.d.ts +264 -3
- package/lib/table/use-common.d.ts +1609 -76
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +30 -28
- package/lib/table-column/index.d.ts +393 -530
- package/lib/table-column/index.js +775 -1
- package/lib/tag/index.d.ts +10 -10
- package/lib/tag/index.js +233 -1
- package/lib/tag/tag.css +127 -5
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +245 -1
- package/lib/tag-input/index.d.ts +64 -34
- package/lib/tag-input/index.js +1660 -1
- package/lib/tag-input/tag-input.css +149 -19
- package/lib/tag-input/tag-input.d.ts +40 -20
- package/lib/tag-input/tag-input.less +13 -4
- package/lib/tag-input/tag-input.variable.css +254 -2
- package/lib/tag-input/tag-props.d.ts +19 -9
- package/lib/time-picker/index.d.ts +13 -10
- package/lib/time-picker/index.js +71 -1
- package/lib/time-picker/time-picker.css +122 -0
- package/lib/time-picker/time-picker.less +39 -39
- package/lib/time-picker/time-picker.variable.css +245 -1
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/index.js +241 -1
- package/lib/timeline/timeline.css +141 -19
- package/lib/timeline/timeline.variable.css +245 -1
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +673 -1
- package/lib/transfer/transfer.css +141 -19
- package/lib/transfer/transfer.variable.css +245 -1
- package/lib/tree/constant.d.ts +2 -2
- package/lib/tree/index.d.ts +70 -40
- package/lib/tree/index.js +2538 -1
- package/lib/tree/props.d.ts +20 -10
- package/lib/tree/tree.css +131 -9
- package/lib/tree/tree.d.ts +38 -21
- package/lib/tree/tree.variable.css +376 -10
- package/lib/tree/use-node-action.d.ts +5 -3
- package/lib/tree/use-node-attribute.d.ts +17 -8
- package/lib/tree/use-search.d.ts +2 -2
- package/lib/tree/use-tree-init.d.ts +1 -2
- package/lib/tree/util.d.ts +9 -3
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/index.js +2874 -2
- package/lib/upload/upload.css +153 -31
- package/lib/upload/upload.type.d.ts +1 -1
- package/lib/upload/upload.variable.css +398 -32
- package/lib/upload/use-file-handler.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +43 -1
- package/lib/virtual-render/index.js +860 -1
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/v-virtual-render.d.ts +19 -1
- package/lib/virtual-render/virtual-render.css +122 -0
- package/lib/virtual-render/virtual-render.d.ts +25 -0
- package/lib/virtual-render/virtual-render.less +5 -6
- package/lib/virtual-render/virtual-render.variable.css +367 -1
- package/lib/volar.components.d.ts +24 -24
- package/package.json +31 -18
- package/lib/cascader/index.js.LICENSE.txt +0 -1
- package/lib/dialog/index.js.LICENSE.txt +0 -1
- package/lib/directives/index.js.LICENSE.txt +0 -14
- package/lib/info-box/index.js.LICENSE.txt +0 -1
- package/lib/message/index.js.LICENSE.txt +0 -6
- package/lib/process/index.js.LICENSE.txt +0 -1
- package/lib/search-select/index.js.LICENSE.txt +0 -1
- package/lib/select/index.js.LICENSE.txt +0 -1
- package/lib/sideslider/index.js.LICENSE.txt +0 -1
- package/lib/slider/index.js.LICENSE.txt +0 -1
- package/lib/steps/index.js.LICENSE.txt +0 -1
- package/lib/upload/index.js.LICENSE.txt +0 -1
package/lib/table/props.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { ExtractPropTypes
|
2
|
-
import { ROW_HOVER, SORT_OPTION } from './const';
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
import { IHeadColor, ROW_HOVER, SORT_OPTION } from './const';
|
3
3
|
export declare enum SortScope {
|
4
4
|
CURRENT = "current",
|
5
5
|
ALL = "all"
|
@@ -12,7 +12,7 @@ export declare enum OverflowModeEnum {
|
|
12
12
|
STATIC = "static",
|
13
13
|
AUTO = "auto"
|
14
14
|
}
|
15
|
-
export declare const
|
15
|
+
export declare const EnumOverflowModeType: import("vue-types").VueTypeDef<"auto" | "static">;
|
16
16
|
export declare enum ColumnTypeEnum {
|
17
17
|
SELECTION = "selection",
|
18
18
|
INDEX = "index",
|
@@ -43,15 +43,39 @@ export declare enum FixedEnum {
|
|
43
43
|
RIGHT = "right"
|
44
44
|
}
|
45
45
|
export declare const fixedType: import("vue-types").VueTypeValidableDef<"right" | "left">;
|
46
|
-
export type
|
46
|
+
export type IOverflowTooltipProp = {
|
47
47
|
content: string | Function;
|
48
|
-
disabled?: boolean;
|
48
|
+
disabled?: (col: Column, row: any) => boolean | boolean;
|
49
49
|
watchCellResize?: boolean;
|
50
50
|
mode?: `${OverflowModeEnum}`;
|
51
|
-
|
51
|
+
popoverOption?: any;
|
52
|
+
resizerWay?: ResizerWay;
|
53
|
+
} | boolean;
|
54
|
+
export type IOverflowTooltip = IOverflowTooltipProp;
|
55
|
+
export declare const IOverflowTooltipPropType: import("vue-types").VueTypeDef<IOverflowTooltipProp>;
|
52
56
|
export type ISortOption = {
|
53
57
|
[key: string]: SORT_OPTION;
|
54
58
|
};
|
59
|
+
export declare const ISortType: import("vue-types").VueTypeDef<ISortPropShape>;
|
60
|
+
export type ISortShape = {
|
61
|
+
sortFn?: Function;
|
62
|
+
sortScope?: SortScope;
|
63
|
+
value?: SORT_OPTION;
|
64
|
+
};
|
65
|
+
export type ISortPropShape = ISortShape | boolean | string;
|
66
|
+
export type IFilterShape = {
|
67
|
+
list: any[];
|
68
|
+
filterFn?: Function;
|
69
|
+
match?: FullEnum;
|
70
|
+
checked?: any[];
|
71
|
+
filterScope?: SortScope;
|
72
|
+
btnSave?: boolean | string;
|
73
|
+
btnReset?: boolean | string;
|
74
|
+
height?: number;
|
75
|
+
maxHeight?: number;
|
76
|
+
};
|
77
|
+
export type IFilterPropShape = IFilterShape | boolean | string;
|
78
|
+
export declare const IFilterType: import("vue-types").VueTypeDef<IFilterPropShape>;
|
55
79
|
export declare enum ColumnPickEnum {
|
56
80
|
MULTI = "multi",
|
57
81
|
SINGLE = "single",
|
@@ -61,67 +85,137 @@ export declare enum ResizerWay {
|
|
61
85
|
DEBOUNCE = "debounce",
|
62
86
|
THROTTLE = "throttle"
|
63
87
|
}
|
64
|
-
export declare const IColumnType:
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
88
|
+
export declare const IColumnType: import("vue-types").VueTypeDef<Column>;
|
89
|
+
export declare const ITableSettings: import("vue-types").VueTypeDef<ISettingPropType>;
|
90
|
+
/**
|
91
|
+
* 配置自定义行高选项
|
92
|
+
*/
|
93
|
+
export type SizeItem = {
|
94
|
+
value?: string;
|
95
|
+
label?: string;
|
96
|
+
height?: number;
|
97
|
+
};
|
98
|
+
export type Settings = {
|
99
|
+
fields?: Field[];
|
100
|
+
checked?: string[];
|
101
|
+
limit?: number;
|
102
|
+
size?: string;
|
103
|
+
sizeList?: SizeItem[];
|
104
|
+
showLineHeight?: boolean;
|
105
|
+
};
|
106
|
+
export type ISettingPropType = Settings | boolean;
|
107
|
+
export type Field = {
|
108
|
+
label: string;
|
109
|
+
field?: string;
|
110
|
+
disabled?: boolean;
|
111
|
+
id?: string;
|
112
|
+
name?: string;
|
113
|
+
};
|
114
|
+
export type LabelFunctionString = ((_column: any, _index: any) => string | number | boolean | JSX.Element) | string | number | boolean;
|
115
|
+
export declare const LabelFunctionStringType: import("vue-types").VueTypeDef<LabelFunctionString>;
|
116
|
+
export type RenderFunctionString = ({ cell, data, row, column, index, rows, }: {
|
117
|
+
cell: any;
|
118
|
+
data: any;
|
119
|
+
row: any;
|
120
|
+
column: any;
|
121
|
+
index: any;
|
122
|
+
rows: any;
|
123
|
+
}) => string | number | boolean | JSX.Element;
|
124
|
+
export declare const RenderFunctionStringType: import("vue-types").VueTypeDef<RenderFunctionString>;
|
125
|
+
export type SpanFunctionString = (({ column, colIndex, row, rowIndex }: {
|
126
|
+
column: any;
|
127
|
+
colIndex: any;
|
128
|
+
row: any;
|
129
|
+
rowIndex: any;
|
130
|
+
}) => number) | Number;
|
131
|
+
export declare const SpanFunctionStringType: import("vue-types").VueTypeDef<SpanFunctionString>;
|
132
|
+
export type RowClassFunctionString = ((row: any) => string) | string;
|
133
|
+
export declare const RowClassFunctionStringType: import("vue-types").VueTypeDef<RowClassFunctionString>;
|
134
|
+
export type RowHeightFunctionNumber = ((_type: string, _row: any, _rowIndex: number, _size?: any) => number) | number;
|
135
|
+
export declare const RowHeightFunctionNumberType: import("vue-types").VueTypeDef<RowHeightFunctionNumber>;
|
136
|
+
type FunctionNumber = Function | number;
|
137
|
+
export declare const FunctionNumberType: import("vue-types").VueTypeDef<FunctionNumber>;
|
138
|
+
type StringNumber = string | number;
|
139
|
+
export declare const StringNumberType: (val: number | string) => import("vue-types").VueTypeDef<StringNumber> & {
|
140
|
+
default: StringNumber;
|
141
|
+
};
|
142
|
+
/**
|
143
|
+
* 表格字段解释说明
|
144
|
+
*/
|
145
|
+
export type IColumnExplain = {
|
146
|
+
content: LabelFunctionString;
|
147
|
+
head: LabelFunctionString | boolean;
|
148
|
+
} | boolean;
|
149
|
+
export type Column = {
|
150
|
+
label: LabelFunctionString;
|
151
|
+
field?: LabelFunctionString;
|
152
|
+
render?: RenderFunctionString;
|
153
|
+
renderHead?: RenderFunctionString;
|
154
|
+
width?: number | string;
|
155
|
+
minWidth?: number | string;
|
156
|
+
columnKey?: string;
|
157
|
+
showOverflowTooltip?: boolean | IOverflowTooltip;
|
158
|
+
type?: string;
|
159
|
+
fixed?: string | boolean;
|
160
|
+
resizable?: boolean;
|
161
|
+
sort?: ISortShape | boolean | string;
|
162
|
+
filter?: IFilterShape | boolean | string;
|
163
|
+
colspan?: SpanFunctionString;
|
164
|
+
rowspan?: SpanFunctionString;
|
165
|
+
textAlign?: string;
|
166
|
+
className?: RowClassFunctionString;
|
167
|
+
align?: string;
|
168
|
+
prop?: LabelFunctionString;
|
169
|
+
index?: Number;
|
170
|
+
explain?: IColumnExplain;
|
171
|
+
};
|
172
|
+
export declare const IColumnProp: import("vue-types").VueTypeDef<Column>;
|
173
|
+
export type Thead = {
|
174
|
+
height?: Number;
|
175
|
+
isShow?: boolean;
|
176
|
+
cellFn?: Function;
|
177
|
+
color?: IHeadColor | string;
|
178
|
+
};
|
179
|
+
export type Columns = ReadonlyArray<Column>;
|
180
|
+
export type TablePropTypes = Readonly<ExtractPropTypes<typeof tableProps>>;
|
181
|
+
export type GroupColumn = {
|
182
|
+
calcWidth?: number;
|
183
|
+
resizeWidth?: number;
|
184
|
+
isHidden?: boolean;
|
185
|
+
listeners?: Map<string, any>;
|
186
|
+
} & Column;
|
187
|
+
export type IColumnActive = {
|
188
|
+
index: number;
|
189
|
+
active: boolean;
|
190
|
+
};
|
191
|
+
export type IReactiveProp = {
|
192
|
+
activeColumns: IColumnActive[];
|
193
|
+
rowActions: Record<string, any>;
|
194
|
+
scrollTranslateY: Number;
|
195
|
+
scrollTranslateX: Number;
|
196
|
+
pos: Record<string, any>;
|
197
|
+
settings: Settings | boolean;
|
198
|
+
setting: {
|
199
|
+
size: string;
|
200
|
+
height: Number;
|
118
201
|
};
|
119
|
-
|
120
|
-
rowspan: import("vue-types").VueTypeDef<any>;
|
121
|
-
align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
122
|
-
className: import("vue-types").VueTypeDef<any>;
|
202
|
+
defaultSort: Record<string, any>;
|
123
203
|
};
|
124
|
-
export type
|
204
|
+
export type Colgroups = Column & {
|
205
|
+
calcWidth: number;
|
206
|
+
resizeWidth: number;
|
207
|
+
listeners: Map<string, Function>;
|
208
|
+
};
|
209
|
+
export declare enum IColSortBehavior {
|
210
|
+
/**
|
211
|
+
* 列排序是相互依赖的
|
212
|
+
*/
|
213
|
+
interdependent = "interdependent",
|
214
|
+
/**
|
215
|
+
* 列与列之间的排序是独立的,互斥的
|
216
|
+
*/
|
217
|
+
independent = "independent"
|
218
|
+
}
|
125
219
|
export declare const tableProps: {
|
126
220
|
/**
|
127
221
|
* 渲染列表
|
@@ -153,29 +247,37 @@ export declare const tableProps: {
|
|
153
247
|
* 默认:auto 根据行数自动填充高度
|
154
248
|
* 100%,依赖初始化时父级容器高度
|
155
249
|
*/
|
156
|
-
height: import("vue-types").VueTypeDef<
|
157
|
-
default:
|
250
|
+
height: import("vue-types").VueTypeDef<StringNumber> & {
|
251
|
+
default: StringNumber;
|
252
|
+
};
|
253
|
+
/**
|
254
|
+
* 是否为斑马纹 Table
|
255
|
+
*/
|
256
|
+
stripe: import("vue-types").VueTypeValidableDef<boolean> & {
|
257
|
+
default: boolean;
|
258
|
+
} & {
|
259
|
+
default: boolean;
|
158
260
|
};
|
159
261
|
/**
|
160
262
|
* 设置表格最小高度
|
161
263
|
* 默认:300
|
162
264
|
*/
|
163
|
-
minHeight: import("vue-types").VueTypeDef<
|
164
|
-
default:
|
265
|
+
minHeight: import("vue-types").VueTypeDef<StringNumber> & {
|
266
|
+
default: StringNumber;
|
165
267
|
};
|
166
268
|
/**
|
167
269
|
* 设置表格最d大高度
|
168
270
|
* 默认:auto,依赖外层高度
|
169
271
|
*/
|
170
|
-
maxHeight: import("vue-types").VueTypeDef<
|
171
|
-
default:
|
272
|
+
maxHeight: import("vue-types").VueTypeDef<StringNumber> & {
|
273
|
+
default: StringNumber;
|
172
274
|
};
|
173
275
|
/**
|
174
276
|
* 行高,可以为固定数值类型
|
175
277
|
* 可以是函数,返回当前行的高度,返回值为数值类型
|
176
278
|
*/
|
177
|
-
rowHeight: import("vue-types").VueTypeDef<
|
178
|
-
default:
|
279
|
+
rowHeight: import("vue-types").VueTypeDef<RowHeightFunctionNumber> & {
|
280
|
+
default: RowHeightFunctionNumber;
|
179
281
|
};
|
180
282
|
/**
|
181
283
|
* Thead行高,可以为固定数值类型
|
@@ -196,7 +298,9 @@ export declare const tableProps: {
|
|
196
298
|
/**
|
197
299
|
* table header config
|
198
300
|
*/
|
199
|
-
thead: import("vue-types").
|
301
|
+
thead: import("vue-types").VueTypeDef<Thead> & {
|
302
|
+
default: () => Thead;
|
303
|
+
};
|
200
304
|
/**
|
201
305
|
* 是否启用虚拟渲染 & 滚动
|
202
306
|
* 当数据量很大时,启用虚拟渲染可以解决压面卡顿问题
|
@@ -244,6 +348,14 @@ export declare const tableProps: {
|
|
244
348
|
} & {
|
245
349
|
default: boolean;
|
246
350
|
};
|
351
|
+
/**
|
352
|
+
* 是否支持跨页全选
|
353
|
+
*/
|
354
|
+
acrossAll: import("vue-types").VueTypeValidableDef<boolean> & {
|
355
|
+
default: boolean;
|
356
|
+
} & {
|
357
|
+
default: boolean;
|
358
|
+
};
|
247
359
|
/**
|
248
360
|
* 空数据展示
|
249
361
|
*/
|
@@ -251,25 +363,15 @@ export declare const tableProps: {
|
|
251
363
|
default: string;
|
252
364
|
};
|
253
365
|
/**
|
254
|
-
*
|
366
|
+
* 单元格数据为空展示
|
255
367
|
*/
|
256
|
-
|
257
|
-
|
258
|
-
checked: string[] | (() => string[]);
|
259
|
-
limit: number;
|
260
|
-
size: "small" | "medium" | "large";
|
261
|
-
sizeList: SizeItem[] | (object & (() => SizeItem[]));
|
262
|
-
showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
263
|
-
}> & {
|
264
|
-
default: boolean | (() => {
|
265
|
-
fields: Field[] | (() => Field[]);
|
266
|
-
checked: string[] | (() => string[]);
|
267
|
-
limit: number;
|
268
|
-
size: "small" | "medium" | "large";
|
269
|
-
sizeList: SizeItem[] | (object & (() => SizeItem[]));
|
270
|
-
showLineHeight: (boolean | object | (() => boolean) | ((props: Record<string, unknown>) => boolean)) & boolean;
|
271
|
-
});
|
368
|
+
emptyCellText: import("vue-types").VueTypeDef<any> & {
|
369
|
+
default: any;
|
272
370
|
};
|
371
|
+
/**
|
372
|
+
* bk-table-setting-content
|
373
|
+
*/
|
374
|
+
settings: import("vue-types").VueTypeDef<ISettingPropType>;
|
273
375
|
/**
|
274
376
|
* 行的 class 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
275
377
|
*/
|
@@ -323,6 +425,17 @@ export declare const tableProps: {
|
|
323
425
|
} & {
|
324
426
|
default: string;
|
325
427
|
};
|
428
|
+
/**
|
429
|
+
* 默认选中行
|
430
|
+
* 仅对设置了selection的情况下生效
|
431
|
+
* 值可以为 [key1, key2, key3, ...] 或者 [row1, row2, row3, ...]
|
432
|
+
* 如果设置为key,则 selectionKey 必须设置,内部匹配逻辑为:row[selectionKey] === key
|
433
|
+
*/
|
434
|
+
checked: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
435
|
+
default: () => unknown[];
|
436
|
+
} & {
|
437
|
+
default: () => unknown[];
|
438
|
+
};
|
326
439
|
/**
|
327
440
|
* 提供自定义判定当前行是否选中
|
328
441
|
* 如果设置了此属性,其他判定均不生效
|
@@ -346,9 +459,7 @@ export declare const tableProps: {
|
|
346
459
|
* 当内容过长被隐藏时显示 tooltip, 此处为全局配置, 如果只配置此处,整个table都启用
|
347
460
|
* column内部可以单个配置覆盖此配置
|
348
461
|
*/
|
349
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<
|
350
|
-
default: boolean | (() => IOverflowTooltip);
|
351
|
-
};
|
462
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<IOverflowTooltipProp>;
|
352
463
|
/**
|
353
464
|
* 为避免不必要的数据修改导致的不可控组件更新
|
354
465
|
* 默认组件不会对传入组件的data进行任何修改
|
@@ -408,84 +519,20 @@ export declare const tableProps: {
|
|
408
519
|
prependStyle: import("vue-types").VueTypeDef<import("vue").CSSProperties> & {
|
409
520
|
default: () => import("vue").CSSProperties;
|
410
521
|
};
|
522
|
+
/**
|
523
|
+
* 列排序行为
|
524
|
+
* independent:列与列之间的排序是独立的,互斥的
|
525
|
+
* interdependent:列排序是相互影响、依赖的
|
526
|
+
*
|
527
|
+
*/
|
528
|
+
colSortBehavior: import("vue-types").VueTypeDef<IColSortBehavior>;
|
529
|
+
/**
|
530
|
+
* 是否采用flex布局表格
|
531
|
+
*/
|
532
|
+
isFlex: import("vue-types").VueTypeValidableDef<boolean> & {
|
533
|
+
default: boolean;
|
534
|
+
} & {
|
535
|
+
default: boolean;
|
536
|
+
};
|
411
537
|
};
|
412
|
-
|
413
|
-
* 配置自定义行高选项
|
414
|
-
*/
|
415
|
-
export type SizeItem = {
|
416
|
-
value?: string;
|
417
|
-
label?: string;
|
418
|
-
height?: number;
|
419
|
-
};
|
420
|
-
export type Settings = {
|
421
|
-
fields?: Field[];
|
422
|
-
checked?: string[];
|
423
|
-
limit?: number;
|
424
|
-
size?: string;
|
425
|
-
sizeList?: SizeItem[];
|
426
|
-
showLineHeight?: boolean;
|
427
|
-
};
|
428
|
-
export type Field = {
|
429
|
-
label: string;
|
430
|
-
field?: string;
|
431
|
-
disabled?: boolean;
|
432
|
-
};
|
433
|
-
export type Column = {
|
434
|
-
label: Function | string;
|
435
|
-
field?: Function | string;
|
436
|
-
render?: Function | string | Slot;
|
437
|
-
width?: number | string;
|
438
|
-
minWidth?: number | string;
|
439
|
-
columnKey?: string;
|
440
|
-
showOverflowTooltip?: boolean | IOverflowTooltip;
|
441
|
-
type?: string;
|
442
|
-
fixed?: string | boolean;
|
443
|
-
resizable?: boolean;
|
444
|
-
sort?: {
|
445
|
-
sortFn?: Function;
|
446
|
-
sortScope?: string;
|
447
|
-
value?: string;
|
448
|
-
} | boolean | string;
|
449
|
-
filter?: {
|
450
|
-
list?: any;
|
451
|
-
filterFn?: Function;
|
452
|
-
checked?: any;
|
453
|
-
} | boolean | string;
|
454
|
-
colspan?: Function | Number;
|
455
|
-
rowspan?: Function | Number;
|
456
|
-
textAlign?: String;
|
457
|
-
className?: string | Function;
|
458
|
-
align?: string;
|
459
|
-
};
|
460
|
-
export type Thead = {
|
461
|
-
height?: Number;
|
462
|
-
isShow?: boolean;
|
463
|
-
cellFn?: Function;
|
464
|
-
};
|
465
|
-
export type GroupColumn = {
|
466
|
-
calcWidth?: number;
|
467
|
-
resizeWidth?: number;
|
468
|
-
isHidden?: boolean;
|
469
|
-
listeners?: Map<string, any>;
|
470
|
-
} & Column;
|
471
|
-
export type Columns = ReadonlyArray<Column>;
|
472
|
-
export type TablePropTypes = Readonly<ExtractPropTypes<typeof tableProps>>;
|
473
|
-
export type IColumnActive = {
|
474
|
-
index: number;
|
475
|
-
active: boolean;
|
476
|
-
};
|
477
|
-
export type IReactiveProp = {
|
478
|
-
activeColumns: IColumnActive[];
|
479
|
-
rowActions: Record<string, any>;
|
480
|
-
scrollTranslateY: Number;
|
481
|
-
scrollTranslateX: Number;
|
482
|
-
pos: Record<string, any>;
|
483
|
-
settings: any;
|
484
|
-
setting: any;
|
485
|
-
defaultSort: Record<string, any>;
|
486
|
-
};
|
487
|
-
export type Colgroups = Column & {
|
488
|
-
calcWidth: number;
|
489
|
-
resizeWidth: number;
|
490
|
-
listeners: Map<string, Function>;
|
491
|
-
};
|
538
|
+
export {};
|
package/lib/table/render.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
1
|
+
import { ComputedRef, Ref, SetupContext } from 'vue';
|
2
2
|
import type { Language } from '../locale';
|
3
3
|
import { TablePlugins } from './plugins';
|
4
|
-
import {
|
4
|
+
import { Column, TablePropTypes } from './props';
|
5
|
+
import { ITableFormatData, ITableResponse } from './use-attributes';
|
5
6
|
export default class TableRender {
|
6
7
|
props: TablePropTypes;
|
7
|
-
context:
|
8
|
-
|
9
|
-
colgroups: GroupColumn[];
|
8
|
+
context: SetupContext;
|
9
|
+
tableResp: ITableResponse;
|
10
10
|
uuid: string;
|
11
11
|
events: Map<string, any[]>;
|
12
12
|
styleRef: ComputedRef<{
|
@@ -15,8 +15,9 @@ export default class TableRender {
|
|
15
15
|
t: ComputedRef<Language['table']>;
|
16
16
|
activeSortIndex: Ref<number>;
|
17
17
|
plugins: TablePlugins;
|
18
|
-
constructor(props: any, ctx: any,
|
19
|
-
get
|
18
|
+
constructor(props: any, ctx: any, tableResp: ITableResponse, styleRef: any, t: ComputedRef<Language['table']>);
|
19
|
+
get formatData(): ITableFormatData;
|
20
|
+
get columns(): Column[];
|
20
21
|
/**
|
21
22
|
* 渲染Table Head
|
22
23
|
*/
|
@@ -26,7 +27,9 @@ export default class TableRender {
|
|
26
27
|
* @param rows 表格数据
|
27
28
|
* @returns
|
28
29
|
*/
|
29
|
-
renderTableBodySchema(rows: any[]):
|
30
|
+
renderTableBodySchema(rows: any[]): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
31
|
+
[key: string]: any;
|
32
|
+
}>[] | JSX.Element;
|
30
33
|
renderTableFooter(options: any): JSX.Element;
|
31
34
|
getRowHeight: (row?: any, rowIndex?: number) => any;
|
32
35
|
/**
|
@@ -36,12 +39,6 @@ export default class TableRender {
|
|
36
39
|
*/
|
37
40
|
on(eventName: string, watcher: Function): this;
|
38
41
|
destroy(): void;
|
39
|
-
/**
|
40
|
-
* 派发事件
|
41
|
-
* @param eventName
|
42
|
-
* @param args
|
43
|
-
*/
|
44
|
-
private emitEvent;
|
45
42
|
private handlePageLimitChange;
|
46
43
|
private handlePageChange;
|
47
44
|
/**
|
@@ -49,7 +46,7 @@ export default class TableRender {
|
|
49
46
|
* @param index 指定选中的列Index
|
50
47
|
* @param single 是否重置其他列,当只允许选中一列的情况下需要先重置
|
51
48
|
*/
|
52
|
-
private
|
49
|
+
private getSortFnByColumn;
|
53
50
|
/**
|
54
51
|
* 点击选中一列事件
|
55
52
|
* @param index 当前选中列Index
|
@@ -121,7 +118,6 @@ export default class TableRender {
|
|
121
118
|
* @param colIndex 指定列Index
|
122
119
|
* @returns
|
123
120
|
*/
|
124
|
-
private isColActive;
|
125
121
|
/**
|
126
122
|
* 渲染表格Col分组
|
127
123
|
* @returns
|
@@ -131,8 +127,4 @@ export default class TableRender {
|
|
131
127
|
* 过滤当前可渲染的列
|
132
128
|
*/
|
133
129
|
private get filterColGroups();
|
134
|
-
/**
|
135
|
-
* 当前Table Setting
|
136
|
-
*/
|
137
|
-
private get setting();
|
138
130
|
}
|