bkui-vue 0.0.1-beta.3 → 0.0.1-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -19
- package/README_EN.md +93 -0
- package/dist/bkui-vue.cjs.js +18093 -2770
- package/dist/bkui-vue.esm.js +18049 -2775
- package/dist/bkui-vue.umd.js +18095 -2772
- package/dist/style.css +3958 -254
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +32 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +32 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +10 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +42 -1
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +9 -0
- package/lib/button/button.d.ts +57 -28
- package/lib/button/button.less +23 -15
- package/lib/button/button.variable.css +41 -0
- package/lib/button/index.d.ts +226 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +32 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +32 -0
- package/lib/checkbox/common.d.ts +1 -1
- package/lib/checkbox/index.d.ts +261 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +7 -6
- package/lib/code-diff/code-diff.css +115 -0
- package/lib/code-diff/code-diff.d.ts +71 -0
- package/lib/code-diff/code-diff.less +145 -0
- package/lib/code-diff/code-diff.variable.css +208 -0
- package/lib/code-diff/index.d.ts +6 -0
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.d.ts +166 -0
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +39 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +294 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +500 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +111 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.d.ts +57 -27
- package/lib/dialog/index.d.ts +286 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +14 -14
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +131 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +61 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +32 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +145 -0
- package/lib/form/form.css +48 -0
- package/lib/form/form.d.ts +64 -0
- package/lib/form/form.less +63 -0
- package/lib/form/form.variable.css +48 -0
- package/lib/form/index.d.ts +246 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -0
- package/lib/form/validator.d.ts +8 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +15 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +15 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +53 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +15 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +15 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +15 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +417 -0
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +20 -2
- package/lib/input/input.d.ts +97 -45
- package/lib/input/input.less +28 -5
- package/lib/input/input.variable.css +52 -2
- package/lib/link/index.d.ts +164 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +32 -0
- package/lib/loading/index.d.ts +147 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +100 -71
- package/lib/loading/loading.d.ts +48 -21
- package/lib/loading/loading.less +64 -49
- package/lib/loading/loading.variable.css +132 -71
- package/lib/menu/index.d.ts +188 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +64 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +275 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +22 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +96 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +146 -0
- package/lib/message/messageConstructor.d.ts +73 -0
- package/lib/modal/index.d.ts +214 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +33 -15
- package/lib/modal/props.mixin.d.ts +5 -1
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +111 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +277 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +142 -0
- package/lib/notify/notifyConstructor.d.ts +91 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +272 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +287 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +75 -46
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +55 -14
- package/lib/popover/props.d.ts +77 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +15 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +231 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +32 -3
- package/lib/radio/common.d.ts +1 -1
- package/lib/radio/index.d.ts +277 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +8 -2
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.less +9 -2
- package/lib/radio/radio.variable.css +40 -2
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +282 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1347 -0
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +243 -17
- package/lib/select/select.d.ts +268 -155
- package/lib/select/select.less +245 -46
- package/lib/select/select.variable.css +275 -17
- package/lib/select/type.d.ts +31 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +51 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +8 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +206 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
- package/lib/slider/index.js +15 -0
- package/lib/slider/slider-button.d.ts +75 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +189 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +242 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +15 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +46 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +52 -2
- 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 +286 -0
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +181 -135
- package/lib/tab/index.d.ts +552 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +190 -0
- package/lib/tab/tab-panel.d.ts +48 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +163 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +240 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +282 -0
- package/lib/table/index.js +10 -1
- package/lib/table/props.d.ts +118 -0
- package/lib/table/render.d.ts +74 -0
- package/lib/table/table.css +90 -0
- package/lib/table/table.d.ts +85 -37
- package/lib/table/table.less +116 -1
- package/lib/table/table.variable.css +122 -0
- package/lib/table/utils.d.ts +69 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +129 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -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 +208 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +301 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +328 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +251 -0
- package/lib/tree/index.d.ts +279 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +121 -0
- package/lib/tree/tree.less +63 -0
- package/lib/tree/tree.variable.css +143 -0
- package/lib/tree/util.d.ts +70 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +10 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +71 -54
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue"),require("../icon/"),require("../input")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../icon/","../input"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,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);t.PropTypes.string,t.PropTypes.string,t.PropTypes.string,t.PropTypes.string,t.PropTypes.bool,t.PropTypes.bool,t.PropTypes.string,t.PropTypes.bool;var L=r.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=r.ref(""),i=r.ref(null),c=r.ref([]),f=r.ref([]),p=r.ref(-1),d=r.ref(-1),h=r.computed((function(){return e.sourceList&&Array.isArray(e.sourceList)?-1!==e.sourceList.toString().indexOf("[object Object]"):"empty"})),y=r.computed((function(){return h.value?e.settingKey:"index"})),x=r.computed((function(){return h.value?e.displayKey:"value"})),g=r.computed((function(){return s.value?c.value.filter((function(e){return!t.isEmpty(e[x.value])&&String(e[x.value]).indexOf(s.value)>-1})):c.value}));r.watch((function(){return e.sourceList}),(function(){"empty"!==h.value&&(L(),V())}),{deep:!0}),r.watch((function(){return e.targetList}),(function(){L(),V()}),{deep:!0}),r.watch((function(){return[x.value,y.value]}),(function(){L()})),r.watch((function(){return e.sortKey}),(function(e){u=e,V()})),r.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(S(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(S(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))}}},w=function(){var e=c.value,t=h.value?f.value:m(S(f.value,!1)),r=h.value?m(S(f.value)):[];o("change",e,t,r)},S=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),w()},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)}w()},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),w()},hasSelectedList:f}},render:function(){var e=this,t=this.$props,o=t.extCls,a=t.title,l=t.emptyContent,s=t.searchable,i=t.searchPlaceholder,c=function(t){var n,o,u="left-header"===t,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[t]?r.createVNode("div",{class:"slot-header"},[r.createVNode("div",{class:"slot-content"},[e.$slots[t]()])]):r.createVNode("div",{class:"header"},["".concat(l,"(共").concat(e.dataList.length,"条)"),r.createVNode("span",{class:{disabled:s},onClick:function(){return u&&e.dataList.length&&e.allToRight(),void(!u&&e.hasSelectedList.length&&e.allToLeft())}},[u?"全部添加":"清空"])])},f=function(t,o){var a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],u=a?e.leftHoverIndex:e.rightHoverIndex;return r.createVNode("div",{class:"item-content"},[r.createVNode("span",{class:"content-text",title:t[e.displayCode]},[t[e.displayCode]]),r.createVNode("span",{class:["icon-wrapper",o===u?"hover":""]},[a?r.createVNode(n.ArrowsRight,{class:"bk-icon"},null):r.createVNode(n.Error,{class:"bk-icon"},null)])])},p=function(t){var n="left"===t,o=n?e.displayDataList:e.hasSelectedList,a=n?"source-option":"target-option",u=n?"left-empty-content":"right-empty-content";return o.length?r.createVNode("ul",{class:["content",s&&n?"is-search":""]},[o.map((function(t,o){var u,l,s;return r.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,t))&&void 0!==s?s:f(t,o,n)])}))]):function(t){var n,o="left-empty-content"===t,a=null!==(n=o?l[0]:l[1])&&void 0!==n?n:o?"无数据":"未选择任何项";return e.$slots[t]?r.createVNode("div",null,[e.$slots[t]()]):r.createVNode("div",{class:"empty"},[a])}(u)};return r.createVNode("div",{class:["bk-transfer",o],ref:"transferRef"},[r.createVNode("div",{class:"source-list"},[c("left-header"),s&&r.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")]),r.createVNode("div",{class:"transfer"},null),r.createVNode("div",{class:"target-list"},[c("right-header"),p("right")])])}}),b=t.withInstall(L);e.default=b,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -0,0 +1,158 @@
|
|
1
|
+
/* 边框色 */
|
2
|
+
/* 按钮、表单边框颜色、禁用时文本颜色 */
|
3
|
+
/* 表格头部背景色、禁用底色 */
|
4
|
+
/* 大面积背景色 */
|
5
|
+
/* 重点表示、强调、链接以及带有明确指示性 */
|
6
|
+
/* 正常尺寸图标 */
|
7
|
+
.bk-transfer {
|
8
|
+
position: relative;
|
9
|
+
display: flex;
|
10
|
+
font-size: 14px;
|
11
|
+
flex-direction: row;
|
12
|
+
justify-content: center;
|
13
|
+
}
|
14
|
+
.bk-transfer .transfer {
|
15
|
+
position: absolute;
|
16
|
+
top: 50%;
|
17
|
+
left: 50%;
|
18
|
+
width: 30px;
|
19
|
+
height: 30px;
|
20
|
+
background: url('@bkui-vue/styles/images/transfer.png') no-repeat center center;
|
21
|
+
transform: translate(-50%, -50%);
|
22
|
+
}
|
23
|
+
.bk-transfer .source-list,
|
24
|
+
.bk-transfer .target-list {
|
25
|
+
height: 400px;
|
26
|
+
min-width: 200px;
|
27
|
+
overflow: hidden;
|
28
|
+
background-color: #fff;
|
29
|
+
border: 1px solid #dde4eb;
|
30
|
+
border-radius: 2px;
|
31
|
+
flex: 1;
|
32
|
+
}
|
33
|
+
.bk-transfer .source-list .slot-header,
|
34
|
+
.bk-transfer .target-list .slot-header {
|
35
|
+
position: relative;
|
36
|
+
height: 43px;
|
37
|
+
padding: 0 20px;
|
38
|
+
line-height: 43px;
|
39
|
+
background-color: #fafbfd;
|
40
|
+
border-bottom: 1px solid #dde4eb;
|
41
|
+
}
|
42
|
+
.bk-transfer .source-list .slot-header .slot-content,
|
43
|
+
.bk-transfer .target-list .slot-header .slot-content {
|
44
|
+
position: relative;
|
45
|
+
}
|
46
|
+
.bk-transfer .source-list .header,
|
47
|
+
.bk-transfer .target-list .header {
|
48
|
+
position: relative;
|
49
|
+
height: 43px;
|
50
|
+
padding: 0 20px;
|
51
|
+
line-height: 43px;
|
52
|
+
background-color: #fafbfd;
|
53
|
+
border-bottom: 1px solid #dde4eb;
|
54
|
+
}
|
55
|
+
.bk-transfer .source-list .header span,
|
56
|
+
.bk-transfer .target-list .header span {
|
57
|
+
position: absolute;
|
58
|
+
right: 10px;
|
59
|
+
font-size: 12px;
|
60
|
+
color: #3a84ff;
|
61
|
+
cursor: pointer;
|
62
|
+
}
|
63
|
+
.bk-transfer .source-list .header span.disabled,
|
64
|
+
.bk-transfer .target-list .header span.disabled {
|
65
|
+
color: #c4c6cc;
|
66
|
+
cursor: not-allowed;
|
67
|
+
}
|
68
|
+
.bk-transfer .source-list .empty,
|
69
|
+
.bk-transfer .target-list .empty {
|
70
|
+
position: relative;
|
71
|
+
top: 40%;
|
72
|
+
width: 100%;
|
73
|
+
color: #c4c6cc;
|
74
|
+
text-align: center;
|
75
|
+
cursor: default;
|
76
|
+
}
|
77
|
+
.bk-transfer .source-list .content,
|
78
|
+
.bk-transfer .target-list .content {
|
79
|
+
position: relative;
|
80
|
+
max-height: calc(100% - 50px);
|
81
|
+
padding: 0;
|
82
|
+
margin: 6px 0;
|
83
|
+
overflow-y: auto;
|
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
|
+
.bk-transfer .source-list .content li.custom-item,
|
90
|
+
.bk-transfer .target-list .content li.custom-item,
|
91
|
+
.bk-transfer .source-list .content li .item-content,
|
92
|
+
.bk-transfer .target-list .content li .item-content {
|
93
|
+
position: relative;
|
94
|
+
display: flex;
|
95
|
+
height: 40px;
|
96
|
+
padding: 0 20px;
|
97
|
+
line-height: 40px;
|
98
|
+
list-style: none;
|
99
|
+
cursor: pointer;
|
100
|
+
align-items: center;
|
101
|
+
}
|
102
|
+
.bk-transfer .source-list .content li.custom-item:hover,
|
103
|
+
.bk-transfer .target-list .content li.custom-item:hover,
|
104
|
+
.bk-transfer .source-list .content li .item-content:hover,
|
105
|
+
.bk-transfer .target-list .content li .item-content:hover {
|
106
|
+
color: #3a84ff;
|
107
|
+
background-color: #eef6fe;
|
108
|
+
}
|
109
|
+
.bk-transfer .source-list .content li.custom-item .content-text,
|
110
|
+
.bk-transfer .target-list .content li.custom-item .content-text,
|
111
|
+
.bk-transfer .source-list .content li .item-content .content-text,
|
112
|
+
.bk-transfer .target-list .content li .item-content .content-text {
|
113
|
+
overflow: hidden;
|
114
|
+
text-overflow: ellipsis;
|
115
|
+
white-space: nowrap;
|
116
|
+
flex: 1;
|
117
|
+
}
|
118
|
+
.bk-transfer .source-list .content li.custom-item .icon-wrapper,
|
119
|
+
.bk-transfer .target-list .content li.custom-item .icon-wrapper,
|
120
|
+
.bk-transfer .source-list .content li .item-content .icon-wrapper,
|
121
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper {
|
122
|
+
display: none;
|
123
|
+
flex: 22px 0 0;
|
124
|
+
}
|
125
|
+
.bk-transfer .source-list .content li.custom-item .icon-wrapper.hover,
|
126
|
+
.bk-transfer .target-list .content li.custom-item .icon-wrapper.hover,
|
127
|
+
.bk-transfer .source-list .content li .item-content .icon-wrapper.hover,
|
128
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper.hover {
|
129
|
+
display: inline-block;
|
130
|
+
}
|
131
|
+
.bk-transfer .source-list .content::-webkit-scrollbar,
|
132
|
+
.bk-transfer .target-list .content::-webkit-scrollbar {
|
133
|
+
width: 4px;
|
134
|
+
}
|
135
|
+
.bk-transfer .source-list .content::-webkit-scrollbar-thumb,
|
136
|
+
.bk-transfer .target-list .content::-webkit-scrollbar-thumb {
|
137
|
+
height: 5px;
|
138
|
+
background-color: #e6e9ea;
|
139
|
+
border-radius: 2px;
|
140
|
+
}
|
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
|
+
}
|
@@ -0,0 +1,185 @@
|
|
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
|
+
import { ExtractPropTypes, PropType } from 'vue';
|
27
|
+
declare const transferProps: {
|
28
|
+
title: PropType<string[]>;
|
29
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
30
|
+
default: string;
|
31
|
+
};
|
32
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
33
|
+
default: string;
|
34
|
+
};
|
35
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
36
|
+
default: string;
|
37
|
+
};
|
38
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
39
|
+
default: string;
|
40
|
+
};
|
41
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
|
+
default: boolean;
|
43
|
+
};
|
44
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
|
+
default: boolean;
|
46
|
+
};
|
47
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
48
|
+
default: string;
|
49
|
+
};
|
50
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
51
|
+
default: boolean;
|
52
|
+
};
|
53
|
+
sourceList: ArrayConstructor;
|
54
|
+
targetList: ArrayConstructor;
|
55
|
+
emptyContent: PropType<string[]>;
|
56
|
+
};
|
57
|
+
export declare type TransferPropType = ExtractPropTypes<typeof transferProps>;
|
58
|
+
declare const _default: import("vue").DefineComponent<{
|
59
|
+
title: {
|
60
|
+
type: PropType<string[]>;
|
61
|
+
default: () => any[];
|
62
|
+
};
|
63
|
+
extCls: {
|
64
|
+
type: StringConstructor;
|
65
|
+
default: string;
|
66
|
+
};
|
67
|
+
searchPlaceholder: {
|
68
|
+
type: StringConstructor;
|
69
|
+
default: string;
|
70
|
+
};
|
71
|
+
settingKey: {
|
72
|
+
type: StringConstructor;
|
73
|
+
default: string;
|
74
|
+
};
|
75
|
+
displayKey: {
|
76
|
+
type: StringConstructor;
|
77
|
+
default: string;
|
78
|
+
};
|
79
|
+
sortKey: {
|
80
|
+
type: StringConstructor;
|
81
|
+
default: string;
|
82
|
+
};
|
83
|
+
showOverflowTips: {
|
84
|
+
type: BooleanConstructor;
|
85
|
+
default: boolean;
|
86
|
+
};
|
87
|
+
searchable: {
|
88
|
+
type: BooleanConstructor;
|
89
|
+
default: boolean;
|
90
|
+
};
|
91
|
+
sortable: {
|
92
|
+
type: BooleanConstructor;
|
93
|
+
default: boolean;
|
94
|
+
};
|
95
|
+
sourceList: {
|
96
|
+
type: ArrayConstructor;
|
97
|
+
default: () => any[];
|
98
|
+
};
|
99
|
+
targetList: {
|
100
|
+
type: ArrayConstructor;
|
101
|
+
default: () => any[];
|
102
|
+
};
|
103
|
+
emptyContent: {
|
104
|
+
type: PropType<string[]>;
|
105
|
+
default: () => any[];
|
106
|
+
};
|
107
|
+
}, {
|
108
|
+
keyword: import("vue").Ref<string>;
|
109
|
+
transferRef: any;
|
110
|
+
dataList: import("vue").Ref<any[]>;
|
111
|
+
allToRight: () => void;
|
112
|
+
allToLeft: () => void;
|
113
|
+
displayDataList: import("vue").ComputedRef<any[]>;
|
114
|
+
displayCode: import("vue").ComputedRef<string>;
|
115
|
+
leftHoverIndex: import("vue").Ref<number>;
|
116
|
+
rightHoverIndex: import("vue").Ref<number>;
|
117
|
+
handleItemMouseEvent: (type: any, event: any, isLeft: any, index: any) => void;
|
118
|
+
handleItemClick: (event: any, index: any, isLeft: any) => void;
|
119
|
+
hasSelectedList: import("vue").Ref<any[]>;
|
120
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
121
|
+
title: {
|
122
|
+
type: PropType<string[]>;
|
123
|
+
default: () => any[];
|
124
|
+
};
|
125
|
+
extCls: {
|
126
|
+
type: StringConstructor;
|
127
|
+
default: string;
|
128
|
+
};
|
129
|
+
searchPlaceholder: {
|
130
|
+
type: StringConstructor;
|
131
|
+
default: string;
|
132
|
+
};
|
133
|
+
settingKey: {
|
134
|
+
type: StringConstructor;
|
135
|
+
default: string;
|
136
|
+
};
|
137
|
+
displayKey: {
|
138
|
+
type: StringConstructor;
|
139
|
+
default: string;
|
140
|
+
};
|
141
|
+
sortKey: {
|
142
|
+
type: StringConstructor;
|
143
|
+
default: string;
|
144
|
+
};
|
145
|
+
showOverflowTips: {
|
146
|
+
type: BooleanConstructor;
|
147
|
+
default: boolean;
|
148
|
+
};
|
149
|
+
searchable: {
|
150
|
+
type: BooleanConstructor;
|
151
|
+
default: boolean;
|
152
|
+
};
|
153
|
+
sortable: {
|
154
|
+
type: BooleanConstructor;
|
155
|
+
default: boolean;
|
156
|
+
};
|
157
|
+
sourceList: {
|
158
|
+
type: ArrayConstructor;
|
159
|
+
default: () => any[];
|
160
|
+
};
|
161
|
+
targetList: {
|
162
|
+
type: ArrayConstructor;
|
163
|
+
default: () => any[];
|
164
|
+
};
|
165
|
+
emptyContent: {
|
166
|
+
type: PropType<string[]>;
|
167
|
+
default: () => any[];
|
168
|
+
};
|
169
|
+
}>> & {
|
170
|
+
onChange?: (...args: any[]) => any;
|
171
|
+
}, {
|
172
|
+
title: string[];
|
173
|
+
extCls: string;
|
174
|
+
displayKey: string;
|
175
|
+
sortable: boolean;
|
176
|
+
settingKey: string;
|
177
|
+
searchPlaceholder: string;
|
178
|
+
showOverflowTips: boolean;
|
179
|
+
searchable: boolean;
|
180
|
+
sortKey: string;
|
181
|
+
sourceList: unknown[];
|
182
|
+
targetList: unknown[];
|
183
|
+
emptyContent: string[];
|
184
|
+
}>;
|
185
|
+
export default _default;
|
@@ -0,0 +1,171 @@
|
|
1
|
+
@import '../styles/themes/themes.less';
|
2
|
+
|
3
|
+
/* 边框色 */
|
4
|
+
@borderInlineColor: #dde4eb;
|
5
|
+
|
6
|
+
/* 按钮、表单边框颜色、禁用时文本颜色 */
|
7
|
+
@newGreyColor: #c4c6cc;
|
8
|
+
|
9
|
+
/* 表格头部背景色、禁用底色 */
|
10
|
+
@newGreyColor2: #f0f1f5;
|
11
|
+
|
12
|
+
/* 大面积背景色 */
|
13
|
+
@newGreyColor3: #fafbfd;
|
14
|
+
|
15
|
+
/* 重点表示、强调、链接以及带有明确指示性 */
|
16
|
+
@newMainColor: #3a84ff;
|
17
|
+
|
18
|
+
/* 正常尺寸图标 */
|
19
|
+
@iconNormalSize: 22px;
|
20
|
+
|
21
|
+
.@{bk-prefix}-transfer {
|
22
|
+
position: relative;
|
23
|
+
display: flex;
|
24
|
+
font-size: 14px;
|
25
|
+
flex-direction: row;
|
26
|
+
justify-content: center;
|
27
|
+
|
28
|
+
.transfer {
|
29
|
+
position: absolute;
|
30
|
+
top: 50%;
|
31
|
+
left: 50%;
|
32
|
+
width: 30px;
|
33
|
+
height: 30px;
|
34
|
+
background: url('@bkui-vue/styles/images/transfer.png') no-repeat center center;
|
35
|
+
transform: translate(-50%, -50%);
|
36
|
+
}
|
37
|
+
|
38
|
+
.source-list,
|
39
|
+
.target-list {
|
40
|
+
height: 400px;
|
41
|
+
min-width: 200px;
|
42
|
+
overflow: hidden;
|
43
|
+
background-color: #fff;
|
44
|
+
border: 1px solid @borderInlineColor;
|
45
|
+
border-radius: 2px;
|
46
|
+
flex: 1;
|
47
|
+
|
48
|
+
.slot-header {
|
49
|
+
position: relative;
|
50
|
+
height: 43px;
|
51
|
+
padding: 0 20px;
|
52
|
+
line-height: 43px;
|
53
|
+
background-color: @newGreyColor3;
|
54
|
+
border-bottom: 1px solid @borderInlineColor;
|
55
|
+
|
56
|
+
.slot-content {
|
57
|
+
position: relative;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.header {
|
62
|
+
position: relative;
|
63
|
+
height: 43px;
|
64
|
+
padding: 0 20px;
|
65
|
+
line-height: 43px;
|
66
|
+
background-color: @newGreyColor3;
|
67
|
+
border-bottom: 1px solid @borderInlineColor;
|
68
|
+
|
69
|
+
span {
|
70
|
+
position: absolute;
|
71
|
+
right: 10px;
|
72
|
+
font-size: 12px;
|
73
|
+
color: @newMainColor;
|
74
|
+
cursor: pointer;
|
75
|
+
|
76
|
+
&.disabled {
|
77
|
+
color: @newGreyColor;
|
78
|
+
cursor: not-allowed;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.empty {
|
84
|
+
position: relative;
|
85
|
+
top: 40%;
|
86
|
+
width: 100%;
|
87
|
+
color: @newGreyColor;
|
88
|
+
text-align: center;
|
89
|
+
cursor: default;
|
90
|
+
}
|
91
|
+
|
92
|
+
.content {
|
93
|
+
position: relative;
|
94
|
+
max-height: calc(100% - 50px);
|
95
|
+
padding: 0;
|
96
|
+
margin: 6px 0;
|
97
|
+
overflow-y: auto;
|
98
|
+
|
99
|
+
&.is-search {
|
100
|
+
max-height: calc(100% - 86px);
|
101
|
+
}
|
102
|
+
|
103
|
+
li {
|
104
|
+
&.custom-item,
|
105
|
+
.item-content {
|
106
|
+
position: relative;
|
107
|
+
display: flex;
|
108
|
+
height: 40px;
|
109
|
+
padding: 0 20px;
|
110
|
+
line-height: 40px;
|
111
|
+
list-style: none;
|
112
|
+
cursor: pointer;
|
113
|
+
align-items: center;
|
114
|
+
|
115
|
+
&:hover {
|
116
|
+
color: @newMainColor;
|
117
|
+
background-color: #eef6fe;
|
118
|
+
}
|
119
|
+
|
120
|
+
.content-text {
|
121
|
+
overflow: hidden;
|
122
|
+
text-overflow: ellipsis;
|
123
|
+
white-space: nowrap;
|
124
|
+
flex: 1;
|
125
|
+
}
|
126
|
+
|
127
|
+
.icon-wrapper {
|
128
|
+
display: none;
|
129
|
+
flex: 22px 0 0;
|
130
|
+
|
131
|
+
&.hover {
|
132
|
+
display: inline-block;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
&::-webkit-scrollbar {
|
139
|
+
width: 4px;
|
140
|
+
// background-color: color(transparent lightness(80%));
|
141
|
+
}
|
142
|
+
|
143
|
+
&::-webkit-scrollbar-thumb {
|
144
|
+
height: 5px;
|
145
|
+
background-color: #e6e9ea;
|
146
|
+
border-radius: 2px;
|
147
|
+
}
|
148
|
+
|
149
|
+
.bk-icon {
|
150
|
+
font-size: @iconNormalSize;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
.target-list {
|
156
|
+
margin-left: 33px;
|
157
|
+
}
|
158
|
+
|
159
|
+
.transfer-search-input {
|
160
|
+
height: 36px;
|
161
|
+
line-height: 34px;
|
162
|
+
border: none;
|
163
|
+
border-bottom: 1px solid @newGreyColor2;
|
164
|
+
outline: none;
|
165
|
+
|
166
|
+
&.is-focused {
|
167
|
+
border-color: @newGreyColor2;
|
168
|
+
box-shadow: 0px 0px 3px 0px transparent;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|