bkui-vue 0.0.1-beta.38 → 0.0.1-beta.40
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/lib/alert/alert.css +75 -0
- package/lib/alert/alert.d.ts +62 -0
- package/lib/alert/alert.js +1 -0
- package/lib/alert/alert.less +110 -0
- package/lib/alert/alert.variable.css +168 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/animate-number/animate-number.d.ts +27 -0
- package/lib/animate-number/animate-number.js +1 -0
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/backtop/backtop.css +42 -0
- package/lib/backtop/backtop.d.ts +60 -0
- package/lib/backtop/backtop.js +1 -0
- package/lib/backtop/backtop.less +18 -0
- package/lib/backtop/backtop.variable.css +135 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/badge/badge.css +121 -0
- package/lib/badge/badge.d.ts +91 -0
- package/lib/badge/badge.js +1 -0
- package/lib/badge/badge.less +137 -0
- package/lib/badge/badge.variable.css +214 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/breadcrumb/breadcrumb-item.d.ts +36 -0
- package/lib/breadcrumb/breadcrumb.css +68 -0
- package/lib/breadcrumb/breadcrumb.d.ts +54 -0
- package/lib/breadcrumb/breadcrumb.js +1 -0
- package/lib/breadcrumb/breadcrumb.less +65 -0
- package/lib/breadcrumb/breadcrumb.variable.css +161 -0
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/props.d.ts +4 -0
- package/lib/button/button-group.d.ts +6 -0
- package/lib/button/button.css +265 -0
- package/lib/button/button.d.ts +143 -0
- package/lib/button/button.js +1 -0
- package/lib/button/button.less +195 -0
- package/lib/button/button.variable.css +358 -0
- package/lib/button/index.d.ts +226 -0
- package/lib/card/card.css +63 -0
- package/lib/card/card.d.ts +69 -0
- package/lib/card/card.js +1 -0
- package/lib/card/card.less +44 -0
- package/lib/card/card.variable.css +156 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/checkbox/checkbox-group.d.ts +48 -0
- package/lib/checkbox/checkbox.css +64 -0
- package/lib/checkbox/checkbox.d.ts +114 -0
- package/lib/checkbox/checkbox.js +1 -0
- package/lib/checkbox/checkbox.less +80 -0
- package/lib/checkbox/checkbox.variable.css +157 -0
- package/lib/checkbox/common.d.ts +13 -0
- package/lib/checkbox/index.d.ts +261 -0
- package/lib/checkbox/type.d.ts +19 -0
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.js +1 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +279 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/collapse/collapse.css +30 -0
- package/lib/collapse/collapse.d.ts +106 -0
- package/lib/collapse/collapse.js +1 -0
- package/lib/collapse/collapse.less +37 -0
- package/lib/collapse/collapse.variable.css +30 -0
- package/lib/collapse/index.d.ts +166 -0
- package/lib/components.d.ts +41 -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.js +1 -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/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.css +68 -0
- package/lib/dialog/dialog.d.ts +113 -0
- package/lib/dialog/dialog.js +1 -0
- package/lib/dialog/dialog.less +80 -0
- package/lib/dialog/dialog.variable.css +68 -0
- package/lib/dialog/index.d.ts +286 -0
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/directives.js +2 -0
- package/lib/directives/directives.js.LICENSE.txt +14 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/mousewheel.d.ts +3 -0
- 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.js +1 -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/props.d.ts +21 -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.js +1 -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/exception/exception.css +32 -0
- package/lib/exception/exception.d.ts +26 -0
- package/lib/exception/exception.js +1 -0
- package/lib/exception/exception.less +39 -0
- package/lib/exception/exception.variable.css +125 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/fixed-navbar/fixed-navbar.css +42 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +34 -0
- package/lib/fixed-navbar/fixed-navbar.js +1 -0
- package/lib/fixed-navbar/fixed-navbar.less +53 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +135 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- 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.js +1 -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/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 +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +1 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +1 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +1 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +1 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +1 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +1 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +1 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +1 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +1 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +1 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +1 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +1 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +1 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +1 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +1 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +1 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +1 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +1 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +1 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +1 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +1 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +1 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +1 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +1 -0
- package/lib/icon/index.d.ts +53 -0
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +1 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +1 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +1 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +443 -0
- package/lib/input/input.css +190 -0
- package/lib/input/input.d.ts +254 -0
- package/lib/input/input.js +1 -0
- package/lib/input/input.less +214 -0
- package/lib/input/input.variable.css +284 -0
- package/lib/link/index.d.ts +164 -0
- package/lib/link/link.css +55 -0
- package/lib/link/link.d.ts +58 -0
- package/lib/link/link.js +1 -0
- package/lib/link/link.less +74 -0
- package/lib/link/link.variable.css +148 -0
- package/lib/loading/index.d.ts +164 -0
- package/lib/loading/loading.css +261 -0
- package/lib/loading/loading.d.ts +94 -0
- package/lib/loading/loading.js +1 -0
- package/lib/loading/loading.less +197 -0
- package/lib/loading/loading.variable.css +354 -0
- package/lib/menu/index.d.ts +188 -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.js +1 -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/message.css +53 -0
- package/lib/message/message.js +1 -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/modal.css +11 -0
- package/lib/modal/modal.d.ts +65 -0
- package/lib/modal/modal.js +1 -0
- package/lib/modal/modal.less +12 -0
- package/lib/modal/modal.variable.css +11 -0
- package/lib/modal/props.mixin.d.ts +26 -0
- package/lib/navigation/index.d.ts +2 -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.js +1 -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/notify.css +49 -0
- package/lib/notify/notify.js +1 -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/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.js +1 -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/popover.css +65 -0
- package/lib/popover/popover.d.ts +117 -0
- package/lib/popover/popover.js +1 -0
- package/lib/popover/popover.less +82 -0
- package/lib/popover/popover.variable.css +158 -0
- 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/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.js +1 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +231 -0
- package/lib/progress/circle.d.ts +6 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/line.d.ts +6 -0
- package/lib/progress/progress.css +94 -0
- package/lib/progress/progress.d.ts +171 -0
- package/lib/progress/progress.js +1 -0
- package/lib/progress/progress.less +90 -0
- package/lib/progress/progress.variable.css +187 -0
- package/lib/radio/common.d.ts +13 -0
- package/lib/radio/index.d.ts +277 -0
- package/lib/radio/radio-button.d.ts +91 -0
- package/lib/radio/radio-group.d.ts +41 -0
- package/lib/radio/radio.css +138 -0
- package/lib/radio/radio.d.ts +87 -0
- package/lib/radio/radio.js +1 -0
- package/lib/radio/radio.less +173 -0
- package/lib/radio/radio.variable.css +231 -0
- package/lib/radio/type.d.ts +9 -0
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/rate.css +10 -0
- package/lib/rate/rate.d.ts +32 -0
- package/lib/rate/rate.js +1 -0
- package/lib/rate/rate.less +11 -0
- package/lib/rate/rate.variable.css +10 -0
- package/lib/rate/star.css +24 -0
- package/lib/rate/star.d.ts +74 -0
- package/lib/rate/star.less +29 -0
- package/lib/rate/star.variable.css +24 -0
- package/lib/resize-layout/index.d.ts +336 -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.js +1 -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 +33 -0
- package/lib/select/index.d.ts +1347 -0
- package/lib/select/option.d.ts +25 -0
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +325 -0
- package/lib/select/select.d.ts +395 -0
- package/lib/select/select.js +1 -0
- package/lib/select/select.less +324 -0
- package/lib/select/select.variable.css +418 -0
- package/lib/select/type.d.ts +31 -0
- package/lib/shared/helper.d.ts +92 -0
- package/lib/shared/index.d.ts +52 -0
- package/lib/shared/mask-manager.d.ts +76 -0
- package/lib/shared/pop-manager.d.ts +26 -0
- package/lib/shared/popover.d.ts +127 -0
- package/lib/shared/scrollbar-width.d.ts +1 -0
- package/lib/shared/shared.js +1 -0
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +115 -0
- package/lib/shared/z-index-manager.d.ts +93 -0
- package/lib/sideslider/index.d.ts +206 -0
- package/lib/sideslider/sideslider.css +69 -0
- package/lib/sideslider/sideslider.d.ts +75 -0
- package/lib/sideslider/sideslider.js +1 -0
- package/lib/sideslider/sideslider.less +86 -0
- package/lib/sideslider/sideslider.variable.css +162 -0
- package/lib/slider/index.d.ts +27 -0
- package/lib/slider/slider-button.d.ts +80 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +201 -0
- package/lib/slider/slider.js +1 -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/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.js +1 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +47 -0
- package/lib/styles/mixins/animate.css +21 -0
- package/lib/styles/mixins/animate.less +27 -0
- package/lib/styles/mixins/animate.variable.css +21 -0
- package/lib/styles/mixins/ellipsis.less +8 -0
- package/lib/styles/mixins/mixins.css +21 -0
- package/lib/styles/mixins/mixins.less +3 -0
- package/lib/styles/mixins/mixins.variable.css +21 -0
- 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 +13 -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 +126 -0
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.js +1 -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/switcher.css +272 -0
- package/lib/switcher/switcher.d.ts +113 -0
- package/lib/switcher/switcher.js +1 -0
- package/lib/switcher/switcher.less +358 -0
- package/lib/switcher/switcher.variable.css +365 -0
- package/lib/tab/index.d.ts +443 -0
- package/lib/tab/props.d.ts +191 -0
- package/lib/tab/tab-nav.d.ts +165 -0
- package/lib/tab/tab-panel.d.ts +73 -0
- package/lib/tab/tab.css +148 -0
- package/lib/tab/tab.d.ts +140 -0
- package/lib/tab/tab.js +1 -0
- package/lib/tab/tab.less +222 -0
- package/lib/tab/tab.variable.css +241 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +302 -0
- package/lib/table/props.d.ts +117 -0
- package/lib/table/render.d.ts +83 -0
- package/lib/table/table.css +91 -0
- package/lib/table/table.d.ts +119 -0
- package/lib/table/table.js +1 -0
- package/lib/table/table.less +115 -0
- package/lib/table/table.variable.css +184 -0
- package/lib/table/utils.d.ts +69 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +84 -0
- package/lib/tag/tag.js +1 -0
- package/lib/tag/tag.less +113 -0
- package/lib/tag/tag.variable.css +190 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -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.js +1 -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/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.js +1 -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/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.js +1 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +251 -0
- package/lib/tree/index.d.ts +287 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +111 -0
- package/lib/tree/tree.js +1 -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/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.js +1 -0
- package/lib/virtual-render/virtual-render.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +12 -11
@@ -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 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray"),require("vue"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","@babel/runtime/helpers/slicedToArray","@babel/runtime/helpers/toConsumableArray","vue","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("@babel/runtime/helpers/slicedToArray"),require("@babel/runtime/helpers/toConsumableArray"),require("vue"),require("../icon/"),require("../input")):t(e["../shared"],e["@babel/runtime/helpers/slicedToArray"],e["@babel/runtime/helpers/toConsumableArray"],e.vue,e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,a,o)=>(()=>{"use strict";var l={7685:e=>{e.exports=a},8133:e=>{e.exports=o},4212:t=>{t.exports=e},1673:e=>{e.exports=t},642:e=>{e.exports=r},748:e=>{e.exports=n}},u={};function i(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return l[e](r,r.exports,i),r.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{i.r(s),i.d(s,{default:()=>f});var e=i(4212),t=i(1673),r=i.n(t),n=i(642),a=i.n(n),o=i(748),l=i(7685),u=i(8133),c=i.n(u);e.PropTypes.string,e.PropTypes.string,e.PropTypes.string,e.PropTypes.string,e.PropTypes.bool,e.PropTypes.bool,e.PropTypes.string,e.PropTypes.bool;const v=(0,o.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(t,n){var l=n.emit,u=[],i=t.sortKey,s=t.sortable,c=(0,o.ref)(""),v=(0,o.ref)(null),f=(0,o.ref)([]),d=(0,o.ref)([]),p=(0,o.ref)(-1),h=(0,o.ref)(-1),y=(0,o.computed)((function(){return t.sourceList&&Array.isArray(t.sourceList)?-1!==t.sourceList.toString().indexOf("[object Object]"):"empty"})),g=(0,o.computed)((function(){return y.value?t.settingKey:"index"})),b=(0,o.computed)((function(){return y.value?t.displayKey:"value"})),m=(0,o.computed)((function(){return c.value?f.value.filter((function(t){return!(0,e.isEmpty)(t[b.value])&&String(t[b.value]).indexOf(c.value)>-1})):f.value}));(0,o.watch)((function(){return t.sourceList}),(function(){"empty"!==y.value&&(L(),N())}),{deep:!0}),(0,o.watch)((function(){return t.targetList}),(function(){L(),N()}),{deep:!0}),(0,o.watch)((function(){return[b.value,g.value]}),(function(){L()})),(0,o.watch)((function(){return t.sortKey}),(function(e){i=e,N()})),(0,o.watch)((function(){return t.sortable}),(function(e){s=e,N()}));var L=function(){"empty"!==y.value&&(y.value?T():x())},x=function(){if(!t.targetList.length||t.targetList.length>t.sourceList.length){for(var e,r=[],n=0;n<t.sourceList.length;n++)r.push({index:n,value:t.sourceList[n]});f.value=[].concat(r),(e=d.value).splice.apply(e,[0,d.value.length].concat([])),l("change",f.value,[],[])}else{for(var o=[],u=[],i=0;i<t.sourceList.length;i++)o.push({index:i,value:t.sourceList[i]});t.targetList.forEach((function(e){var t=o.find((function(t){return t.value===e}));t&&u.push(t)})),d.value=[].concat(u);var s=o.filter((function(e){return u.every((function(t){return t.index!==e.index}))}));f.value=a()(s),l("change",f.value,a()(C(d.value,!1)),[])}},T=function(){if(!t.targetList.length||t.targetList.length>t.sourceList.length){var e;(e=f.value).splice.apply(e,[0,f.value.length].concat(a()(t.sourceList))),d.value=[],l("change",f.value,[],[])}else{var r=t.sourceList.filter((function(e){return t.targetList.every((function(t){return t!==e[g.value]}))})),n=[];t.sourceList.forEach((function(e){t.targetList.forEach((function(t){e[g.value]===t&&n.push(e)}))})),d.value=[].concat(n),f.value=a()(r);var o=a()(C(d.value));l("change",f.value,d.value,o)}},N=function(){var e=[];if(y.value)s||(i=""),e=a()(t.sourceList);else{i=s?"index":"";for(var r=0;r<t.sourceList.length;r++)e.push({index:r,value:t.sourceList[r]})}if(i){var n=[];if(e.forEach((function(e){n.push(e[i])})),(u=[].concat(n)).length===t.sourceList.length){var o=a()(f.value);f.value=a()(P(o,i,u))}}},V=function(){var e=f.value,t=y.value?d.value:a()(C(d.value,!1)),r=y.value?a()(C(d.value)):[];l("change",e,t,r)},C=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=[];if(!e.length)return[];var o=a()(e);return o.forEach((function(e){if(t)for(var a=0,o=Object.entries(e);a<o.length;a++){var l=r()(o[a],2),u=l[0],i=l[1];u===g.value&&n.push(i)}else n.push(e.value)})),n},P=function(e,t,r){var n=r;return e.sort((function(e,r){return n.indexOf(e[t])-n.indexOf(r[t])>=0}))},S=function(e){f.value=f.value.filter((function(t){return t[g.value]!==e[g.value]}))};return"empty"!==y.value&&(y.value?T():x(),N()),{keyword:c,transferRef:v,dataList:f,allToRight:function(){p.value=-1;var e=m.value,r=d.value;e.forEach((function(e){r.push(e),S(e)})),u.length===t.sourceList.length?d.value=a()(P(r,i,u)):d.value=a()(r),V()},allToLeft:function(){h.value=-1;for(var e=d.value,r=f.value;e.length;){var n=e.shift();r.push(n),u.length===t.sourceList.length?f.value=a()(P(r,i,u)):f.value=a()(r)}V()},displayDataList:m,displayCode:b,leftHoverIndex:p,rightHoverIndex:h,handleItemMouseEvent:function(e,t,r,n){t.preventDefault(),t.stopPropagation();var a="over"===e?n:-1;r?p.value=a:h.value=a},handleItemClick:function(e,r,n){e.preventDefault(),e.stopPropagation(),n?p.value=-1:h.value=-1;var o=n?m.value[r]:d.value.splice(r,1)[0],l=n?d.value:f.value;l.push(o),n&&S(o);var s=u.length===t.sourceList.length?a()(P(l,i,u)):a()(l);n?d.value=a()(s):f.value=a()(s),V()},hasSelectedList:d}},render:function(){var e=this,t=this.$props,r=t.extCls,n=t.title,a=t.emptyContent,u=t.searchable,i=t.searchPlaceholder,s=function(t){var r,a,l="left-header"===t,u="".concat(l?null!==(r=n[0])&&void 0!==r?r:"左侧列表":null!==(a=n[1])&&void 0!==a?a:"右侧列表"),i=l?!e.dataList.length:!e.hasSelectedList.length;return e.$slots[t]?(0,o.createVNode)("div",{class:"slot-header"},[(0,o.createVNode)("div",{class:"slot-content"},[e.$slots[t]()])]):(0,o.createVNode)("div",{class:"header"},["".concat(u,"(共").concat(e.dataList.length,"条)"),(0,o.createVNode)("span",{class:{disabled:i},onClick:function(){return l&&e.dataList.length&&e.allToRight(),void(!l&&e.hasSelectedList.length&&e.allToLeft())}},[l?"全部添加":"清空"])])},v=function(t,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=n?e.leftHoverIndex:e.rightHoverIndex;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===a?"hover":""]},[n?(0,o.createVNode)(l.ArrowsRight,{class:"bk-icon"},null):(0,o.createVNode)(l.Error,{class:"bk-icon"},null)])])},f=function(t){var r="left"===t,n=r?e.displayDataList:e.hasSelectedList,l=r?"source-option":"target-option",i=r?"left-empty-content":"right-empty-content";return n.length?(0,o.createVNode)("ul",{class:["content",u&&r?"is-search":""]},[n.map((function(t,n){var a,u,i;return(0,o.createVNode)("li",{key:n,class:[e.$slots[l]?"custom-item":""],onClick:function(t){return e.handleItemClick(t,n,r)},onMouseover:function(t){return e.handleItemMouseEvent("over",t,r,n)},onMouseleave:function(t){return e.handleItemMouseEvent("leave",t,r,n)}},[null!==(i=null===(u=(a=e.$slots)[l])||void 0===u?void 0:u.call(a,t))&&void 0!==i?i:v(t,n,r)])}))]):function(t){var r,n="left-empty-content"===t,l=null!==(r=n?a[0]:a[1])&&void 0!==r?r:n?"无数据":"未选择任何项";return e.$slots[t]?(0,o.createVNode)("div",null,[e.$slots[t]()]):(0,o.createVNode)("div",{class:"empty"},[l])}(i)};return(0,o.createVNode)("div",{class:["bk-transfer",r],ref:"transferRef"},[(0,o.createVNode)("div",{class:"source-list"},[s("left-header"),u&&(0,o.createVNode)(c(),{class:"transfer-search-input",clearable:!0,placeholder:i||"请输入搜索关键字",type:"search","left-icon":"bk-icon icon-search",model:{value:e.keyword,callback:function(t){e.keyword=t}}},null),f("left")]),(0,o.createVNode)("div",{class:"transfer"},null),(0,o.createVNode)("div",{class:"target-list"},[s("right-header"),f("right")])])}}),f=(0,e.withInstall)(v)})(),s})()));
|
@@ -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
|
+
}
|