bkui-vue 0.0.1-beta.19 → 0.0.1-beta.191
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/index.cjs.js +171 -0
- package/dist/index.esm.js +36112 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4783
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +116 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +28 -6
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +31 -3
- package/lib/backtop/index.d.ts +7 -7
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +28 -8
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +74 -3
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button.css +92 -45
- package/lib/button/button.d.ts +50 -5
- package/lib/button/button.less +88 -47
- package/lib/button/button.variable.css +115 -48
- package/lib/button/index.d.ts +82 -11
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +119 -4
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +100 -0
- package/lib/cascader/cascader.css +173 -0
- package/lib/cascader/cascader.d.ts +303 -0
- package/lib/cascader/cascader.less +196 -0
- package/lib/cascader/cascader.variable.css +286 -0
- package/lib/cascader/index.d.ts +868 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +23 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +38 -6
- package/lib/checkbox/checkbox.d.ts +16 -14
- package/lib/checkbox/checkbox.less +48 -6
- package/lib/checkbox/checkbox.variable.css +61 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +40 -23
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +3 -7
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +299 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +75 -0
- package/lib/collapse/collapse.css +28 -12
- package/lib/collapse/collapse.d.ts +11 -52
- package/lib/collapse/collapse.less +54 -29
- package/lib/collapse/collapse.variable.css +141 -12
- package/lib/collapse/index.d.ts +116 -16
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +123 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +388 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +28 -7
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +204 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.css +18 -2
- package/lib/date-picker/date-picker.d.ts +53 -136
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +41 -5
- package/lib/date-picker/index.d.ts +87 -26
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +10 -1
- package/lib/date-picker/props.d.ts +161 -0
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +132 -21
- package/lib/dialog/dialog.d.ts +266 -56
- package/lib/dialog/dialog.less +77 -22
- package/lib/dialog/dialog.variable.css +132 -21
- package/lib/dialog/index.d.ts +586 -124
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +135 -0
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.variable.css +23 -3
- package/lib/divider/index.d.ts +4 -4
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/const.d.ts +4 -0
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +35 -4
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +36 -10
- package/lib/dropdown/index.d.ts +75 -14
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +10 -3
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +63 -17
- package/lib/exception/index.d.ts +23 -8
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +23 -3
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +21 -24
- package/lib/form/form.css +102 -10
- package/lib/form/form.d.ts +37 -40
- package/lib/form/form.less +145 -34
- package/lib/form/form.variable.css +215 -10
- package/lib/form/index.d.ts +103 -85
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +8 -6
- package/lib/form/validator.d.ts +1 -0
- package/lib/icon/angle-double-down-line.js +1 -15
- package/lib/icon/angle-double-left-line.js +1 -15
- package/lib/icon/angle-double-left.js +1 -15
- package/lib/icon/angle-double-right-line.js +1 -15
- package/lib/icon/angle-double-right.js +1 -15
- package/lib/icon/angle-double-up-line.js +1 -15
- package/lib/icon/angle-down-fill.js +1 -15
- package/lib/icon/angle-down-line.js +1 -15
- package/lib/icon/angle-down.js +1 -15
- package/lib/icon/angle-left.js +1 -15
- package/lib/icon/angle-right.js +1 -15
- package/lib/icon/angle-up-fill.js +1 -15
- package/lib/icon/angle-up.js +1 -15
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -15
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.js +1 -15
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -15
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -15
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -15
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/help.js +1 -15
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +29 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -15
- package/lib/icon/info.js +1 -15
- package/lib/icon/left-shape.js +1 -15
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original .d.ts +4 -0
- package/lib/icon/original .js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -15
- package/lib/icon/plus.js +1 -15
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.js +1 -15
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -15
- package/lib/icon/share.js +1 -15
- package/lib/icon/spinner.js +1 -15
- package/lib/icon/success.js +1 -15
- package/lib/icon/switcher-loading.js +1 -15
- package/lib/icon/text-file.js +1 -15
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -15
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -15
- package/lib/icon/up-shape.js +1 -15
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -15
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.css +37 -0
- package/lib/info-box/index.d.ts +26 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/index.less +50 -0
- package/lib/info-box/index.variable.css +37 -0
- package/lib/input/index.d.ts +209 -44
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -17
- package/lib/input/input.d.ts +142 -12
- package/lib/input/input.less +180 -18
- package/lib/input/input.variable.css +252 -16
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +35 -15
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +177 -98
- package/lib/loading/loading.d.ts +96 -12
- package/lib/loading/loading.less +84 -73
- package/lib/loading/loading.variable.css +200 -101
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +74 -3
- package/lib/menu/submenu.variable.css +23 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +24 -3
- package/lib/message/message.less +27 -2
- package/lib/message/message.variable.css +47 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +483 -75
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +185 -29
- package/lib/modal/modal.less +36 -1
- package/lib/modal/modal.variable.css +63 -1
- package/lib/modal/props.mixin.d.ts +79 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +10 -1
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +24 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +24 -4
- package/lib/notify/notify.less +27 -4
- package/lib/notify/notify.variable.css +47 -7
- package/lib/notify/notifyConstructor.d.ts +50 -6
- package/lib/pagination/index.d.ts +35 -20
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +16 -6
- package/lib/pagination/pagination.less +58 -31
- package/lib/pagination/pagination.variable.css +77 -31
- package/lib/pagination/type.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/popover/index.d.ts +114 -14
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +53 -5
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +26 -3
- package/lib/popover/props.d.ts +28 -1
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +10 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +524 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/plugin-popover.d.ts +12 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +221 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +138 -0
- package/lib/popover2/props.d.ts +118 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +20 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popover-init.d.ts +13 -0
- package/lib/popover2/use-popper-id.d.ts +7 -0
- package/lib/popover2/utils.d.ts +1 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +7 -7
- package/lib/process/index.js +1 -15
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.variable.css +23 -3
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +74 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +30 -19
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +16 -0
- package/lib/radio/radio.css +62 -57
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +87 -62
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +24 -1
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +11 -0
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +302 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1410 -451
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +16 -4
- package/lib/select/optionGroup.d.ts +1 -77
- package/lib/select/select.css +263 -80
- package/lib/select/select.d.ts +549 -126
- package/lib/select/select.less +364 -185
- package/lib/select/select.variable.css +287 -84
- package/lib/select/selectTagInput.d.ts +92 -0
- package/lib/select/type.d.ts +38 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
- package/lib/shared/index.d.ts +17 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +3 -2
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +3 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +13 -0
- package/lib/shared/vue-types.d.ts +9 -1
- package/lib/sideslider/index.d.ts +373 -73
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +54 -10
- package/lib/sideslider/sideslider.d.ts +173 -32
- package/lib/sideslider/sideslider.less +71 -13
- package/lib/sideslider/sideslider.variable.css +77 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +5 -0
- package/lib/slider/slider.d.ts +14 -2
- package/lib/slider/slider.variable.css +23 -3
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +14 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +23 -3
- package/lib/steps/steps.variable.css +37 -6
- package/lib/styles/index.d.ts +12 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +130 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -0
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +29 -3
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +37 -14
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +16 -5
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +80 -9
- package/lib/tab/index.d.ts +107 -219
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +66 -87
- package/lib/tab/tab-panel.d.ts +40 -15
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +17 -41
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +48 -4
- package/lib/table/const.d.ts +80 -1
- package/lib/table/index.d.ts +774 -9
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +72 -0
- package/lib/table/plugins/head-filter.less +93 -0
- package/lib/table/plugins/head-filter.variable.css +185 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +135 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +242 -0
- package/lib/table/props.d.ts +257 -4
- package/lib/table/render.d.ts +64 -6
- package/lib/table/table.css +1128 -15
- package/lib/table/table.d.ts +197 -5
- package/lib/table/table.less +223 -24
- package/lib/table/table.variable.css +1162 -29
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +94 -0
- package/lib/table/utils.d.ts +52 -3
- package/lib/table-column/index.d.ts +328 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +189 -22
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +112 -0
- package/lib/tag/tag.d.ts +83 -7
- package/lib/tag/tag.less +127 -2
- package/lib/tag/tag.variable.css +135 -3
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +913 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +383 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +322 -0
- package/lib/tag-input/tag-props.d.ts +135 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +328 -0
- package/lib/timeline/index.d.ts +4 -4
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +5 -5
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +6 -5
- package/lib/timeline/timeline.variable.css +28 -8
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +365 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +139 -0
- package/lib/transfer/transfer.d.ts +160 -0
- package/lib/transfer/transfer.less +144 -0
- package/lib/transfer/transfer.variable.css +252 -0
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +337 -41
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +114 -0
- package/lib/tree/tree.css +175 -14
- package/lib/tree/tree.d.ts +156 -14
- package/lib/tree/tree.less +70 -26
- package/lib/tree/tree.variable.css +288 -14
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +31 -13
- package/lib/upload/index.d.ts +580 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +422 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +461 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +535 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +24 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +10 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -24
- package/lib/virtual-render/virtual-render.d.ts +13 -2
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +130 -24
- package/lib/volar.components.d.ts +100 -0
- package/package.json +71 -51
- package/README_EN.md +0 -89
- package/dist/bkui-vue.cjs.js +0 -12407
- package/dist/bkui-vue.esm.js +0 -12357
- package/dist/bkui-vue.umd.js +0 -12410
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
- package/lib/styles/mixins/animate.css +0 -21
- package/lib/use-form.d.ts +0 -3
@@ -0,0 +1,365 @@
|
|
1
|
+
/**
|
2
|
+
* Tencent is pleased to support the open source community by making
|
3
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
|
+
*
|
5
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6
|
+
*
|
7
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
|
+
*
|
9
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
10
|
+
*
|
11
|
+
* ---------------------------------------------------
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
13
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
14
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
15
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
16
|
+
*
|
17
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
18
|
+
* the Software.
|
19
|
+
*
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
21
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
23
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
|
+
* IN THE SOFTWARE.
|
25
|
+
*/
|
26
|
+
declare const Transfer: {
|
27
|
+
new (...args: any[]): {
|
28
|
+
$: import("vue").ComponentInternalInstance;
|
29
|
+
$data: {};
|
30
|
+
$props: Partial<{
|
31
|
+
title: string[];
|
32
|
+
extCls: string;
|
33
|
+
searchPlaceholder: string;
|
34
|
+
displayKey: string;
|
35
|
+
sortable: boolean;
|
36
|
+
settingKey: string;
|
37
|
+
sortKey: string;
|
38
|
+
showOverflowTips: boolean;
|
39
|
+
searchable: boolean;
|
40
|
+
sourceList: any[];
|
41
|
+
targetList: any[];
|
42
|
+
emptyContent: string[];
|
43
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
44
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
45
|
+
default: () => string[];
|
46
|
+
};
|
47
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
48
|
+
default: string;
|
49
|
+
} & {
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
53
|
+
default: string;
|
54
|
+
} & {
|
55
|
+
default: string;
|
56
|
+
};
|
57
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
58
|
+
default: string;
|
59
|
+
} & {
|
60
|
+
default: string;
|
61
|
+
};
|
62
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
63
|
+
default: string;
|
64
|
+
} & {
|
65
|
+
default: string;
|
66
|
+
};
|
67
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
68
|
+
default: string;
|
69
|
+
} & {
|
70
|
+
default: string;
|
71
|
+
};
|
72
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
73
|
+
default: boolean;
|
74
|
+
} & {
|
75
|
+
default: boolean;
|
76
|
+
};
|
77
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
|
+
default: boolean;
|
79
|
+
} & {
|
80
|
+
default: boolean;
|
81
|
+
};
|
82
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
83
|
+
default: boolean;
|
84
|
+
} & {
|
85
|
+
default: boolean;
|
86
|
+
};
|
87
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
88
|
+
default: () => any[];
|
89
|
+
};
|
90
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
91
|
+
default: () => any[];
|
92
|
+
};
|
93
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
94
|
+
default: () => string[];
|
95
|
+
};
|
96
|
+
}>> & {
|
97
|
+
onChange?: (...args: any[]) => any;
|
98
|
+
"onUpdate:targetList"?: (...args: any[]) => any;
|
99
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "extCls" | "searchPlaceholder" | "displayKey" | "sortable" | "settingKey" | "sortKey" | "showOverflowTips" | "searchable" | "sourceList" | "targetList" | "emptyContent">;
|
100
|
+
$attrs: {
|
101
|
+
[x: string]: unknown;
|
102
|
+
};
|
103
|
+
$refs: {
|
104
|
+
[x: string]: unknown;
|
105
|
+
};
|
106
|
+
$slots: Readonly<{
|
107
|
+
[name: string]: import("vue").Slot;
|
108
|
+
}>;
|
109
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
110
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
111
|
+
$emit: (event: "change" | "update:targetList", ...args: any[]) => void;
|
112
|
+
$el: any;
|
113
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
114
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
115
|
+
default: () => string[];
|
116
|
+
};
|
117
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
118
|
+
default: string;
|
119
|
+
} & {
|
120
|
+
default: string;
|
121
|
+
};
|
122
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
123
|
+
default: string;
|
124
|
+
} & {
|
125
|
+
default: string;
|
126
|
+
};
|
127
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
128
|
+
default: string;
|
129
|
+
} & {
|
130
|
+
default: string;
|
131
|
+
};
|
132
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
133
|
+
default: string;
|
134
|
+
} & {
|
135
|
+
default: string;
|
136
|
+
};
|
137
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
138
|
+
default: string;
|
139
|
+
} & {
|
140
|
+
default: string;
|
141
|
+
};
|
142
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
143
|
+
default: boolean;
|
144
|
+
} & {
|
145
|
+
default: boolean;
|
146
|
+
};
|
147
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
148
|
+
default: boolean;
|
149
|
+
} & {
|
150
|
+
default: boolean;
|
151
|
+
};
|
152
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
153
|
+
default: boolean;
|
154
|
+
} & {
|
155
|
+
default: boolean;
|
156
|
+
};
|
157
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
158
|
+
default: () => any[];
|
159
|
+
};
|
160
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
161
|
+
default: () => any[];
|
162
|
+
};
|
163
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
164
|
+
default: () => string[];
|
165
|
+
};
|
166
|
+
}>> & {
|
167
|
+
onChange?: (...args: any[]) => any;
|
168
|
+
"onUpdate:targetList"?: (...args: any[]) => any;
|
169
|
+
}, {
|
170
|
+
selectSearchQuery: import("vue").Ref<string>;
|
171
|
+
selectListSearch: import("vue").ComputedRef<any>;
|
172
|
+
selectedList: import("vue").Ref<any[]>;
|
173
|
+
selectListSort: import("vue").ComputedRef<any[]>;
|
174
|
+
selectedListSort: import("vue").ComputedRef<any[]>;
|
175
|
+
settingCode: import("vue").ComputedRef<string>;
|
176
|
+
displayCode: import("vue").ComputedRef<string>;
|
177
|
+
allToRight: () => void;
|
178
|
+
allToLeft: () => void;
|
179
|
+
handleItemClick: (itemKey: any, isLeft: any) => void;
|
180
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], string, {
|
181
|
+
title: string[];
|
182
|
+
extCls: string;
|
183
|
+
searchPlaceholder: string;
|
184
|
+
displayKey: string;
|
185
|
+
sortable: boolean;
|
186
|
+
settingKey: string;
|
187
|
+
sortKey: string;
|
188
|
+
showOverflowTips: boolean;
|
189
|
+
searchable: boolean;
|
190
|
+
sourceList: any[];
|
191
|
+
targetList: any[];
|
192
|
+
emptyContent: string[];
|
193
|
+
}> & {
|
194
|
+
beforeCreate?: (() => void) | (() => void)[];
|
195
|
+
created?: (() => void) | (() => void)[];
|
196
|
+
beforeMount?: (() => void) | (() => void)[];
|
197
|
+
mounted?: (() => void) | (() => void)[];
|
198
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
199
|
+
updated?: (() => void) | (() => void)[];
|
200
|
+
activated?: (() => void) | (() => void)[];
|
201
|
+
deactivated?: (() => void) | (() => void)[];
|
202
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
203
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
204
|
+
destroyed?: (() => void) | (() => void)[];
|
205
|
+
unmounted?: (() => void) | (() => void)[];
|
206
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
207
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
208
|
+
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)[];
|
209
|
+
};
|
210
|
+
$forceUpdate: () => void;
|
211
|
+
$nextTick: typeof import("vue").nextTick;
|
212
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
213
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
214
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
215
|
+
default: () => string[];
|
216
|
+
};
|
217
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
218
|
+
default: string;
|
219
|
+
} & {
|
220
|
+
default: string;
|
221
|
+
};
|
222
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
223
|
+
default: string;
|
224
|
+
} & {
|
225
|
+
default: string;
|
226
|
+
};
|
227
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
228
|
+
default: string;
|
229
|
+
} & {
|
230
|
+
default: string;
|
231
|
+
};
|
232
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
233
|
+
default: string;
|
234
|
+
} & {
|
235
|
+
default: string;
|
236
|
+
};
|
237
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
238
|
+
default: string;
|
239
|
+
} & {
|
240
|
+
default: string;
|
241
|
+
};
|
242
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
243
|
+
default: boolean;
|
244
|
+
} & {
|
245
|
+
default: boolean;
|
246
|
+
};
|
247
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
248
|
+
default: boolean;
|
249
|
+
} & {
|
250
|
+
default: boolean;
|
251
|
+
};
|
252
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
253
|
+
default: boolean;
|
254
|
+
} & {
|
255
|
+
default: boolean;
|
256
|
+
};
|
257
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
258
|
+
default: () => any[];
|
259
|
+
};
|
260
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
261
|
+
default: () => any[];
|
262
|
+
};
|
263
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
264
|
+
default: () => string[];
|
265
|
+
};
|
266
|
+
}>> & {
|
267
|
+
onChange?: (...args: any[]) => any;
|
268
|
+
"onUpdate:targetList"?: (...args: any[]) => any;
|
269
|
+
} & import("vue").ShallowUnwrapRef<{
|
270
|
+
selectSearchQuery: import("vue").Ref<string>;
|
271
|
+
selectListSearch: import("vue").ComputedRef<any>;
|
272
|
+
selectedList: import("vue").Ref<any[]>;
|
273
|
+
selectListSort: import("vue").ComputedRef<any[]>;
|
274
|
+
selectedListSort: import("vue").ComputedRef<any[]>;
|
275
|
+
settingCode: import("vue").ComputedRef<string>;
|
276
|
+
displayCode: import("vue").ComputedRef<string>;
|
277
|
+
allToRight: () => void;
|
278
|
+
allToLeft: () => void;
|
279
|
+
handleItemClick: (itemKey: any, isLeft: any) => void;
|
280
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
281
|
+
__isFragment?: never;
|
282
|
+
__isTeleport?: never;
|
283
|
+
__isSuspense?: never;
|
284
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
285
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
286
|
+
default: () => string[];
|
287
|
+
};
|
288
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
289
|
+
default: string;
|
290
|
+
} & {
|
291
|
+
default: string;
|
292
|
+
};
|
293
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
294
|
+
default: string;
|
295
|
+
} & {
|
296
|
+
default: string;
|
297
|
+
};
|
298
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
299
|
+
default: string;
|
300
|
+
} & {
|
301
|
+
default: string;
|
302
|
+
};
|
303
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
304
|
+
default: string;
|
305
|
+
} & {
|
306
|
+
default: string;
|
307
|
+
};
|
308
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
309
|
+
default: string;
|
310
|
+
} & {
|
311
|
+
default: string;
|
312
|
+
};
|
313
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
314
|
+
default: boolean;
|
315
|
+
} & {
|
316
|
+
default: boolean;
|
317
|
+
};
|
318
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
319
|
+
default: boolean;
|
320
|
+
} & {
|
321
|
+
default: boolean;
|
322
|
+
};
|
323
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
324
|
+
default: boolean;
|
325
|
+
} & {
|
326
|
+
default: boolean;
|
327
|
+
};
|
328
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
329
|
+
default: () => any[];
|
330
|
+
};
|
331
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
332
|
+
default: () => any[];
|
333
|
+
};
|
334
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
335
|
+
default: () => string[];
|
336
|
+
};
|
337
|
+
}>> & {
|
338
|
+
onChange?: (...args: any[]) => any;
|
339
|
+
"onUpdate:targetList"?: (...args: any[]) => any;
|
340
|
+
}, {
|
341
|
+
selectSearchQuery: import("vue").Ref<string>;
|
342
|
+
selectListSearch: import("vue").ComputedRef<any>;
|
343
|
+
selectedList: import("vue").Ref<any[]>;
|
344
|
+
selectListSort: import("vue").ComputedRef<any[]>;
|
345
|
+
selectedListSort: import("vue").ComputedRef<any[]>;
|
346
|
+
settingCode: import("vue").ComputedRef<string>;
|
347
|
+
displayCode: import("vue").ComputedRef<string>;
|
348
|
+
allToRight: () => void;
|
349
|
+
allToLeft: () => void;
|
350
|
+
handleItemClick: (itemKey: any, isLeft: any) => void;
|
351
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], "change" | "update:targetList", {
|
352
|
+
title: string[];
|
353
|
+
extCls: string;
|
354
|
+
searchPlaceholder: string;
|
355
|
+
displayKey: string;
|
356
|
+
sortable: boolean;
|
357
|
+
settingKey: string;
|
358
|
+
sortKey: string;
|
359
|
+
showOverflowTips: boolean;
|
360
|
+
searchable: boolean;
|
361
|
+
sourceList: any[];
|
362
|
+
targetList: any[];
|
363
|
+
emptyContent: string[];
|
364
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
365
|
+
export default Transfer;
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon/"),require("../input")):t(e["../shared"],e.vue,e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n)=>(()=>{"use strict";var o={7685:e=>{e.exports=r},8133:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},a={};function s(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{s.r(l),s.d(l,{default:()=>p});var e=s(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n,o=s(748),a=s(7685),u=s(8133),i=s.n(u);!function(e){e.OBJECT_ARRAY="objectArray",e.BASE_ARRAY="baseArray",e.NOT_ARRAY="notArray"}(n||(n={}));var c={title:e.PropTypes.arrayOf(e.PropTypes.string).def([]),extCls:e.PropTypes.string.def(""),searchPlaceholder:e.PropTypes.string.def(""),settingKey:e.PropTypes.string.def("id"),displayKey:e.PropTypes.string.def("value"),sortKey:e.PropTypes.string.def("value"),showOverflowTips:e.PropTypes.bool.def(!1),searchable:e.PropTypes.bool.def(!1),sortable:e.PropTypes.bool.def(!1),sourceList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),targetList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),emptyContent:e.PropTypes.arrayOf(e.PropTypes.string).def([])};const d=(0,o.defineComponent)({name:"Transfer",props:c,emits:["change","update:targetList"],setup:function(e,t){var a=t.emit,s=(0,o.computed)((function(){return Array.isArray(e.sourceList)?e.sourceList.every((function(e){return e.toString().includes("[object Object]")}))?n.OBJECT_ARRAY:n.BASE_ARRAY:n.NOT_ARRAY})),l=(0,o.computed)((function(){return s.value===n.BASE_ARRAY?"value":e.settingKey})),u=(0,o.computed)((function(){return s.value===n.BASE_ARRAY?"value":e.displayKey})),i=(0,o.computed)((function(){return e.sortKey||u.value})),c=(0,o.computed)((function(){switch(s.value){case n.BASE_ARRAY:return r(new Set(e.sourceList)).map((function(e){return{value:e}}));case n.OBJECT_ARRAY:return r(e.sourceList);default:return[]}})),d=(0,o.toRefs)(e).targetList,p=function(e,t,r){var n=(0,o.ref)([]),a=(0,o.ref)([]),s=function(){e.value.forEach((function(e){var o=e[r.value];t.value.includes(o)?a.value.push(e):n.value.push(e)}))};return s(),(0,o.watch)((function(){return[e,t,r]}),s),{selectList:n,selectedList:a}}(c,d,l),f=p.selectList,v=p.selectedList,y=function(e,t){var r=(0,o.ref)(""),n=(0,o.computed)((function(){return e.value.filter((function(e){var n=e[t.value];return!(n instanceof Object)&&n.toString().includes(r.value)}))}));return{selectSearchQuery:r,selectListSearch:n}}(f,u),h=y.selectSearchQuery,m=y.selectListSearch,g=(0,o.computed)((function(){return r(m.value).sort((function(e,t){return e[i.value]>t[i.value]?1:-1}))})),A=(0,o.computed)((function(){return r(v.value).sort((function(e,t){return e[i.value]>t[i.value]?1:-1}))})),b=function(){var e=f.value.map((function(e){return e[l.value]})),t=v.value.map((function(e){return e[l.value]}));a("update:targetList",t),a("change",s.value===n.BASE_ARRAY?e:f.value.map((function(e){return(0,o.toRaw)(e)})),s.value===n.BASE_ARRAY?t:v.value.map((function(e){return(0,o.toRaw)(e)})),t)};return{selectSearchQuery:h,selectListSearch:m,selectedList:v,selectListSort:g,selectedListSort:A,settingCode:l,displayCode:u,allToRight:function(){f.value=[],v.value=r(c.value),b()},allToLeft:function(){f.value=r(c.value),v.value=[],b()},handleItemClick:function(e,t){var n,o=t?f:v,a=t?v:f,s=o.value.findIndex((function(t){return t[l.value]===e}));(n=a.value).push.apply(n,r(o.value.splice(s,1))),b()}}},render:function(){var e=this,t=this.sortable?this.selectListSort:this.selectListSearch,r=this.sortable?this.selectedListSort:this.selectedList,n=function(n){var a,s,l="left-header"===n,u="".concat(l?null!==(a=e.title[0])&&void 0!==a?a:"左侧列表":null!==(s=e.title[1])&&void 0!==s?s:"右侧列表"),i=l?!t.length:!r.length;return e.$slots[n]?(0,o.createVNode)("div",{class:"slot-header"},[e.$slots[n]()]):(0,o.createVNode)("div",{class:"header"},["".concat(u,"(共").concat(l?t.length:r.length,"条)"),(0,o.createVNode)("span",{class:{disabled:i},onClick:function(){i||(l?e.allToRight():e.allToLeft())}},[l?"全部添加":"清空"])])},s=function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,o.createVNode)("div",{class:"item-content"},[(0,o.createVNode)("span",{class:"content-text",title:t[e.displayCode]},[t[e.displayCode]]),(0,o.createVNode)("span",{class:"icon-wrapper"},[r?(0,o.createVNode)(a.ArrowsRight,{class:"bk-icon"},null):(0,o.createVNode)(a.Error,{class:"bk-icon"},null)])])},l=function(n){var a="left"===n,l=a?t:r,u=a?"source-option":"target-option",i=a?"left-empty-content":"right-empty-content";return l.length?(0,o.createVNode)("ul",{class:["content",e.searchable&&a?"is-search":""]},[l.map((function(t){var r,n,l;return(0,o.createVNode)("li",{key:t[e.settingCode],class:[e.$slots[u]?"custom-item":""],onClick:function(){return e.handleItemClick(t[e.settingCode],a)}},[null!==(l=null===(n=(r=e.$slots)[u])||void 0===n?void 0:n.call(r,t))&&void 0!==l?l:s(t,a)])}))]):function(t){var r,n="left-empty-content"===t,a=null!==(r=n?e.emptyContent[0]:e.emptyContent[1])&&void 0!==r?r:n?"无数据":"未选择任何项";return e.$slots[t]?(0,o.createVNode)("div",null,[e.$slots[t]()]):(0,o.createVNode)("div",{class:"empty"},[a])}(i)};return(0,o.createVNode)("div",{class:["bk-transfer",this.extCls]},[(0,o.createVNode)("div",{class:"source-list"},[n("left-header"),this.searchable&&(0,o.createVNode)(i(),{modelValue:e.selectSearchQuery,"onUpdate:modelValue":function(t){return e.selectSearchQuery=t},class:"transfer-search-input",clearable:!0,placeholder:this.searchPlaceholder||"请输入搜索关键字",type:"search","left-icon":"bk-icon icon-search"},null),l("left")]),(0,o.createVNode)("div",{class:"transfer"},null),(0,o.createVNode)("div",{class:"target-list"},[n("right-header"),l("right")])])}}),p=(0,e.withInstall)(d)})(),l})()));
|
@@ -0,0 +1,54 @@
|
|
1
|
+
export declare const transferProps: {
|
2
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
3
|
+
default: () => string[];
|
4
|
+
};
|
5
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
6
|
+
default: string;
|
7
|
+
} & {
|
8
|
+
default: string;
|
9
|
+
};
|
10
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
11
|
+
default: string;
|
12
|
+
} & {
|
13
|
+
default: string;
|
14
|
+
};
|
15
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
16
|
+
default: string;
|
17
|
+
} & {
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
21
|
+
default: string;
|
22
|
+
} & {
|
23
|
+
default: string;
|
24
|
+
};
|
25
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
26
|
+
default: string;
|
27
|
+
} & {
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
|
+
default: boolean;
|
32
|
+
} & {
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
36
|
+
default: boolean;
|
37
|
+
} & {
|
38
|
+
default: boolean;
|
39
|
+
};
|
40
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
41
|
+
default: boolean;
|
42
|
+
} & {
|
43
|
+
default: boolean;
|
44
|
+
};
|
45
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
46
|
+
default: () => any[];
|
47
|
+
};
|
48
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
49
|
+
default: () => any[];
|
50
|
+
};
|
51
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
52
|
+
default: () => string[];
|
53
|
+
};
|
54
|
+
};
|
@@ -0,0 +1,139 @@
|
|
1
|
+
/* 边框色 */
|
2
|
+
/* 按钮、表单边框颜色、禁用时文本颜色 */
|
3
|
+
/* 表格头部背景色、禁用底色 */
|
4
|
+
/* 大面积背景色 */
|
5
|
+
/* 重点表示、强调、链接以及带有明确指示性 */
|
6
|
+
/* 正常尺寸图标 */
|
7
|
+
.bk-transfer {
|
8
|
+
display: flex;
|
9
|
+
justify-content: center;
|
10
|
+
align-items: center;
|
11
|
+
font-size: 14px;
|
12
|
+
}
|
13
|
+
.bk-transfer .transfer {
|
14
|
+
width: 30px;
|
15
|
+
height: 30px;
|
16
|
+
margin: 0 2px;
|
17
|
+
background: url('@bkui-vue/styles/images/transfer.png') no-repeat center center;
|
18
|
+
}
|
19
|
+
.bk-transfer .source-list,
|
20
|
+
.bk-transfer .target-list {
|
21
|
+
flex: 1;
|
22
|
+
display: flex;
|
23
|
+
flex-direction: column;
|
24
|
+
height: 400px;
|
25
|
+
min-width: 200px;
|
26
|
+
overflow: hidden;
|
27
|
+
background-color: #fff;
|
28
|
+
border: 1px solid #dde4eb;
|
29
|
+
border-radius: 2px;
|
30
|
+
}
|
31
|
+
.bk-transfer .source-list .slot-header,
|
32
|
+
.bk-transfer .target-list .slot-header,
|
33
|
+
.bk-transfer .source-list .header,
|
34
|
+
.bk-transfer .target-list .header {
|
35
|
+
height: 43px;
|
36
|
+
padding: 0 20px;
|
37
|
+
background-color: #fafbfd;
|
38
|
+
border-bottom: 1px solid #dde4eb;
|
39
|
+
}
|
40
|
+
.bk-transfer .source-list .header,
|
41
|
+
.bk-transfer .target-list .header {
|
42
|
+
display: flex;
|
43
|
+
align-items: center;
|
44
|
+
justify-content: space-between;
|
45
|
+
}
|
46
|
+
.bk-transfer .source-list .header span,
|
47
|
+
.bk-transfer .target-list .header span {
|
48
|
+
font-size: 12px;
|
49
|
+
color: #3a84ff;
|
50
|
+
cursor: pointer;
|
51
|
+
}
|
52
|
+
.bk-transfer .source-list .header span.disabled,
|
53
|
+
.bk-transfer .target-list .header span.disabled {
|
54
|
+
color: #c4c6cc;
|
55
|
+
cursor: not-allowed;
|
56
|
+
}
|
57
|
+
.bk-transfer .source-list .transfer-search-input,
|
58
|
+
.bk-transfer .target-list .transfer-search-input {
|
59
|
+
height: 36px;
|
60
|
+
border-bottom: 1px solid #f0f1f5;
|
61
|
+
border-width: 0 0 1px 0;
|
62
|
+
border-radius: 0;
|
63
|
+
outline: none;
|
64
|
+
}
|
65
|
+
.bk-transfer .source-list .transfer-search-input.is-focused,
|
66
|
+
.bk-transfer .target-list .transfer-search-input.is-focused {
|
67
|
+
box-shadow: none;
|
68
|
+
}
|
69
|
+
.bk-transfer .source-list .empty,
|
70
|
+
.bk-transfer .target-list .empty {
|
71
|
+
flex: 1;
|
72
|
+
display: flex;
|
73
|
+
align-items: center;
|
74
|
+
justify-content: center;
|
75
|
+
padding-bottom: 30px;
|
76
|
+
color: #c4c6cc;
|
77
|
+
cursor: default;
|
78
|
+
}
|
79
|
+
.bk-transfer .source-list .content,
|
80
|
+
.bk-transfer .target-list .content {
|
81
|
+
flex: 1;
|
82
|
+
margin: 6px 0;
|
83
|
+
overflow-y: auto;
|
84
|
+
}
|
85
|
+
.bk-transfer .source-list .content li.custom-item,
|
86
|
+
.bk-transfer .target-list .content li.custom-item,
|
87
|
+
.bk-transfer .source-list .content li .item-content,
|
88
|
+
.bk-transfer .target-list .content li .item-content {
|
89
|
+
display: flex;
|
90
|
+
align-items: center;
|
91
|
+
height: 40px;
|
92
|
+
padding: 0 20px;
|
93
|
+
cursor: pointer;
|
94
|
+
}
|
95
|
+
.bk-transfer .source-list .content li.custom-item:hover,
|
96
|
+
.bk-transfer .target-list .content li.custom-item:hover,
|
97
|
+
.bk-transfer .source-list .content li .item-content:hover,
|
98
|
+
.bk-transfer .target-list .content li .item-content:hover {
|
99
|
+
color: #3a84ff;
|
100
|
+
background-color: #eef6fe;
|
101
|
+
}
|
102
|
+
.bk-transfer .source-list .content li.custom-item:hover .icon-wrapper,
|
103
|
+
.bk-transfer .target-list .content li.custom-item:hover .icon-wrapper,
|
104
|
+
.bk-transfer .source-list .content li .item-content:hover .icon-wrapper,
|
105
|
+
.bk-transfer .target-list .content li .item-content:hover .icon-wrapper {
|
106
|
+
visibility: visible;
|
107
|
+
}
|
108
|
+
.bk-transfer .source-list .content li.custom-item .content-text,
|
109
|
+
.bk-transfer .target-list .content li.custom-item .content-text,
|
110
|
+
.bk-transfer .source-list .content li .item-content .content-text,
|
111
|
+
.bk-transfer .target-list .content li .item-content .content-text {
|
112
|
+
flex: 1;
|
113
|
+
overflow: hidden;
|
114
|
+
text-overflow: ellipsis;
|
115
|
+
white-space: nowrap;
|
116
|
+
}
|
117
|
+
.bk-transfer .source-list .content li.custom-item .icon-wrapper,
|
118
|
+
.bk-transfer .target-list .content li.custom-item .icon-wrapper,
|
119
|
+
.bk-transfer .source-list .content li .item-content .icon-wrapper,
|
120
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper {
|
121
|
+
visibility: hidden;
|
122
|
+
}
|
123
|
+
.bk-transfer .source-list .content li.custom-item .icon-wrapper .bk-icon,
|
124
|
+
.bk-transfer .target-list .content li.custom-item .icon-wrapper .bk-icon,
|
125
|
+
.bk-transfer .source-list .content li .item-content .icon-wrapper .bk-icon,
|
126
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper .bk-icon {
|
127
|
+
display: flex;
|
128
|
+
font-size: 22px;
|
129
|
+
}
|
130
|
+
.bk-transfer .source-list .content::-webkit-scrollbar,
|
131
|
+
.bk-transfer .target-list .content::-webkit-scrollbar {
|
132
|
+
width: 4px;
|
133
|
+
}
|
134
|
+
.bk-transfer .source-list .content::-webkit-scrollbar-thumb,
|
135
|
+
.bk-transfer .target-list .content::-webkit-scrollbar-thumb {
|
136
|
+
height: 5px;
|
137
|
+
background-color: #e6e9ea;
|
138
|
+
border-radius: 2px;
|
139
|
+
}
|