bkui-vue 0.0.1-beta.19 → 0.0.1-beta.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/index.cjs.js +171 -0
- package/dist/index.esm.js +36112 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4783
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +116 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +28 -6
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +31 -3
- package/lib/backtop/index.d.ts +7 -7
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +28 -8
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +74 -3
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +92 -45
- package/lib/button/button.d.ts +50 -5
- package/lib/button/button.less +88 -47
- package/lib/button/button.variable.css +115 -48
- package/lib/button/index.d.ts +82 -11
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +119 -4
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +100 -0
- package/lib/cascader/cascader.css +173 -0
- package/lib/cascader/cascader.d.ts +303 -0
- package/lib/cascader/cascader.less +196 -0
- package/lib/cascader/cascader.variable.css +286 -0
- package/lib/cascader/index.d.ts +868 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +23 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +38 -6
- package/lib/checkbox/checkbox.d.ts +16 -14
- package/lib/checkbox/checkbox.less +48 -6
- package/lib/checkbox/checkbox.variable.css +61 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +40 -23
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +3 -7
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +299 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +75 -0
- package/lib/collapse/collapse.css +28 -12
- package/lib/collapse/collapse.d.ts +11 -52
- package/lib/collapse/collapse.less +54 -29
- package/lib/collapse/collapse.variable.css +141 -12
- package/lib/collapse/index.d.ts +116 -16
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +123 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +388 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +28 -7
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +204 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.css +18 -2
- package/lib/date-picker/date-picker.d.ts +53 -136
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +41 -5
- package/lib/date-picker/index.d.ts +87 -26
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +10 -1
- package/lib/date-picker/props.d.ts +161 -0
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +132 -21
- package/lib/dialog/dialog.d.ts +266 -56
- package/lib/dialog/dialog.less +77 -22
- package/lib/dialog/dialog.variable.css +132 -21
- package/lib/dialog/index.d.ts +586 -124
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +135 -0
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.variable.css +23 -3
- package/lib/divider/index.d.ts +4 -4
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/const.d.ts +4 -0
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +35 -4
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +36 -10
- package/lib/dropdown/index.d.ts +75 -14
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +10 -3
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +63 -17
- package/lib/exception/index.d.ts +23 -8
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +23 -3
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +21 -24
- package/lib/form/form.css +102 -10
- package/lib/form/form.d.ts +37 -40
- package/lib/form/form.less +145 -34
- package/lib/form/form.variable.css +215 -10
- package/lib/form/index.d.ts +103 -85
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +8 -6
- package/lib/form/validator.d.ts +1 -0
- package/lib/icon/angle-double-down-line.js +1 -15
- package/lib/icon/angle-double-left-line.js +1 -15
- package/lib/icon/angle-double-left.js +1 -15
- package/lib/icon/angle-double-right-line.js +1 -15
- package/lib/icon/angle-double-right.js +1 -15
- package/lib/icon/angle-double-up-line.js +1 -15
- package/lib/icon/angle-down-fill.js +1 -15
- package/lib/icon/angle-down-line.js +1 -15
- package/lib/icon/angle-down.js +1 -15
- package/lib/icon/angle-left.js +1 -15
- package/lib/icon/angle-right.js +1 -15
- package/lib/icon/angle-up-fill.js +1 -15
- package/lib/icon/angle-up.js +1 -15
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -15
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.js +1 -15
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -15
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -15
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -15
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/help.js +1 -15
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +29 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -15
- package/lib/icon/info.js +1 -15
- package/lib/icon/left-shape.js +1 -15
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original .d.ts +4 -0
- package/lib/icon/original .js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -15
- package/lib/icon/plus.js +1 -15
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.js +1 -15
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -15
- package/lib/icon/share.js +1 -15
- package/lib/icon/spinner.js +1 -15
- package/lib/icon/success.js +1 -15
- package/lib/icon/switcher-loading.js +1 -15
- package/lib/icon/text-file.js +1 -15
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -15
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -15
- package/lib/icon/up-shape.js +1 -15
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -15
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.css +37 -0
- package/lib/info-box/index.d.ts +26 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/index.less +50 -0
- package/lib/info-box/index.variable.css +37 -0
- package/lib/input/index.d.ts +209 -44
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -17
- package/lib/input/input.d.ts +142 -12
- package/lib/input/input.less +180 -18
- package/lib/input/input.variable.css +252 -16
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +35 -15
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +177 -98
- package/lib/loading/loading.d.ts +96 -12
- package/lib/loading/loading.less +84 -73
- package/lib/loading/loading.variable.css +200 -101
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +74 -3
- package/lib/menu/submenu.variable.css +23 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +24 -3
- package/lib/message/message.less +27 -2
- package/lib/message/message.variable.css +47 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +483 -75
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +185 -29
- package/lib/modal/modal.less +36 -1
- package/lib/modal/modal.variable.css +63 -1
- package/lib/modal/props.mixin.d.ts +79 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +10 -1
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +24 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +24 -4
- package/lib/notify/notify.less +27 -4
- package/lib/notify/notify.variable.css +47 -7
- package/lib/notify/notifyConstructor.d.ts +50 -6
- package/lib/pagination/index.d.ts +35 -20
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +16 -6
- package/lib/pagination/pagination.less +58 -31
- package/lib/pagination/pagination.variable.css +77 -31
- package/lib/pagination/type.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/popover/index.d.ts +114 -14
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +53 -5
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +26 -3
- package/lib/popover/props.d.ts +28 -1
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +10 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +524 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/plugin-popover.d.ts +12 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +221 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +138 -0
- package/lib/popover2/props.d.ts +118 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +20 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popover-init.d.ts +13 -0
- package/lib/popover2/use-popper-id.d.ts +7 -0
- package/lib/popover2/utils.d.ts +1 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +7 -7
- package/lib/process/index.js +1 -15
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.variable.css +23 -3
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +74 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +30 -19
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +16 -0
- package/lib/radio/radio.css +62 -57
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +87 -62
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +24 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +11 -0
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +302 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1410 -451
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +16 -4
- package/lib/select/optionGroup.d.ts +1 -77
- package/lib/select/select.css +263 -80
- package/lib/select/select.d.ts +549 -126
- package/lib/select/select.less +364 -185
- package/lib/select/select.variable.css +287 -84
- package/lib/select/selectTagInput.d.ts +92 -0
- package/lib/select/type.d.ts +38 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
- package/lib/shared/index.d.ts +17 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +3 -2
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +3 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +13 -0
- package/lib/shared/vue-types.d.ts +9 -1
- package/lib/sideslider/index.d.ts +373 -73
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +54 -10
- package/lib/sideslider/sideslider.d.ts +173 -32
- package/lib/sideslider/sideslider.less +71 -13
- package/lib/sideslider/sideslider.variable.css +77 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +5 -0
- package/lib/slider/slider.d.ts +14 -2
- package/lib/slider/slider.variable.css +23 -3
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +14 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +23 -3
- package/lib/steps/steps.variable.css +37 -6
- package/lib/styles/index.d.ts +12 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +130 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -0
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +29 -3
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +37 -14
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +16 -5
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +80 -9
- package/lib/tab/index.d.ts +107 -219
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +66 -87
- package/lib/tab/tab-panel.d.ts +40 -15
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +17 -41
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +48 -4
- package/lib/table/const.d.ts +80 -1
- package/lib/table/index.d.ts +774 -9
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +72 -0
- package/lib/table/plugins/head-filter.less +93 -0
- package/lib/table/plugins/head-filter.variable.css +185 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +135 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +242 -0
- package/lib/table/props.d.ts +257 -4
- package/lib/table/render.d.ts +64 -6
- package/lib/table/table.css +1128 -15
- package/lib/table/table.d.ts +197 -5
- package/lib/table/table.less +223 -24
- package/lib/table/table.variable.css +1162 -29
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +94 -0
- package/lib/table/utils.d.ts +52 -3
- package/lib/table-column/index.d.ts +328 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +189 -22
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +112 -0
- package/lib/tag/tag.d.ts +83 -7
- package/lib/tag/tag.less +127 -2
- package/lib/tag/tag.variable.css +135 -3
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +913 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +383 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +322 -0
- package/lib/tag-input/tag-props.d.ts +135 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +328 -0
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +5 -5
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +6 -5
- package/lib/timeline/timeline.variable.css +28 -8
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +365 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +139 -0
- package/lib/transfer/transfer.d.ts +160 -0
- package/lib/transfer/transfer.less +144 -0
- package/lib/transfer/transfer.variable.css +252 -0
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +337 -41
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +114 -0
- package/lib/tree/tree.css +175 -14
- package/lib/tree/tree.d.ts +156 -14
- package/lib/tree/tree.less +70 -26
- package/lib/tree/tree.variable.css +288 -14
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +31 -13
- package/lib/upload/index.d.ts +580 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +422 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +461 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +535 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +24 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +10 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -24
- package/lib/virtual-render/virtual-render.d.ts +13 -2
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +130 -24
- package/lib/volar.components.d.ts +100 -0
- package/package.json +71 -51
- package/README_EN.md +0 -89
- package/dist/bkui-vue.cjs.js +0 -12407
- package/dist/bkui-vue.esm.js +0 -12357
- package/dist/bkui-vue.umd.js +0 -12410
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
- package/lib/styles/mixins/animate.css +0 -21
- package/lib/use-form.d.ts +0 -3
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Column, TablePropTypes } from './props';
|
2
|
+
declare const _default: (props: TablePropTypes, targetColumns: Column[]) => {
|
3
|
+
initColumns: (column: Column | Column[]) => void;
|
4
|
+
getColumns: () => Column[];
|
5
|
+
};
|
6
|
+
/**
|
7
|
+
* 渲染column settings
|
8
|
+
* @param props: TablePropTypes
|
9
|
+
* @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
|
10
|
+
*/
|
11
|
+
export default _default;
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import { Colgroups, Column, TablePropTypes } from './props';
|
2
|
+
/**
|
3
|
+
* 渲染class settings
|
4
|
+
* @param props: TablePropTypes
|
5
|
+
* @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
|
6
|
+
* @param root root element
|
7
|
+
* @param reactiveProp 组件内部定义的响应式对象
|
8
|
+
* @param pageData 当前页数据
|
9
|
+
*/
|
10
|
+
export declare const useClass: (props: TablePropTypes, targetColumns: Column[], root?: any, reactiveProp?: any, pageData?: any[]) => {
|
11
|
+
tableClass: import("vue").ComputedRef<string>;
|
12
|
+
headClass: string;
|
13
|
+
contentClass: {
|
14
|
+
[x: string]: boolean;
|
15
|
+
};
|
16
|
+
footerClass: import("vue").ComputedRef<string>;
|
17
|
+
wrapperStyle: import("vue").ComputedRef<{
|
18
|
+
minHeight: string | number;
|
19
|
+
width: string;
|
20
|
+
maxWidth: string;
|
21
|
+
}>;
|
22
|
+
contentStyle: {
|
23
|
+
display: string;
|
24
|
+
'min-height': string;
|
25
|
+
height: string;
|
26
|
+
maxHeight: string;
|
27
|
+
};
|
28
|
+
headStyle: import("vue").ComputedRef<{
|
29
|
+
'--row-height': string;
|
30
|
+
'--scroll-head-left': string;
|
31
|
+
'--scroll-left': string;
|
32
|
+
}>;
|
33
|
+
resetTableHeight: (rootEl: HTMLElement) => void;
|
34
|
+
updateBorderClass: (root: HTMLElement) => void;
|
35
|
+
getColumnsWidthOffsetWidth: () => number;
|
36
|
+
hasFooter: import("vue").ComputedRef<number>;
|
37
|
+
hasScrollY: any;
|
38
|
+
};
|
39
|
+
/**
|
40
|
+
* 渲染初始化数据 settings
|
41
|
+
* @param props: TablePropTypes
|
42
|
+
* @param targetColumns 解析之后的column配置(主要用来处理通过<bk-column>配置的数据结构)
|
43
|
+
*/
|
44
|
+
export declare const useInit: (props: TablePropTypes, targetColumns: Column[]) => {
|
45
|
+
colgroups: Colgroups[];
|
46
|
+
dragOffsetXStyle: import("vue").ComputedRef<{
|
47
|
+
readonly position: "absolute";
|
48
|
+
readonly top: 0;
|
49
|
+
readonly bottom: 0;
|
50
|
+
readonly left: 0;
|
51
|
+
readonly width: "1px";
|
52
|
+
readonly 'background-color': "#ebeef5";
|
53
|
+
}>;
|
54
|
+
dragOffsetX: import("vue").Ref<number>;
|
55
|
+
reactiveSchema: {
|
56
|
+
rowActions: Map<any, any>;
|
57
|
+
scrollTranslateY: number;
|
58
|
+
scrollTranslateX: number;
|
59
|
+
pos: {
|
60
|
+
bottom: number;
|
61
|
+
};
|
62
|
+
activeColumns: any[];
|
63
|
+
settings: boolean | {
|
64
|
+
fields?: {
|
65
|
+
label: string;
|
66
|
+
field?: string;
|
67
|
+
disabled?: boolean;
|
68
|
+
}[];
|
69
|
+
checked?: string[];
|
70
|
+
limit?: number;
|
71
|
+
size?: string;
|
72
|
+
sizeList?: {
|
73
|
+
value?: string;
|
74
|
+
label?: string;
|
75
|
+
height?: number;
|
76
|
+
}[];
|
77
|
+
};
|
78
|
+
setting: {
|
79
|
+
size: string;
|
80
|
+
height: any;
|
81
|
+
};
|
82
|
+
};
|
83
|
+
indexData: any[];
|
84
|
+
fixedWrapperClass: string;
|
85
|
+
initIndexData: (keepLocalAction?: boolean) => void;
|
86
|
+
updateIndexData: (selectedAll?: boolean) => void;
|
87
|
+
renderFixedColumns: (scrollX?: any, offsetRight?: any) => ("" | JSX.Element)[];
|
88
|
+
setRowExpand: (row: any, expand?: any) => void;
|
89
|
+
updateColGroups: () => void;
|
90
|
+
clearSelection: () => void;
|
91
|
+
toggleAllSelection: (checked?: any) => void;
|
92
|
+
toggleRowSelection: (row: any, selected: boolean) => void;
|
93
|
+
getSelection: () => any[];
|
94
|
+
};
|
package/lib/table/utils.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { GroupColumn, TablePropTypes } from './props';
|
1
|
+
import { Column, GroupColumn, TablePropTypes } from './props';
|
2
2
|
/**
|
3
3
|
* 解析Prop值 | 可能为多种类型 & 函数返回的场景
|
4
4
|
* @param prop 当前Prop
|
@@ -6,7 +6,7 @@ import { GroupColumn, TablePropTypes } from './props';
|
|
6
6
|
* @param args 如果是函数,传递参数
|
7
7
|
* @returns
|
8
8
|
*/
|
9
|
-
export declare const resolvePropVal: (prop: any, key: string, args: any[]) => any;
|
9
|
+
export declare const resolvePropVal: (prop: any, key: string | string[], args: any[]) => any;
|
10
10
|
/**
|
11
11
|
* 处理Props中的ActiveColumn,解析为统一的数组格式
|
12
12
|
* @param props
|
@@ -34,13 +34,24 @@ export declare const resolveNumberOrStringToPix: (val: string | number, defaultV
|
|
34
34
|
* @returns
|
35
35
|
*/
|
36
36
|
export declare const resolvePropBorderToClassStr: (val: string | string[]) => string;
|
37
|
+
/**
|
38
|
+
* 获取当前列实际宽度
|
39
|
+
* width props中设置的默认宽度
|
40
|
+
* calcWidth 计算后的宽度
|
41
|
+
* resizeWidth 拖拽重置之后的宽度
|
42
|
+
* @param colmun 当前列配置
|
43
|
+
* @param orders 获取宽度顺序
|
44
|
+
* @returns
|
45
|
+
*/
|
46
|
+
export declare const getColumnReactWidth: (colmun: GroupColumn, orders?: string[]) => any;
|
37
47
|
/**
|
38
48
|
* 根据Props Column配置计算并设置列宽度
|
39
49
|
* @param root 当前根元素
|
40
50
|
* @param colgroups Columns配置
|
41
51
|
* @param autoWidth 自动填充宽度
|
52
|
+
* @param offsetWidth 需要减掉的偏移量(滚动条|外层边框)
|
42
53
|
*/
|
43
|
-
export declare const resolveColumnWidth: (root: HTMLElement, colgroups: GroupColumn[], autoWidth?: number) => void;
|
54
|
+
export declare const resolveColumnWidth: (root: HTMLElement, colgroups: GroupColumn[], autoWidth?: number, offsetWidth?: number) => void;
|
44
55
|
/**
|
45
56
|
* 监听目标元素的Resize事件
|
46
57
|
* @param root 目标元素
|
@@ -59,3 +70,41 @@ export declare const observerResize: (root: HTMLElement, callbackFn: () => void,
|
|
59
70
|
* @returns
|
60
71
|
*/
|
61
72
|
export declare const isPercentPixOrNumber: (val: string | number) => boolean;
|
73
|
+
/**
|
74
|
+
* Format Table Head Option
|
75
|
+
* @param props
|
76
|
+
* @returns
|
77
|
+
*/
|
78
|
+
export declare const resolveHeadConfig: (props: TablePropTypes) => {
|
79
|
+
isShow: boolean;
|
80
|
+
height: number;
|
81
|
+
} & {
|
82
|
+
height?: Number;
|
83
|
+
isShow?: boolean;
|
84
|
+
cellFn?: Function;
|
85
|
+
};
|
86
|
+
/**
|
87
|
+
* 获取当前行指定列的内容
|
88
|
+
* @param row 当前行
|
89
|
+
* @param key 指定列名
|
90
|
+
* @param column 列配置
|
91
|
+
* @param index 当前行Index
|
92
|
+
* @returns
|
93
|
+
*/
|
94
|
+
export declare const getRowText: (row: any, key: string, column: Column) => any;
|
95
|
+
/**
|
96
|
+
* 格式化prop配置为标准数组格式
|
97
|
+
* @param prop prop对象值
|
98
|
+
* @param args 如果是function参数
|
99
|
+
* @returns
|
100
|
+
*/
|
101
|
+
export declare const formatPropAsArray: (prop: string | object | (() => any), args: any[]) => any;
|
102
|
+
export declare const isRenderScrollBottomLoading: (props: TablePropTypes) => boolean;
|
103
|
+
export declare const getRowKey: (item: any, props: TablePropTypes, index: number) => any;
|
104
|
+
export declare const hasRootScrollY: (root: any, querySelector: string, offsetHeight?: number) => boolean;
|
105
|
+
export declare const getColumnClass: (column: Column, colIndex?: number, uuid?: string) => {
|
106
|
+
column_fixed: boolean;
|
107
|
+
column_fixed_left: boolean;
|
108
|
+
column_fixed_right: boolean;
|
109
|
+
};
|
110
|
+
export declare const getElementTextWidth: (element: HTMLElement, text?: string) => any;
|
@@ -0,0 +1,328 @@
|
|
1
|
+
declare const BkTableColumn: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
fixed: string | boolean;
|
7
|
+
filter: string | boolean | {
|
8
|
+
list: any[] | (object & (() => any[]));
|
9
|
+
filterFn: any;
|
10
|
+
match: string;
|
11
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
12
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
13
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
14
|
+
};
|
15
|
+
sort: string | boolean | {
|
16
|
+
sortFn: any;
|
17
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
18
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
19
|
+
};
|
20
|
+
type: string;
|
21
|
+
minWidth: string | number;
|
22
|
+
columnKey: string;
|
23
|
+
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
24
|
+
resizable: boolean;
|
25
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
26
|
+
prop: import("vue-types").VueTypeDef<any>;
|
27
|
+
label: import("vue-types").VueTypeDef<any>;
|
28
|
+
field: import("vue-types").VueTypeDef<any>;
|
29
|
+
render: import("vue-types").VueTypeDef<any>;
|
30
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
31
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
32
|
+
default: string | number;
|
33
|
+
};
|
34
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
35
|
+
default: string;
|
36
|
+
} & {
|
37
|
+
default: string;
|
38
|
+
};
|
39
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
40
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
41
|
+
};
|
42
|
+
type: import("vue-types").VueTypeDef<string> & {
|
43
|
+
default: string;
|
44
|
+
};
|
45
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
46
|
+
default: boolean;
|
47
|
+
} & {
|
48
|
+
default: boolean;
|
49
|
+
};
|
50
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
51
|
+
default: string | boolean;
|
52
|
+
};
|
53
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
54
|
+
sortFn: any;
|
55
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
56
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
57
|
+
}> & {
|
58
|
+
default: string | boolean | (() => {
|
59
|
+
sortFn: any;
|
60
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
61
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
62
|
+
});
|
63
|
+
};
|
64
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
65
|
+
list: any[] | (object & (() => any[]));
|
66
|
+
filterFn: any;
|
67
|
+
match: string;
|
68
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
69
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
70
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
71
|
+
}> & {
|
72
|
+
default: string | boolean | (() => {
|
73
|
+
list: any[] | (object & (() => any[]));
|
74
|
+
filterFn: any;
|
75
|
+
match: string;
|
76
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
77
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
78
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
79
|
+
});
|
80
|
+
};
|
81
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "filter" | "sort" | "type" | "minWidth" | "columnKey" | "showOverflowTooltip" | "resizable">;
|
82
|
+
$attrs: {
|
83
|
+
[x: string]: unknown;
|
84
|
+
};
|
85
|
+
$refs: {
|
86
|
+
[x: string]: unknown;
|
87
|
+
};
|
88
|
+
$slots: Readonly<{
|
89
|
+
[name: string]: import("vue").Slot;
|
90
|
+
}>;
|
91
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
92
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
93
|
+
$emit: (event: string, ...args: any[]) => void;
|
94
|
+
$el: any;
|
95
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
96
|
+
prop: import("vue-types").VueTypeDef<any>;
|
97
|
+
label: import("vue-types").VueTypeDef<any>;
|
98
|
+
field: import("vue-types").VueTypeDef<any>;
|
99
|
+
render: import("vue-types").VueTypeDef<any>;
|
100
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
101
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
102
|
+
default: string | number;
|
103
|
+
};
|
104
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
105
|
+
default: string;
|
106
|
+
} & {
|
107
|
+
default: string;
|
108
|
+
};
|
109
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
110
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
111
|
+
};
|
112
|
+
type: import("vue-types").VueTypeDef<string> & {
|
113
|
+
default: string;
|
114
|
+
};
|
115
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
116
|
+
default: boolean;
|
117
|
+
} & {
|
118
|
+
default: boolean;
|
119
|
+
};
|
120
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
121
|
+
default: string | boolean;
|
122
|
+
};
|
123
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
124
|
+
sortFn: any;
|
125
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
126
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
127
|
+
}> & {
|
128
|
+
default: string | boolean | (() => {
|
129
|
+
sortFn: any;
|
130
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
131
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
132
|
+
});
|
133
|
+
};
|
134
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
135
|
+
list: any[] | (object & (() => any[]));
|
136
|
+
filterFn: any;
|
137
|
+
match: string;
|
138
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
139
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
140
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
141
|
+
}> & {
|
142
|
+
default: string | boolean | (() => {
|
143
|
+
list: any[] | (object & (() => any[]));
|
144
|
+
filterFn: any;
|
145
|
+
match: string;
|
146
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
147
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
148
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
149
|
+
});
|
150
|
+
};
|
151
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
152
|
+
fixed: string | boolean;
|
153
|
+
filter: string | boolean | {
|
154
|
+
list: any[] | (object & (() => any[]));
|
155
|
+
filterFn: any;
|
156
|
+
match: string;
|
157
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
158
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
159
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
160
|
+
};
|
161
|
+
sort: string | boolean | {
|
162
|
+
sortFn: any;
|
163
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
164
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
165
|
+
};
|
166
|
+
type: string;
|
167
|
+
minWidth: string | number;
|
168
|
+
columnKey: string;
|
169
|
+
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
170
|
+
resizable: boolean;
|
171
|
+
}> & {
|
172
|
+
beforeCreate?: (() => void) | (() => void)[];
|
173
|
+
created?: (() => void) | (() => void)[];
|
174
|
+
beforeMount?: (() => void) | (() => void)[];
|
175
|
+
mounted?: (() => void) | (() => void)[];
|
176
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
177
|
+
updated?: (() => void) | (() => void)[];
|
178
|
+
activated?: (() => void) | (() => void)[];
|
179
|
+
deactivated?: (() => void) | (() => void)[];
|
180
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
181
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
182
|
+
destroyed?: (() => void) | (() => void)[];
|
183
|
+
unmounted?: (() => void) | (() => void)[];
|
184
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
185
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
186
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
187
|
+
};
|
188
|
+
$forceUpdate: () => void;
|
189
|
+
$nextTick: typeof import("vue").nextTick;
|
190
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
191
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
192
|
+
prop: import("vue-types").VueTypeDef<any>;
|
193
|
+
label: import("vue-types").VueTypeDef<any>;
|
194
|
+
field: import("vue-types").VueTypeDef<any>;
|
195
|
+
render: import("vue-types").VueTypeDef<any>;
|
196
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
197
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
198
|
+
default: string | number;
|
199
|
+
};
|
200
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
201
|
+
default: string;
|
202
|
+
} & {
|
203
|
+
default: string;
|
204
|
+
};
|
205
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
206
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
207
|
+
};
|
208
|
+
type: import("vue-types").VueTypeDef<string> & {
|
209
|
+
default: string;
|
210
|
+
};
|
211
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
212
|
+
default: boolean;
|
213
|
+
} & {
|
214
|
+
default: boolean;
|
215
|
+
};
|
216
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
217
|
+
default: string | boolean;
|
218
|
+
};
|
219
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
220
|
+
sortFn: any;
|
221
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
222
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
223
|
+
}> & {
|
224
|
+
default: string | boolean | (() => {
|
225
|
+
sortFn: any;
|
226
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
227
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
228
|
+
});
|
229
|
+
};
|
230
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
231
|
+
list: any[] | (object & (() => any[]));
|
232
|
+
filterFn: any;
|
233
|
+
match: string;
|
234
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
235
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
236
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
237
|
+
}> & {
|
238
|
+
default: string | boolean | (() => {
|
239
|
+
list: any[] | (object & (() => any[]));
|
240
|
+
filterFn: any;
|
241
|
+
match: string;
|
242
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
243
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
244
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
245
|
+
});
|
246
|
+
};
|
247
|
+
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
248
|
+
__isFragment?: never;
|
249
|
+
__isTeleport?: never;
|
250
|
+
__isSuspense?: never;
|
251
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
252
|
+
prop: import("vue-types").VueTypeDef<any>;
|
253
|
+
label: import("vue-types").VueTypeDef<any>;
|
254
|
+
field: import("vue-types").VueTypeDef<any>;
|
255
|
+
render: import("vue-types").VueTypeDef<any>;
|
256
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
257
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
258
|
+
default: string | number;
|
259
|
+
};
|
260
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
261
|
+
default: string;
|
262
|
+
} & {
|
263
|
+
default: string;
|
264
|
+
};
|
265
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
266
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
267
|
+
};
|
268
|
+
type: import("vue-types").VueTypeDef<string> & {
|
269
|
+
default: string;
|
270
|
+
};
|
271
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
272
|
+
default: boolean;
|
273
|
+
} & {
|
274
|
+
default: boolean;
|
275
|
+
};
|
276
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
277
|
+
default: string | boolean;
|
278
|
+
};
|
279
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
280
|
+
sortFn: any;
|
281
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
282
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
283
|
+
}> & {
|
284
|
+
default: string | boolean | (() => {
|
285
|
+
sortFn: any;
|
286
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
287
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
288
|
+
});
|
289
|
+
};
|
290
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
291
|
+
list: any[] | (object & (() => any[]));
|
292
|
+
filterFn: any;
|
293
|
+
match: string;
|
294
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
295
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
296
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
297
|
+
}> & {
|
298
|
+
default: string | boolean | (() => {
|
299
|
+
list: any[] | (object & (() => any[]));
|
300
|
+
filterFn: any;
|
301
|
+
match: string;
|
302
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
303
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
304
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
305
|
+
});
|
306
|
+
};
|
307
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
308
|
+
fixed: string | boolean;
|
309
|
+
filter: string | boolean | {
|
310
|
+
list: any[] | (object & (() => any[]));
|
311
|
+
filterFn: any;
|
312
|
+
match: string;
|
313
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
314
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
315
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
316
|
+
};
|
317
|
+
sort: string | boolean | {
|
318
|
+
sortFn: any;
|
319
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
320
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
321
|
+
};
|
322
|
+
type: string;
|
323
|
+
minWidth: string | number;
|
324
|
+
columnKey: string;
|
325
|
+
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
326
|
+
resizable: boolean;
|
327
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
328
|
+
export default BkTableColumn;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var p="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var r in p)("object"==typeof exports?exports:e)[r]=p[r]}}(self,((e,o)=>(()=>{"use strict";var p={4212:o=>{o.exports=e},748:e=>{e.exports=o}},r={};function s(e){var o=r[e];if(void 0!==o)return o.exports;var n=r[e]={exports:{}};return p[e](n,n.exports,s),n.exports}s.d=(e,o)=>{for(var p in o)s.o(o,p)&&!s.o(e,p)&&Object.defineProperty(e,p,{enumerable:!0,get:o[p]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{s.r(n),s.d(n,{default:()=>a});var e,o,p=s(4212),r=s(748);function T(e,o,p){return o in e?Object.defineProperty(e,o,{value:p,enumerable:!0,configurable:!0,writable:!0}):e[o]=p,e}!function(e){e.NONE="none",e.ROW="row",e.COL="col",e.OUTER="outer"}(o||(o={}));var y,t,f=[o.NONE,o.ROW,o.COL,o.OUTER];!function(e){e.ON_SORT_BY_CLICK="onSortByClick",e.ON_FILTER_CLICK="onFilterClick",e.ON_SETTING_CHANGE="onSettingChange",e.ON_ROW_EXPAND_CLICK="onRowExpandClick",e.ON_ROW_CHECK="onRowCheck"}(y||(y={})),function(e){e.COLUMN_PICK="columnPick",e.COLUMN_SORT="columnSort",e.COLUMN_FILTER="columnFilter",e.COLUMN_FILTER_SAVE="colFilterSave",e.ROW_CLICK="rowClick",e.ROW_DBL_CLICK="rowDblclick",e.ROW_EXPAND_CLICK="rowExpand",e.PAGE_LIMIT_CHANGE="pageLimitChange",e.PAGE_VALUE_CHANGE="pageValueChange",e.SETTING_CHANGE="settingChange",e.SCROLL_BOTTOM="scrollBottom",e.ROW_SELECT="select",e.ROW_SELECT_ALL="selectAll",e.ROW_SELECT_CHANGE="selectionChange"}(t||(t={}));var P,i=function(){return!0};T(e={},t.COLUMN_PICK,i),T(e,t.COLUMN_FILTER,i),T(e,t.COLUMN_SORT,i),T(e,t.COLUMN_FILTER_SAVE,i),T(e,t.ROW_CLICK,i),T(e,t.ROW_DBL_CLICK,i),T(e,t.ROW_EXPAND_CLICK,i),T(e,t.ROW_SELECT,i),T(e,t.ROW_SELECT_ALL,i),T(e,t.ROW_SELECT_CHANGE,i),T(e,t.PAGE_LIMIT_CHANGE,i),T(e,t.PAGE_VALUE_CHANGE,i),T(e,t.SETTING_CHANGE,i),T(e,t.SCROLL_BOTTOM,i),function(e){e.CURRENT="current",e.ALL="all"}(P||(P={}));var d={label:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")]),field:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")]),render:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")]),width:p.PropTypes.oneOfType([p.PropTypes.number.def(void 0),p.PropTypes.string.def("auto")]),minWidth:p.PropTypes.oneOfType([p.PropTypes.number.def(void 0),p.PropTypes.string.def("auto")]).def(),columnKey:p.PropTypes.string.def(""),showOverflowTooltip:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.shape({content:p.PropTypes.string.def(""),disabled:p.PropTypes.bool.def(!1),watchCellResize:p.PropTypes.bool.def(!0)})]).def(void 0),type:p.PropTypes.commonType(["selection","index","expand","none"],"columnType").def("none"),resizable:p.PropTypes.bool.def(!0),fixed:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.commonType(["left","right"],"fixed")]).def(!1),sort:p.PropTypes.oneOfType([p.PropTypes.shape({sortFn:p.PropTypes.func.def(void 0),sortScope:p.PropTypes.commonType(Object.values(P)).def(P.CURRENT),value:p.PropTypes.string.def(null)}),p.PropTypes.bool,p.PropTypes.string]).def(!1),filter:p.PropTypes.oneOfType([p.PropTypes.shape({list:p.PropTypes.arrayOf(p.PropTypes.any).def([]),filterFn:p.PropTypes.func.def(void 0),match:p.PropTypes.commonType(["full","fuzzy"],"full"),filterScope:p.PropTypes.commonType(Object.values(P)).def(P.CURRENT),btnSave:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.string]).def("确定"),btnReset:p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.string]).def("重置")}),p.PropTypes.bool,p.PropTypes.string]).def(!1)};p.PropTypes.arrayOf(p.PropTypes.any).def([]),p.PropTypes.arrayOf(p.PropTypes.shape(d)).def([]),p.PropTypes.oneOfType([p.PropTypes.number.def(-1),p.PropTypes.arrayOf(p.PropTypes.number.def(-1))]),p.PropTypes.commonType(["multi","single","disabled"],"columnPick").def("disabled"),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string]).def("auto"),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string]).def(84),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.string]).def("auto"),p.PropTypes.oneOfType([p.PropTypes.number,p.PropTypes.func]).def(42),p.PropTypes.number.def(42),p.PropTypes.bool.def(!0),p.PropTypes.shape({height:p.PropTypes.number.def(42),isShow:p.PropTypes.bool.def(!0),cellFn:p.PropTypes.func.def(void 0)}),p.PropTypes.bool.def(!1),p.PropTypes.arrayOf(p.PropTypes.commonType(f,"border")).def([o.ROW]),p.PropTypes.oneOfType([p.PropTypes.bool.def(!1),p.PropTypes.object.def({})]).def(!1),p.PropTypes.bool.def(!1),p.PropTypes.string.def("暂无数据"),p.PropTypes.oneOfType([p.PropTypes.shape({fields:p.PropTypes.arrayOf(p.PropTypes.shape({label:p.PropTypes.string,field:p.PropTypes.string,disabled:p.PropTypes.bool})),checked:p.PropTypes.arrayOf(p.PropTypes.string),limit:p.PropTypes.number.def(0),size:p.PropTypes.size(["small","medium","large"]).def("small"),sizeList:p.PropTypes.shape([])}),p.PropTypes.bool]).def(!1),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object,p.PropTypes.func]).def({}),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object,p.PropTypes.func]).def({}),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object,p.PropTypes.func]).def({}),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.object,p.PropTypes.func]).def({}),p.PropTypes.oneOfType([p.PropTypes.object,p.PropTypes.bool]).def(void 0),p.PropTypes.bool.def(!1),p.PropTypes.string.def(""),p.PropTypes.func.def(void 0),p.PropTypes.oneOfType([p.PropTypes.string,p.PropTypes.func]).def("__$table_row_index"),p.PropTypes.oneOfType([p.PropTypes.bool,p.PropTypes.shape({content:p.PropTypes.string.def(""),disabled:p.PropTypes.bool.def(!1),watchCellResize:p.PropTypes.bool.def(!0)})]).def(!1),p.PropTypes.bool.def(!1);const l=(0,r.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},d),{prop:p.PropTypes.oneOfType([p.PropTypes.func.def((function(){return""})),p.PropTypes.string.def("")])}),setup:function(e,o){var p=o.slots,s=(0,r.inject)("InitColumns",(function(e){}),!1);return(0,r.onMounted)((function(){var o=(0,r.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}));s(o),o.render=p.default?function(e){var o;return null===(o=p.default)||void 0===o?void 0:o.call(p,e)}:void 0})),function(){var e;return(0,r.createVNode)(r.Fragment,null,[null===(e=p.default)||void 0===e?void 0:e.call(p,{data:""})])}}}),a=(0,p.withInstall)(l)})(),n})()));
|