bkui-vue 0.0.1-beta.8 → 0.0.1-beta.82
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/dist/index.cjs.js +57 -0
- package/dist/index.esm.js +24606 -0
- package/dist/index.umd.js +57 -0
- package/dist/style.css +1 -2348
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +102 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +2 -0
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.less +2 -0
- package/lib/alert/alert.variable.css +31 -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 +29 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +64 -22
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +34 -5
- package/lib/badge/index.d.ts +267 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +18 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +47 -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 +73 -44
- package/lib/button/button.d.ts +66 -30
- package/lib/button/button.less +68 -47
- package/lib/button/button.variable.css +102 -44
- package/lib/button/index.d.ts +237 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +53 -1
- package/lib/card/card.d.ts +74 -18
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +82 -1
- package/lib/card/index.d.ts +283 -0
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +229 -0
- package/lib/cascader/index.d.ts +721 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +15 -2
- package/lib/checkbox/checkbox.d.ts +33 -30
- package/lib/checkbox/checkbox.less +20 -2
- package/lib/checkbox/checkbox.variable.css +44 -2
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +253 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +4 -8
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +285 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +25 -1
- package/lib/collapse/collapse.d.ts +51 -22
- package/lib/collapse/collapse.less +34 -2
- package/lib/collapse/collapse.variable.css +124 -1
- package/lib/collapse/index.d.ts +182 -0
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/components.d.ts +25 -4
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +48 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +147 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.css +408 -0
- package/lib/date-picker/date-picker.d.ts +312 -0
- package/lib/date-picker/date-picker.less +527 -0
- package/lib/date-picker/date-picker.variable.css +507 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +753 -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 +118 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.css +52 -0
- package/lib/dialog/dialog.d.ts +305 -52
- package/lib/dialog/dialog.less +20 -0
- package/lib/dialog/dialog.variable.css +52 -0
- package/lib/dialog/index.d.ts +772 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/dist.index.js +1 -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 +137 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -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 +47 -0
- package/lib/dropdown/dropdown.d.ts +63 -0
- package/lib/dropdown/dropdown.less +59 -0
- package/lib/dropdown/dropdown.variable.css +146 -0
- package/lib/dropdown/index.d.ts +200 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +29 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -0
- package/lib/fixed-navbar/index.d.ts +147 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +155 -0
- package/lib/form/form.css +125 -0
- package/lib/form/form.d.ts +67 -0
- package/lib/form/form.less +152 -0
- package/lib/form/form.variable.css +224 -0
- package/lib/form/index.d.ts +280 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +22 -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.js +1 -0
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.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/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +1 -0
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -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/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.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.js +1 -0
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.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/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -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/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +69 -0
- package/lib/icon/index.js +1 -15
- 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/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.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/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +1 -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.js +1 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.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.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.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 +3 -0
- package/lib/index.js +1 -0
- package/lib/input/index.d.ts +541 -0
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +78 -4
- package/lib/input/input.d.ts +178 -48
- package/lib/input/input.less +89 -8
- package/lib/input/input.variable.css +108 -4
- 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 +29 -0
- package/lib/loading/index.d.ts +172 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +122 -75
- package/lib/loading/loading.d.ts +67 -20
- package/lib/loading/loading.less +79 -60
- package/lib/loading/loading.variable.css +151 -75
- package/lib/menu/index.d.ts +176 -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 +190 -0
- package/lib/menu/menu.d.ts +55 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +289 -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 +102 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/{message.d.ts → index.d.ts} +0 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +27 -1
- package/lib/message/message.less +30 -1
- package/lib/message/message.variable.css +56 -1
- package/lib/message/messageConstructor.d.ts +71 -20
- package/lib/modal/index.d.ts +605 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +30 -1
- package/lib/modal/modal.d.ts +195 -24
- package/lib/modal/modal.less +39 -1
- package/lib/modal/modal.variable.css +30 -1
- package/lib/modal/props.mixin.d.ts +82 -10
- package/lib/navigation/index.d.ts +292 -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 +283 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +65 -0
- package/lib/notify/notify.less +76 -0
- package/lib/notify/notify.variable.css +164 -0
- package/lib/notify/notifyConstructor.d.ts +135 -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 +278 -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 +364 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +28 -16
- package/lib/popover/popover.d.ts +111 -45
- package/lib/popover/popover.less +59 -46
- package/lib/popover/popover.variable.css +57 -16
- package/lib/popover/props.d.ts +99 -0
- package/lib/preset.d.ts +2 -3
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +1 -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 +237 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +8 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +37 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +278 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +29 -20
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +14 -8
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +16 -9
- package/lib/radio/radio.variable.css +44 -9
- package/lib/radio/type.d.ts +10 -5
- 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 +288 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1728 -0
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +21 -21
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +229 -41
- package/lib/select/select.d.ts +388 -156
- package/lib/select/select.less +242 -53
- package/lib/select/select.variable.css +258 -41
- package/lib/select/selectTagInput.d.ts +71 -0
- package/lib/select/type.d.ts +35 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +71 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +60 -6
- package/lib/shared/token.d.ts +2 -0
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +12 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +533 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +205 -30
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +77 -3
- package/lib/slider/index.d.ts +440 -0
- package/lib/slider/index.js +1 -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.less +179 -0
- package/lib/slider/slider.variable.css +248 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +4 -1
- package/lib/steps/steps.d.ts +42 -29
- package/lib/steps/steps.less +5 -1
- package/lib/steps/steps.variable.css +33 -1
- package/lib/styles/index.d.ts +51 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +8 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +8 -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 +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 +45 -1
- 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 +157 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +211 -153
- package/lib/switcher/switcher.variable.css +186 -135
- package/lib/tab/index.d.ts +440 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +169 -0
- package/lib/tab/tab-panel.d.ts +73 -0
- package/lib/tab/tab.css +167 -0
- package/lib/tab/tab.d.ts +139 -0
- package/lib/tab/tab.less +228 -0
- package/lib/tab/tab.variable.css +266 -0
- package/lib/table/const.d.ts +30 -0
- package/lib/table/index.d.ts +389 -0
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +83 -0
- package/lib/table/plugins/head-filter.variable.css +167 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +121 -0
- package/lib/table/plugins/settings.css +110 -0
- package/lib/table/plugins/settings.less +136 -0
- package/lib/table/plugins/settings.variable.css +209 -0
- package/lib/table/props.d.ts +190 -0
- package/lib/table/render.d.ts +115 -0
- package/lib/table/table.css +387 -0
- package/lib/table/table.d.ts +126 -36
- package/lib/table/table.less +229 -1
- package/lib/table/table.variable.css +416 -0
- package/lib/table/use-common.d.ts +19 -0
- package/lib/table/utils.d.ts +93 -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 +126 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +894 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +308 -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 +334 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +139 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +144 -0
- package/lib/transfer/transfer.variable.css +238 -0
- package/lib/tree/constant.d.ts +43 -0
- package/lib/tree/index.d.ts +449 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +159 -0
- package/lib/tree/tree.css +53 -0
- package/lib/tree/tree.d.ts +193 -0
- package/lib/tree/tree.less +66 -0
- package/lib/tree/tree.variable.css +152 -0
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +11 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +31 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +66 -0
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +374 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +473 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +579 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +167 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +6 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +255 -0
- package/lib/virtual-render/virtual-render.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +108 -81
- package/dist/bkui-vue.cjs.js +0 -5171
- package/dist/bkui-vue.esm.js +0 -5137
- package/dist/bkui-vue.umd.js +0 -5174
- package/lib/styles/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){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../icon/"),require("../input")):t(e["../shared"],e.vue,e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n)=>(()=>{"use strict";var a={7685:e=>{e.exports=r},8133:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function u(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return a[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{u.r(l),u.d(l,{default:()=>v});var e=u(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,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}}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],u=!0,l=!1;try{for(r=r.call(e);!(u=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);u=!0);}catch(e){l=!0,a=e}finally{try{u||null==r.return||r.return()}finally{if(l)throw a}}return o}}(e,t)||r(e,t)||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.")}()}function a(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=u(748),i=u(7685),s=u(8133),c=u.n(s);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 f=(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,r){var u=r.emit,l=[],i=t.sortKey,s=t.sortable,c=(0,o.ref)(""),f=(0,o.ref)(null),v=(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"})),m=(0,o.computed)((function(){return y.value?t.displayKey:"value"})),b=(0,o.computed)((function(){return c.value?v.value.filter((function(t){return!(0,e.isEmpty)(t[m.value])&&String(t[m.value]).indexOf(c.value)>-1})):v.value}));(0,o.watch)((function(){return t.sourceList}),(function(){"empty"!==y.value&&(L(),w())}),{deep:!0}),(0,o.watch)((function(){return t.targetList}),(function(){L(),w()}),{deep:!0}),(0,o.watch)((function(){return[m.value,g.value]}),(function(){L()})),(0,o.watch)((function(){return t.sortKey}),(function(e){i=e,w()})),(0,o.watch)((function(){return t.sortable}),(function(e){s=e,w()}));var L=function(){"empty"!==y.value&&(y.value?S():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]});v.value=[].concat(r),(e=d.value).splice.apply(e,[0,d.value.length].concat([])),u("change",v.value,[],[])}else{for(var o=[],l=[],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&&l.push(t)})),d.value=[].concat(l);var s=o.filter((function(e){return l.every((function(t){return t.index!==e.index}))}));v.value=a(s),u("change",v.value,a(T(d.value,!1)),[])}},S=function(){if(!t.targetList.length||t.targetList.length>t.sourceList.length){var e;(e=v.value).splice.apply(e,[0,v.value.length].concat(a(t.sourceList))),d.value=[],u("change",v.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),v.value=a(r);var o=a(T(d.value));u("change",v.value,d.value,o)}},w=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])})),(l=[].concat(n)).length===t.sourceList.length){var o=a(v.value);v.value=a(N(o,i,l))}}},V=function(){var e=v.value,t=y.value?d.value:a(T(d.value,!1)),r=y.value?a(T(d.value)):[];u("change",e,t,r)},T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=[];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 u=n(o[a],2),l=u[0],i=u[1];l===g.value&&r.push(i)}else r.push(e.value)})),r},N=function(e,t,r){var n=r;return e.sort((function(e,r){return n.indexOf(e[t])-n.indexOf(r[t])>=0}))},A=function(e){v.value=v.value.filter((function(t){return t[g.value]!==e[g.value]}))};return"empty"!==y.value&&(y.value?S():x(),w()),{keyword:c,transferRef:f,dataList:v,allToRight:function(){p.value=-1;var e=b.value,r=d.value;e.forEach((function(e){r.push(e),A(e)})),l.length===t.sourceList.length?d.value=a(N(r,i,l)):d.value=a(r),V()},allToLeft:function(){h.value=-1;for(var e=d.value,r=v.value;e.length;){var n=e.shift();r.push(n),l.length===t.sourceList.length?v.value=a(N(r,i,l)):v.value=a(r)}V()},displayDataList:b,displayCode:m,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?b.value[r]:d.value.splice(r,1)[0],u=n?d.value:v.value;u.push(o),n&&A(o);var s=l.length===t.sourceList.length?a(N(u,i,l)):a(u);n?d.value=a(s):v.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,l=t.searchPlaceholder,s=function(t){var r,a,u="left-header"===t,l="".concat(u?null!==(r=n[0])&&void 0!==r?r:"左侧列表":null!==(a=n[1])&&void 0!==a?a:"右侧列表"),i=u?!e.dataList.length:!e.hasSelectedList.length;return e.$slots[t]?(0,o.createVNode)("div",{class:"slot-header"},[e.$slots[t]()]):(0,o.createVNode)("div",{class:"header"},["".concat(l,"(共").concat(e.dataList.length,"条)"),(0,o.createVNode)("span",{class:{disabled:i},onClick:function(){return u&&e.dataList.length&&e.allToRight(),void(!u&&e.hasSelectedList.length&&e.allToLeft())}},[u?"全部添加":"清空"])])},f=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)(i.ArrowsRight,{class:"bk-icon"},null):(0,o.createVNode)(i.Error,{class:"bk-icon"},null)])])},v=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:f(t,n,r)])}))]):function(t){var r,n="left-empty-content"===t,u=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"},[u])}(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(),{modelValue:e.keyword,"onUpdate:modelValue":function(t){return e.keyword=t},class:"transfer-search-input",clearable:!0,placeholder:l||"请输入搜索关键字",type:"search","left-icon":"bk-icon icon-search"},null),v("left")]),(0,o.createVNode)("div",{class:"transfer"},null),(0,o.createVNode)("div",{class:"target-list"},[s("right-header"),v("right")])])}}),v=(0,e.withInstall)(f)})(),l})()));
|
@@ -0,0 +1,139 @@
|
|
1
|
+
/* 边框色 */
|
2
|
+
/* 按钮、表单边框颜色、禁用时文本颜色 */
|
3
|
+
/* 表格头部背景色、禁用底色 */
|
4
|
+
/* 大面积背景色 */
|
5
|
+
/* 重点表示、强调、链接以及带有明确指示性 */
|
6
|
+
/* 正常尺寸图标 */
|
7
|
+
.bk-transfer {
|
8
|
+
display: flex;
|
9
|
+
justify-content: center;
|
10
|
+
align-items: center;
|
11
|
+
font-size: 14px;
|
12
|
+
}
|
13
|
+
.bk-transfer .transfer {
|
14
|
+
width: 30px;
|
15
|
+
height: 30px;
|
16
|
+
margin: 0 2px;
|
17
|
+
background: url('@bkui-vue/styles/images/transfer.png') no-repeat center center;
|
18
|
+
}
|
19
|
+
.bk-transfer .source-list,
|
20
|
+
.bk-transfer .target-list {
|
21
|
+
flex: 1;
|
22
|
+
display: flex;
|
23
|
+
flex-direction: column;
|
24
|
+
height: 400px;
|
25
|
+
min-width: 200px;
|
26
|
+
overflow: hidden;
|
27
|
+
background-color: #fff;
|
28
|
+
border: 1px solid #dde4eb;
|
29
|
+
border-radius: 2px;
|
30
|
+
}
|
31
|
+
.bk-transfer .source-list .slot-header,
|
32
|
+
.bk-transfer .target-list .slot-header,
|
33
|
+
.bk-transfer .source-list .header,
|
34
|
+
.bk-transfer .target-list .header {
|
35
|
+
height: 43px;
|
36
|
+
padding: 0 20px;
|
37
|
+
background-color: #fafbfd;
|
38
|
+
border-bottom: 1px solid #dde4eb;
|
39
|
+
}
|
40
|
+
.bk-transfer .source-list .header,
|
41
|
+
.bk-transfer .target-list .header {
|
42
|
+
display: flex;
|
43
|
+
align-items: center;
|
44
|
+
justify-content: space-between;
|
45
|
+
}
|
46
|
+
.bk-transfer .source-list .header span,
|
47
|
+
.bk-transfer .target-list .header span {
|
48
|
+
font-size: 12px;
|
49
|
+
color: #3a84ff;
|
50
|
+
cursor: pointer;
|
51
|
+
}
|
52
|
+
.bk-transfer .source-list .header span.disabled,
|
53
|
+
.bk-transfer .target-list .header span.disabled {
|
54
|
+
color: #c4c6cc;
|
55
|
+
cursor: not-allowed;
|
56
|
+
}
|
57
|
+
.bk-transfer .source-list .transfer-search-input,
|
58
|
+
.bk-transfer .target-list .transfer-search-input {
|
59
|
+
height: 36px;
|
60
|
+
border-bottom: 1px solid #f0f1f5;
|
61
|
+
border-width: 0 0 1px 0;
|
62
|
+
border-radius: 0;
|
63
|
+
outline: none;
|
64
|
+
}
|
65
|
+
.bk-transfer .source-list .transfer-search-input.is-focused,
|
66
|
+
.bk-transfer .target-list .transfer-search-input.is-focused {
|
67
|
+
box-shadow: none;
|
68
|
+
}
|
69
|
+
.bk-transfer .source-list .empty,
|
70
|
+
.bk-transfer .target-list .empty {
|
71
|
+
flex: 1;
|
72
|
+
display: flex;
|
73
|
+
align-items: center;
|
74
|
+
justify-content: center;
|
75
|
+
padding-bottom: 30px;
|
76
|
+
color: #c4c6cc;
|
77
|
+
cursor: default;
|
78
|
+
}
|
79
|
+
.bk-transfer .source-list .content,
|
80
|
+
.bk-transfer .target-list .content {
|
81
|
+
flex: 1;
|
82
|
+
margin: 6px 0;
|
83
|
+
overflow-y: auto;
|
84
|
+
}
|
85
|
+
.bk-transfer .source-list .content li.custom-item,
|
86
|
+
.bk-transfer .target-list .content li.custom-item,
|
87
|
+
.bk-transfer .source-list .content li .item-content,
|
88
|
+
.bk-transfer .target-list .content li .item-content {
|
89
|
+
display: flex;
|
90
|
+
align-items: center;
|
91
|
+
height: 40px;
|
92
|
+
padding: 0 20px;
|
93
|
+
cursor: pointer;
|
94
|
+
}
|
95
|
+
.bk-transfer .source-list .content li.custom-item:hover,
|
96
|
+
.bk-transfer .target-list .content li.custom-item:hover,
|
97
|
+
.bk-transfer .source-list .content li .item-content:hover,
|
98
|
+
.bk-transfer .target-list .content li .item-content:hover {
|
99
|
+
color: #3a84ff;
|
100
|
+
background-color: #eef6fe;
|
101
|
+
}
|
102
|
+
.bk-transfer .source-list .content li.custom-item .content-text,
|
103
|
+
.bk-transfer .target-list .content li.custom-item .content-text,
|
104
|
+
.bk-transfer .source-list .content li .item-content .content-text,
|
105
|
+
.bk-transfer .target-list .content li .item-content .content-text {
|
106
|
+
flex: 1;
|
107
|
+
overflow: hidden;
|
108
|
+
text-overflow: ellipsis;
|
109
|
+
white-space: nowrap;
|
110
|
+
}
|
111
|
+
.bk-transfer .source-list .content li.custom-item .icon-wrapper,
|
112
|
+
.bk-transfer .target-list .content li.custom-item .icon-wrapper,
|
113
|
+
.bk-transfer .source-list .content li .item-content .icon-wrapper,
|
114
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper {
|
115
|
+
visibility: hidden;
|
116
|
+
}
|
117
|
+
.bk-transfer .source-list .content li.custom-item .icon-wrapper.hover,
|
118
|
+
.bk-transfer .target-list .content li.custom-item .icon-wrapper.hover,
|
119
|
+
.bk-transfer .source-list .content li .item-content .icon-wrapper.hover,
|
120
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper.hover {
|
121
|
+
visibility: visible;
|
122
|
+
}
|
123
|
+
.bk-transfer .source-list .content li.custom-item .icon-wrapper .bk-icon,
|
124
|
+
.bk-transfer .target-list .content li.custom-item .icon-wrapper .bk-icon,
|
125
|
+
.bk-transfer .source-list .content li .item-content .icon-wrapper .bk-icon,
|
126
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper .bk-icon {
|
127
|
+
display: flex;
|
128
|
+
font-size: 22px;
|
129
|
+
}
|
130
|
+
.bk-transfer .source-list .content::-webkit-scrollbar,
|
131
|
+
.bk-transfer .target-list .content::-webkit-scrollbar {
|
132
|
+
width: 4px;
|
133
|
+
}
|
134
|
+
.bk-transfer .source-list .content::-webkit-scrollbar-thumb,
|
135
|
+
.bk-transfer .target-list .content::-webkit-scrollbar-thumb {
|
136
|
+
height: 5px;
|
137
|
+
background-color: #e6e9ea;
|
138
|
+
border-radius: 2px;
|
139
|
+
}
|
@@ -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,144 @@
|
|
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
|
+
display: flex;
|
23
|
+
justify-content: center;
|
24
|
+
align-items: center;
|
25
|
+
font-size: 14px;
|
26
|
+
|
27
|
+
.transfer {
|
28
|
+
width: 30px;
|
29
|
+
height: 30px;
|
30
|
+
margin: 0 2px;
|
31
|
+
background: url('@bkui-vue/styles/images/transfer.png') no-repeat center center;
|
32
|
+
}
|
33
|
+
|
34
|
+
.source-list,
|
35
|
+
.target-list {
|
36
|
+
flex: 1;
|
37
|
+
display: flex;
|
38
|
+
flex-direction: column;
|
39
|
+
height: 400px;
|
40
|
+
min-width: 200px;
|
41
|
+
overflow: hidden;
|
42
|
+
background-color: #fff;
|
43
|
+
border: 1px solid @borderInlineColor;
|
44
|
+
border-radius: 2px;
|
45
|
+
|
46
|
+
.slot-header,
|
47
|
+
.header {
|
48
|
+
height: 43px;
|
49
|
+
padding: 0 20px;
|
50
|
+
background-color: @newGreyColor3;
|
51
|
+
border-bottom: 1px solid @borderInlineColor;
|
52
|
+
}
|
53
|
+
|
54
|
+
.header {
|
55
|
+
display: flex;
|
56
|
+
align-items: center;
|
57
|
+
justify-content: space-between;
|
58
|
+
|
59
|
+
span {
|
60
|
+
font-size: 12px;
|
61
|
+
color: @newMainColor;
|
62
|
+
cursor: pointer;
|
63
|
+
|
64
|
+
&.disabled {
|
65
|
+
color: @newGreyColor;
|
66
|
+
cursor: not-allowed;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.transfer-search-input {
|
72
|
+
height: 36px;
|
73
|
+
border-bottom: 1px solid @newGreyColor2;
|
74
|
+
border-width: 0 0 1px 0;
|
75
|
+
border-radius: 0;
|
76
|
+
outline: none;
|
77
|
+
|
78
|
+
&.is-focused {
|
79
|
+
box-shadow: none;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.empty {
|
84
|
+
flex: 1;
|
85
|
+
display: flex;
|
86
|
+
align-items: center;
|
87
|
+
justify-content: center;
|
88
|
+
padding-bottom: 30px;
|
89
|
+
color: @newGreyColor;
|
90
|
+
cursor: default;
|
91
|
+
}
|
92
|
+
|
93
|
+
.content {
|
94
|
+
flex: 1;
|
95
|
+
margin: 6px 0;
|
96
|
+
overflow-y: auto;
|
97
|
+
|
98
|
+
li.custom-item,
|
99
|
+
li .item-content {
|
100
|
+
display: flex;
|
101
|
+
align-items: center;
|
102
|
+
height: 40px;
|
103
|
+
padding: 0 20px;
|
104
|
+
cursor: pointer;
|
105
|
+
|
106
|
+
&:hover {
|
107
|
+
color: @newMainColor;
|
108
|
+
background-color: #eef6fe;
|
109
|
+
}
|
110
|
+
|
111
|
+
.content-text {
|
112
|
+
flex: 1;
|
113
|
+
overflow: hidden;
|
114
|
+
text-overflow: ellipsis;
|
115
|
+
white-space: nowrap;
|
116
|
+
}
|
117
|
+
|
118
|
+
.icon-wrapper {
|
119
|
+
visibility: hidden;
|
120
|
+
|
121
|
+
&.hover {
|
122
|
+
visibility: visible;
|
123
|
+
}
|
124
|
+
|
125
|
+
.bk-icon {
|
126
|
+
display: flex;
|
127
|
+
font-size: @iconNormalSize;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
&::-webkit-scrollbar {
|
133
|
+
width: 4px;
|
134
|
+
// background-color: color(transparent lightness(80%));
|
135
|
+
}
|
136
|
+
|
137
|
+
&::-webkit-scrollbar-thumb {
|
138
|
+
height: 5px;
|
139
|
+
background-color: #e6e9ea;
|
140
|
+
border-radius: 2px;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|