bkui-vue 0.0.1-beta.45 → 0.0.1-beta.450
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/License.txt +14 -0
- package/dist/index.cjs.js +160 -35
- package/dist/index.esm.js +35568 -14524
- package/dist/index.umd.js +160 -35
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +125 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +9 -3
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +29 -20
- package/lib/alert/alert.variable.css +41 -7
- package/lib/alert/index.d.ts +11 -11
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +1 -1
- package/lib/animate-number/index.d.ts +4 -4
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +3 -3
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +40 -4
- package/lib/backtop/index.d.ts +10 -10
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +7 -10
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +9 -11
- package/lib/badge/badge.variable.css +39 -14
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +4 -2
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +88 -9
- package/lib/breadcrumb/index.d.ts +4 -2
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +85 -50
- package/lib/button/button.d.ts +44 -24
- package/lib/button/button.less +72 -42
- package/lib/button/button.variable.css +117 -54
- package/lib/button/index.d.ts +74 -44
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +97 -2
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +133 -10
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +101 -0
- package/lib/cascader/cascader.css +316 -0
- package/lib/cascader/cascader.d.ts +342 -0
- package/lib/cascader/cascader.less +283 -0
- package/lib/cascader/cascader.variable.css +438 -0
- package/lib/cascader/index.d.ts +961 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +25 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +51 -11
- package/lib/checkbox/checkbox.d.ts +36 -24
- package/lib/checkbox/checkbox.less +85 -32
- package/lib/checkbox/checkbox.variable.css +83 -15
- package/lib/checkbox/common.d.ts +4 -3
- package/lib/checkbox/index.d.ts +70 -38
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +2 -6
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +1 -1
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +59 -11
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +103 -0
- package/lib/collapse/collapse.css +69 -14
- package/lib/collapse/collapse.d.ts +66 -52
- package/lib/collapse/collapse.less +112 -30
- package/lib/collapse/collapse.variable.css +191 -14
- package/lib/collapse/index.d.ts +266 -20
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +131 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/collapse-transition/collapse-transition.css +93 -0
- package/lib/collapse-transition/collapse-transition.d.ts +15 -0
- package/lib/collapse-transition/collapse-transition.less +111 -0
- package/lib/collapse-transition/collapse-transition.variable.css +215 -0
- package/lib/collapse-transition/index.d.ts +2 -0
- package/lib/collapse-transition/index.js +1 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +397 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +31 -8
- package/lib/components.js +1 -0
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +384 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/config-provider/config-provider.variable.css +122 -0
- package/lib/config-provider/index.d.ts +585 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/token.d.ts +122 -0
- package/lib/config-provider/use-global-config.d.ts +5 -0
- package/lib/config-provider/use-locale.d.ts +3 -0
- package/lib/config-provider/use-prefix.d.ts +9 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +213 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +96 -0
- package/lib/date-picker/base/month-table.d.ts +117 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
- package/lib/date-picker/base/time-spinner.d.ts +170 -0
- package/lib/date-picker/base/year-table.d.ts +117 -0
- package/lib/date-picker/date-picker.css +28 -1
- package/lib/date-picker/date-picker.d.ts +49 -20
- package/lib/date-picker/date-picker.less +106 -74
- package/lib/date-picker/date-picker.variable.css +60 -5
- package/lib/date-picker/index.d.ts +121 -54
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +11 -1
- package/lib/date-picker/panel/date-range.d.ts +328 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +489 -0
- package/lib/date-picker/panel/time.d.ts +448 -0
- package/lib/date-picker/props.d.ts +55 -5
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +136 -24
- package/lib/dialog/dialog.d.ts +245 -58
- package/lib/dialog/dialog.less +100 -38
- package/lib/dialog/dialog.variable.css +258 -24
- package/lib/dialog/index.d.ts +545 -126
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +122 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +2 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +15 -15
- package/lib/divider/divider.variable.css +32 -4
- package/lib/divider/index.d.ts +34 -34
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +46 -14
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +45 -11
- package/lib/dropdown/index.d.ts +99 -35
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +31 -11
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +72 -18
- package/lib/exception/index.d.ts +43 -26
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -4
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +22 -7
- package/lib/form/form.css +103 -15
- package/lib/form/form.d.ts +48 -14
- package/lib/form/form.less +152 -46
- package/lib/form/form.variable.css +225 -15
- package/lib/form/index.d.ts +121 -35
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +11 -8
- package/lib/form/utils.d.ts +2 -0
- package/lib/form/validator.d.ts +1 -0
- package/lib/hooks.d.ts +1 -0
- package/lib/hooks.js +1 -0
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -1
- 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 -1
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +79 -53
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original.d.ts +4 -0
- package/lib/icon/original.js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/transfer.d.ts +4 -0
- package/lib/icon/transfer.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +28 -0
- package/lib/info-box/info-box.less +51 -0
- package/lib/info-box/info-box.variable.css +159 -0
- package/lib/input/index.d.ts +175 -90
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +183 -19
- package/lib/input/input.d.ts +119 -36
- package/lib/input/input.less +112 -18
- package/lib/input/input.variable.css +246 -55
- package/lib/link/index.d.ts +29 -21
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +10 -8
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +44 -16
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +86 -33
- package/lib/loading/loading.d.ts +94 -12
- package/lib/loading/loading.less +27 -23
- package/lib/loading/loading.variable.css +134 -53
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +120 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +101 -22
- package/lib/menu/submenu.variable.css +32 -4
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +17 -5
- package/lib/message/message.less +21 -6
- package/lib/message/message.variable.css +49 -9
- package/lib/message/messageConstructor.d.ts +14 -11
- package/lib/modal/index.d.ts +470 -78
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +177 -30
- package/lib/modal/modal.less +39 -3
- package/lib/modal/modal.variable.css +185 -1
- package/lib/modal/props.mixin.d.ts +74 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +11 -2
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +33 -5
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +25 -5
- package/lib/notify/notify.less +29 -6
- package/lib/notify/notify.variable.css +57 -9
- package/lib/notify/notifyConstructor.d.ts +62 -21
- package/lib/overflow-title/components/overflow-title.d.ts +57 -0
- package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +170 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/overflow.css +11 -0
- package/lib/overflow-title/overflow.less +13 -0
- package/lib/overflow-title/overflow.variable.css +11 -0
- package/lib/overflow-title/props.d.ts +43 -0
- package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
- package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
- package/lib/pagination/index.d.ts +35 -20
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +18 -8
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +86 -32
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.d.ts +246 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.css +28 -0
- package/lib/pop-confirm/pop-confirm.d.ts +95 -0
- package/lib/pop-confirm/pop-confirm.less +34 -0
- package/lib/pop-confirm/pop-confirm.variable.css +150 -0
- package/lib/pop-confirm/props.d.ts +67 -0
- package/lib/popover/arrow.d.ts +2 -0
- package/lib/popover/const.d.ts +16 -0
- package/lib/popover/content.d.ts +43 -0
- package/lib/popover/index.d.ts +504 -97
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +10 -50
- package/lib/popover/popover.d.ts +222 -43
- package/lib/popover/popover.less +19 -66
- package/lib/popover/popover.variable.css +42 -54
- package/lib/popover/props.d.ts +110 -30
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +16 -0
- package/lib/popover/use-floating.d.ts +34 -0
- package/lib/popover/use-platform.d.ts +30 -0
- package/lib/popover/use-popover-init.d.ts +23 -0
- package/lib/popover/use-popper-id.d.ts +6 -0
- package/lib/popover/utils.d.ts +8 -0
- package/lib/popover2/index.d.ts +44 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +252 -2
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -1
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +30 -2
- package/lib/process/process.variable.css +54 -4
- package/lib/progress/index.d.ts +31 -31
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +12 -12
- package/lib/progress/progress.variable.css +87 -8
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +36 -18
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +26 -0
- package/lib/radio/radio.css +137 -66
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +262 -173
- package/lib/radio/radio.variable.css +172 -73
- package/lib/radio/type.d.ts +9 -4
- package/lib/rate/index.d.ts +28 -5
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -2
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +18 -18
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +6 -15
- package/lib/resize-layout/resize-layout.d.ts +7 -7
- package/lib/resize-layout/resize-layout.less +10 -19
- package/lib/resize-layout/resize-layout.variable.css +38 -19
- package/lib/search-select/index.d.ts +891 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +101 -0
- package/lib/search-select/menu.d.ts +77 -0
- package/lib/search-select/search-select.css +427 -0
- package/lib/search-select/search-select.d.ts +361 -0
- package/lib/search-select/search-select.less +384 -0
- package/lib/search-select/search-select.variable.css +549 -0
- package/lib/search-select/selected.d.ts +155 -0
- package/lib/search-select/utils.d.ts +88 -0
- package/lib/select/common.d.ts +5 -12
- package/lib/select/index.d.ts +1816 -691
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +18 -4
- package/lib/select/optionGroup.d.ts +1 -1
- package/lib/select/select.css +202 -113
- package/lib/select/select.d.ts +715 -147
- package/lib/select/select.less +335 -197
- package/lib/select/select.variable.css +234 -117
- package/lib/select/selectTagInput.d.ts +94 -0
- package/lib/select/type.d.ts +21 -13
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/helper.d.ts +9 -0
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +32 -7
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +13 -5
- package/lib/shared/pop-manager.d.ts +19 -5
- package/lib/shared/popover.d.ts +6 -2
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +107 -7
- package/lib/sideslider/index.d.ts +343 -69
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +58 -11
- package/lib/sideslider/sideslider.d.ts +160 -31
- package/lib/sideslider/sideslider.less +75 -14
- package/lib/sideslider/sideslider.variable.css +90 -15
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider-button.d.ts +2 -1
- package/lib/slider/slider.d.ts +4 -4
- package/lib/slider/slider.variable.css +32 -4
- package/lib/steps/index.d.ts +52 -52
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +15 -3
- package/lib/steps/steps.d.ts +32 -32
- package/lib/steps/steps.less +24 -3
- package/lib/steps/steps.variable.css +47 -7
- package/lib/styles/index.d.ts +10 -1
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/popper.css +1 -1
- package/lib/styles/mixins/popper.less +12 -11
- package/lib/styles/mixins/popper.variable.css +123 -1
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +139 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -2
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +42 -4
- package/lib/switcher/index.d.ts +42 -30
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +19 -13
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +106 -27
- package/lib/tab/index.d.ts +121 -67
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +93 -41
- package/lib/tab/tab-nav.d.ts +50 -14
- package/lib/tab/tab-panel.d.ts +14 -7
- package/lib/tab/tab.css +151 -55
- package/lib/tab/tab.d.ts +42 -21
- package/lib/tab/tab.less +179 -86
- package/lib/tab/tab.variable.css +183 -59
- package/lib/table/cache.d.ts +6 -0
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +51 -0
- package/lib/table/components/table-column.d.ts +299 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +125 -1
- package/lib/table/index.d.ts +1375 -48
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +36 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +84 -0
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +110 -0
- package/lib/table/plugins/head-filter.variable.css +206 -0
- package/lib/table/plugins/head-sort.css +26 -0
- package/lib/table/plugins/head-sort.d.ts +29 -0
- package/lib/table/plugins/head-sort.less +32 -0
- package/lib/table/plugins/head-sort.variable.css +148 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +147 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +181 -0
- package/lib/table/plugins/settings.variable.css +269 -0
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +26 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +358 -11
- package/lib/table/render.d.ts +54 -31
- package/lib/table/table.css +1250 -38
- package/lib/table/table.d.ts +258 -18
- package/lib/table/table.less +314 -42
- package/lib/table/table.variable.css +1291 -51
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +113 -0
- package/lib/table/utils.d.ts +60 -13
- package/lib/table-column/index.d.ts +790 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +29 -29
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +12 -12
- package/lib/tag/tag.less +46 -10
- package/lib/tag/tag.variable.css +78 -17
- package/lib/tag-input/common.d.ts +13 -1
- package/lib/tag-input/index.d.ts +1406 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +0 -3
- package/lib/tag-input/tag-input.css +23 -26
- package/lib/tag-input/tag-input.d.ts +303 -44
- package/lib/tag-input/tag-input.less +102 -104
- package/lib/tag-input/tag-input.variable.css +55 -30
- package/lib/tag-input/tag-props.d.ts +141 -7
- package/lib/tag-input/tag-render.d.ts +30 -4
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +337 -0
- package/lib/timeline/index.d.ts +6 -6
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +16 -9
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +22 -9
- package/lib/timeline/timeline.variable.css +48 -13
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +247 -150
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +59 -0
- package/lib/transfer/transfer.css +153 -92
- package/lib/transfer/transfer.d.ts +101 -95
- package/lib/transfer/transfer.less +142 -112
- package/lib/transfer/transfer.variable.css +191 -102
- package/lib/tree/constant.d.ts +62 -0
- package/lib/tree/index.d.ts +379 -60
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +124 -0
- package/lib/tree/tree.css +181 -9
- package/lib/tree/tree.d.ts +172 -19
- package/lib/tree/tree.less +54 -3
- package/lib/tree/tree.variable.css +213 -13
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +4 -6
- package/lib/upload/index.d.ts +566 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +111 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +51 -0
- package/lib/upload/upload.css +427 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +466 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +549 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +50 -4
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -17
- package/lib/virtual-render/virtual-render.d.ts +23 -1
- package/lib/virtual-render/virtual-render.less +2 -23
- package/lib/virtual-render/virtual-render.variable.css +139 -17
- package/lib/volar.components.d.ts +102 -0
- package/package.json +59 -26
- package/LICENSE.txt +0 -22
- package/lib/form/common.d.ts +0 -3
- package/lib/use-form.d.ts +0 -3
package/lib/transfer/index.d.ts
CHANGED
@@ -30,68 +30,79 @@ declare const Transfer: {
|
|
30
30
|
$props: Partial<{
|
31
31
|
title: string[];
|
32
32
|
extCls: string;
|
33
|
+
multiple: boolean;
|
33
34
|
displayKey: string;
|
35
|
+
searchPlaceholder: string;
|
34
36
|
sortable: boolean;
|
35
37
|
settingKey: string;
|
36
|
-
|
38
|
+
sortKey: string;
|
37
39
|
showOverflowTips: boolean;
|
38
40
|
searchable: boolean;
|
39
|
-
|
40
|
-
|
41
|
-
targetList: unknown[];
|
41
|
+
sourceList: any[];
|
42
|
+
targetList: any[];
|
42
43
|
emptyContent: string[];
|
43
44
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
44
|
-
title: {
|
45
|
-
|
46
|
-
default: () => any[];
|
45
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
46
|
+
default: () => string[];
|
47
47
|
};
|
48
|
-
extCls: {
|
49
|
-
|
48
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
49
|
+
default: string;
|
50
|
+
} & {
|
50
51
|
default: string;
|
51
52
|
};
|
52
|
-
searchPlaceholder: {
|
53
|
-
|
53
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
54
|
+
default: string;
|
55
|
+
} & {
|
54
56
|
default: string;
|
55
57
|
};
|
56
|
-
settingKey: {
|
57
|
-
|
58
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
59
|
+
default: string;
|
60
|
+
} & {
|
58
61
|
default: string;
|
59
62
|
};
|
60
|
-
displayKey: {
|
61
|
-
|
63
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
64
|
+
default: string;
|
65
|
+
} & {
|
62
66
|
default: string;
|
63
67
|
};
|
64
|
-
sortKey: {
|
65
|
-
|
68
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
69
|
+
default: string;
|
70
|
+
} & {
|
66
71
|
default: string;
|
67
72
|
};
|
68
|
-
showOverflowTips: {
|
69
|
-
|
73
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
74
|
+
default: boolean;
|
75
|
+
} & {
|
70
76
|
default: boolean;
|
71
77
|
};
|
72
|
-
searchable: {
|
73
|
-
|
78
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
79
|
+
default: boolean;
|
80
|
+
} & {
|
74
81
|
default: boolean;
|
75
82
|
};
|
76
|
-
sortable: {
|
77
|
-
|
83
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
84
|
+
default: boolean;
|
85
|
+
} & {
|
78
86
|
default: boolean;
|
79
87
|
};
|
80
|
-
sourceList: {
|
81
|
-
type: ArrayConstructor;
|
88
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
82
89
|
default: () => any[];
|
83
90
|
};
|
84
|
-
targetList: {
|
85
|
-
type: ArrayConstructor;
|
91
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
86
92
|
default: () => any[];
|
87
93
|
};
|
88
|
-
emptyContent: {
|
89
|
-
|
90
|
-
|
94
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
95
|
+
default: () => string[];
|
96
|
+
};
|
97
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
|
+
default: boolean;
|
99
|
+
} & {
|
100
|
+
default: boolean;
|
91
101
|
};
|
92
102
|
}>> & {
|
93
103
|
onChange?: (...args: any[]) => any;
|
94
|
-
|
104
|
+
"onUpdate:targetList"?: (...args: any[]) => any;
|
105
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "extCls" | "multiple" | "displayKey" | "searchPlaceholder" | "sortable" | "settingKey" | "sortKey" | "showOverflowTips" | "searchable" | "sourceList" | "targetList" | "emptyContent">;
|
95
106
|
$attrs: {
|
96
107
|
[x: string]: unknown;
|
97
108
|
};
|
@@ -103,84 +114,113 @@ declare const Transfer: {
|
|
103
114
|
}>;
|
104
115
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
105
116
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
106
|
-
$emit: (event: "change", ...args: any[]) => void;
|
117
|
+
$emit: (event: "change" | "update:targetList", ...args: any[]) => void;
|
107
118
|
$el: any;
|
108
119
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
109
|
-
title: {
|
110
|
-
|
111
|
-
default: () => any[];
|
120
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
121
|
+
default: () => string[];
|
112
122
|
};
|
113
|
-
extCls: {
|
114
|
-
|
123
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
124
|
+
default: string;
|
125
|
+
} & {
|
115
126
|
default: string;
|
116
127
|
};
|
117
|
-
searchPlaceholder: {
|
118
|
-
|
128
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
129
|
+
default: string;
|
130
|
+
} & {
|
119
131
|
default: string;
|
120
132
|
};
|
121
|
-
settingKey: {
|
122
|
-
|
133
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
134
|
+
default: string;
|
135
|
+
} & {
|
123
136
|
default: string;
|
124
137
|
};
|
125
|
-
displayKey: {
|
126
|
-
|
138
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
139
|
+
default: string;
|
140
|
+
} & {
|
127
141
|
default: string;
|
128
142
|
};
|
129
|
-
sortKey: {
|
130
|
-
|
143
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
144
|
+
default: string;
|
145
|
+
} & {
|
131
146
|
default: string;
|
132
147
|
};
|
133
|
-
showOverflowTips: {
|
134
|
-
|
148
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
149
|
+
default: boolean;
|
150
|
+
} & {
|
135
151
|
default: boolean;
|
136
152
|
};
|
137
|
-
searchable: {
|
138
|
-
|
153
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
154
|
+
default: boolean;
|
155
|
+
} & {
|
139
156
|
default: boolean;
|
140
157
|
};
|
141
|
-
sortable: {
|
142
|
-
|
158
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
159
|
+
default: boolean;
|
160
|
+
} & {
|
143
161
|
default: boolean;
|
144
162
|
};
|
145
|
-
sourceList: {
|
146
|
-
type: ArrayConstructor;
|
163
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
147
164
|
default: () => any[];
|
148
165
|
};
|
149
|
-
targetList: {
|
150
|
-
type: ArrayConstructor;
|
166
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
151
167
|
default: () => any[];
|
152
168
|
};
|
153
|
-
emptyContent: {
|
154
|
-
|
155
|
-
|
169
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
170
|
+
default: () => string[];
|
171
|
+
};
|
172
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
173
|
+
default: boolean;
|
174
|
+
} & {
|
175
|
+
default: boolean;
|
156
176
|
};
|
157
177
|
}>> & {
|
158
178
|
onChange?: (...args: any[]) => any;
|
179
|
+
"onUpdate:targetList"?: (...args: any[]) => any;
|
159
180
|
}, {
|
160
|
-
|
161
|
-
|
162
|
-
|
181
|
+
selectSearchQuery: import("vue").Ref<string>;
|
182
|
+
selectListSearch: import("vue").ComputedRef<any>;
|
183
|
+
selectedList: import("vue").Ref<any[]>;
|
184
|
+
selectListSort: import("vue").ComputedRef<any[]>;
|
185
|
+
selectedListSort: import("vue").ComputedRef<any[]>;
|
186
|
+
settingCode: import("vue").ComputedRef<string>;
|
187
|
+
displayCode: import("vue").ComputedRef<string>;
|
163
188
|
allToRight: () => void;
|
164
189
|
allToLeft: () => void;
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
190
|
+
handleItemClick: (item: any, isLeft: any) => void;
|
191
|
+
t: import("vue").ComputedRef<{
|
192
|
+
sourceList: string;
|
193
|
+
targetList: string;
|
194
|
+
removeAll: string;
|
195
|
+
selectAll: string;
|
196
|
+
noData: string;
|
197
|
+
noSelected: string;
|
198
|
+
search: string;
|
199
|
+
}>;
|
200
|
+
handleAllChecked: (value: any, dirct: any) => void;
|
201
|
+
multipleSelectAllValue: import("vue").Ref<{
|
202
|
+
source: boolean;
|
203
|
+
target: boolean;
|
204
|
+
}>;
|
205
|
+
multipleSelectList: import("vue").Ref<{
|
206
|
+
source: any[];
|
207
|
+
target: any[];
|
208
|
+
}>;
|
209
|
+
handleMultipleChange: (dirct: any) => void;
|
210
|
+
handleItemChecked: (dirct: any) => void;
|
211
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], string, {
|
173
212
|
title: string[];
|
174
213
|
extCls: string;
|
214
|
+
multiple: boolean;
|
175
215
|
displayKey: string;
|
216
|
+
searchPlaceholder: string;
|
176
217
|
sortable: boolean;
|
177
218
|
settingKey: string;
|
178
|
-
|
219
|
+
sortKey: string;
|
179
220
|
showOverflowTips: boolean;
|
180
221
|
searchable: boolean;
|
181
|
-
|
182
|
-
|
183
|
-
targetList: unknown[];
|
222
|
+
sourceList: any[];
|
223
|
+
targetList: any[];
|
184
224
|
emptyContent: string[];
|
185
225
|
}> & {
|
186
226
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -203,149 +243,206 @@ declare const Transfer: {
|
|
203
243
|
$nextTick: typeof import("vue").nextTick;
|
204
244
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
205
245
|
} & Readonly<import("vue").ExtractPropTypes<{
|
206
|
-
title: {
|
207
|
-
|
208
|
-
default: () => any[];
|
246
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
247
|
+
default: () => string[];
|
209
248
|
};
|
210
|
-
extCls: {
|
211
|
-
|
249
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
250
|
+
default: string;
|
251
|
+
} & {
|
212
252
|
default: string;
|
213
253
|
};
|
214
|
-
searchPlaceholder: {
|
215
|
-
|
254
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
255
|
+
default: string;
|
256
|
+
} & {
|
216
257
|
default: string;
|
217
258
|
};
|
218
|
-
settingKey: {
|
219
|
-
|
259
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
260
|
+
default: string;
|
261
|
+
} & {
|
220
262
|
default: string;
|
221
263
|
};
|
222
|
-
displayKey: {
|
223
|
-
|
264
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
265
|
+
default: string;
|
266
|
+
} & {
|
224
267
|
default: string;
|
225
268
|
};
|
226
|
-
sortKey: {
|
227
|
-
|
269
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
270
|
+
default: string;
|
271
|
+
} & {
|
228
272
|
default: string;
|
229
273
|
};
|
230
|
-
showOverflowTips: {
|
231
|
-
|
274
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
275
|
+
default: boolean;
|
276
|
+
} & {
|
232
277
|
default: boolean;
|
233
278
|
};
|
234
|
-
searchable: {
|
235
|
-
|
279
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
280
|
+
default: boolean;
|
281
|
+
} & {
|
236
282
|
default: boolean;
|
237
283
|
};
|
238
|
-
sortable: {
|
239
|
-
|
284
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
285
|
+
default: boolean;
|
286
|
+
} & {
|
240
287
|
default: boolean;
|
241
288
|
};
|
242
|
-
sourceList: {
|
243
|
-
type: ArrayConstructor;
|
289
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
244
290
|
default: () => any[];
|
245
291
|
};
|
246
|
-
targetList: {
|
247
|
-
type: ArrayConstructor;
|
292
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
248
293
|
default: () => any[];
|
249
294
|
};
|
250
|
-
emptyContent: {
|
251
|
-
|
252
|
-
|
295
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
296
|
+
default: () => string[];
|
297
|
+
};
|
298
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
299
|
+
default: boolean;
|
300
|
+
} & {
|
301
|
+
default: boolean;
|
253
302
|
};
|
254
303
|
}>> & {
|
255
304
|
onChange?: (...args: any[]) => any;
|
305
|
+
"onUpdate:targetList"?: (...args: any[]) => any;
|
256
306
|
} & import("vue").ShallowUnwrapRef<{
|
257
|
-
|
258
|
-
|
259
|
-
|
307
|
+
selectSearchQuery: import("vue").Ref<string>;
|
308
|
+
selectListSearch: import("vue").ComputedRef<any>;
|
309
|
+
selectedList: import("vue").Ref<any[]>;
|
310
|
+
selectListSort: import("vue").ComputedRef<any[]>;
|
311
|
+
selectedListSort: import("vue").ComputedRef<any[]>;
|
312
|
+
settingCode: import("vue").ComputedRef<string>;
|
313
|
+
displayCode: import("vue").ComputedRef<string>;
|
260
314
|
allToRight: () => void;
|
261
315
|
allToLeft: () => void;
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
316
|
+
handleItemClick: (item: any, isLeft: any) => void;
|
317
|
+
t: import("vue").ComputedRef<{
|
318
|
+
sourceList: string;
|
319
|
+
targetList: string;
|
320
|
+
removeAll: string;
|
321
|
+
selectAll: string;
|
322
|
+
noData: string;
|
323
|
+
noSelected: string;
|
324
|
+
search: string;
|
325
|
+
}>;
|
326
|
+
handleAllChecked: (value: any, dirct: any) => void;
|
327
|
+
multipleSelectAllValue: import("vue").Ref<{
|
328
|
+
source: boolean;
|
329
|
+
target: boolean;
|
330
|
+
}>;
|
331
|
+
multipleSelectList: import("vue").Ref<{
|
332
|
+
source: any[];
|
333
|
+
target: any[];
|
334
|
+
}>;
|
335
|
+
handleMultipleChange: (dirct: any) => void;
|
336
|
+
handleItemChecked: (dirct: any) => void;
|
269
337
|
}> & {} & {} & import("vue").ComponentCustomProperties;
|
270
338
|
__isFragment?: never;
|
271
339
|
__isTeleport?: never;
|
272
340
|
__isSuspense?: never;
|
273
341
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
274
|
-
title: {
|
275
|
-
|
276
|
-
default: () => any[];
|
342
|
+
title: import("vue-types").VueTypeDef<string[]> & {
|
343
|
+
default: () => string[];
|
277
344
|
};
|
278
|
-
extCls: {
|
279
|
-
|
345
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
346
|
+
default: string;
|
347
|
+
} & {
|
280
348
|
default: string;
|
281
349
|
};
|
282
|
-
searchPlaceholder: {
|
283
|
-
|
350
|
+
searchPlaceholder: import("vue-types").VueTypeValidableDef<string> & {
|
351
|
+
default: string;
|
352
|
+
} & {
|
284
353
|
default: string;
|
285
354
|
};
|
286
|
-
settingKey: {
|
287
|
-
|
355
|
+
settingKey: import("vue-types").VueTypeValidableDef<string> & {
|
356
|
+
default: string;
|
357
|
+
} & {
|
288
358
|
default: string;
|
289
359
|
};
|
290
|
-
displayKey: {
|
291
|
-
|
360
|
+
displayKey: import("vue-types").VueTypeValidableDef<string> & {
|
361
|
+
default: string;
|
362
|
+
} & {
|
292
363
|
default: string;
|
293
364
|
};
|
294
|
-
sortKey: {
|
295
|
-
|
365
|
+
sortKey: import("vue-types").VueTypeValidableDef<string> & {
|
366
|
+
default: string;
|
367
|
+
} & {
|
296
368
|
default: string;
|
297
369
|
};
|
298
|
-
showOverflowTips: {
|
299
|
-
|
370
|
+
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
371
|
+
default: boolean;
|
372
|
+
} & {
|
300
373
|
default: boolean;
|
301
374
|
};
|
302
|
-
searchable: {
|
303
|
-
|
375
|
+
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
376
|
+
default: boolean;
|
377
|
+
} & {
|
304
378
|
default: boolean;
|
305
379
|
};
|
306
|
-
sortable: {
|
307
|
-
|
380
|
+
sortable: import("vue-types").VueTypeValidableDef<boolean> & {
|
381
|
+
default: boolean;
|
382
|
+
} & {
|
308
383
|
default: boolean;
|
309
384
|
};
|
310
|
-
sourceList: {
|
311
|
-
type: ArrayConstructor;
|
385
|
+
sourceList: import("vue-types").VueTypeDef<any[]> & {
|
312
386
|
default: () => any[];
|
313
387
|
};
|
314
|
-
targetList: {
|
315
|
-
type: ArrayConstructor;
|
388
|
+
targetList: import("vue-types").VueTypeDef<any[]> & {
|
316
389
|
default: () => any[];
|
317
390
|
};
|
318
|
-
emptyContent: {
|
319
|
-
|
320
|
-
|
391
|
+
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
392
|
+
default: () => string[];
|
393
|
+
};
|
394
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
395
|
+
default: boolean;
|
396
|
+
} & {
|
397
|
+
default: boolean;
|
321
398
|
};
|
322
399
|
}>> & {
|
323
400
|
onChange?: (...args: any[]) => any;
|
401
|
+
"onUpdate:targetList"?: (...args: any[]) => any;
|
324
402
|
}, {
|
325
|
-
|
326
|
-
|
327
|
-
|
403
|
+
selectSearchQuery: import("vue").Ref<string>;
|
404
|
+
selectListSearch: import("vue").ComputedRef<any>;
|
405
|
+
selectedList: import("vue").Ref<any[]>;
|
406
|
+
selectListSort: import("vue").ComputedRef<any[]>;
|
407
|
+
selectedListSort: import("vue").ComputedRef<any[]>;
|
408
|
+
settingCode: import("vue").ComputedRef<string>;
|
409
|
+
displayCode: import("vue").ComputedRef<string>;
|
328
410
|
allToRight: () => void;
|
329
411
|
allToLeft: () => void;
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
412
|
+
handleItemClick: (item: any, isLeft: any) => void;
|
413
|
+
t: import("vue").ComputedRef<{
|
414
|
+
sourceList: string;
|
415
|
+
targetList: string;
|
416
|
+
removeAll: string;
|
417
|
+
selectAll: string;
|
418
|
+
noData: string;
|
419
|
+
noSelected: string;
|
420
|
+
search: string;
|
421
|
+
}>;
|
422
|
+
handleAllChecked: (value: any, dirct: any) => void;
|
423
|
+
multipleSelectAllValue: import("vue").Ref<{
|
424
|
+
source: boolean;
|
425
|
+
target: boolean;
|
426
|
+
}>;
|
427
|
+
multipleSelectList: import("vue").Ref<{
|
428
|
+
source: any[];
|
429
|
+
target: any[];
|
430
|
+
}>;
|
431
|
+
handleMultipleChange: (dirct: any) => void;
|
432
|
+
handleItemChecked: (dirct: any) => void;
|
433
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], "change" | "update:targetList", {
|
338
434
|
title: string[];
|
339
435
|
extCls: string;
|
436
|
+
multiple: boolean;
|
340
437
|
displayKey: string;
|
438
|
+
searchPlaceholder: string;
|
341
439
|
sortable: boolean;
|
342
440
|
settingKey: string;
|
343
|
-
|
441
|
+
sortKey: string;
|
344
442
|
showOverflowTips: boolean;
|
345
443
|
searchable: boolean;
|
346
|
-
|
347
|
-
|
348
|
-
targetList: unknown[];
|
444
|
+
sourceList: any[];
|
445
|
+
targetList: any[];
|
349
446
|
emptyContent: string[];
|
350
447
|
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
351
448
|
export default Transfer;
|
package/lib/transfer/index.js
CHANGED
@@ -1 +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 l(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return a[e](r,r.exports,l),r.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var r in t)l.o(t,r)&&!l.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{l.r(u),l.d(u,{default:()=>v});var e=l(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=[],l=!0,u=!1;try{for(r=r.call(e);!(l=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{l||null==r.return||r.return()}finally{if(u)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=l(748),i=l(7685),s=l(8133),c=l.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 l=r.emit,u=[],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([])),l("change",v.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}))}));v.value=a(s),l("change",v.value,a(N(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=[],l("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(N(d.value));l("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])})),(u=[].concat(n)).length===t.sourceList.length){var o=a(v.value);v.value=a(T(o,i,u))}}},V=function(){var e=v.value,t=y.value?d.value:a(N(d.value,!1)),r=y.value?a(N(d.value)):[];l("change",e,t,r)},N=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 l=n(o[a],2),u=l[0],i=l[1];u===g.value&&r.push(i)}else r.push(e.value)})),r},T=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)})),u.length===t.sourceList.length?d.value=a(T(r,i,u)):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),u.length===t.sourceList.length?v.value=a(T(r,i,u)):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],l=n?d.value:v.value;l.push(o),n&&A(o);var s=u.length===t.sourceList.length?a(T(l,i,u)):a(l);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,l=t.searchable,u=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?"全部添加":"清空"])])},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,u=r?"source-option":"target-option",i=r?"left-empty-content":"right-empty-content";return n.length?(0,o.createVNode)("ul",{class:["content",l&&r?"is-search":""]},[n.map((function(t,n){var a,l,i;return(0,o.createVNode)("li",{key:n,class:[e.$slots[u]?"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===(l=(a=e.$slots)[u])||void 0===l?void 0:l.call(a,t))&&void 0!==i?i:f(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"),l&&(0,o.createVNode)(c(),{modelValue:e.keyword,"onUpdate:modelValue":function(t){return e.keyword=t},class:"transfer-search-input",clearable:!0,placeholder:u||"请输入搜索关键字",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)})(),u})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../checkbox"),require("../config-provider"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../checkbox","../config-provider","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../checkbox"),require("../config-provider"),require("../icon/"),require("../input")):t(e["../shared"],e.vue,e["../checkbox"],e["../config-provider"],e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,l,o)=>(()=>{"use strict";var a={5800:e=>{e.exports=r},2717:e=>{e.exports=n},7685:e=>{e.exports=l},8133:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{c.r(i),c.d(i,{default:()=>h});var e=c(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n,l=c(748),o=c(5800),a=c.n(o),u=c(2717),s=c(7685),d=c(8133),f=c.n(d);!function(e){e.OBJECT_ARRAY="objectArray",e.BASE_ARRAY="baseArray",e.NOT_ARRAY="notArray"}(n||(n={}));var p={title:e.PropTypes.arrayOf(e.PropTypes.string).def([]),extCls:e.PropTypes.string.def(""),searchPlaceholder:e.PropTypes.string.def(""),settingKey:e.PropTypes.string.def("id"),displayKey:e.PropTypes.string.def("value"),sortKey:e.PropTypes.string.def("value"),showOverflowTips:e.PropTypes.bool.def(!1),searchable:e.PropTypes.bool.def(!1),sortable:e.PropTypes.bool.def(!1),sourceList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),targetList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),emptyContent:e.PropTypes.arrayOf(e.PropTypes.string).def([]),multiple:e.PropTypes.bool.def(!1)};const v=(0,l.defineComponent)({name:"Transfer",props:p,emits:["change","update:targetList"],setup:function(e,t){var o=t.emit,a=(0,u.useLocale)("transfer"),c=(0,l.ref)({source:!1,target:!1}),i=(0,l.ref)({source:[],target:[]}),s=(0,l.computed)((function(){return Array.isArray(e.sourceList)?e.sourceList.every((function(e){return e.toString().includes("[object Object]")}))?n.OBJECT_ARRAY:n.BASE_ARRAY:n.NOT_ARRAY})),d=(0,l.computed)((function(){return s.value===n.BASE_ARRAY?"value":e.settingKey})),f=(0,l.computed)((function(){return s.value===n.BASE_ARRAY?"value":e.displayKey})),p=(0,l.computed)((function(){return e.sortKey||f.value})),v=(0,l.computed)((function(){switch(s.value){case n.BASE_ARRAY:return r(new Set(e.sourceList)).map((function(e){return{value:e}}));case n.OBJECT_ARRAY:return r(e.sourceList);default:return[]}})),h=(0,l.toRefs)(e).targetList,y=function(e,t,r){var n=(0,l.ref)([]),o=(0,l.ref)([]),a=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(n.value=[],o.value=[]),e.value.forEach((function(e){var l=e[r.value];t.value.includes(l)?o.value.push(e):n.value.push(e)}))};return a(),(0,l.watch)((function(){return[e,t,r]}),(function(){a(!0)}),{deep:!0}),{selectList:n,selectedList:o}}(v,h,d),m=y.selectList,g=y.selectedList,b=function(e,t){var r=(0,l.ref)(""),n=(0,l.computed)((function(){return e.value.filter((function(e){var n=e[t.value];return!(n instanceof Object)&&n.toString().includes(r.value)}))}));return{selectSearchQuery:r,selectListSearch:n}}(m,f),A=b.selectSearchQuery,S=b.selectListSearch,V=(0,l.computed)((function(){return r(S.value).sort((function(e,t){return e[p.value]>t[p.value]?1:-1}))})),L=(0,l.computed)((function(){return r(g.value).sort((function(e,t){return e[p.value]>t[p.value]?1:-1}))}));(0,l.watch)((function(){return[m,g]}),(function(){e.multiple||T()}),{deep:!0});var N=function(e,t){var r=d.value;return e.some((function(e){return e[r]===t[r]}))&&t.disabled},T=function(){var e=m.value.map((function(e){return e[d.value]})),t=g.value.map((function(e){return e[d.value]}));o("update:targetList",t),o("change",s.value===n.BASE_ARRAY?e:m.value.map((function(e){return(0,l.toRaw)(e)})),s.value===n.BASE_ARRAY?t:g.value.map((function(e){return(0,l.toRaw)(e)})),t)};return{selectSearchQuery:A,selectListSearch:S,selectedList:g,selectListSort:V,selectedListSort:L,settingCode:d,displayCode:f,allToRight:function(){m.value=r(v.value.filter((function(e){return N(m.value,e)}))),g.value=r(v.value.filter((function(e){return!N(m.value,e)}))),T()},allToLeft:function(){m.value=r(v.value.filter((function(e){return!N(g.value,e)}))),g.value=r(v.value.filter((function(e){return N(g.value,e)}))),T()},handleItemClick:function(e,t){var n;if(!e.disabled){var l=e[d.value],o=t?m:g,a=t?g:m,u=o.value.findIndex((function(e){return e[d.value]===l}));(n=a.value).push.apply(n,r(o.value.splice(u,1))),T()}},t:a,handleAllChecked:function(e,t){var r="source"===t?m:g;i.value[t]=e?r.value.map((function(e){return e[d.value]})):[]},multipleSelectAllValue:c,multipleSelectList:i,handleMultipleChange:function(e){var t,n="left"===e,l=n?m:g,o=n?g:m,a=i.value[n?"source":"target"],u=l.value.filter((function(e){return a.includes(e[d.value])}));l.value=l.value.filter((function(e){return!a.includes(e[d.value])})),(t=o.value).push.apply(t,r(u)),i.value[n?"source":"target"]=[],T()},handleItemChecked:function(e){var t="source"===e?m:g;c.value[e]=i.value[e].length===t.value.length}}},render:function(){var e=this,t=this.$props.multiple,r=this.sortable?this.selectListSort:this.selectListSearch,n=this.sortable?this.selectedListSort:this.selectedList,u=function(t){var o,u,c="left-header"===t,i=c?"source":"target",s="".concat(c?null!==(o=e.title[0])&&void 0!==o?o:e.t.sourceList:null!==(u=e.title[1])&&void 0!==u?u:e.t.targetList),d=c?!r.length:!n.length,f=!!e.multipleSelectList[i].length&&!e.multipleSelectAllValue[i],p=e.multipleSelectList[i].length;return e.$slots[t]?(0,l.createVNode)("div",{class:"slot-header"},[e.$slots[t]()]):(0,l.createVNode)("div",{class:"header"},[e.multiple?(0,l.createVNode)(a(),{class:"header-checkbox",label:s,modelValue:e.multipleSelectAllValue[i],"onUpdate:modelValue":function(t){return e.multipleSelectAllValue[i]=t},indeterminate:f,onChange:function(t){return e.handleAllChecked(t,i)}},null):(0,l.createVNode)(l.Fragment,null,["".concat(s,"(").concat(c?r.length:n.length,")")]),e.multiple?(0,l.createVNode)("div",{class:"select-total-count"},[(0,l.createVNode)("span",{class:"select-count"},[p]),(0,l.createVNode)("span",{class:"count-delimiter"},[(0,l.createTextVNode)("/")]),(0,l.createVNode)("span",{class:"total-count"},[c?r.length:n.length])]):(0,l.createVNode)("span",{class:{"select-all":!0,disabled:d},onClick:function(){d||(c?e.allToRight():e.allToLeft())}},[c?e.t.selectAll:e.t.removeAll])])},c=function(r){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,l.createVNode)("div",{class:["item-content",{"is-disabled":r.disabled}]},[(0,l.createVNode)("span",{class:"content-text",title:r[e.displayCode]},[r[e.displayCode]]),!t&&(0,l.createVNode)("span",{class:"icon-wrapper"},[n?(0,l.createVNode)(s.ArrowsRight,{class:"bk-icon icon-move"},null):(0,l.createVNode)(s.Error,{class:"bk-icon icon-delete"},null)])])},i=function(u){var i,s,d="left"===u,f="left"===u?"source":"target",p=d?r:n,v=d?"source-option":"target-option",h=d?"left-empty-content":"right-empty-content",y=t?(0,l.createVNode)(o.BkCheckboxGroup,{class:"content is-flex",modelValue:e.multipleSelectList[f],"onUpdate:modelValue":function(t){return e.multipleSelectList[f]=t},onChange:function(){return e.handleItemChecked(f)}},"function"==typeof(s=i=p.map((function(t){var r,n,o;return(0,l.createVNode)("div",null,[(0,l.createVNode)(a(),{class:"checkbox-item",label:t[e.settingCode]},{default:function(){return[null!==(o=null===(n=(r=e.$slots)[v])||void 0===n?void 0:n.call(r,t))&&void 0!==o?o:c(t,d)]}})])})))||"[object Object]"===Object.prototype.toString.call(s)&&!(0,l.isVNode)(s)?i:{default:function(){return[i]}}):(0,l.createVNode)("ul",{class:["content",e.searchable&&d?"is-search":""]},[p.map((function(t){var r,n,o;return(0,l.createVNode)("li",{key:t[e.settingCode],class:[e.$slots[v]?"custom-item":""],onClick:function(){return e.handleItemClick(t,d)}},[null!==(o=null===(n=(r=e.$slots)[v])||void 0===n?void 0:n.call(r,t))&&void 0!==o?o:c(t,d)])}))]);return p.length?y:function(t){var r,n="left-empty-content"===t,o=null!==(r=n?e.emptyContent[0]:e.emptyContent[1])&&void 0!==r?r:n?e.t.noData:e.t.noSelected;return e.$slots[t]?(0,l.createVNode)("div",null,[e.$slots[t]()]):(0,l.createVNode)("div",{class:"empty"},[o])}(h)};return(0,l.createVNode)("div",{class:["bk-transfer",this.extCls]},[(0,l.createVNode)("div",{class:"source-list"},[u("left-header"),this.searchable&&(0,l.createVNode)(f(),{modelValue:e.selectSearchQuery,"onUpdate:modelValue":function(t){return e.selectSearchQuery=t},class:"transfer-search-input",clearable:!0,placeholder:this.searchPlaceholder||this.t.search},{prefix:function(){return(0,l.createVNode)(s.Search,{class:"icon-search"},null)}}),i("left")]),t?(0,l.createVNode)("div",{class:"transfer-button-group"},[(0,l.createVNode)("div",{class:["transfer-button",{disabled:!this.multipleSelectList.source.length}],onClick:function(){return e.handleMultipleChange("left")}},[(0,l.createVNode)(s.AngleRight,null,null)]),(0,l.createVNode)("div",{class:["transfer-button",{disabled:!this.multipleSelectList.target.length}],onClick:function(){return e.handleMultipleChange("right")}},[(0,l.createVNode)(s.AngleLeft,null,null)])]):(0,l.createVNode)(s.Transfer,{class:"transfer"},null),(0,l.createVNode)("div",{class:"target-list"},[u("right-header"),i("right")])])}}),h=(0,e.withInstall)(v)})(),i})()));
|