bkui-vue 0.0.1-beta.23 → 0.0.1-beta.230
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 +173 -0
- package/dist/index.esm.js +38108 -0
- package/dist/index.umd.js +173 -0
- package/dist/style.css +1 -5099
- 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 +122 -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 +34 -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 +37 -3
- package/lib/backtop/index.d.ts +7 -7
- package/lib/backtop/index.js +1 -10
- 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 +34 -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 +80 -3
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +87 -49
- package/lib/button/button.d.ts +28 -7
- package/lib/button/button.less +74 -41
- package/lib/button/button.variable.css +116 -52
- package/lib/button/index.d.ts +45 -12
- 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 +125 -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 +292 -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 +67 -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 +2 -6
- package/lib/code-diff/code-diff.css +72 -1
- package/lib/code-diff/code-diff.d.ts +10 -1
- package/lib/code-diff/code-diff.less +94 -1
- package/lib/code-diff/code-diff.variable.css +101 -4
- package/lib/code-diff/index.d.ts +151 -3
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +72 -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 +147 -12
- package/lib/collapse/index.d.ts +113 -16
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +121 -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 +394 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -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 +210 -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/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +102 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +73 -0
- package/lib/date-picker/base/time-spinner.d.ts +153 -0
- package/lib/date-picker/date-picker.css +18 -2
- package/lib/date-picker/date-picker.d.ts +40 -13
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +47 -5
- package/lib/date-picker/index.d.ts +100 -39
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +9 -0
- package/lib/date-picker/panel/date-range.d.ts +452 -0
- package/lib/date-picker/panel/date.d.ts +550 -0
- package/lib/date-picker/panel/time.d.ts +450 -0
- package/lib/date-picker/props.d.ts +51 -1
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +144 -22
- package/lib/dialog/dialog.d.ts +275 -58
- package/lib/dialog/dialog.less +97 -23
- package/lib/dialog/dialog.variable.css +144 -22
- package/lib/dialog/index.d.ts +607 -130
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +138 -0
- 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 +29 -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 +34 -3
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +42 -10
- package/lib/dropdown/index.d.ts +71 -10
- 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 +69 -17
- package/lib/exception/index.d.ts +23 -8
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -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 +16 -5
- package/lib/form/form.css +96 -12
- package/lib/form/form.d.ts +28 -11
- package/lib/form/form.less +144 -45
- package/lib/form/form.variable.css +215 -12
- package/lib/form/index.d.ts +88 -30
- 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.js +1 -15
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -15
- 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/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 +27 -1
- 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.js +1 -15
- 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/transfer.d.ts +4 -0
- package/lib/icon/transfer.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.js +1 -15
- 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.d.ts +6 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +26 -0
- package/lib/info-box/info-box.less +50 -0
- package/lib/info-box/info-box.variable.css +37 -0
- package/lib/input/index.d.ts +171 -60
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +216 -18
- package/lib/input/input.d.ts +116 -16
- package/lib/input/input.less +157 -17
- package/lib/input/input.variable.css +242 -17
- 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 +41 -15
- package/lib/loading/index.d.ts +107 -13
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +83 -31
- package/lib/loading/loading.d.ts +74 -5
- package/lib/loading/loading.less +28 -30
- package/lib/loading/loading.variable.css +112 -34
- 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 +80 -3
- package/lib/menu/submenu.variable.css +29 -3
- 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 +53 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +508 -78
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +194 -30
- package/lib/modal/modal.less +36 -1
- package/lib/modal/modal.variable.css +63 -1
- package/lib/modal/props.mixin.d.ts +82 -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 +30 -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 +53 -7
- package/lib/notify/notifyConstructor.d.ts +51 -7
- package/lib/pagination/index.d.ts +38 -23
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +17 -7
- package/lib/pagination/pagination.less +58 -31
- package/lib/pagination/pagination.variable.css +83 -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 +146 -21
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +67 -8
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +32 -3
- package/lib/popover/props.d.ts +34 -2
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +16 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +545 -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 +228 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +144 -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 +31 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popover-init.d.ts +22 -0
- package/lib/popover2/use-popper-id.d.ts +6 -0
- package/lib/popover2/utils.d.ts +2 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -15
- package/lib/process/process.css +13 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +17 -0
- package/lib/process/process.variable.css +42 -3
- package/lib/progress/index.d.ts +10 -10
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +3 -3
- package/lib/progress/progress.variable.css +80 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +29 -18
- 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 +61 -56
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +93 -62
- package/lib/radio/type.d.ts +9 -4
- 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 +177 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +217 -0
- package/lib/resize-layout/resize-layout.variable.css +296 -0
- package/lib/search-select/index.d.ts +681 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +85 -0
- package/lib/search-select/menu.d.ts +83 -0
- package/lib/search-select/search-select.css +423 -0
- package/lib/search-select/search-select.d.ts +273 -0
- package/lib/search-select/search-select.less +375 -0
- package/lib/search-select/search-select.variable.css +542 -0
- package/lib/search-select/selected.d.ts +137 -0
- package/lib/search-select/utils.d.ts +79 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1422 -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 +265 -80
- package/lib/select/select.d.ts +553 -126
- package/lib/select/select.less +366 -185
- package/lib/select/select.variable.css +295 -84
- package/lib/select/selectTagInput.d.ts +93 -0
- package/lib/select/type.d.ts +39 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -0
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +27 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +6 -2
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -4
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +6 -2
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +13 -0
- package/lib/shared/vue-types.d.ts +4 -0
- package/lib/sideslider/index.d.ts +391 -76
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +55 -10
- package/lib/sideslider/sideslider.d.ts +181 -33
- package/lib/sideslider/sideslider.less +72 -13
- package/lib/sideslider/sideslider.variable.css +84 -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 +29 -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 +43 -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 +136 -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 +38 -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 +34 -11
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +15 -4
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +86 -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 +54 -4
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +38 -0
- package/lib/table/components/table-column.d.ts +142 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +108 -1
- package/lib/table/index.d.ts +781 -27
- package/lib/table/index.js +1 -10
- package/lib/table/plugins/body-empty.d.ts +40 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +71 -0
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +92 -0
- package/lib/table/plugins/head-filter.variable.css +190 -0
- package/lib/table/plugins/head-sort.css +25 -0
- package/lib/table/plugins/head-sort.d.ts +22 -0
- package/lib/table/plugins/head-sort.less +31 -0
- package/lib/table/plugins/head-sort.variable.css +144 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +248 -0
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +12 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +282 -7
- package/lib/table/render.d.ts +53 -6
- package/lib/table/table.css +1143 -17
- package/lib/table/table.d.ts +196 -13
- package/lib/table/table.less +237 -25
- package/lib/table/table.variable.css +1182 -30
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +97 -0
- package/lib/table/utils.d.ts +65 -9
- package/lib/table-column/index.d.ts +336 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +7 -7
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +57 -18
- package/lib/tag/tag.d.ts +2 -2
- package/lib/tag/tag.less +58 -15
- package/lib/tag/tag.variable.css +86 -21
- package/lib/tag-input/common.d.ts +36 -0
- package/lib/tag-input/index.d.ts +1211 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +44 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +536 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +328 -0
- package/lib/tag-input/tag-props.d.ts +216 -0
- package/lib/tag-input/tag-render.d.ts +35 -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 +334 -0
- package/lib/timeline/index.d.ts +6 -6
- 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 +34 -8
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +339 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +89 -86
- package/lib/transfer/transfer.d.ts +70 -95
- package/lib/transfer/transfer.less +93 -113
- package/lib/transfer/transfer.variable.css +123 -94
- package/lib/tree/constant.d.ts +57 -0
- package/lib/tree/index.d.ts +419 -48
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +124 -0
- package/lib/tree/tree.css +183 -11
- package/lib/tree/tree.d.ts +194 -23
- package/lib/tree/tree.less +72 -10
- package/lib/tree/tree.variable.css +302 -11
- 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 +5 -7
- package/lib/upload/index.d.ts +566 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +111 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +51 -0
- package/lib/upload/upload.css +425 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +464 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +544 -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 +27 -4
- package/lib/virtual-render/index.js +1 -10
- 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 +14 -3
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +136 -24
- package/lib/volar.components.d.ts +101 -0
- package/package.json +59 -46
- package/README_EN.md +0 -93
- package/dist/bkui-vue.cjs.js +0 -18938
- package/dist/bkui-vue.esm.js +0 -18887
- package/dist/bkui-vue.umd.js +0 -18941
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
- 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,97 @@
|
|
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
|
+
showLineHeight?: boolean;
|
78
|
+
};
|
79
|
+
setting: {
|
80
|
+
size: string;
|
81
|
+
height: any;
|
82
|
+
};
|
83
|
+
defaultSort: any;
|
84
|
+
};
|
85
|
+
indexData: any[];
|
86
|
+
fixedWrapperClass: string;
|
87
|
+
initIndexData: (keepLocalAction?: boolean) => void;
|
88
|
+
updateIndexData: (selectedAll?: boolean) => void;
|
89
|
+
renderFixedColumns: (scrollX?: any, offsetRight?: any) => ("" | JSX.Element)[];
|
90
|
+
setRowExpand: (row: any, expand?: any) => void;
|
91
|
+
updateColGroups: () => void;
|
92
|
+
clearSelection: () => void;
|
93
|
+
toggleAllSelection: (checked?: any) => void;
|
94
|
+
toggleRowSelection: (row: any, selected: boolean) => void;
|
95
|
+
getSelection: () => any[];
|
96
|
+
clearSort: () => void;
|
97
|
+
};
|
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 目标元素
|
@@ -60,10 +71,55 @@ export declare const observerResize: (root: HTMLElement, callbackFn: () => void,
|
|
60
71
|
*/
|
61
72
|
export declare const isPercentPixOrNumber: (val: string | number) => boolean;
|
62
73
|
/**
|
63
|
-
*
|
64
|
-
*
|
65
|
-
* @
|
66
|
-
|
67
|
-
|
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
|
68
100
|
*/
|
69
|
-
export declare const
|
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;
|
111
|
+
export declare const isColumnHidden: (settingFields: any, column: any, checked: any) => boolean;
|
112
|
+
export declare const resolveColumnSpan: (column: Column, colIndex: number, row: any, rowIndex: number, key: string) => any;
|
113
|
+
export declare const resolveCellSpan: (column: Column, colIndex: number, row: any, rowIndex: number) => {
|
114
|
+
colspan: any;
|
115
|
+
rowspan: any;
|
116
|
+
};
|
117
|
+
export declare const skipThisColumn: (columns: Column[], colIndex: number, row: any, rowIndex: number) => boolean;
|
118
|
+
export declare const getSortFn: (column: any, sortType: any) => (() => boolean) | ((_a: any, _b: any) => number);
|
119
|
+
export declare const getNextSortType: (sortType: string) => string;
|
120
|
+
export declare const resolveSort: (sort: string | boolean | any) => any;
|
121
|
+
export declare const isRowSelectEnable: (props: any, { row, index, isCheckAll }: {
|
122
|
+
row: any;
|
123
|
+
index: any;
|
124
|
+
isCheckAll: any;
|
125
|
+
}) => any;
|
@@ -0,0 +1,336 @@
|
|
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
|
+
colspan: import("vue-types").VueTypeDef<any>;
|
82
|
+
rowspan: import("vue-types").VueTypeDef<any>;
|
83
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "fixed" | "filter" | "sort" | "type" | "minWidth" | "columnKey" | "showOverflowTooltip" | "resizable">;
|
84
|
+
$attrs: {
|
85
|
+
[x: string]: unknown;
|
86
|
+
};
|
87
|
+
$refs: {
|
88
|
+
[x: string]: unknown;
|
89
|
+
};
|
90
|
+
$slots: Readonly<{
|
91
|
+
[name: string]: import("vue").Slot;
|
92
|
+
}>;
|
93
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
94
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
95
|
+
$emit: (event: string, ...args: any[]) => void;
|
96
|
+
$el: any;
|
97
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
98
|
+
prop: import("vue-types").VueTypeDef<any>;
|
99
|
+
label: import("vue-types").VueTypeDef<any>;
|
100
|
+
field: import("vue-types").VueTypeDef<any>;
|
101
|
+
render: import("vue-types").VueTypeDef<any>;
|
102
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
103
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
104
|
+
default: string | number;
|
105
|
+
};
|
106
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
107
|
+
default: string;
|
108
|
+
} & {
|
109
|
+
default: string;
|
110
|
+
};
|
111
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
112
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
113
|
+
};
|
114
|
+
type: import("vue-types").VueTypeDef<string> & {
|
115
|
+
default: string;
|
116
|
+
};
|
117
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
118
|
+
default: boolean;
|
119
|
+
} & {
|
120
|
+
default: boolean;
|
121
|
+
};
|
122
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
123
|
+
default: string | boolean;
|
124
|
+
};
|
125
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
126
|
+
sortFn: any;
|
127
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
128
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
129
|
+
}> & {
|
130
|
+
default: string | boolean | (() => {
|
131
|
+
sortFn: any;
|
132
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
133
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
134
|
+
});
|
135
|
+
};
|
136
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
137
|
+
list: any[] | (object & (() => any[]));
|
138
|
+
filterFn: any;
|
139
|
+
match: string;
|
140
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
141
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
142
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
143
|
+
}> & {
|
144
|
+
default: string | boolean | (() => {
|
145
|
+
list: any[] | (object & (() => any[]));
|
146
|
+
filterFn: any;
|
147
|
+
match: string;
|
148
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
149
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
150
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
151
|
+
});
|
152
|
+
};
|
153
|
+
colspan: import("vue-types").VueTypeDef<any>;
|
154
|
+
rowspan: import("vue-types").VueTypeDef<any>;
|
155
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
156
|
+
fixed: string | boolean;
|
157
|
+
filter: string | boolean | {
|
158
|
+
list: any[] | (object & (() => any[]));
|
159
|
+
filterFn: any;
|
160
|
+
match: string;
|
161
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
162
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
163
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
164
|
+
};
|
165
|
+
sort: string | boolean | {
|
166
|
+
sortFn: any;
|
167
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
168
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
169
|
+
};
|
170
|
+
type: string;
|
171
|
+
minWidth: string | number;
|
172
|
+
columnKey: string;
|
173
|
+
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
174
|
+
resizable: boolean;
|
175
|
+
}> & {
|
176
|
+
beforeCreate?: (() => void) | (() => void)[];
|
177
|
+
created?: (() => void) | (() => void)[];
|
178
|
+
beforeMount?: (() => void) | (() => void)[];
|
179
|
+
mounted?: (() => void) | (() => void)[];
|
180
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
181
|
+
updated?: (() => void) | (() => void)[];
|
182
|
+
activated?: (() => void) | (() => void)[];
|
183
|
+
deactivated?: (() => void) | (() => void)[];
|
184
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
185
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
186
|
+
destroyed?: (() => void) | (() => void)[];
|
187
|
+
unmounted?: (() => void) | (() => void)[];
|
188
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
189
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
190
|
+
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)[];
|
191
|
+
};
|
192
|
+
$forceUpdate: () => void;
|
193
|
+
$nextTick: typeof import("vue").nextTick;
|
194
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
195
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
196
|
+
prop: import("vue-types").VueTypeDef<any>;
|
197
|
+
label: import("vue-types").VueTypeDef<any>;
|
198
|
+
field: import("vue-types").VueTypeDef<any>;
|
199
|
+
render: import("vue-types").VueTypeDef<any>;
|
200
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
201
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
202
|
+
default: string | number;
|
203
|
+
};
|
204
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
205
|
+
default: string;
|
206
|
+
} & {
|
207
|
+
default: string;
|
208
|
+
};
|
209
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
210
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
211
|
+
};
|
212
|
+
type: import("vue-types").VueTypeDef<string> & {
|
213
|
+
default: string;
|
214
|
+
};
|
215
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
216
|
+
default: boolean;
|
217
|
+
} & {
|
218
|
+
default: boolean;
|
219
|
+
};
|
220
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
221
|
+
default: string | boolean;
|
222
|
+
};
|
223
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
224
|
+
sortFn: any;
|
225
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
226
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
227
|
+
}> & {
|
228
|
+
default: string | boolean | (() => {
|
229
|
+
sortFn: any;
|
230
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
231
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
232
|
+
});
|
233
|
+
};
|
234
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
235
|
+
list: any[] | (object & (() => any[]));
|
236
|
+
filterFn: any;
|
237
|
+
match: string;
|
238
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
239
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
240
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
241
|
+
}> & {
|
242
|
+
default: string | boolean | (() => {
|
243
|
+
list: any[] | (object & (() => any[]));
|
244
|
+
filterFn: any;
|
245
|
+
match: string;
|
246
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
247
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
248
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
249
|
+
});
|
250
|
+
};
|
251
|
+
colspan: import("vue-types").VueTypeDef<any>;
|
252
|
+
rowspan: import("vue-types").VueTypeDef<any>;
|
253
|
+
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
254
|
+
__isFragment?: never;
|
255
|
+
__isTeleport?: never;
|
256
|
+
__isSuspense?: never;
|
257
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
258
|
+
prop: import("vue-types").VueTypeDef<any>;
|
259
|
+
label: import("vue-types").VueTypeDef<any>;
|
260
|
+
field: import("vue-types").VueTypeDef<any>;
|
261
|
+
render: import("vue-types").VueTypeDef<any>;
|
262
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
263
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
264
|
+
default: string | number;
|
265
|
+
};
|
266
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
267
|
+
default: string;
|
268
|
+
} & {
|
269
|
+
default: string;
|
270
|
+
};
|
271
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<boolean | import("../../table/src/props").IOverflowTooltip> & {
|
272
|
+
default: boolean | (() => import("../../table/src/props").IOverflowTooltip);
|
273
|
+
};
|
274
|
+
type: import("vue-types").VueTypeDef<string> & {
|
275
|
+
default: string;
|
276
|
+
};
|
277
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
278
|
+
default: boolean;
|
279
|
+
} & {
|
280
|
+
default: boolean;
|
281
|
+
};
|
282
|
+
fixed: import("vue-types").VueTypeDef<string | boolean> & {
|
283
|
+
default: string | boolean;
|
284
|
+
};
|
285
|
+
sort: import("vue-types").VueTypeDef<string | boolean | {
|
286
|
+
sortFn: any;
|
287
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
288
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
289
|
+
}> & {
|
290
|
+
default: string | boolean | (() => {
|
291
|
+
sortFn: any;
|
292
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
293
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
294
|
+
});
|
295
|
+
};
|
296
|
+
filter: import("vue-types").VueTypeDef<string | boolean | {
|
297
|
+
list: any[] | (object & (() => any[]));
|
298
|
+
filterFn: any;
|
299
|
+
match: string;
|
300
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
301
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
302
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
303
|
+
}> & {
|
304
|
+
default: string | boolean | (() => {
|
305
|
+
list: any[] | (object & (() => any[]));
|
306
|
+
filterFn: any;
|
307
|
+
match: string;
|
308
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
309
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
310
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
311
|
+
});
|
312
|
+
};
|
313
|
+
colspan: import("vue-types").VueTypeDef<any>;
|
314
|
+
rowspan: import("vue-types").VueTypeDef<any>;
|
315
|
+
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
316
|
+
fixed: string | boolean;
|
317
|
+
filter: string | boolean | {
|
318
|
+
list: any[] | (object & (() => any[]));
|
319
|
+
filterFn: any;
|
320
|
+
match: string;
|
321
|
+
filterScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
322
|
+
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
323
|
+
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
324
|
+
};
|
325
|
+
sort: string | boolean | {
|
326
|
+
sortFn: any;
|
327
|
+
sortScope: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
328
|
+
value: (string | object | (() => string) | ((props: Record<string, unknown>) => string)) & string;
|
329
|
+
};
|
330
|
+
type: string;
|
331
|
+
minWidth: string | number;
|
332
|
+
columnKey: string;
|
333
|
+
showOverflowTooltip: boolean | import("../../table/src/props").IOverflowTooltip;
|
334
|
+
resizable: boolean;
|
335
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
336
|
+
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:()=>O});var e,o,p,r=s(4212),T=s(748);function y(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",e.HORIZONTAL="horizontal"}(o||(o={})),function(e){e.HIGHLIGHT="highlight",e.AUTO="auto"}(p||(p={}));var f,t,P=[p.AUTO,p.HIGHLIGHT],i=[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"}(f||(f={})),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 d,l,u=function(){return!0};y(e={},t.COLUMN_PICK,u),y(e,t.COLUMN_FILTER,u),y(e,t.COLUMN_SORT,u),y(e,t.COLUMN_FILTER_SAVE,u),y(e,t.ROW_CLICK,u),y(e,t.ROW_DBL_CLICK,u),y(e,t.ROW_EXPAND_CLICK,u),y(e,t.ROW_SELECT,u),y(e,t.ROW_SELECT_ALL,u),y(e,t.ROW_SELECT_CHANGE,u),y(e,t.PAGE_LIMIT_CHANGE,u),y(e,t.PAGE_VALUE_CHANGE,u),y(e,t.SETTING_CHANGE,u),y(e,t.SCROLL_BOTTOM,u),function(e){e.ASC="asc",e.DESC="desc",e.NULL="null",e.CUSTOM="custom"}(d||(d={})),d.ASC,d.DESC,d.NULL,d.CUSTOM,function(e){e.CURRENT="current",e.ALL="all"}(l||(l={}));var a={label:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),field:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),render:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")]),width:r.PropTypes.oneOfType([r.PropTypes.number.def(void 0),r.PropTypes.string.def("auto")]),minWidth:r.PropTypes.oneOfType([r.PropTypes.number.def(void 0),r.PropTypes.string.def("auto")]).def(),columnKey:r.PropTypes.string.def(""),showOverflowTooltip:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:r.PropTypes.commonType(["static","auto"],"showOverflowTooltipMode").def("auto")})]).def(void 0),type:r.PropTypes.commonType(["selection","index","expand","none"],"columnType").def("none"),resizable:r.PropTypes.bool.def(!0),fixed:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.commonType(["left","right"],"fixed")]).def(!1),sort:r.PropTypes.oneOfType([r.PropTypes.shape({sortFn:r.PropTypes.func.def(void 0),sortScope:r.PropTypes.commonType(Object.values(l)).def(l.CURRENT),value:r.PropTypes.string.def(d.NULL)}),r.PropTypes.bool,r.PropTypes.string]).def(!1),filter:r.PropTypes.oneOfType([r.PropTypes.shape({list:r.PropTypes.arrayOf(r.PropTypes.any).def([]),filterFn:r.PropTypes.func.def(void 0),match:r.PropTypes.commonType(["full","fuzzy"],"full"),filterScope:r.PropTypes.commonType(Object.values(l)).def(l.CURRENT),btnSave:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.string]).def("确定"),btnReset:r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.string]).def("重置")}),r.PropTypes.bool,r.PropTypes.string]).def(!1),colspan:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return 1})),r.PropTypes.number.def(1)]),rowspan:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return 1})),r.PropTypes.number.def(1)])};r.PropTypes.arrayOf(r.PropTypes.any).def([]),r.PropTypes.arrayOf(r.PropTypes.shape(a)).def([]),r.PropTypes.oneOfType([r.PropTypes.number.def(-1),r.PropTypes.arrayOf(r.PropTypes.number.def(-1))]),r.PropTypes.commonType(["multi","single","disabled"],"columnPick").def("disabled"),r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def("auto"),r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def(84),r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]).def("auto"),r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.func]).def(42),r.PropTypes.number.def(42),r.PropTypes.bool.def(!0),r.PropTypes.shape({height:r.PropTypes.number.def(42),isShow:r.PropTypes.bool.def(!0),cellFn:r.PropTypes.func.def(void 0)}),r.PropTypes.bool.def(!1),r.PropTypes.oneOfType([r.PropTypes.arrayOf(r.PropTypes.commonType(i,"border")),r.PropTypes.string]).def([o.ROW]),r.PropTypes.oneOfType([r.PropTypes.bool.def(!1),r.PropTypes.object.def({})]).def(!1),r.PropTypes.bool.def(!1),r.PropTypes.string.def("暂无数据"),r.PropTypes.oneOfType([r.PropTypes.shape({fields:r.PropTypes.arrayOf(r.PropTypes.shape({label:r.PropTypes.string,field:r.PropTypes.string,disabled:r.PropTypes.bool})),checked:r.PropTypes.arrayOf(r.PropTypes.string),limit:r.PropTypes.number.def(0),size:r.PropTypes.size(["small","medium","large"]).def("small"),sizeList:r.PropTypes.shape([]),showLineHeight:r.PropTypes.bool.def(!0)}),r.PropTypes.bool]).def(!1),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.object,r.PropTypes.func]).def({}),r.PropTypes.oneOfType([r.PropTypes.object,r.PropTypes.bool]).def(void 0),r.PropTypes.bool.def(!1),r.PropTypes.string.def(""),r.PropTypes.func.def(void 0),r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.func]).def("__$table_row_index"),r.PropTypes.oneOfType([r.PropTypes.bool,r.PropTypes.shape({content:r.PropTypes.string.def(""),disabled:r.PropTypes.bool.def(!1),watchCellResize:r.PropTypes.bool.def(!0),mode:r.PropTypes.commonType(["static","auto"],"showOverflowTooltipMode").def("auto")})]).def(!1),r.PropTypes.bool.def(!1),r.PropTypes.oneOf(P).def(p.HIGHLIGHT),r.PropTypes.shape({}).def({}),r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return!0})),r.PropTypes.bool.def(!0)]).def(!0);const c=(0,T.defineComponent)({name:"TableColumn",props:Object.assign(Object.assign({},a),{prop:r.PropTypes.oneOfType([r.PropTypes.func.def((function(){return""})),r.PropTypes.string.def("")])}),setup:function(e,o){var p=o.slots,r=(0,T.inject)("InitColumns",(function(e){}),!1);return(0,T.onMounted)((function(){var o=(0,T.reactive)(Object.assign(Object.assign({},e),{field:e.prop||e.field}));r(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,T.createVNode)(T.Fragment,null,[null===(e=p.default)||void 0===e?void 0:e.call(p,{data:""})])}}}),O=(0,r.withInstall)(c)})(),n})()));
|
package/lib/tag/index.d.ts
CHANGED
@@ -5,8 +5,8 @@ declare const BkTag: {
|
|
5
5
|
$props: Partial<{
|
6
6
|
type: string;
|
7
7
|
theme: string;
|
8
|
-
closable: boolean;
|
9
8
|
extCls: string;
|
9
|
+
closable: boolean;
|
10
10
|
radius: string;
|
11
11
|
checked: boolean;
|
12
12
|
checkable: boolean;
|
@@ -45,7 +45,7 @@ declare const BkTag: {
|
|
45
45
|
}>> & {
|
46
46
|
onChange?: (...args: any[]) => any;
|
47
47
|
onClose?: (...args: any[]) => any;
|
48
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "theme" | "
|
48
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "theme" | "extCls" | "closable" | "radius" | "checked" | "checkable">;
|
49
49
|
$attrs: {
|
50
50
|
[x: string]: unknown;
|
51
51
|
};
|
@@ -57,7 +57,7 @@ declare const BkTag: {
|
|
57
57
|
}>;
|
58
58
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
59
59
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
60
|
-
$emit: (event: "
|
60
|
+
$emit: (event: "change" | "close", ...args: any[]) => void;
|
61
61
|
$el: any;
|
62
62
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
63
63
|
theme: import("vue-types").VueTypeDef<string> & {
|
@@ -101,11 +101,11 @@ declare const BkTag: {
|
|
101
101
|
}>;
|
102
102
|
handleClose: (e: Event) => void;
|
103
103
|
handleClick: (e: Event) => void;
|
104
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
104
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], string, {
|
105
105
|
type: string;
|
106
106
|
theme: string;
|
107
|
-
closable: boolean;
|
108
107
|
extCls: string;
|
108
|
+
closable: boolean;
|
109
109
|
radius: string;
|
110
110
|
checked: boolean;
|
111
111
|
checkable: boolean;
|
@@ -217,11 +217,11 @@ declare const BkTag: {
|
|
217
217
|
}>;
|
218
218
|
handleClose: (e: Event) => void;
|
219
219
|
handleClick: (e: Event) => void;
|
220
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
220
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close")[], "change" | "close", {
|
221
221
|
type: string;
|
222
222
|
theme: string;
|
223
|
-
closable: boolean;
|
224
223
|
extCls: string;
|
224
|
+
closable: boolean;
|
225
225
|
radius: string;
|
226
226
|
checked: boolean;
|
227
227
|
checkable: boolean;
|
package/lib/tag/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon")):t(e["../shared"],e.vue,e["../icon"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o)=>(()=>{"use strict";var r={6870:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var o=s[e]={exports:{}};return r[e](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>c});var e=n(4212);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var o=n(748),r=n(6870);const s=(0,o.defineComponent)({name:"Tag",props:{theme:e.PropTypes.theme(["success","info","warning","danger"]).def(""),closable:e.PropTypes.bool.def(!1),type:e.PropTypes.commonType(["","filled","stroke"]).def(""),checkable:e.PropTypes.bool.def(!1),checked:e.PropTypes.bool.def(!1),radius:e.PropTypes.string.def("2px"),extCls:e.PropTypes.string.def("")},emits:["change","close"],slots:["icon"],setup:function(r,s){var n=s.emit;return{wrapperCls:(0,o.computed)((function(){var o;return(0,e.classes)((t(o={"bk-tag-closable":r.closable,"bk-tag-checkable":r.checkable,"bk-tag-check":r.checked},"bk-tag-".concat(r.type),r.type),t(o,"bk-tag-".concat(r.theme),r.theme),t(o,r.extCls,!!r.extCls),o),"bk-tag")})),wrapperStyle:(0,o.computed)((function(){return{borderRadius:r.radius}})),handleClose:function(e){e.preventDefault(),e.stopPropagation(),n("close",e)},handleClick:function(e){e.preventDefault(),e.stopPropagation(),r.checkable&&n("change",!r.checked)}}},render:function(){var e,t;return(0,o.createVNode)("div",{class:this.wrapperCls,style:this.wrapperStyle,onClick:this.handleClick},[this.$slots.icon?(0,o.createVNode)("span",{class:"bk-tag-icon"},[this.$slots.icon()]):"",(0,o.createVNode)("span",{class:"bk-tag-text"},[null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)]),this.closable?(0,o.createVNode)(r.Error,{class:"bk-tag-close",onClick:this.handleClose},null):""])}}),c=(0,e.withInstall)(s)})(),a})()));
|