bkui-vue 0.0.1-beta.13 → 0.0.1-beta.130
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -19
- package/dist/index.cjs.js +171 -0
- package/dist/index.esm.js +31715 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4051
- 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 +105 -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.d.ts +24 -15
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +24 -6
- package/lib/alert/index.d.ts +96 -60
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +48 -28
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +28 -14
- package/lib/backtop/backtop.variable.css +19 -3
- package/lib/backtop/index.d.ts +111 -55
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +64 -22
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +24 -8
- package/lib/badge/index.d.ts +202 -84
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +61 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +80 -4
- package/lib/breadcrumb/index.d.ts +118 -46
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +92 -44
- package/lib/button/button.d.ts +76 -26
- package/lib/button/button.less +89 -47
- package/lib/button/button.variable.css +111 -47
- package/lib/button/index.d.ts +191 -102
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +74 -18
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +115 -4
- package/lib/card/index.d.ts +225 -69
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +232 -0
- package/lib/cascader/index.d.ts +721 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +33 -6
- package/lib/checkbox/checkbox.d.ts +43 -32
- package/lib/checkbox/checkbox.less +44 -6
- package/lib/checkbox/checkbox.variable.css +52 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +151 -105
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +4 -8
- 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 +288 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +17 -1
- package/lib/collapse/collapse.d.ts +51 -22
- package/lib/collapse/collapse.less +24 -2
- package/lib/collapse/collapse.variable.css +119 -1
- package/lib/collapse/index.d.ts +127 -75
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/components.d.ts +26 -5
- 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 +193 -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 +3 -2
- package/lib/date-picker/date-picker.d.ts +92 -137
- package/lib/date-picker/date-picker.less +5 -2
- package/lib/date-picker/date-picker.variable.css +22 -5
- package/lib/date-picker/index.d.ts +504 -276
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/props.d.ts +118 -0
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.css +68 -16
- package/lib/dialog/dialog.d.ts +285 -52
- package/lib/dialog/dialog.less +43 -17
- package/lib/dialog/dialog.variable.css +68 -16
- package/lib/dialog/index.d.ts +665 -115
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -23
- 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 +21 -13
- package/lib/divider/divider.variable.css +19 -3
- package/lib/divider/index.d.ts +84 -52
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/dropdown-item.d.ts +6 -5
- package/lib/dropdown/dropdown-menu.d.ts +6 -5
- package/lib/dropdown/dropdown.css +4 -0
- package/lib/dropdown/dropdown.d.ts +29 -15
- package/lib/dropdown/dropdown.less +5 -0
- package/lib/dropdown/dropdown.variable.css +23 -3
- package/lib/dropdown/index.d.ts +112 -72
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +19 -3
- package/lib/exception/index.d.ts +44 -36
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +19 -3
- package/lib/fixed-navbar/index.d.ts +96 -37
- 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 +61 -45
- package/lib/form/form.css +96 -10
- package/lib/form/form.d.ts +45 -40
- package/lib/form/form.less +136 -34
- package/lib/form/form.variable.css +198 -10
- package/lib/form/index.d.ts +303 -3
- 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.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.js +1 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.js +1 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +1 -0
- package/lib/icon/angle-down-line.js +1 -0
- package/lib/icon/angle-down.js +1 -0
- package/lib/icon/angle-left.js +1 -0
- package/lib/icon/angle-right.js +1 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +1 -0
- package/lib/icon/angle-up.js +1 -0
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +1 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/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 -0
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -0
- package/lib/icon/code.js +1 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.js +1 -0
- package/lib/icon/copy.js +1 -0
- 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 -0
- package/lib/icon/down-shape.js +1 -0
- package/lib/icon/down-small.js +1 -0
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- package/lib/icon/error.js +1 -0
- 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 -0
- package/lib/icon/folder-open.js +1 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.js +1 -0
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +34 -3
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -0
- package/lib/icon/plus.js +1 -0
- 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 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.js +1 -0
- 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 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/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 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/input/index.d.ts +462 -196
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -16
- package/lib/input/input.d.ts +182 -52
- package/lib/input/input.less +182 -19
- package/lib/input/input.variable.css +248 -15
- package/lib/link/index.d.ts +102 -54
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +19 -3
- package/lib/loading/index.d.ts +187 -71
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +177 -98
- package/lib/loading/loading.d.ts +109 -25
- package/lib/loading/loading.less +84 -73
- package/lib/loading/loading.variable.css +196 -101
- package/lib/menu/index.d.ts +82 -71
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +6 -5
- package/lib/menu/menu-item.d.ts +6 -5
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +16 -21
- package/lib/menu/menu.variable.css +70 -3
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +6 -5
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +22 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +16 -2
- package/lib/message/message.less +18 -1
- package/lib/message/message.variable.css +35 -5
- package/lib/message/messageConstructor.d.ts +68 -20
- package/lib/modal/index.d.ts +517 -68
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +25 -1
- package/lib/modal/modal.d.ts +191 -24
- package/lib/modal/modal.less +33 -1
- package/lib/modal/modal.variable.css +25 -1
- package/lib/modal/props.mixin.d.ts +77 -10
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +10 -7
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +50 -24
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +20 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +17 -1
- package/lib/notify/notify.less +19 -1
- package/lib/notify/notify.variable.css +36 -4
- package/lib/notify/notifyConstructor.d.ts +83 -23
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +281 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +322 -137
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +26 -13
- package/lib/popover/popover.d.ts +122 -45
- package/lib/popover/popover.less +59 -45
- package/lib/popover/popover.variable.css +45 -16
- package/lib/popover/props.d.ts +104 -0
- 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 +495 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +209 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +127 -0
- package/lib/popover2/props.d.ts +108 -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-popper-id.d.ts +7 -0
- package/lib/preset.d.ts +2 -3
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +1 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +240 -0
- package/lib/progress/index.d.ts +305 -135
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -3
- package/lib/progress/progress.d.ts +89 -36
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +70 -6
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +147 -98
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +30 -23
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +12 -13
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +13 -14
- package/lib/radio/radio.variable.css +32 -17
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +52 -40
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +291 -0
- package/lib/select/common.d.ts +20 -22
- package/lib/select/index.d.ts +1062 -706
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +23 -19
- package/lib/select/optionGroup.d.ts +36 -97
- package/lib/select/select.css +226 -71
- package/lib/select/select.d.ts +376 -192
- package/lib/select/select.less +270 -130
- package/lib/select/select.variable.css +245 -74
- package/lib/select/selectTagInput.d.ts +72 -0
- package/lib/select/type.d.ts +38 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +26 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +50 -5
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +18 -0
- package/lib/shared/vue-types.d.ts +11 -7
- package/lib/sideslider/index.d.ts +424 -80
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +181 -30
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +67 -6
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +15 -7
- package/lib/slider/slider.d.ts +84 -42
- package/lib/slider/slider.variable.css +19 -3
- package/lib/steps/index.d.ts +162 -110
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +17 -3
- package/lib/steps/steps.d.ts +41 -28
- package/lib/steps/steps.less +27 -3
- package/lib/steps/steps.variable.css +36 -6
- package/lib/styles/index.d.ts +14 -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 +119 -0
- package/lib/styles/themes/themes.less +27 -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 +201 -137
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +200 -135
- package/lib/switcher/switcher.d.ts +52 -36
- package/lib/switcher/switcher.less +211 -153
- package/lib/switcher/switcher.variable.css +219 -138
- package/lib/tab/index.d.ts +306 -282
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +102 -87
- package/lib/tab/tab-panel.d.ts +53 -26
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +59 -51
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +44 -4
- package/lib/table/const.d.ts +67 -0
- package/lib/table/index.d.ts +498 -70
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +88 -0
- package/lib/table/plugins/head-filter.variable.css +170 -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 +124 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +231 -0
- package/lib/table/props.d.ts +210 -2
- package/lib/table/render.d.ts +76 -5
- package/lib/table/table.css +1089 -15
- package/lib/table/table.d.ts +221 -14
- package/lib/table/table.less +251 -24
- package/lib/table/table.variable.css +1109 -19
- package/lib/table/use-common.d.ts +72 -0
- package/lib/table/utils.d.ts +84 -2
- package/lib/tag/index.d.ts +165 -274
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +116 -3
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +894 -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 +374 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +311 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +240 -0
- package/lib/timeline/timeline.variable.css +337 -0
- 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 +241 -0
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +469 -94
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +184 -0
- package/lib/tree/tree.css +176 -15
- package/lib/tree/tree.d.ts +201 -31
- package/lib/tree/tree.less +75 -38
- package/lib/tree/tree.variable.css +278 -15
- 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 +34 -57
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +417 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +519 -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 +579 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +167 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +6 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +255 -0
- package/lib/virtual-render/virtual-render.less +22 -0
- package/lib/virtual-render/virtual-render.variable.css +135 -0
- package/lib/volar.components.d.ts +29 -0
- package/package.json +107 -84
- package/dist/bkui-vue.cjs.js +0 -9999
- package/dist/bkui-vue.esm.js +0 -9958
- package/dist/bkui-vue.umd.js +0 -10002
- package/lib/form/common.d.ts +0 -3
- package/lib/styles/index.js +0 -1
package/lib/table/props.d.ts
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
|
+
export declare enum SortScope {
|
3
|
+
CURRENT = "current",
|
4
|
+
ALL = "all"
|
5
|
+
}
|
6
|
+
export declare type ColumnFilterListItem = {
|
7
|
+
text?: string;
|
8
|
+
value?: string;
|
9
|
+
};
|
2
10
|
export declare const tableProps: {
|
3
11
|
/**
|
4
12
|
* 渲染列表
|
@@ -9,7 +17,9 @@ export declare const tableProps: {
|
|
9
17
|
/**
|
10
18
|
* Table 列渲染
|
11
19
|
*/
|
12
|
-
columns: import("vue-types").VueTypeDef<Column[]
|
20
|
+
columns: import("vue-types").VueTypeDef<Column[]> & {
|
21
|
+
default: () => Column[];
|
22
|
+
};
|
13
23
|
/**
|
14
24
|
* 当前选中列
|
15
25
|
* 当设置选中多列时(columnPick = multi),配置为数组[index1, index2, index3],只能选中单列时,可以为数值或者数组[index]
|
@@ -23,13 +33,206 @@ export declare const tableProps: {
|
|
23
33
|
columnPick: import("vue-types").VueTypeDef<string> & {
|
24
34
|
default: string;
|
25
35
|
};
|
36
|
+
/**
|
37
|
+
* 设置表格高度
|
38
|
+
* 默认:auto 根据行数自动填充高度
|
39
|
+
* 100%,依赖初始化时父级容器高度
|
40
|
+
*/
|
41
|
+
height: import("vue-types").VueTypeDef<string | number> & {
|
42
|
+
default: string | number;
|
43
|
+
};
|
44
|
+
/**
|
45
|
+
* 设置表格最小高度
|
46
|
+
* 默认:300
|
47
|
+
*/
|
48
|
+
minHeight: import("vue-types").VueTypeDef<string | number> & {
|
49
|
+
default: string | number;
|
50
|
+
};
|
51
|
+
/**
|
52
|
+
* 设置表格最d大高度
|
53
|
+
* 默认:auto,依赖外层高度
|
54
|
+
*/
|
55
|
+
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
56
|
+
default: string | number;
|
57
|
+
};
|
58
|
+
/**
|
59
|
+
* 行高,可以为固定数值类型
|
60
|
+
* 可以是函数,返回当前行的高度,返回值为数值类型
|
61
|
+
*/
|
62
|
+
rowHeight: import("vue-types").VueTypeDef<any> & {
|
63
|
+
default: any;
|
64
|
+
};
|
65
|
+
/**
|
66
|
+
* Thead行高,可以为固定数值类型
|
67
|
+
*/
|
68
|
+
headHeight: import("vue-types").VueTypeValidableDef<number> & {
|
69
|
+
default: number;
|
70
|
+
} & {
|
71
|
+
default: number;
|
72
|
+
};
|
73
|
+
/**
|
74
|
+
* 是否显示Head
|
75
|
+
*/
|
76
|
+
showHead: import("vue-types").VueTypeValidableDef<boolean> & {
|
77
|
+
default: boolean;
|
78
|
+
} & {
|
79
|
+
default: boolean;
|
80
|
+
};
|
81
|
+
/**
|
82
|
+
* table header config
|
83
|
+
*/
|
84
|
+
thead: import("vue-types").VueTypeShape<Thead>;
|
85
|
+
/**
|
86
|
+
* 是否启用虚拟渲染 & 滚动
|
87
|
+
* 当数据量很大时,启用虚拟渲染可以解决压面卡顿问题
|
88
|
+
*/
|
89
|
+
virtualEnabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
90
|
+
default: boolean;
|
91
|
+
} & {
|
92
|
+
default: boolean;
|
93
|
+
};
|
94
|
+
/**
|
95
|
+
* 表格边框显示设置,可以是一个组合
|
96
|
+
* 生效规则: 除非单独设置 none,否则会追加每个设置
|
97
|
+
*/
|
98
|
+
border: import("vue-types").VueTypeDef<string[]> & {
|
99
|
+
default: () => string[];
|
100
|
+
};
|
101
|
+
/**
|
102
|
+
* 分页配置
|
103
|
+
* 默认值为false,不启用分页
|
104
|
+
* 设置为 true,启用分页功能,默认值参考分页组件 Pagination
|
105
|
+
*/
|
106
|
+
pagination: import("vue-types").VueTypeDef<boolean | {
|
107
|
+
[key: string]: any;
|
108
|
+
}> & {
|
109
|
+
default: boolean | (() => {
|
110
|
+
[key: string]: any;
|
111
|
+
});
|
112
|
+
};
|
113
|
+
/**
|
114
|
+
* 是否启用远程分页
|
115
|
+
*/
|
116
|
+
remotePagination: import("vue-types").VueTypeValidableDef<boolean> & {
|
117
|
+
default: boolean;
|
118
|
+
} & {
|
119
|
+
default: boolean;
|
120
|
+
};
|
121
|
+
/**
|
122
|
+
* 空数据展示
|
123
|
+
*/
|
124
|
+
emptyText: import("vue-types").VueTypeValidableDef<string> & {
|
125
|
+
default: string;
|
126
|
+
} & {
|
127
|
+
default: string;
|
128
|
+
};
|
129
|
+
/**
|
130
|
+
* bk-table-setting-content
|
131
|
+
*/
|
132
|
+
settings: import("vue-types").VueTypeDef<boolean | Settings> & {
|
133
|
+
default: boolean | (() => Settings);
|
134
|
+
};
|
135
|
+
/**
|
136
|
+
* 行的 class 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
137
|
+
*/
|
138
|
+
rowClass: import("vue-types").VueTypeDef<any> & {
|
139
|
+
default: any;
|
140
|
+
};
|
141
|
+
/**
|
142
|
+
* 行的 style 的回调方法,也可以使用一个固定的 Object 为所有行设置一样的 Style
|
143
|
+
*/
|
144
|
+
rowStyle: import("vue-types").VueTypeDef<any> & {
|
145
|
+
default: any;
|
146
|
+
};
|
147
|
+
/**
|
148
|
+
* 单元格的 style 的回调方法,也可以使用一个固定的 Object 为所有单元格设置一样的 Style
|
149
|
+
*/
|
150
|
+
cellStyle: import("vue-types").VueTypeDef<any> & {
|
151
|
+
default: any;
|
152
|
+
};
|
153
|
+
/**
|
154
|
+
* 单元格的 className 的回调方法,也可以使用字符串为所有单元格设置一个固定的 className
|
155
|
+
*/
|
156
|
+
cellClass: import("vue-types").VueTypeDef<any> & {
|
157
|
+
default: any;
|
158
|
+
};
|
159
|
+
/**
|
160
|
+
* 表格底部loading加载效果,可以配合表格scroll-bottom事件使用
|
161
|
+
* 详细配置可参考bk-loading组件
|
162
|
+
*/
|
163
|
+
scrollLoading: import("vue-types").VueTypeDef<boolean | {
|
164
|
+
[key: string]: any;
|
165
|
+
}> & {
|
166
|
+
default: boolean | (() => {
|
167
|
+
[key: string]: any;
|
168
|
+
});
|
169
|
+
};
|
170
|
+
/**
|
171
|
+
* 仅对 type=selection 的列有效,类型为 Boolean,为 true 则会在数据更新之后保留之前选中的展开收起操作(需指定 row-key)
|
172
|
+
*/
|
173
|
+
reserveExpand: import("vue-types").VueTypeValidableDef<boolean> & {
|
174
|
+
default: boolean;
|
175
|
+
} & {
|
176
|
+
default: boolean;
|
177
|
+
};
|
178
|
+
/**
|
179
|
+
* 行数据的 Key,用来优化 Table 的渲染;
|
180
|
+
* 在使用 reserve-selection, reserve-expand 功能的情况下,该属性是必填的。
|
181
|
+
* 类型为 String 时,支持多层访问:user.info.id,但不支持 user.info[0].id,此种情况请使用 Function
|
182
|
+
*/
|
183
|
+
rowKey: import("vue-types").VueTypeDef<any> & {
|
184
|
+
default: any;
|
185
|
+
};
|
186
|
+
};
|
187
|
+
/**
|
188
|
+
* 配置自定义行高选项
|
189
|
+
*/
|
190
|
+
export declare type SizeItem = {
|
191
|
+
value?: string;
|
192
|
+
label?: string;
|
193
|
+
height?: number;
|
194
|
+
};
|
195
|
+
export declare type Settings = {
|
196
|
+
fields?: Field[];
|
197
|
+
checked?: string[];
|
198
|
+
limit?: number;
|
199
|
+
size?: string;
|
200
|
+
sizeList?: SizeItem[];
|
201
|
+
};
|
202
|
+
export declare type Field = {
|
203
|
+
label: string;
|
204
|
+
field?: string;
|
205
|
+
disabled?: boolean;
|
26
206
|
};
|
27
207
|
export declare type Column = {
|
28
208
|
label: Function | string;
|
29
|
-
field
|
209
|
+
field?: Function | string;
|
30
210
|
render?: Function | string;
|
31
211
|
width?: number | string;
|
212
|
+
minWidth?: number | string;
|
213
|
+
type?: string;
|
214
|
+
fixed?: string | boolean;
|
215
|
+
resizable?: boolean;
|
216
|
+
sort?: {
|
217
|
+
sortFn?: Function;
|
218
|
+
sortScope?: string;
|
219
|
+
} | boolean | string;
|
220
|
+
filter?: {
|
221
|
+
list?: any;
|
222
|
+
filterFn?: Function;
|
223
|
+
} | boolean | string;
|
32
224
|
};
|
225
|
+
export declare type Thead = {
|
226
|
+
height?: Number;
|
227
|
+
isShow?: boolean;
|
228
|
+
cellFn?: Function;
|
229
|
+
};
|
230
|
+
export declare type GroupColumn = {
|
231
|
+
calcWidth?: number;
|
232
|
+
resizeWidth?: number;
|
233
|
+
isHidden?: boolean;
|
234
|
+
listeners?: Map<string, any>;
|
235
|
+
} & Column;
|
33
236
|
export declare type Columns = ReadonlyArray<Column>;
|
34
237
|
export declare type TablePropTypes = Readonly<ExtractPropTypes<typeof tableProps>>;
|
35
238
|
export declare type IColumnActive = {
|
@@ -39,3 +242,8 @@ export declare type IColumnActive = {
|
|
39
242
|
export declare type IReactiveProp = {
|
40
243
|
activeColumns: IColumnActive[];
|
41
244
|
};
|
245
|
+
export declare type Colgroups = Column & {
|
246
|
+
calcWidth: number;
|
247
|
+
resizeWidth: number;
|
248
|
+
listeners: Map<string, Function>;
|
249
|
+
};
|
package/lib/table/render.d.ts
CHANGED
@@ -1,17 +1,44 @@
|
|
1
|
-
import {
|
2
|
-
import { IColumnActive, IReactiveProp, TablePropTypes } from './props';
|
1
|
+
import { TablePlugins } from './plugins/index';
|
2
|
+
import { GroupColumn, IColumnActive, IReactiveProp, TablePropTypes } from './props';
|
3
3
|
export default class TableRender {
|
4
4
|
props: TablePropTypes;
|
5
|
-
context:
|
5
|
+
context: any;
|
6
6
|
reactiveProp: any;
|
7
|
-
|
7
|
+
colgroups: GroupColumn[];
|
8
|
+
uuid: string;
|
9
|
+
events: Map<string, any[]>;
|
10
|
+
plugins: TablePlugins;
|
11
|
+
constructor(props: any, ctx: any, reactiveProp: IReactiveProp, colgroups: GroupColumn[]);
|
8
12
|
get propActiveCols(): IColumnActive[];
|
13
|
+
/**
|
14
|
+
* 渲染Table Head
|
15
|
+
* @param activeColumns 当前选中的列
|
16
|
+
* @returns
|
17
|
+
*/
|
18
|
+
renderTableHeadSchema(): (string | JSX.Element)[];
|
9
19
|
/**
|
10
20
|
* 渲染Table主体
|
11
21
|
* @param activeColumns 当前选中的列
|
12
22
|
* @returns
|
13
23
|
*/
|
14
|
-
renderTableBodySchema():
|
24
|
+
renderTableBodySchema(rows: any[]): any;
|
25
|
+
renderTableFooter(options: any): JSX.Element;
|
26
|
+
getRowHeight: (row?: any, rowIndex?: number) => any;
|
27
|
+
/**
|
28
|
+
* 注册监听事件
|
29
|
+
* @param eventName
|
30
|
+
* @param wartcher
|
31
|
+
*/
|
32
|
+
on(eventName: string, wartcher: Function): this;
|
33
|
+
destroy(): void;
|
34
|
+
/**
|
35
|
+
* 派发事件
|
36
|
+
* @param eventName
|
37
|
+
* @param args
|
38
|
+
*/
|
39
|
+
private emitEvent;
|
40
|
+
private handlePageLimitChange;
|
41
|
+
private hanlePageChange;
|
15
42
|
/**
|
16
43
|
* 指定列选中状态
|
17
44
|
* @param index 指定选中的列Index
|
@@ -23,6 +50,14 @@ export default class TableRender {
|
|
23
50
|
* @param index 当前选中列Index
|
24
51
|
*/
|
25
52
|
private handleColumnHeadClick;
|
53
|
+
/**
|
54
|
+
* 获取排序设置表头
|
55
|
+
* @param column 当前渲染排序列
|
56
|
+
* @param index 排序列所在index
|
57
|
+
* @returns
|
58
|
+
*/
|
59
|
+
private getSortCell;
|
60
|
+
private getFilterCell;
|
26
61
|
/**
|
27
62
|
* 渲染Table Header
|
28
63
|
* @returns
|
@@ -33,6 +68,34 @@ export default class TableRender {
|
|
33
68
|
* @returns
|
34
69
|
*/
|
35
70
|
private renderTBody;
|
71
|
+
private renderExpandRow;
|
72
|
+
private getColumnClass;
|
73
|
+
private getHeadColumnClass;
|
74
|
+
/**
|
75
|
+
* table row click handle
|
76
|
+
* @param e
|
77
|
+
* @param row
|
78
|
+
* @param index
|
79
|
+
* @param rows
|
80
|
+
*/
|
81
|
+
private handleRowClick;
|
82
|
+
/**
|
83
|
+
* table row click handle
|
84
|
+
* @param e
|
85
|
+
* @param row
|
86
|
+
* @param index
|
87
|
+
* @param rows
|
88
|
+
*/
|
89
|
+
private handleRowDblClick;
|
90
|
+
private getExpandCell;
|
91
|
+
private handleRowExpandClick;
|
92
|
+
/**
|
93
|
+
* 渲染表格Cell内容
|
94
|
+
* @param row 当前行
|
95
|
+
* @param column 当前列
|
96
|
+
* @returns
|
97
|
+
*/
|
98
|
+
private renderCell;
|
36
99
|
/**
|
37
100
|
* 判定指定列是否为选中状态
|
38
101
|
* @param colIndex 指定列Index
|
@@ -44,4 +107,12 @@ export default class TableRender {
|
|
44
107
|
* @returns
|
45
108
|
*/
|
46
109
|
private renderColGroup;
|
110
|
+
/**
|
111
|
+
* 过滤当前可渲染的列
|
112
|
+
*/
|
113
|
+
private get filterColgroups();
|
114
|
+
/**
|
115
|
+
* 当前Table Setting
|
116
|
+
*/
|
117
|
+
private get setting();
|
47
118
|
}
|