bkui-vue 0.0.1-beta.4 → 0.0.1-beta.400
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/README.md +31 -19
- package/dist/index.cjs.js +182 -0
- package/dist/index.esm.js +39613 -0
- package/dist/index.umd.js +182 -0
- package/dist/style.css +1 -2009
- 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 +123 -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 +27 -18
- package/lib/alert/alert.less +29 -20
- package/lib/alert/alert.variable.css +71 -6
- 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.css +8 -0
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +70 -3
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +7 -10
- package/lib/badge/badge.d.ts +64 -22
- package/lib/badge/badge.less +9 -11
- package/lib/badge/badge.variable.css +69 -13
- package/lib/badge/index.d.ts +267 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +16 -10
- package/lib/breadcrumb/breadcrumb.css +61 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +125 -6
- package/lib/breadcrumb/index.d.ts +196 -0
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +4 -6
- package/lib/button/button.css +92 -45
- package/lib/button/button.d.ts +86 -37
- package/lib/button/button.less +91 -50
- package/lib/button/button.variable.css +154 -48
- package/lib/button/index.d.ts +256 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +74 -18
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +162 -8
- package/lib/card/index.d.ts +283 -0
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +100 -0
- package/lib/cascader/cascader.css +173 -0
- package/lib/cascader/cascader.d.ts +303 -0
- package/lib/cascader/cascader.less +196 -0
- package/lib/cascader/cascader.variable.css +293 -0
- package/lib/cascader/index.d.ts +868 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +23 -0
- package/lib/checkbox/checkbox-group.d.ts +29 -9
- package/lib/checkbox/checkbox.css +46 -10
- package/lib/checkbox/checkbox.d.ts +60 -39
- package/lib/checkbox/checkbox.less +79 -31
- package/lib/checkbox/checkbox.variable.css +108 -13
- package/lib/checkbox/common.d.ts +4 -3
- package/lib/checkbox/index.d.ts +293 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +9 -12
- package/lib/code-diff/code-diff.css +206 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +273 -0
- package/lib/code-diff/code-diff.variable.css +326 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +78 -0
- package/lib/collapse/collapse.css +29 -5
- package/lib/collapse/collapse.d.ts +34 -43
- package/lib/collapse/collapse.less +55 -20
- package/lib/collapse/collapse.variable.css +149 -5
- package/lib/collapse/index.d.ts +273 -0
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +84 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +395 -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 +61 -0
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +211 -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/picker-dropdown.d.ts +74 -0
- package/lib/date-picker/base/time-spinner.d.ts +151 -0
- package/lib/date-picker/date-picker.css +434 -0
- package/lib/date-picker/date-picker.d.ts +323 -0
- package/lib/date-picker/date-picker.less +558 -0
- package/lib/date-picker/date-picker.variable.css +554 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +780 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +32 -0
- package/lib/date-picker/panel/date-range.d.ts +309 -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 +161 -0
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +117 -0
- package/lib/dialog/dialog.css +144 -22
- package/lib/dialog/dialog.d.ts +279 -51
- package/lib/dialog/dialog.less +105 -32
- package/lib/dialog/dialog.variable.css +264 -22
- package/lib/dialog/index.d.ts +722 -0
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +130 -0
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +5 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +18 -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 +158 -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 +49 -0
- package/lib/dropdown/dropdown.d.ts +93 -0
- package/lib/dropdown/dropdown.less +67 -0
- package/lib/dropdown/dropdown.variable.css +169 -0
- package/lib/dropdown/index.d.ts +256 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +37 -15
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +102 -17
- package/lib/exception/index.d.ts +113 -0
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +62 -3
- package/lib/fixed-navbar/index.d.ts +147 -0
- 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 +160 -0
- package/lib/form/form.css +137 -0
- package/lib/form/form.d.ts +88 -0
- package/lib/form/form.less +170 -0
- package/lib/form/form.variable.css +257 -0
- package/lib/form/index.d.ts +319 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +22 -0
- package/lib/form/utils.d.ts +2 -0
- package/lib/form/validator.d.ts +9 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +1 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +1 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +1 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +1 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +1 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +1 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +1 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +1 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +1 -0
- package/lib/icon/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.d.ts +4 -0
- package/lib/icon/close.js +1 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +1 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +1 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +1 -0
- package/lib/icon/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.d.ts +4 -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/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.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.d.ts +4 -0
- package/lib/icon/eye.js +1 -0
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +1 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +1 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +1 -0
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -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 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/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.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/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/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.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/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/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 +4 -0
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +6 -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 +26 -0
- package/lib/info-box/info-box.less +51 -0
- package/lib/info-box/info-box.variable.css +157 -0
- package/lib/input/index.d.ts +528 -0
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +235 -16
- package/lib/input/input.d.ts +203 -51
- package/lib/input/input.less +183 -19
- package/lib/input/input.variable.css +319 -41
- package/lib/link/index.d.ts +172 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +30 -16
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +74 -15
- package/lib/loading/index.d.ts +257 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +178 -98
- package/lib/loading/loading.d.ts +130 -23
- package/lib/loading/loading.less +85 -73
- package/lib/loading/loading.variable.css +248 -109
- package/lib/menu/index.d.ts +180 -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 +233 -0
- package/lib/menu/menu.d.ts +55 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +353 -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 +123 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +74 -0
- package/lib/message/message.less +87 -0
- package/lib/message/message.variable.css +194 -0
- package/lib/message/messageConstructor.d.ts +109 -0
- package/lib/modal/index.d.ts +592 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +186 -24
- package/lib/modal/modal.less +39 -3
- package/lib/modal/modal.variable.css +183 -1
- package/lib/modal/props.mixin.d.ts +75 -10
- package/lib/navigation/index.d.ts +311 -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 +120 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +304 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +69 -0
- package/lib/notify/notify.less +81 -0
- package/lib/notify/notify.variable.css +189 -0
- package/lib/notify/notifyConstructor.d.ts +132 -0
- package/lib/overflow-title/components/OverflowTitle.d.ts +38 -0
- package/lib/overflow-title/directive/overflowTitle.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +129 -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 +16 -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 +410 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +205 -0
- package/lib/pagination/pagination.d.ts +230 -0
- package/lib/pagination/pagination.less +230 -0
- package/lib/pagination/pagination.variable.css +325 -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/{changelog.config.js → lib/plugin-popover/index.d.ts} +2 -8
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/popover/arrow.d.ts +2 -0
- package/lib/popover/const.d.ts +16 -0
- package/lib/popover/content.d.ts +32 -0
- package/lib/popover/index.d.ts +653 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +12 -43
- package/lib/popover/popover.d.ts +234 -45
- package/lib/popover/popover.less +17 -53
- package/lib/popover/popover.variable.css +74 -46
- package/lib/popover/props.d.ts +146 -0
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +16 -0
- package/lib/popover/use-floating.d.ts +31 -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 +2 -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 +7 -0
- 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 +151 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +195 -0
- package/lib/process/process.variable.css +271 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -3
- package/lib/progress/progress.d.ts +92 -39
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +117 -10
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +288 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +30 -23
- package/lib/radio/radio-group.d.ts +27 -10
- package/lib/radio/radio.css +48 -41
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +177 -166
- package/lib/radio/radio.variable.css +114 -48
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +136 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +25 -11
- 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 +177 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +217 -0
- package/lib/resize-layout/resize-layout.variable.css +297 -0
- package/lib/search-select/index.d.ts +823 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +89 -0
- package/lib/search-select/menu.d.ts +83 -0
- package/lib/search-select/search-select.css +424 -0
- package/lib/search-select/search-select.d.ts +342 -0
- package/lib/search-select/search-select.less +380 -0
- package/lib/search-select/search-select.variable.css +544 -0
- package/lib/search-select/selected.d.ts +143 -0
- package/lib/search-select/utils.d.ts +88 -0
- package/lib/select/common.d.ts +20 -21
- package/lib/select/index.d.ts +2035 -0
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +22 -21
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +333 -34
- package/lib/select/select.d.ts +660 -189
- package/lib/select/select.less +398 -81
- package/lib/select/select.variable.css +395 -37
- package/lib/select/selectTagInput.d.ts +93 -0
- package/lib/select/type.d.ts +39 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +15 -1
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +74 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +36 -3
- package/lib/shared/pop-manager.d.ts +38 -0
- package/lib/shared/popover.d.ts +131 -0
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +25 -0
- package/lib/shared/vue-types.d.ts +113 -14
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +477 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +55 -10
- package/lib/sideslider/sideslider.d.ts +178 -29
- package/lib/sideslider/sideslider.less +72 -13
- package/lib/sideslider/sideslider.variable.css +117 -13
- package/lib/slider/index.d.ts +440 -0
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider-button.d.ts +81 -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 +269 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +300 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +345 -0
- package/lib/steps/steps.variable.css +420 -0
- package/lib/styles/index.d.ts +53 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +53 -0
- package/lib/styles/mixins/popper.variable.css +163 -0
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +137 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +309 -0
- package/lib/styles/reset.less +337 -0
- package/lib/styles/reset.variable.css +309 -0
- package/lib/styles/themes/themes.less +91 -5
- 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 +298 -0
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +200 -135
- package/lib/switcher/switcher.d.ts +60 -38
- package/lib/switcher/switcher.less +190 -155
- package/lib/switcher/switcher.variable.css +273 -149
- package/lib/tab/index.d.ts +439 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +213 -0
- package/lib/tab/tab-nav.d.ts +169 -0
- package/lib/tab/tab-panel.d.ts +68 -0
- package/lib/tab/tab.css +223 -0
- package/lib/tab/tab.d.ts +139 -0
- package/lib/tab/tab.less +285 -0
- package/lib/tab/tab.variable.css +343 -0
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +38 -0
- package/lib/table/components/table-column.d.ts +137 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +122 -0
- package/lib/table/index.d.ts +1141 -0
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +40 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +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 +204 -0
- package/lib/table/plugins/head-sort.css +25 -0
- package/lib/table/plugins/head-sort.d.ts +22 -0
- package/lib/table/plugins/head-sort.less +31 -0
- package/lib/table/plugins/head-sort.variable.css +145 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +145 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +179 -0
- package/lib/table/plugins/settings.variable.css +265 -0
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +12 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +434 -0
- package/lib/table/render.d.ts +125 -0
- package/lib/table/table.css +1272 -0
- package/lib/table/table.d.ts +315 -32
- package/lib/table/table.less +361 -1
- package/lib/table/table.variable.css +1334 -3
- package/lib/table/use-column.d.ts +11 -0
- package/lib/table/use-common.d.ts +98 -0
- package/lib/table/utils.d.ts +129 -0
- package/lib/table-column/index.d.ts +325 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +130 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +146 -2
- package/lib/tag/tag.variable.css +192 -3
- package/lib/tag-input/common.d.ts +36 -0
- package/lib/tag-input/index.d.ts +1349 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +44 -0
- package/lib/tag-input/tag-input.css +205 -0
- package/lib/tag-input/tag-input.d.ts +619 -0
- package/lib/tag-input/tag-input.less +248 -0
- package/lib/tag-input/tag-input.variable.css +325 -0
- package/lib/tag-input/tag-props.d.ts +252 -0
- package/lib/tag-input/tag-render.d.ts +64 -0
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +335 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +242 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +252 -0
- package/lib/timeline/timeline.variable.css +362 -0
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +365 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +161 -0
- package/lib/transfer/transfer.d.ts +160 -0
- package/lib/transfer/transfer.less +151 -0
- package/lib/transfer/transfer.variable.css +281 -0
- package/lib/tree/constant.d.ts +62 -0
- package/lib/tree/index.d.ts +647 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +213 -0
- package/lib/tree/tree.css +218 -0
- package/lib/tree/tree.d.ts +283 -0
- package/lib/tree/tree.less +114 -0
- package/lib/tree/tree.variable.css +338 -0
- 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 +68 -0
- 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 +547 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +602 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +172 -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 +266 -0
- package/lib/virtual-render/virtual-render.less +22 -0
- package/lib/virtual-render/virtual-render.variable.css +153 -0
- package/lib/volar.components.d.ts +101 -0
- package/package.json +113 -83
- package/LICENSE.txt +0 -22
- package/dist/bkui-vue.cjs.js +0 -4887
- package/dist/bkui-vue.esm.js +0 -4883
- package/dist/bkui-vue.umd.js +0 -4890
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.js +0 -1
- package/lib/shared/bk-pop-manager.d.ts +0 -19
- package/lib/shared/bk-popover.d.ts +0 -76
- 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,342 @@
|
|
1
|
+
import { PropType, ShallowRef } from 'vue';
|
2
|
+
import { GetMenuListFunc, ICommonItem, ISearchItem, ISearchValue, SearchItemType, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
3
|
+
export declare const SearchSelectProps: {
|
4
|
+
data: {
|
5
|
+
type: PropType<ISearchItem[]>;
|
6
|
+
default: () => any[];
|
7
|
+
};
|
8
|
+
modelValue: {
|
9
|
+
type: PropType<ISearchValue[]>;
|
10
|
+
default: () => any[];
|
11
|
+
};
|
12
|
+
shrink: {
|
13
|
+
type: BooleanConstructor;
|
14
|
+
default: boolean;
|
15
|
+
};
|
16
|
+
maxHeight: {
|
17
|
+
type: NumberConstructor;
|
18
|
+
default: number;
|
19
|
+
};
|
20
|
+
minHeight: {
|
21
|
+
type: NumberConstructor;
|
22
|
+
default: number;
|
23
|
+
};
|
24
|
+
conditions: {
|
25
|
+
type: PropType<ICommonItem[]>;
|
26
|
+
default: () => {
|
27
|
+
id: string;
|
28
|
+
name: string;
|
29
|
+
}[];
|
30
|
+
};
|
31
|
+
clearable: {
|
32
|
+
type: BooleanConstructor;
|
33
|
+
default: boolean;
|
34
|
+
};
|
35
|
+
getMenuList: PropType<GetMenuListFunc>;
|
36
|
+
validateValues: PropType<ValidateValuesFunc>;
|
37
|
+
valueSplitCode: {
|
38
|
+
type: StringConstructor;
|
39
|
+
default: string;
|
40
|
+
};
|
41
|
+
uniqueSelect: {
|
42
|
+
type: BooleanConstructor;
|
43
|
+
default: boolean;
|
44
|
+
};
|
45
|
+
valueBehavior: {
|
46
|
+
type: PropType<ValueBehavior>;
|
47
|
+
default: ValueBehavior;
|
48
|
+
validator(v: ValueBehavior): boolean;
|
49
|
+
};
|
50
|
+
};
|
51
|
+
declare const _default: import("vue").DefineComponent<{
|
52
|
+
data: {
|
53
|
+
type: PropType<ISearchItem[]>;
|
54
|
+
default: () => any[];
|
55
|
+
};
|
56
|
+
modelValue: {
|
57
|
+
type: PropType<ISearchValue[]>;
|
58
|
+
default: () => any[];
|
59
|
+
};
|
60
|
+
shrink: {
|
61
|
+
type: BooleanConstructor;
|
62
|
+
default: boolean;
|
63
|
+
};
|
64
|
+
maxHeight: {
|
65
|
+
type: NumberConstructor;
|
66
|
+
default: number;
|
67
|
+
};
|
68
|
+
minHeight: {
|
69
|
+
type: NumberConstructor;
|
70
|
+
default: number;
|
71
|
+
};
|
72
|
+
conditions: {
|
73
|
+
type: PropType<ICommonItem[]>;
|
74
|
+
default: () => {
|
75
|
+
id: string;
|
76
|
+
name: string;
|
77
|
+
}[];
|
78
|
+
};
|
79
|
+
clearable: {
|
80
|
+
type: BooleanConstructor;
|
81
|
+
default: boolean;
|
82
|
+
};
|
83
|
+
getMenuList: PropType<GetMenuListFunc>;
|
84
|
+
validateValues: PropType<ValidateValuesFunc>;
|
85
|
+
valueSplitCode: {
|
86
|
+
type: StringConstructor;
|
87
|
+
default: string;
|
88
|
+
};
|
89
|
+
uniqueSelect: {
|
90
|
+
type: BooleanConstructor;
|
91
|
+
default: boolean;
|
92
|
+
};
|
93
|
+
valueBehavior: {
|
94
|
+
type: PropType<ValueBehavior>;
|
95
|
+
default: ValueBehavior;
|
96
|
+
validator(v: ValueBehavior): boolean;
|
97
|
+
};
|
98
|
+
}, {
|
99
|
+
inputRef: import("vue").Ref<import("vue").DefineComponent<{
|
100
|
+
data: {
|
101
|
+
type: PropType<ISearchItem[]>;
|
102
|
+
required: true;
|
103
|
+
};
|
104
|
+
showInputBefore: BooleanConstructor;
|
105
|
+
showCondition: BooleanConstructor;
|
106
|
+
clickOutside: FunctionConstructor;
|
107
|
+
conditions: {
|
108
|
+
type: PropType<ICommonItem[]>;
|
109
|
+
default: () => any[];
|
110
|
+
};
|
111
|
+
defautUsingItem: PropType<SelectedItem>;
|
112
|
+
mode: {
|
113
|
+
type: PropType<import("./utils").SearchInputMode>;
|
114
|
+
default: import("./utils").SearchInputMode;
|
115
|
+
};
|
116
|
+
getMenuList: PropType<GetMenuListFunc>;
|
117
|
+
validateValues: PropType<ValidateValuesFunc>;
|
118
|
+
valueBehavior: PropType<ValueBehavior>;
|
119
|
+
}, {
|
120
|
+
popoverRef: import("vue").Ref<HTMLDivElement>;
|
121
|
+
inputRef: import("vue").Ref<HTMLDivElement>;
|
122
|
+
keyword: import("vue").Ref<string>;
|
123
|
+
loading: import("vue").Ref<boolean>;
|
124
|
+
remoteMenuList: import("vue").Ref<{
|
125
|
+
id: string;
|
126
|
+
name: string;
|
127
|
+
disabled?: boolean;
|
128
|
+
realId?: string;
|
129
|
+
value?: {
|
130
|
+
name: string;
|
131
|
+
id: string;
|
132
|
+
realId?: string;
|
133
|
+
isSelected?: boolean;
|
134
|
+
};
|
135
|
+
isSelected?: boolean;
|
136
|
+
}[]>;
|
137
|
+
menuList: import("vue").Ref<ISearchItem[]>;
|
138
|
+
menuHoverId: import("vue").Ref<string>;
|
139
|
+
isFocus: import("vue").Ref<boolean>;
|
140
|
+
usingItem: import("vue").Ref<SelectedItem>;
|
141
|
+
showPopover: import("vue").Ref<boolean>;
|
142
|
+
showNoSelectValueError: import("vue").Ref<boolean>;
|
143
|
+
debounceSetMenuList: {
|
144
|
+
(this: any): any;
|
145
|
+
cancel(): void;
|
146
|
+
};
|
147
|
+
documentArrowEvent: (e: KeyboardEvent) => void;
|
148
|
+
handleClickOutside: (e: MouseEvent) => void;
|
149
|
+
handleInputFocus: (e: FocusEvent) => void;
|
150
|
+
handleInputChange: (event: Event) => void;
|
151
|
+
handleInputKeyup: (event: KeyboardEvent) => void;
|
152
|
+
handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
|
153
|
+
handleSelectCondtionItem: (item: ICommonItem) => void;
|
154
|
+
handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
|
155
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "add" | "delete")[], "focus" | "add" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
156
|
+
data: {
|
157
|
+
type: PropType<ISearchItem[]>;
|
158
|
+
required: true;
|
159
|
+
};
|
160
|
+
showInputBefore: BooleanConstructor;
|
161
|
+
showCondition: BooleanConstructor;
|
162
|
+
clickOutside: FunctionConstructor;
|
163
|
+
conditions: {
|
164
|
+
type: PropType<ICommonItem[]>;
|
165
|
+
default: () => any[];
|
166
|
+
};
|
167
|
+
defautUsingItem: PropType<SelectedItem>;
|
168
|
+
mode: {
|
169
|
+
type: PropType<import("./utils").SearchInputMode>;
|
170
|
+
default: import("./utils").SearchInputMode;
|
171
|
+
};
|
172
|
+
getMenuList: PropType<GetMenuListFunc>;
|
173
|
+
validateValues: PropType<ValidateValuesFunc>;
|
174
|
+
valueBehavior: PropType<ValueBehavior>;
|
175
|
+
}>> & {
|
176
|
+
onFocus?: (...args: any[]) => any;
|
177
|
+
onAdd?: (...args: any[]) => any;
|
178
|
+
onDelete?: (...args: any[]) => any;
|
179
|
+
}, {
|
180
|
+
mode: import("./utils").SearchInputMode;
|
181
|
+
conditions: ICommonItem[];
|
182
|
+
showInputBefore: boolean;
|
183
|
+
showCondition: boolean;
|
184
|
+
}>>;
|
185
|
+
wrapRef: import("vue").Ref<HTMLDivElement>;
|
186
|
+
isFocus: import("vue").Ref<boolean>;
|
187
|
+
copyData: ShallowRef<ISearchItem[]>;
|
188
|
+
selectedList: import("vue").Ref<{
|
189
|
+
id: string;
|
190
|
+
name: string;
|
191
|
+
values: {
|
192
|
+
id: string;
|
193
|
+
name: string;
|
194
|
+
disabled?: boolean;
|
195
|
+
realId?: string;
|
196
|
+
value?: {
|
197
|
+
name: string;
|
198
|
+
id: string;
|
199
|
+
realId?: string;
|
200
|
+
isSelected?: boolean;
|
201
|
+
};
|
202
|
+
isSelected?: boolean;
|
203
|
+
}[];
|
204
|
+
condition: string;
|
205
|
+
searchItem: {
|
206
|
+
id: string;
|
207
|
+
name: string;
|
208
|
+
children?: {
|
209
|
+
id: string;
|
210
|
+
name: string;
|
211
|
+
disabled?: boolean;
|
212
|
+
realId?: string;
|
213
|
+
value?: {
|
214
|
+
name: string;
|
215
|
+
id: string;
|
216
|
+
realId?: string;
|
217
|
+
isSelected?: boolean;
|
218
|
+
};
|
219
|
+
isSelected?: boolean;
|
220
|
+
}[];
|
221
|
+
multiple?: boolean;
|
222
|
+
async?: boolean;
|
223
|
+
noValidate?: boolean;
|
224
|
+
placeholder?: string;
|
225
|
+
disabled?: boolean;
|
226
|
+
value?: {
|
227
|
+
id: string;
|
228
|
+
name: string;
|
229
|
+
disabled?: boolean;
|
230
|
+
realId?: string;
|
231
|
+
value?: {
|
232
|
+
name: string;
|
233
|
+
id: string;
|
234
|
+
realId?: string;
|
235
|
+
isSelected?: boolean;
|
236
|
+
};
|
237
|
+
isSelected?: boolean;
|
238
|
+
};
|
239
|
+
isSelected?: boolean;
|
240
|
+
};
|
241
|
+
type: SearchItemType;
|
242
|
+
splitCode: string;
|
243
|
+
readonly multiple: boolean;
|
244
|
+
readonly placeholder: string;
|
245
|
+
readonly children: {
|
246
|
+
id: string;
|
247
|
+
name: string;
|
248
|
+
disabled?: boolean;
|
249
|
+
realId?: string;
|
250
|
+
value?: {
|
251
|
+
name: string;
|
252
|
+
id: string;
|
253
|
+
realId?: string;
|
254
|
+
isSelected?: boolean;
|
255
|
+
};
|
256
|
+
isSelected?: boolean;
|
257
|
+
}[];
|
258
|
+
readonly validate: boolean;
|
259
|
+
readonly inputInnerHtml: string;
|
260
|
+
readonly inputInnerText: string;
|
261
|
+
readonly keyInnerHtml: string;
|
262
|
+
readonly keyInnerText: string;
|
263
|
+
isSpecialType: () => boolean;
|
264
|
+
addValue: (item: ICommonItem) => void;
|
265
|
+
toValue: () => ISearchValue;
|
266
|
+
toValueKey: () => string;
|
267
|
+
isInValueList: (item: ICommonItem) => boolean;
|
268
|
+
}[]>;
|
269
|
+
overflowIndex: import("vue").Ref<number>;
|
270
|
+
validateStr: import("vue").Ref<string>;
|
271
|
+
splitCode: import("vue").ComputedRef<string>;
|
272
|
+
onEditClick: (item: SelectedItem, index: number) => void;
|
273
|
+
onEditEnter: (item: SelectedItem, index: number) => void;
|
274
|
+
handleWrapClick: () => void;
|
275
|
+
handleInputFocus: (v: boolean) => void;
|
276
|
+
handleResize: () => void;
|
277
|
+
handleClearAll: () => void;
|
278
|
+
handleInputOutside: (target: Node) => boolean;
|
279
|
+
handleAddSelected: (item: SelectedItem) => void;
|
280
|
+
handleDeleteSelected: (index?: number) => void;
|
281
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
282
|
+
data: {
|
283
|
+
type: PropType<ISearchItem[]>;
|
284
|
+
default: () => any[];
|
285
|
+
};
|
286
|
+
modelValue: {
|
287
|
+
type: PropType<ISearchValue[]>;
|
288
|
+
default: () => any[];
|
289
|
+
};
|
290
|
+
shrink: {
|
291
|
+
type: BooleanConstructor;
|
292
|
+
default: boolean;
|
293
|
+
};
|
294
|
+
maxHeight: {
|
295
|
+
type: NumberConstructor;
|
296
|
+
default: number;
|
297
|
+
};
|
298
|
+
minHeight: {
|
299
|
+
type: NumberConstructor;
|
300
|
+
default: number;
|
301
|
+
};
|
302
|
+
conditions: {
|
303
|
+
type: PropType<ICommonItem[]>;
|
304
|
+
default: () => {
|
305
|
+
id: string;
|
306
|
+
name: string;
|
307
|
+
}[];
|
308
|
+
};
|
309
|
+
clearable: {
|
310
|
+
type: BooleanConstructor;
|
311
|
+
default: boolean;
|
312
|
+
};
|
313
|
+
getMenuList: PropType<GetMenuListFunc>;
|
314
|
+
validateValues: PropType<ValidateValuesFunc>;
|
315
|
+
valueSplitCode: {
|
316
|
+
type: StringConstructor;
|
317
|
+
default: string;
|
318
|
+
};
|
319
|
+
uniqueSelect: {
|
320
|
+
type: BooleanConstructor;
|
321
|
+
default: boolean;
|
322
|
+
};
|
323
|
+
valueBehavior: {
|
324
|
+
type: PropType<ValueBehavior>;
|
325
|
+
default: ValueBehavior;
|
326
|
+
validator(v: ValueBehavior): boolean;
|
327
|
+
};
|
328
|
+
}>> & {
|
329
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
330
|
+
}, {
|
331
|
+
data: ISearchItem[];
|
332
|
+
maxHeight: number;
|
333
|
+
minHeight: number;
|
334
|
+
clearable: boolean;
|
335
|
+
modelValue: ISearchValue[];
|
336
|
+
conditions: ICommonItem[];
|
337
|
+
valueBehavior: ValueBehavior;
|
338
|
+
valueSplitCode: string;
|
339
|
+
shrink: boolean;
|
340
|
+
uniqueSelect: boolean;
|
341
|
+
}>;
|
342
|
+
export default _default;
|
@@ -0,0 +1,380 @@
|
|
1
|
+
/* stylelint-disable declaration-no-important */
|
2
|
+
@import '../styles/themes/themes.less';
|
3
|
+
@import '../styles/mixins/mixins.less';
|
4
|
+
|
5
|
+
|
6
|
+
@search-select-name: ~'@{bk-prefix}-search-select';
|
7
|
+
|
8
|
+
|
9
|
+
.@{search-select-name} {
|
10
|
+
position: relative;
|
11
|
+
z-index: 9;
|
12
|
+
height: @component-size-base;
|
13
|
+
overflow: inherit;
|
14
|
+
|
15
|
+
.focus {
|
16
|
+
color: @search-select-focus-color;
|
17
|
+
background: #fff !important;
|
18
|
+
border-color: @search-select-focus-border-color !important;
|
19
|
+
}
|
20
|
+
|
21
|
+
.div-input {
|
22
|
+
height: 100%;
|
23
|
+
padding: 5px 0;
|
24
|
+
line-height: 20px;
|
25
|
+
word-break: break-all;
|
26
|
+
flex: 1 1 auto;
|
27
|
+
|
28
|
+
&:focus {
|
29
|
+
outline: none;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
&-container {
|
34
|
+
position: relative;
|
35
|
+
display: flex;
|
36
|
+
min-height: 30px;
|
37
|
+
overflow: hidden;
|
38
|
+
font-size: 12px;
|
39
|
+
color: @search-select-font-color;
|
40
|
+
border: @border-width-base @border-style-base @border-style-color;
|
41
|
+
border-radius: @border-radius-base;
|
42
|
+
outline: none;
|
43
|
+
box-sizing: border-box;
|
44
|
+
transition: border .2s linear;
|
45
|
+
resize: none;
|
46
|
+
flex-direction: row;
|
47
|
+
align-items: center;
|
48
|
+
flex-wrap: wrap;
|
49
|
+
|
50
|
+
&.is-focus {
|
51
|
+
overflow: auto;
|
52
|
+
.focus();
|
53
|
+
|
54
|
+
// .search-container-selected {
|
55
|
+
// margin-bottom: 2p;
|
56
|
+
// }
|
57
|
+
}
|
58
|
+
|
59
|
+
.search-prefix {
|
60
|
+
flex: 0 0 auto;
|
61
|
+
display: flex;
|
62
|
+
align-items: center;
|
63
|
+
height: 100%;
|
64
|
+
}
|
65
|
+
|
66
|
+
.search-container {
|
67
|
+
position: relative;
|
68
|
+
display: flex;
|
69
|
+
min-height: 26px;
|
70
|
+
padding: 0 2px;
|
71
|
+
margin-top: 4px;
|
72
|
+
overflow: visible;
|
73
|
+
text-align: left;
|
74
|
+
transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
|
75
|
+
flex: 1;
|
76
|
+
flex-wrap: wrap;
|
77
|
+
align-items: center;
|
78
|
+
|
79
|
+
&-selected {
|
80
|
+
position: relative;
|
81
|
+
display: inline-block;
|
82
|
+
max-width: 99%;
|
83
|
+
padding-left: 8px;
|
84
|
+
margin: 0 0 4px 6px;
|
85
|
+
line-height: 22px;
|
86
|
+
color: @search-select-font-color;
|
87
|
+
background: #f0f1f5;
|
88
|
+
border-radius: 2px;
|
89
|
+
flex: 0 0 auto;
|
90
|
+
align-self: center;
|
91
|
+
|
92
|
+
&.hidden-selected {
|
93
|
+
visibility: hidden
|
94
|
+
}
|
95
|
+
|
96
|
+
&.overflow-selected {
|
97
|
+
padding-right: 8px;
|
98
|
+
}
|
99
|
+
|
100
|
+
&:hover {
|
101
|
+
background: #dcdee5;
|
102
|
+
|
103
|
+
.selected-clear {
|
104
|
+
color: @search-select-font-color;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
.selected-name {
|
109
|
+
display: inline-block;
|
110
|
+
margin-right: 20px;
|
111
|
+
word-break: break-all;
|
112
|
+
}
|
113
|
+
|
114
|
+
.selected-clear {
|
115
|
+
position: absolute;
|
116
|
+
top: 4px;
|
117
|
+
right: 3px;
|
118
|
+
display: inline-flex;
|
119
|
+
width: 14px;
|
120
|
+
height: 14px;
|
121
|
+
overflow: hidden;
|
122
|
+
font-size: 14px;
|
123
|
+
line-height: normal;
|
124
|
+
color: #979ba5;
|
125
|
+
text-align: center;
|
126
|
+
cursor: pointer;
|
127
|
+
align-items: center;
|
128
|
+
justify-content: center;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
&-input {
|
133
|
+
position: relative;
|
134
|
+
display: flex;
|
135
|
+
height: 100%;
|
136
|
+
min-width: 40px;
|
137
|
+
padding: 0 10px;
|
138
|
+
margin-top: -4px;
|
139
|
+
color: @search-select-font-color;
|
140
|
+
border: none;
|
141
|
+
flex: 1 1 auto;
|
142
|
+
align-items: center;
|
143
|
+
|
144
|
+
.input-before {
|
145
|
+
&:before {
|
146
|
+
color: @search-select-placeholder-color;
|
147
|
+
content: attr(data-placeholder);
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
.input-after {
|
152
|
+
&:after {
|
153
|
+
padding-left: 2px;
|
154
|
+
color: @search-select-placeholder-color;
|
155
|
+
content: attr(data-tips);
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
.selected-input {
|
161
|
+
position: relative;
|
162
|
+
display: flex;
|
163
|
+
height: 100%;
|
164
|
+
min-width: 40px;
|
165
|
+
padding: 0 10px;
|
166
|
+
margin-top: -4px;
|
167
|
+
color: @search-select-font-color;
|
168
|
+
border: none;
|
169
|
+
align-items: center;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
.search-nextfix {
|
174
|
+
display: flex;
|
175
|
+
color: @light-gray;
|
176
|
+
align-items: center;
|
177
|
+
.search-prefix();
|
178
|
+
|
179
|
+
.search-clear {
|
180
|
+
display: flex;
|
181
|
+
width: 12px;
|
182
|
+
height: 12px;
|
183
|
+
margin-right: 6px;
|
184
|
+
font-size: 12px;
|
185
|
+
color: @light-gray;
|
186
|
+
align-items: center;
|
187
|
+
justify-content: center;
|
188
|
+
|
189
|
+
&:hover {
|
190
|
+
color: #979ba5;
|
191
|
+
cursor: pointer;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
.search-nextfix-icon {
|
196
|
+
display: flex;
|
197
|
+
margin-right: 8px;
|
198
|
+
font-size: 16px;
|
199
|
+
transition: color .2s linear;
|
200
|
+
align-items: center;
|
201
|
+
justify-content: center;
|
202
|
+
|
203
|
+
&.is-focus {
|
204
|
+
.focus();
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
&::-webkit-scrollbar {
|
210
|
+
width: 3px;
|
211
|
+
height: 5px;
|
212
|
+
}
|
213
|
+
|
214
|
+
&::-webkit-scrollbar-thumb {
|
215
|
+
background: #e6e9ea;
|
216
|
+
border-radius: 20px;
|
217
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
&-tips {
|
222
|
+
display: flex;
|
223
|
+
margin-top: 5px;
|
224
|
+
font-size: 12px;
|
225
|
+
line-height: 16px;
|
226
|
+
color: @search-select-message-color;
|
227
|
+
align-items: center;
|
228
|
+
|
229
|
+
.select-tips {
|
230
|
+
display: flex;
|
231
|
+
width: 16px;
|
232
|
+
height: 16px;
|
233
|
+
margin-right: 5px;
|
234
|
+
overflow: hidden;
|
235
|
+
font-size: 16px;
|
236
|
+
align-items: center;
|
237
|
+
justify-content: center;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
.@{search-select-name}-menu {
|
243
|
+
display: flex;
|
244
|
+
min-width: 160px;
|
245
|
+
font-size: 12px;
|
246
|
+
color: @search-select-font-color;
|
247
|
+
flex-direction: column;
|
248
|
+
|
249
|
+
.menu-list-mixin {
|
250
|
+
display: flex;
|
251
|
+
flex-direction: column;
|
252
|
+
}
|
253
|
+
|
254
|
+
.menu-item-mixin {
|
255
|
+
display: flex;
|
256
|
+
align-items: center;
|
257
|
+
width: 100%;
|
258
|
+
height: 32px;
|
259
|
+
padding: 0 12px;
|
260
|
+
flex: 0 0 32px;
|
261
|
+
outline: none;
|
262
|
+
|
263
|
+
&:hover {
|
264
|
+
cursor: pointer;
|
265
|
+
background-color: #f5f7fa;
|
266
|
+
}
|
267
|
+
}
|
268
|
+
|
269
|
+
.menu-disabled-mixin {
|
270
|
+
color: @light-gray;
|
271
|
+
|
272
|
+
&:hover {
|
273
|
+
cursor: not-allowed;
|
274
|
+
background-color: white;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
|
278
|
+
.menu-header {
|
279
|
+
.menu-list-mixin();
|
280
|
+
border-bottom: @border-width-base @border-style-base @border-style-color;
|
281
|
+
|
282
|
+
&-item {
|
283
|
+
.menu-item-mixin();
|
284
|
+
|
285
|
+
&.is-disabled {
|
286
|
+
.menu-disabled-mixin()
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
.menu-content {
|
292
|
+
display: flex;
|
293
|
+
flex-direction: column;
|
294
|
+
flex: 1;
|
295
|
+
max-height: 240px;
|
296
|
+
overflow: auto;
|
297
|
+
|
298
|
+
.menu-item {
|
299
|
+
.menu-item-mixin();
|
300
|
+
white-space: pre;
|
301
|
+
|
302
|
+
.is-keyword {
|
303
|
+
display: inline-flex;
|
304
|
+
color: @primary-color;
|
305
|
+
}
|
306
|
+
|
307
|
+
.is-selected {
|
308
|
+
display: flex;
|
309
|
+
width: 22px;
|
310
|
+
height: 22px;
|
311
|
+
margin-left: auto;
|
312
|
+
overflow: hidden;
|
313
|
+
font-size: 22px;
|
314
|
+
font-weight: bold;
|
315
|
+
color: @primary-color;
|
316
|
+
align-items: center;
|
317
|
+
justify-content: center;
|
318
|
+
}
|
319
|
+
|
320
|
+
&.is-hover {
|
321
|
+
color: @primary-color;
|
322
|
+
background-color: #f5f7fa;
|
323
|
+
|
324
|
+
.menu-name {
|
325
|
+
color: @primary-color;
|
326
|
+
}
|
327
|
+
}
|
328
|
+
|
329
|
+
&.is-disabled {
|
330
|
+
.menu-disabled-mixin();
|
331
|
+
|
332
|
+
.menu-name {
|
333
|
+
color: @light-gray;;
|
334
|
+
}
|
335
|
+
}
|
336
|
+
|
337
|
+
.menu-name {
|
338
|
+
display: flex;
|
339
|
+
max-width: 100px;
|
340
|
+
margin-right: 5px;
|
341
|
+
font-weight: bold;
|
342
|
+
color: @search-select-font-color;
|
343
|
+
align-items: center;
|
344
|
+
}
|
345
|
+
}
|
346
|
+
}
|
347
|
+
|
348
|
+
.menu-footer {
|
349
|
+
display: flex;
|
350
|
+
width: 100%;
|
351
|
+
height: 32px;
|
352
|
+
border-top: @border-width-base @border-style-base @search-select-menu-border-color;
|
353
|
+
align-items: center;
|
354
|
+
|
355
|
+
&-btn {
|
356
|
+
flex: 1;
|
357
|
+
display: flex;
|
358
|
+
align-items: center;
|
359
|
+
justify-content: center;
|
360
|
+
height: 100%;
|
361
|
+
|
362
|
+
&:first-child {
|
363
|
+
border-right: @border-width-base @border-style-base @search-select-menu-border-color;
|
364
|
+
}
|
365
|
+
|
366
|
+
&:hover {
|
367
|
+
color: @primary-color;
|
368
|
+
cursor: pointer;
|
369
|
+
}
|
370
|
+
|
371
|
+
&.is-disabled {
|
372
|
+
.menu-disabled-mixin()
|
373
|
+
}
|
374
|
+
}
|
375
|
+
}
|
376
|
+
}
|
377
|
+
|
378
|
+
.@{search-select-name}-popover {
|
379
|
+
margin: -7px -14px;
|
380
|
+
}
|