bkui-vue 0.0.1-beta.22 → 0.0.1-beta.221
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 +38175 -0
- package/dist/index.umd.js +173 -0
- package/dist/style.css +1 -5090
- 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 -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 +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 +3 -7
- package/lib/code-diff/code-diff.css +73 -1
- package/lib/code-diff/code-diff.d.ts +10 -1
- package/lib/code-diff/code-diff.less +95 -1
- package/lib/code-diff/code-diff.variable.css +102 -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 +23 -2
- package/lib/date-picker/date-picker.d.ts +39 -12
- package/lib/date-picker/date-picker.less +29 -2
- package/lib/date-picker/date-picker.variable.css +52 -5
- package/lib/date-picker/index.d.ts +95 -34
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +11 -1
- package/lib/date-picker/panel/date-range.d.ts +308 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +489 -0
- package/lib/date-picker/panel/time.d.ts +448 -0
- package/lib/date-picker/props.d.ts +54 -4
- 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 -22
- package/lib/dialog/dialog.d.ts +272 -56
- package/lib/dialog/dialog.less +77 -23
- package/lib/dialog/dialog.variable.css +132 -22
- package/lib/dialog/index.d.ts +598 -124
- 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 +72 -11
- 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 +21 -24
- package/lib/form/form.css +103 -10
- package/lib/form/form.d.ts +37 -40
- package/lib/form/form.less +146 -34
- package/lib/form/form.variable.css +222 -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.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 +26 -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/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.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 +174 -63
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +216 -18
- package/lib/input/input.d.ts +117 -17
- 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 +108 -14
- 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/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 +53 -6
- package/lib/message/messageConstructor.d.ts +43 -7
- package/lib/modal/index.d.ts +505 -75
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +193 -29
- 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 +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 +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 +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 +80 -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 +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 +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 +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 +1419 -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 +552 -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 -1
- 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 +17 -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} +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 +5 -1
- package/lib/sideslider/index.d.ts +388 -73
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +55 -10
- package/lib/sideslider/sideslider.d.ts +180 -32
- 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 +27 -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 +103 -1
- package/lib/table/index.d.ts +776 -22
- package/lib/table/index.js +1 -1
- 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 +280 -5
- package/lib/table/render.d.ts +54 -7
- package/lib/table/table.css +1137 -17
- package/lib/table/table.d.ts +193 -10
- package/lib/table/table.less +230 -25
- package/lib/table/table.variable.css +1176 -30
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +96 -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 +4 -4
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +57 -18
- package/lib/tag/tag.d.ts +1 -1
- package/lib/tag/tag.less +58 -15
- package/lib/tag/tag.variable.css +86 -21
- package/lib/tag-input/common.d.ts +27 -0
- package/lib/tag-input/index.d.ts +1182 -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 +524 -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 +212 -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 +45 -64
- package/lib/transfer/transfer.d.ts +70 -95
- package/lib/transfer/transfer.less +54 -81
- package/lib/transfer/transfer.variable.css +74 -67
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +304 -48
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +97 -0
- package/lib/tree/tree.css +183 -11
- package/lib/tree/tree.d.ts +143 -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 +3 -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 +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 +136 -24
- package/lib/volar.components.d.ts +101 -0
- package/package.json +69 -54
- package/README_EN.md +0 -93
- package/dist/bkui-vue.cjs.js +0 -13557
- package/dist/bkui-vue.esm.js +0 -13506
- package/dist/bkui-vue.umd.js +0 -13560
- 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
package/lib/transfer/index.d.ts
CHANGED
@@ -23,5 +23,343 @@
|
|
23
23
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
24
|
* IN THE SOFTWARE.
|
25
25
|
*/
|
26
|
-
|
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;
|
27
365
|
export default Transfer;
|
package/lib/transfer/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../shared"),require("../icon/"),require("../input")):"function"==typeof define&&define.amd?define(["exports","vue","../shared","../icon/","../input"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared,e._,e.Input)}(this,(function(e,t,r,n,o){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(o);function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var s={exports:{}},i={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(i);var c={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,a=[],u=!0,l=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{u||null==r.return||r.return()}finally{if(l)throw o}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports}(c);var f={exports:{}},p={exports:{}};!function(e){e.exports=function(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},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=p.exports;e.exports=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.exports.__esModule=!0,e.exports.default=e.exports}(f);var d={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(d),function(e){var t=i.exports,r=c.exports,n=f.exports,o=d.exports;e.exports=function(e,a){return t(e)||r(e,a)||n(e,a)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var v=l(s.exports),h={exports:{}},y={exports:{}};!function(e){var t=p.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(y);var x={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(x);var g={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(g),function(e){var t=y.exports,r=x.exports,n=f.exports,o=g.exports;e.exports=function(e){return t(e)||r(e)||n(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(h);var m=l(h.exports);r.PropTypes.string,r.PropTypes.string,r.PropTypes.string,r.PropTypes.string,r.PropTypes.bool,r.PropTypes.bool,r.PropTypes.string,r.PropTypes.bool;var L=t.defineComponent({name:"Transfer",props:{title:{type:Array,default:function(){return[]}},extCls:{type:String,default:""},searchPlaceholder:{type:String,default:""},settingKey:{type:String,default:"id"},displayKey:{type:String,default:"value"},sortKey:{type:String,default:""},showOverflowTips:{type:Boolean,default:!1},searchable:{type:Boolean,default:!1},sortable:{type:Boolean,default:!1},sourceList:{type:Array,default:function(){return[]}},targetList:{type:Array,default:function(){return[]}},emptyContent:{type:Array,default:function(){return[]}}},emits:["change"],slots:["left-header","right-header","source-option","target-option","left-empty-content","right-empty-content"],setup:function(e,n){var o=n.emit,a=[],u=e.sortKey,l=e.sortable,s=t.ref(""),i=t.ref(null),c=t.ref([]),f=t.ref([]),p=t.ref(-1),d=t.ref(-1),h=t.computed((function(){return e.sourceList&&Array.isArray(e.sourceList)?-1!==e.sourceList.toString().indexOf("[object Object]"):"empty"})),y=t.computed((function(){return h.value?e.settingKey:"index"})),x=t.computed((function(){return h.value?e.displayKey:"value"})),g=t.computed((function(){return s.value?c.value.filter((function(e){return!r.isEmpty(e[x.value])&&String(e[x.value]).indexOf(s.value)>-1})):c.value}));t.watch((function(){return e.sourceList}),(function(){"empty"!==h.value&&(L(),V())}),{deep:!0}),t.watch((function(){return e.targetList}),(function(){L(),V()}),{deep:!0}),t.watch((function(){return[x.value,y.value]}),(function(){L()})),t.watch((function(){return e.sortKey}),(function(e){u=e,V()})),t.watch((function(){return e.sortable}),(function(e){l=e,V()}));var L=function(){"empty"!==h.value&&(h.value?_():b())},b=function(){if(!e.targetList.length||e.targetList.length>e.sourceList.length){for(var t,r=[],n=0;n<e.sourceList.length;n++)r.push({index:n,value:e.sourceList[n]});c.value=[].concat(r),(t=f.value).splice.apply(t,[0,f.value.length].concat([])),o("change",c.value,[],[])}else{for(var a=[],u=[],l=0;l<e.sourceList.length;l++)a.push({index:l,value:e.sourceList[l]});e.targetList.forEach((function(e){var t=a.find((function(t){return t.value===e}));t&&u.push(t)})),f.value=[].concat(u);var s=a.filter((function(e){return u.every((function(t){return t.index!==e.index}))}));c.value=m(s),o("change",c.value,m(w(f.value,!1)),[])}},_=function(){if(!e.targetList.length||e.targetList.length>e.sourceList.length){var t;(t=c.value).splice.apply(t,[0,c.value.length].concat(m(e.sourceList))),f.value=[],o("change",c.value,[],[])}else{var r=e.sourceList.filter((function(t){return e.targetList.every((function(e){return e!==t[y.value]}))})),n=[];e.sourceList.forEach((function(t){e.targetList.forEach((function(e){t[y.value]===e&&n.push(t)}))})),f.value=[].concat(n),c.value=m(r);var a=m(w(f.value));o("change",c.value,f.value,a)}},V=function(){var t=[];if(h.value)l||(u=""),t=m(e.sourceList);else{u=l?"index":"";for(var r=0;r<e.sourceList.length;r++)t.push({index:r,value:e.sourceList[r]})}if(u){var n=[];if(t.forEach((function(e){n.push(e[u])})),(a=[].concat(n)).length===e.sourceList.length){var o=m(c.value);c.value=m(M(o,u,a))}}},S=function(){var e=c.value,t=h.value?f.value:m(w(f.value,!1)),r=h.value?m(w(f.value)):[];o("change",e,t,r)},w=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[];if(!e.length)return[];var n=m(e);return n.forEach((function(e){if(t)for(var n=0,o=Object.entries(e);n<o.length;n++){var a=v(o[n],2),u=a[0],l=a[1];u===y.value&&r.push(l)}else r.push(e.value)})),r},M=function(e,t,r){var n=r;return e.sort((function(e,r){return n.indexOf(e[t])-n.indexOf(r[t])>=0}))},N=function(e){c.value=c.value.filter((function(t){return t[y.value]!==e[y.value]}))};return"empty"!==h.value&&(h.value?_():b(),V()),{keyword:s,transferRef:i,dataList:c,allToRight:function(){p.value=-1;var t=g.value,r=f.value;t.forEach((function(e){r.push(e),N(e)})),a.length===e.sourceList.length?f.value=m(M(r,u,a)):f.value=m(r),S()},allToLeft:function(){d.value=-1;for(var t=f.value,r=c.value;t.length;){var n=t.shift();r.push(n),a.length===e.sourceList.length?c.value=m(M(r,u,a)):c.value=m(r)}S()},displayDataList:g,displayCode:x,leftHoverIndex:p,rightHoverIndex:d,handleItemMouseEvent:function(e,t,r,n){t.preventDefault(),t.stopPropagation();var o="over"===e?n:-1;r?p.value=o:d.value=o},handleItemClick:function(t,r,n){t.preventDefault(),t.stopPropagation(),n?p.value=-1:d.value=-1;var o=n?g.value[r]:f.value.splice(r,1)[0],l=n?f.value:c.value;l.push(o),n&&N(o);var s=a.length===e.sourceList.length?m(M(l,u,a)):m(l);n?f.value=m(s):c.value=m(s),S()},hasSelectedList:f}},render:function(){var e=this,r=this.$props,o=r.extCls,a=r.title,l=r.emptyContent,s=r.searchable,i=r.searchPlaceholder,c=function(r){var n,o,u="left-header"===r,l="".concat(u?null!==(n=a[0])&&void 0!==n?n:"左侧列表":null!==(o=a[1])&&void 0!==o?o:"右侧列表"),s=u?!e.dataList.length:!e.hasSelectedList.length;return e.$slots[r]?t.createVNode("div",{class:"slot-header"},[t.createVNode("div",{class:"slot-content"},[e.$slots[r]()])]):t.createVNode("div",{class:"header"},["".concat(l,"(共").concat(e.dataList.length,"条)"),t.createVNode("span",{class:{disabled:s},onClick:function(){return u&&e.dataList.length&&e.allToRight(),void(!u&&e.hasSelectedList.length&&e.allToLeft())}},[u?"全部添加":"清空"])])},f=function(r,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=a?e.leftHoverIndex:e.rightHoverIndex;return t.createVNode("div",{class:"item-content"},[t.createVNode("span",{class:"content-text",title:r[e.displayCode]},[r[e.displayCode]]),t.createVNode("span",{class:["icon-wrapper",o===u?"hover":""]},[a?t.createVNode(n.ArrowsRight,{class:"bk-icon"},null):t.createVNode(n.Error,{class:"bk-icon"},null)])])},p=function(r){var n="left"===r,o=n?e.displayDataList:e.hasSelectedList,a=n?"source-option":"target-option",u=n?"left-empty-content":"right-empty-content";return o.length?t.createVNode("ul",{class:["content",s&&n?"is-search":""]},[o.map((function(r,o){var u,l,s;return t.createVNode("li",{key:o,class:[e.$slots[a]?"custom-item":""],onClick:function(t){return e.handleItemClick(t,o,n)},onMouseover:function(t){return e.handleItemMouseEvent("over",t,n,o)},onMouseleave:function(t){return e.handleItemMouseEvent("leave",t,n,o)}},[null!==(s=null===(l=(u=e.$slots)[a])||void 0===l?void 0:l.call(u,r))&&void 0!==s?s:f(r,o,n)])}))]):function(r){var n,o="left-empty-content"===r,a=null!==(n=o?l[0]:l[1])&&void 0!==n?n:o?"无数据":"未选择任何项";return e.$slots[r]?t.createVNode("div",null,[e.$slots[r]()]):t.createVNode("div",{class:"empty"},[a])}(u)};return t.createVNode("div",{class:["bk-transfer",o],ref:"transferRef"},[t.createVNode("div",{class:"source-list"},[c("left-header"),s&&t.createVNode(u.default,{modelValue:e.keyword,"onUpdate:modelValue":function(t){return e.keyword=t},class:"transfer-search-input",clearable:!0,placeholder:i||"请输入搜索关键字",type:"search","left-icon":"bk-icon icon-search"},null),p("left")]),t.createVNode("div",{class:"transfer"},null),t.createVNode("div",{class:"target-list"},[c("right-header"),p("right")])])}});L.install=function(e){e.component(L.name,L)},e.default=L,Object.defineProperty(e,"__esModule",{value:!0})}));
|
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
|
+
};
|
@@ -5,57 +5,46 @@
|
|
5
5
|
/* 重点表示、强调、链接以及带有明确指示性 */
|
6
6
|
/* 正常尺寸图标 */
|
7
7
|
.bk-transfer {
|
8
|
-
position: relative;
|
9
8
|
display: flex;
|
10
|
-
font-size: 14px;
|
11
|
-
flex-direction: row;
|
12
9
|
justify-content: center;
|
10
|
+
align-items: center;
|
11
|
+
font-size: 14px;
|
13
12
|
}
|
14
13
|
.bk-transfer .transfer {
|
15
|
-
position: absolute;
|
16
|
-
top: 50%;
|
17
|
-
left: 50%;
|
18
14
|
width: 30px;
|
19
15
|
height: 30px;
|
16
|
+
margin: 0 2px;
|
20
17
|
background: url('@bkui-vue/styles/images/transfer.png') no-repeat center center;
|
21
|
-
transform: translate(-50%, -50%);
|
22
18
|
}
|
23
19
|
.bk-transfer .source-list,
|
24
20
|
.bk-transfer .target-list {
|
21
|
+
flex: 1;
|
22
|
+
display: flex;
|
23
|
+
flex-direction: column;
|
25
24
|
height: 400px;
|
26
25
|
min-width: 200px;
|
27
26
|
overflow: hidden;
|
28
27
|
background-color: #fff;
|
29
28
|
border: 1px solid #dde4eb;
|
30
29
|
border-radius: 2px;
|
31
|
-
flex: 1;
|
32
30
|
}
|
33
31
|
.bk-transfer .source-list .slot-header,
|
34
|
-
.bk-transfer .target-list .slot-header
|
35
|
-
|
32
|
+
.bk-transfer .target-list .slot-header,
|
33
|
+
.bk-transfer .source-list .header,
|
34
|
+
.bk-transfer .target-list .header {
|
36
35
|
height: 43px;
|
37
36
|
padding: 0 20px;
|
38
|
-
line-height: 43px;
|
39
37
|
background-color: #fafbfd;
|
40
38
|
border-bottom: 1px solid #dde4eb;
|
41
39
|
}
|
42
|
-
.bk-transfer .source-list .slot-header .slot-content,
|
43
|
-
.bk-transfer .target-list .slot-header .slot-content {
|
44
|
-
position: relative;
|
45
|
-
}
|
46
40
|
.bk-transfer .source-list .header,
|
47
41
|
.bk-transfer .target-list .header {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
line-height: 43px;
|
52
|
-
background-color: #fafbfd;
|
53
|
-
border-bottom: 1px solid #dde4eb;
|
42
|
+
display: flex;
|
43
|
+
align-items: center;
|
44
|
+
justify-content: space-between;
|
54
45
|
}
|
55
46
|
.bk-transfer .source-list .header span,
|
56
47
|
.bk-transfer .target-list .header span {
|
57
|
-
position: absolute;
|
58
|
-
right: 10px;
|
59
48
|
font-size: 12px;
|
60
49
|
color: #3a84ff;
|
61
50
|
cursor: pointer;
|
@@ -65,39 +54,43 @@
|
|
65
54
|
color: #c4c6cc;
|
66
55
|
cursor: not-allowed;
|
67
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
|
+
}
|
68
69
|
.bk-transfer .source-list .empty,
|
69
70
|
.bk-transfer .target-list .empty {
|
70
|
-
|
71
|
-
|
72
|
-
|
71
|
+
flex: 1;
|
72
|
+
display: flex;
|
73
|
+
align-items: center;
|
74
|
+
justify-content: center;
|
75
|
+
padding-bottom: 30px;
|
73
76
|
color: #c4c6cc;
|
74
|
-
text-align: center;
|
75
77
|
cursor: default;
|
76
78
|
}
|
77
79
|
.bk-transfer .source-list .content,
|
78
80
|
.bk-transfer .target-list .content {
|
79
|
-
|
80
|
-
max-height: calc(100% - 50px);
|
81
|
-
padding: 0;
|
81
|
+
flex: 1;
|
82
82
|
margin: 6px 0;
|
83
83
|
overflow-y: auto;
|
84
84
|
}
|
85
|
-
.bk-transfer .source-list .content.is-search,
|
86
|
-
.bk-transfer .target-list .content.is-search {
|
87
|
-
max-height: calc(100% - 86px);
|
88
|
-
}
|
89
85
|
.bk-transfer .source-list .content li.custom-item,
|
90
86
|
.bk-transfer .target-list .content li.custom-item,
|
91
87
|
.bk-transfer .source-list .content li .item-content,
|
92
88
|
.bk-transfer .target-list .content li .item-content {
|
93
|
-
position: relative;
|
94
89
|
display: flex;
|
90
|
+
align-items: center;
|
95
91
|
height: 40px;
|
96
92
|
padding: 0 20px;
|
97
|
-
line-height: 40px;
|
98
|
-
list-style: none;
|
99
93
|
cursor: pointer;
|
100
|
-
align-items: center;
|
101
94
|
}
|
102
95
|
.bk-transfer .source-list .content li.custom-item:hover,
|
103
96
|
.bk-transfer .target-list .content li.custom-item:hover,
|
@@ -106,27 +99,33 @@
|
|
106
99
|
color: #3a84ff;
|
107
100
|
background-color: #eef6fe;
|
108
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
|
+
}
|
109
108
|
.bk-transfer .source-list .content li.custom-item .content-text,
|
110
109
|
.bk-transfer .target-list .content li.custom-item .content-text,
|
111
110
|
.bk-transfer .source-list .content li .item-content .content-text,
|
112
111
|
.bk-transfer .target-list .content li .item-content .content-text {
|
112
|
+
flex: 1;
|
113
113
|
overflow: hidden;
|
114
114
|
text-overflow: ellipsis;
|
115
115
|
white-space: nowrap;
|
116
|
-
flex: 1;
|
117
116
|
}
|
118
117
|
.bk-transfer .source-list .content li.custom-item .icon-wrapper,
|
119
118
|
.bk-transfer .target-list .content li.custom-item .icon-wrapper,
|
120
119
|
.bk-transfer .source-list .content li .item-content .icon-wrapper,
|
121
120
|
.bk-transfer .target-list .content li .item-content .icon-wrapper {
|
122
|
-
|
123
|
-
flex: 22px 0 0;
|
121
|
+
visibility: hidden;
|
124
122
|
}
|
125
|
-
.bk-transfer .source-list .content li.custom-item .icon-wrapper.
|
126
|
-
.bk-transfer .target-list .content li.custom-item .icon-wrapper.
|
127
|
-
.bk-transfer .source-list .content li .item-content .icon-wrapper.
|
128
|
-
.bk-transfer .target-list .content li .item-content .icon-wrapper.
|
129
|
-
display:
|
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;
|
130
129
|
}
|
131
130
|
.bk-transfer .source-list .content::-webkit-scrollbar,
|
132
131
|
.bk-transfer .target-list .content::-webkit-scrollbar {
|
@@ -138,21 +137,3 @@
|
|
138
137
|
background-color: #e6e9ea;
|
139
138
|
border-radius: 2px;
|
140
139
|
}
|
141
|
-
.bk-transfer .source-list .content .bk-icon,
|
142
|
-
.bk-transfer .target-list .content .bk-icon {
|
143
|
-
font-size: 22px;
|
144
|
-
}
|
145
|
-
.bk-transfer .target-list {
|
146
|
-
margin-left: 33px;
|
147
|
-
}
|
148
|
-
.bk-transfer .transfer-search-input {
|
149
|
-
height: 36px;
|
150
|
-
line-height: 34px;
|
151
|
-
border: none;
|
152
|
-
border-bottom: 1px solid #f0f1f5;
|
153
|
-
outline: none;
|
154
|
-
}
|
155
|
-
.bk-transfer .transfer-search-input.is-focused {
|
156
|
-
border-color: #f0f1f5;
|
157
|
-
box-shadow: 0px 0px 3px 0px transparent;
|
158
|
-
}
|