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 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"),require("../directives"),require("../icon"),require("../popover"),require("../checkbox"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types","../directives","../icon","../popover","../checkbox"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types"),require("../directives"),require("../icon"),require("../popover"),require("../checkbox")):t(e["../shared"],e.vue,e["vue-types"],e["../directives"],e["../icon"],e["../popover"],e["../checkbox"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o,i,a)=>(()=>{var s={7162:(e,t,r)=>{r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof y?t:y,i=Object.create(o.prototype),a=new L(n||[]);return i._invoke=function(e,t,r){var n=d;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===f){if("throw"===o)throw i;return O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=f,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=u(e,t,r);if("normal"===c.type){if(n=r.done?f:h,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=f,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",v={};function y(){}function g(){}function m(){}var b={};c(b,i,(function(){return this}));var k=Object.getPrototypeOf,N=k&&k(k(E([])));N&&N!==r&&n.call(N,i)&&(b=N);var w=m.prototype=y.prototype=Object.create(b);function P(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function r(o,i,a,s){var c=u(e[o],e,i);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}}function x(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,x(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=u(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function E(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return g.prototype=m,c(w,"constructor",m),c(m,"constructor",g),g.displayName=c(m,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,c(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},P(T.prototype),c(T.prototype,a,(function(){return this})),e.AsyncIterator=T,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new T(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},P(w),c(w,s,"Generator"),c(w,i,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=E,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:E(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},5800:e=>{"use strict";e.exports=a},4061:e=>{"use strict";e.exports=n},6870:e=>{"use strict";e.exports=o},5537:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=r}},c={};function l(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return s[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(()=>{"use strict";l.r(u),l.d(u,{BkCascader:()=>k,BkCascaderPanel:()=>d,default:()=>N});var e=l(4212),t=l(748),r=l(210),n=l(4061),o=l(6870),i=l(5537),a=l.n(i);l(7162),Symbol("BkSelect"),Symbol("BkOptionGroup");var s=l(5800),c=l.n(s);const d=(0,t.defineComponent)({name:"CascaderPanel",props:{width:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(216),store:e.PropTypes.object.def({}),separator:e.PropTypes.string.def(""),suggestions:e.PropTypes.arrayOf((0,r.object)()),isFiltering:e.PropTypes.bool.def(!1),searchKey:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def(""),modelValue:e.PropTypes.arrayOf(e.PropTypes.oneOfType([(0,r.array)(),String,Number]))},emits:["update:modelValue"],setup:function(r,n){var i=n.emit,a=r.store,s=(0,t.reactive)({list:[r.store.getNodes()]}),c=(0,t.ref)([]),l=(0,t.ref)([]),u=function(e){return"number"==typeof e?"".concat(e,"px"):e},d=u(r.height),h=u(r.width),p=function(e){e.isDisabled||(e.config.multiple?l.value=a.getCheckedNodes().map((function(e){return e.path})):l.value=e.path,i("update:modelValue",l.value))},f=function(e){var t;if(e&&!(null==e?void 0:e.isDisabled)){if(s.list=s.list.slice(0,e.level),c.value=c.value.slice(0,e.level-1),null===(t=e.children)||void 0===t?void 0:t.length)return s.list.push(e.children),void c.value.push(e);a.config.isRemote&&!e.isLeaf&&(e.loading=!0,a.config.remoteMethod(e,(function(t){a.appendNodes(t,e||null),s.list.push(e.children),c.value.push(e),e.loading=!1})))}},v=function(e,t){e.setNodeCheck(t||!1),p(e)};return(0,t.watch)((function(){return r.modelValue}),(function(e){!function(e){0===e.length&&(s.list=s.list.slice(0,1),c.value=[]),e.forEach((function(e){var t=a.getNodeById(e);f(t)})),l.value=e}(e)}),{immediate:!0}),(0,t.watch)((function(){return r.store}),(function(e){s.list=[e.getNodes()]})),{menus:s,activePath:c,nodeExpandHandler:f,isNodeInPath:function(e){return(c.value[e.level-1]||{}).id===e.id},nodeEvent:function(e){var t=e.config,r=t.trigger,n=t.checkAnyLevel,o=t.multiple;return{onClick:function(t){e.isLeaf&&!o||t.stopPropagation(),"click"===r&&f(e),n&&!o&&p(e),e.isLeaf&&!o&&p(e)},onMouseenter:function(){"hover"===r&&f(e)}}},isCheckedNode:function(t,r){return t.config.multiple?r.some((function(r){return(0,e.arrayEqual)(r,t.path)})):(0,e.arrayEqual)(r,t.path)},checkValue:l,checkNode:v,iconRender:function(e){return e.loading?(0,t.createVNode)(o.Spinner,{class:"icon-spinner"},null):(0,t.createVNode)(o.AngleRight,{class:"icon-angle-right"},null)},panelWidth:h,panelHeight:d,searchPanelEvents:function(e){var t=e.config.multiple;return{onClick:function(r){if(t)return r.stopPropagation(),void v(e,!e.checked);f(e),e.isLeaf&&!t&&p(e)}}}}},render:function(){var e=this,r=parseInt(this.panelWidth,10)>200?this.panelWidth:"".concat(200,"px");return(0,t.createVNode)("div",{class:"bk-cascader-panel-wrapper"},[this.isFiltering?e.suggestions.length?(0,t.createVNode)("ul",{class:"bk-cascader-panel bk-scroll-y",style:{height:e.panelHeight,width:e.panelWidth}},[e.suggestions.map((function(r){return(0,t.createVNode)("li",(0,t.mergeProps)({class:["bk-cascader-node",{"is-selected":e.isNodeInPath(r)},{"is-disabled":r.isDisabled},{"is-checked":e.isCheckedNode(r,e.checkValue)}]},e.searchPanelEvents(r)),[r.pathNames.join(e.separator)])}))]):(0,t.createVNode)("div",{class:"bk-cascader-search-empty",style:{width:r}},[(0,t.createVNode)("span",null,[(0,t.createTextVNode)("暂无搜索结果")])]):this.menus.list.map((function(r){return(0,t.createVNode)("ul",{class:"bk-cascader-panel bk-scroll-y",style:{height:e.panelHeight,width:e.panelWidth}},[r.map((function(r){var n,o;return(0,t.createVNode)("li",(0,t.mergeProps)({class:["bk-cascader-node",{"is-selected":e.isNodeInPath(r)},{"is-disabled":r.isDisabled},{"is-checked":!r.config.multiple&&e.isCheckedNode(r,e.checkValue)}]},Object.assign(e.nodeEvent(r),(r.config.multiple,{}))),[r.config.multiple&&(0,t.createVNode)(c(),{disabled:r.isDisabled,modelValue:r.checked,"onUpdate:modelValue":function(e){return r.checked=e},indeterminate:r.isIndeterminate,onChange:function(t){return e.checkNode(r,t)}},null),null===(o=(n=e.$slots).default)||void 0===o?void 0:o.call(n,{node:r,data:r.data}),r.isLeaf?"":e.iconRender(r)])}))])}))])}});function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e){return!!e.data.disabled||(1!==e.level?v(e.parent):e.data.disabled)}const y=function(){function t(e,r,n){h(this,t),this.data=e,this.config=r,this.parent=n||null,this.leaf=e.leaf,this.level=this.parent?this.parent.level+1:1,this.initState()}return f(t,[{key:"initState",value:function(){var e=this,r=this.config,n=r.idKey,o=r.nameKey,i=r.childrenKey;this.id=this.data[n],this.name=this.data[o],this.loading=!1,this.loaded=!1,this.checked=!1;var a=this.data[i];this.children=(a||[]).map((function(r){return new t(r,e.config,e)})),this.pathNodes=this.calculateNodesPath(),this.path=this.pathNodes.map((function(e){return e.id})),this.pathNames=this.pathNodes.map((function(e){return e.name}))}},{key:"isLeaf",get:function(){var e;return this.config.isRemote?this.leaf||!!this.loaded&&!this.children.length:!(Array.isArray(this.children)&&0!==(null===(e=this.children)||void 0===e?void 0:e.length))}},{key:"isDisabled",get:function(){return v(this)}},{key:"broadcast",value:function(t,r){var n="onParent".concat((0,e.capitalize)(t));this.children.forEach((function(e){var o;e&&(e.broadcast(t,r),null===(o=e[n])||void 0===o||o.call(e,r))}))}},{key:"emit",value:function(t){var r,n=this.parent,o="onChild".concat((0,e.capitalize)(t));n&&(null===(r=n[o])||void 0===r||r.call(n),n.emit(t))}},{key:"onParentCheck",value:function(e){this.isDisabled||this.setCheckState(e)}},{key:"onChildCheck",value:function(){var e=this.children.filter((function(e){return!e.isDisabled})),t=!!e.length&&e.every((function(e){return e.checked}));this.setCheckState(t)}},{key:"setCheckState",value:function(e){var t=this.children.length,r=this.children.reduce((function(e,t){var r=t.isIndeterminate?.5:0;return e+(t.checked?1:r)}),0);this.checked=e,this.isIndeterminate=r!==t&&r>0}},{key:"setNodeCheck",value:function(e){if(this.checked!==e){if(this.config.checkAnyLevel)return void(this.checked=e);this.broadcast("check",e),this.setCheckState(e),this.emit("check")}}},{key:"calculateNodesPath",value:function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e}}]),t}();var g=function e(t,r){return t.reduce((function(t,n){return n.isLeaf?t.push(n):(!r&&t.push(n),t=t.concat(e(n.children,r))),t}),[])};const m=function(){function t(e){var r=this;h(this,t);var n=e.list;this.data=n,this.config=e,this.nodes=this.data.map((function(e){return new y(e,r.config)}))}return f(t,[{key:"getNodes",value:function(){return this.nodes}},{key:"clearChecked",value:function(){this.getFlattedNodes().forEach((function(e){e.checked=!1,e.isIndeterminate=!1}))}},{key:"removeTag",value:function(t){this.getFlattedNodes().find((function(r){return!!(0,e.arrayEqual)(t,r.path)&&(r.checked=!1,!0)}))}},{key:"getFlattedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return g(this.nodes,e)}},{key:"getCheckedNodes",value:function(){return this.getFlattedNodes().filter((function(e){return e.checked}))}},{key:"getNodeByValue",value:function(t){var r;return null!==(r=this.getFlattedNodes().filter((function(r){return(0,e.arrayEqual)(r.path,t)}))[0])&&void 0!==r?r:null}},{key:"getNodeById",value:function(e){return this.getFlattedNodes().find((function(t){return t.id===e}))}},{key:"appendNode",value:function(e,t){var r=new y(e,this.config,t);(t?t.children:this.nodes).push(r)}},{key:"appendNodes",value:function(e,t){var r=this;e.forEach((function(e){return r.appendNode(e,t)}))}}]),t}(),b=(0,t.defineComponent)({name:"Cascader",directives:{clickoutside:n.clickoutside},components:{CascaderPanel:d,BkPopover:a()},props:{modelValue:e.PropTypes.arrayOf(e.PropTypes.oneOfType([(0,r.array)(),String,Number])),list:e.PropTypes.array.def([]),placeholder:e.PropTypes.string.def("请选择"),filterable:e.PropTypes.bool.def(!1),multiple:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),clearable:e.PropTypes.bool.def(!0),trigger:e.PropTypes.string.def("click"),checkAnyLevel:e.PropTypes.bool.def(!1),isRemote:e.PropTypes.bool.def(!1),remoteMethod:e.PropTypes.func,showCompleteName:e.PropTypes.bool.def(!0),idKey:e.PropTypes.string.def("id"),nameKey:e.PropTypes.string.def("name"),childrenKey:e.PropTypes.string.def("children"),separator:e.PropTypes.string.def("/"),limitOneLine:e.PropTypes.bool.def(!1),extCls:e.PropTypes.string.def(""),scrollHeight:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def(216),scrollWidth:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]).def("auto")},emits:["update:modelValue","change","clear","toggle"],setup:function(r,n){var o=n.emit,i=r.separator,a=r.multiple,s=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),c=s.isHover,l=s.setHover,u=s.cancelHover,d=(0,t.ref)(new m(r)),h=(0,t.ref)(!1),p=(0,t.ref)(""),f=(0,t.ref)([]),v=(0,t.toRefs)(r).modelValue,y=(0,t.ref)(),g=(0,t.ref)(""),b=(0,t.ref)([]),k=(0,t.ref)(!1),N=(0,t.computed)({get:function(){return v.value},set:function(e){o("update:modelValue",e)}}),w=(0,t.ref)(null),P=function(e){return r.showCompleteName?e.pathNames.join(i):e.pathNames[e.pathNames.length-1]},T=function(e){var t;if(a)f.value=d.value.getCheckedNodes().map((function(e){return{text:P(e),key:e.id}}));else{if(!r.checkAnyLevel&&(null===(t=null==w?void 0:w.value)||void 0===t||t.hide()),0===e.length)p.value="";else{var n=d.value.getNodeByValue(e);if(!n)return;p.value=P(n)}g.value=p.value}},x=(0,e.debounce)(200,(function(e){var t=e.target;if(g.value=t.value,""!==g.value){k.value=!0;var n=d.value.getFlattedNodes().filter((function(e){return(r.checkAnyLevel||e.isLeaf)&&e.pathNames.join(r.separator).includes(g.value)}));b.value=n,!(null==w?void 0:w.value.isShow)&&(null==w||w.value.show())}else k.value=!1}));return(0,t.watch)((function(){return r.modelValue}),(function(e,t){T(e),o("update:modelValue",e),void 0!==t&&o("change",e)}),{immediate:!0}),(0,t.watch)((function(){return r.list}),(function(){d.value=new m(r),T(r.modelValue)}),{deep:!0,immediate:!0}),{store:d,updateValue:T,panelShow:h,selectedText:p,checkedValue:N,handleClear:function(e){e.stopPropagation(),d.value.clearChecked(),g.value="",T([]),o("update:modelValue",[]),o("clear",JSON.parse(JSON.stringify(r.modelValue)))},isHover:c,setHover:l,popover:w,cancelHover:u,selectedTags:f,removeTag:function(e,t,r){r.stopPropagation();var n=JSON.parse(JSON.stringify(e)),i=n.splice(t,1)[0];d.value.removeTag(i),T(n),o("update:modelValue",d.value.getCheckedNodes().map((function(e){return e.path})))},cascaderPanel:y,popoverChangeEmitter:function(e){o("toggle",e.isShow),e.isShow||(k.value=!1)},searchKey:g,suggestions:b,isFiltering:k,searchInputHandler:x}},render:function(){var e=this;return(0,t.createVNode)("div",{class:["bk-cascader","bk-cascader-wrapper",this.extCls,{"bk-is-show-panel":this.panelShow,"is-unselected":0===this.modelValue.length,"is-hover":this.isHover,"is-filterable":this.filterable}],tabindex:"0","data-placeholder":this.placeholder,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[e.clearable&&e.isHover?(0,t.createVNode)(o.Close,{class:"bk-icon-clear-icon",onClick:e.handleClear},null):(0,t.createVNode)(o.AngleUp,{class:"bk-icon-angle-up"},null),(0,t.createVNode)(a(),{placement:"bottom-start",theme:"light bk-cascader-popover",trigger:"click",arrow:!1,class:"bk-cascader-popover-wrapper",ref:"popover",onAfterHidden:this.popoverChangeEmitter,onAfterShow:this.popoverChangeEmitter,boundary:"body"},{default:function(){return(0,t.createVNode)("div",{class:"bk-cascader-name"},[e.multiple&&e.selectedTags.length>0&&(e.limitOneLine?(0,t.createVNode)("span",null,[e.selectedText]):(0,t.createVNode)("div",{class:"cascader-tag-list"},[e.selectedTags.map((function(r,n){return(0,t.createVNode)("span",{class:"cascader-tag-item"},[(0,t.createVNode)("span",{class:"cascader-tag-item-name"},[r.text]),(0,t.createVNode)(o.Error,{class:"bk-icon-clear-icon",onClick:function(t){return e.removeTag(e.modelValue,n,t)}},null)])}))])),e.filterable?(0,t.createVNode)("input",{class:"bk-cascader-search-input",type:"text",onInput:e.searchInputHandler,placeholder:e.placeholder,value:e.searchKey},null):(0,t.createVNode)("span",null,[e.selectedText])])},content:function(){return(0,t.createVNode)("div",{class:"bk-cascader-popover"},[(0,t.createVNode)(d,{store:e.store,ref:"cascaderPanel",width:e.scrollWidth,height:e.scrollHeight,"search-key":e.searchKey,separator:e.separator,"is-filtering":e.isFiltering,suggestions:e.suggestions,modelValue:e.checkedValue,"onUpdate:modelValue":function(t){return e.checkedValue=t}},{default:function(r){return e.$slots.default?e.$slots.default(r):(0,t.createVNode)("span",{class:"bk-cascader-node-name"},[r.node.name])}})])}})])}});var k=(0,e.withInstallProps)(b,{CascaderPanel:d});const N=k})(),u})()));
|
@@ -0,0 +1,51 @@
|
|
1
|
+
export interface IPanel {
|
2
|
+
id: string;
|
3
|
+
name: string;
|
4
|
+
disabled?: boolean;
|
5
|
+
children?: IPanel;
|
6
|
+
}
|
7
|
+
export interface INodeConfig {
|
8
|
+
multiple: boolean;
|
9
|
+
}
|
10
|
+
export interface INode {
|
11
|
+
checked: boolean;
|
12
|
+
children?: (null)[] | null;
|
13
|
+
config: IConfig;
|
14
|
+
data: IData;
|
15
|
+
leaf: boolean;
|
16
|
+
id: string;
|
17
|
+
level: number;
|
18
|
+
loading: boolean;
|
19
|
+
loaded: boolean;
|
20
|
+
name: string;
|
21
|
+
parent?: INode;
|
22
|
+
isDisabled: boolean;
|
23
|
+
isIndeterminate: boolean;
|
24
|
+
isLeaf: boolean;
|
25
|
+
pathNames: string[];
|
26
|
+
path: string[];
|
27
|
+
setNodeCheck(status: boolean): void;
|
28
|
+
broadcast(event: string, check: boolean): void;
|
29
|
+
emit(event: string): void;
|
30
|
+
}
|
31
|
+
export interface IData {
|
32
|
+
id: string;
|
33
|
+
name: string;
|
34
|
+
leaf?: boolean;
|
35
|
+
disabled?: boolean;
|
36
|
+
children?: IData[];
|
37
|
+
}
|
38
|
+
export interface IConfig {
|
39
|
+
checkAnyLevel: boolean;
|
40
|
+
childrenKey: string;
|
41
|
+
clearable: boolean;
|
42
|
+
disabled: boolean;
|
43
|
+
idKey: string;
|
44
|
+
isRemote: boolean;
|
45
|
+
multiple: boolean;
|
46
|
+
nameKey: string;
|
47
|
+
showCompleteName: boolean;
|
48
|
+
trigger: string;
|
49
|
+
separator: string;
|
50
|
+
remoteMethod: Function;
|
51
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { IConfig, IData, INode } from './interface';
|
2
|
+
declare class Node implements INode {
|
3
|
+
data: IData;
|
4
|
+
config: IConfig;
|
5
|
+
parent: INode;
|
6
|
+
level: number;
|
7
|
+
id: string;
|
8
|
+
name: string;
|
9
|
+
loading: boolean;
|
10
|
+
loaded: boolean;
|
11
|
+
checked: boolean;
|
12
|
+
isIndeterminate: boolean;
|
13
|
+
children?: null[];
|
14
|
+
leaf: boolean;
|
15
|
+
pathNodes: INode[];
|
16
|
+
path: string[];
|
17
|
+
pathNames: string[];
|
18
|
+
nodes: INode[];
|
19
|
+
constructor(node: IData, config: any, parent?: any);
|
20
|
+
initState(): void;
|
21
|
+
get isLeaf(): boolean;
|
22
|
+
get isDisabled(): any;
|
23
|
+
broadcast(event: string, checkStatus: boolean): void;
|
24
|
+
emit(event: string): void;
|
25
|
+
onParentCheck(checked: boolean): void;
|
26
|
+
onChildCheck(): void;
|
27
|
+
setCheckState(checked: boolean): void;
|
28
|
+
setNodeCheck(status: boolean): void;
|
29
|
+
calculateNodesPath(): INode[];
|
30
|
+
}
|
31
|
+
export default Node;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { IConfig, IData, INode } from './interface';
|
2
|
+
declare class Store {
|
3
|
+
data: IData[];
|
4
|
+
config: IConfig;
|
5
|
+
nodes: INode[];
|
6
|
+
constructor(props: any);
|
7
|
+
getNodes(): INode[];
|
8
|
+
/** 清空所有checked */
|
9
|
+
clearChecked(): void;
|
10
|
+
/** 移除某一个Tag的check状态 */
|
11
|
+
removeTag(tag: string[]): void;
|
12
|
+
/** 拍平节点,方便筛选 */
|
13
|
+
getFlattedNodes(leafOnly?: boolean): any;
|
14
|
+
/** 获取多选下,被选中(checked)的节点 */
|
15
|
+
getCheckedNodes(): any;
|
16
|
+
/** 根据值获得node实例 */
|
17
|
+
getNodeByValue(value: Array<number | string | string[]>): INode;
|
18
|
+
getNodeById(id: number | string): INode;
|
19
|
+
/** 插入单个节点 */
|
20
|
+
appendNode(nodeData: IData, parentNode: IData): void;
|
21
|
+
appendNodes(nodeDataList: IData[], parentNode: IData): void;
|
22
|
+
}
|
23
|
+
export default Store;
|
@@ -11,6 +11,11 @@ declare const checkboxGroupProps: {
|
|
11
11
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
12
12
|
default: boolean;
|
13
13
|
};
|
14
|
+
withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
|
15
|
+
default: boolean;
|
16
|
+
} & {
|
17
|
+
default: boolean;
|
18
|
+
};
|
14
19
|
};
|
15
20
|
export declare type CheckboxGroupProps = Readonly<ExtractPropTypes<typeof checkboxGroupProps>>;
|
16
21
|
declare const _default: import("vue").DefineComponent<{
|
@@ -25,20 +30,35 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
30
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
26
31
|
default: boolean;
|
27
32
|
};
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
}
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
} & {
|
33
|
+
withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
|
34
|
+
default: boolean;
|
35
|
+
} & {
|
36
|
+
default: boolean;
|
37
|
+
};
|
38
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
39
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
40
|
+
default: string;
|
41
|
+
} & {
|
42
|
+
default: string;
|
43
|
+
};
|
44
|
+
modelValue: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
45
|
+
default: () => unknown[];
|
46
|
+
};
|
47
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
48
|
+
default: boolean;
|
49
|
+
};
|
50
|
+
withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
|
51
|
+
default: boolean;
|
52
|
+
} & {
|
53
|
+
default: boolean;
|
54
|
+
};
|
55
|
+
}>> & {
|
37
56
|
onChange?: (...args: any[]) => any;
|
38
57
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
39
58
|
}, {
|
40
59
|
name: string;
|
41
60
|
disabled: boolean;
|
42
61
|
modelValue: unknown[];
|
62
|
+
withValidate: boolean;
|
43
63
|
}>;
|
44
64
|
export default _default;
|
@@ -1,30 +1,63 @@
|
|
1
|
+
.bk-checkbox-group {
|
2
|
+
display: inline-flex;
|
3
|
+
letter-spacing: normal;
|
4
|
+
}
|
1
5
|
.bk-checkbox {
|
2
|
-
display: inline-
|
3
|
-
|
6
|
+
display: inline-flex;
|
7
|
+
justify-self: center;
|
8
|
+
align-items: center;
|
4
9
|
font-size: 14px;
|
5
10
|
letter-spacing: normal;
|
6
11
|
color: #63656e;
|
7
12
|
cursor: pointer;
|
8
13
|
user-select: none;
|
9
14
|
}
|
15
|
+
.bk-checkbox ~ .bk-checkbox {
|
16
|
+
margin-left: 30px;
|
17
|
+
}
|
10
18
|
.bk-checkbox.is-checked .bk-checkbox-input {
|
11
19
|
background: #3a84ff;
|
12
20
|
border-color: #3a84ff;
|
13
21
|
transition: all 0.1s;
|
14
22
|
}
|
23
|
+
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
24
|
+
width: 3px;
|
25
|
+
height: 6px;
|
26
|
+
}
|
15
27
|
.bk-checkbox.is-checked .bk-checkbox-input::after {
|
16
28
|
position: absolute;
|
17
|
-
top:
|
18
|
-
left:
|
29
|
+
top: 50%;
|
30
|
+
left: 50%;
|
19
31
|
width: 4px;
|
20
32
|
height: 8px;
|
21
33
|
border: 2px solid #fff;
|
22
34
|
border-top: 0;
|
23
35
|
border-left: 0;
|
24
36
|
content: '';
|
25
|
-
transform: scaleY(1) rotate(45deg);
|
37
|
+
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
26
38
|
transform-origin: center;
|
27
39
|
}
|
40
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input {
|
41
|
+
background: #3a84ff;
|
42
|
+
border-color: #3a84ff;
|
43
|
+
transition: all 0.1s;
|
44
|
+
}
|
45
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
46
|
+
width: 6px;
|
47
|
+
height: 2px;
|
48
|
+
}
|
49
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input::after {
|
50
|
+
position: absolute;
|
51
|
+
top: 50%;
|
52
|
+
left: 50%;
|
53
|
+
width: 8px;
|
54
|
+
height: 2px;
|
55
|
+
background: #fff;
|
56
|
+
border: none;
|
57
|
+
border-radius: 2px;
|
58
|
+
content: '';
|
59
|
+
transform: translate(-50%, -50%);
|
60
|
+
}
|
28
61
|
.bk-checkbox.is-disabled {
|
29
62
|
color: #c4c6cc;
|
30
63
|
cursor: not-allowed;
|
@@ -39,17 +72,20 @@
|
|
39
72
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
|
40
73
|
background: #dcdee5;
|
41
74
|
}
|
42
|
-
.bk-checkbox
|
75
|
+
.bk-checkbox-input {
|
43
76
|
position: relative;
|
44
77
|
display: inline-block;
|
45
78
|
width: 16px;
|
46
79
|
height: 16px;
|
47
|
-
margin-right: 5px;
|
48
80
|
vertical-align: middle;
|
49
81
|
border: 1px solid #979ba5;
|
50
82
|
border-radius: 2px;
|
51
83
|
}
|
52
|
-
.bk-checkbox
|
84
|
+
.bk-checkbox-input.small {
|
85
|
+
width: 14px;
|
86
|
+
height: 14px;
|
87
|
+
}
|
88
|
+
.bk-checkbox-original {
|
53
89
|
position: absolute;
|
54
90
|
top: 0;
|
55
91
|
left: 0;
|
@@ -57,8 +93,8 @@
|
|
57
93
|
width: 0;
|
58
94
|
height: 0;
|
59
95
|
}
|
60
|
-
.bk-checkbox
|
96
|
+
.bk-checkbox-label {
|
61
97
|
display: inline-block;
|
62
|
-
|
98
|
+
margin-left: 5px;
|
63
99
|
vertical-align: middle;
|
64
100
|
}
|
@@ -1,11 +1,7 @@
|
|
1
1
|
import type { ExtractPropTypes } from 'vue';
|
2
2
|
export declare const checkboxProps: {
|
3
|
-
modelValue: import("vue-types").VueTypeDef<string | number | boolean
|
4
|
-
|
5
|
-
};
|
6
|
-
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
7
|
-
required: true;
|
8
|
-
};
|
3
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
|
4
|
+
label: import("vue-types").VueTypeDef<string | number | boolean>;
|
9
5
|
trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
10
6
|
default: string | number | boolean;
|
11
7
|
};
|
@@ -28,16 +24,19 @@ export declare const checkboxProps: {
|
|
28
24
|
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
29
25
|
default: (...args: any[]) => any;
|
30
26
|
};
|
31
|
-
size: import("vue-types").VueTypeDef<
|
27
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large"> & {
|
28
|
+
default: "small" | "default" | "large";
|
29
|
+
};
|
30
|
+
immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
|
+
default: boolean;
|
32
|
+
} & {
|
33
|
+
default: boolean;
|
34
|
+
};
|
32
35
|
};
|
33
36
|
export declare type CheckboxProps = Readonly<ExtractPropTypes<typeof checkboxProps>>;
|
34
37
|
declare const _default: import("vue").DefineComponent<{
|
35
|
-
modelValue: import("vue-types").VueTypeDef<string | number | boolean
|
36
|
-
|
37
|
-
};
|
38
|
-
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
39
|
-
required: true;
|
40
|
-
};
|
38
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
|
39
|
+
label: import("vue-types").VueTypeDef<string | number | boolean>;
|
41
40
|
trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
42
41
|
default: string | number | boolean;
|
43
42
|
};
|
@@ -60,46 +59,68 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
59
|
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
61
60
|
default: (...args: any[]) => any;
|
62
61
|
};
|
63
|
-
size: import("vue-types").VueTypeDef<
|
62
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large"> & {
|
63
|
+
default: "small" | "default" | "large";
|
64
|
+
};
|
65
|
+
immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
|
66
|
+
default: boolean;
|
67
|
+
} & {
|
68
|
+
default: boolean;
|
69
|
+
};
|
64
70
|
}, {
|
65
|
-
|
71
|
+
inputRef: import("vue").Ref<any>;
|
66
72
|
isFocus: import("vue").Ref<boolean>;
|
67
|
-
isChecked: import("vue").
|
73
|
+
isChecked: import("vue").Ref<boolean>;
|
68
74
|
isDisabled: import("vue").ComputedRef<boolean>;
|
75
|
+
setChecked: (value?: boolean) => void;
|
69
76
|
handleBlur: () => void;
|
70
77
|
handleFocus: () => void;
|
71
78
|
handleChange: (event: Event) => void;
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
79
|
+
size: "small" | "default" | "large";
|
80
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
81
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
|
82
|
+
label: import("vue-types").VueTypeDef<string | number | boolean>;
|
83
|
+
trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
84
|
+
default: string | number | boolean;
|
85
|
+
};
|
86
|
+
falseLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
87
|
+
default: string | number | boolean;
|
88
|
+
};
|
89
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
90
|
+
default: boolean;
|
91
|
+
} & {
|
92
|
+
default: boolean;
|
93
|
+
};
|
94
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
95
|
+
default: boolean;
|
96
|
+
} & {
|
97
|
+
default: boolean;
|
98
|
+
};
|
99
|
+
indeterminate: import("vue-types").VueTypeValidableDef<boolean> & {
|
100
|
+
default: boolean;
|
101
|
+
};
|
102
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
103
|
+
default: (...args: any[]) => any;
|
104
|
+
};
|
105
|
+
size: import("vue-types").VueTypeDef<"small" | "default" | "large"> & {
|
106
|
+
default: "small" | "default" | "large";
|
107
|
+
};
|
108
|
+
immediateEmitChange: import("vue-types").VueTypeValidableDef<boolean> & {
|
109
|
+
default: boolean;
|
110
|
+
} & {
|
111
|
+
default: boolean;
|
112
|
+
};
|
113
|
+
}>> & {
|
94
114
|
onChange?: (...args: any[]) => any;
|
95
115
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
96
116
|
}, {
|
97
117
|
disabled: boolean;
|
98
|
-
|
118
|
+
size: "small" | "default" | "large";
|
99
119
|
trueLabel: string | number | boolean;
|
100
120
|
falseLabel: string | number | boolean;
|
101
121
|
checked: boolean;
|
102
122
|
indeterminate: boolean;
|
103
123
|
beforeChange: (...args: any[]) => any;
|
124
|
+
immediateEmitChange: boolean;
|
104
125
|
}>;
|
105
126
|
export default _default;
|
@@ -1,41 +1,86 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
|
+
.@{bk-prefix}-checkbox-group {
|
4
|
+
display: inline-flex;
|
5
|
+
letter-spacing: normal;
|
6
|
+
}
|
7
|
+
|
3
8
|
.@{bk-prefix}-checkbox {
|
4
|
-
display: inline-
|
5
|
-
|
9
|
+
display: inline-flex;
|
10
|
+
justify-self: center;
|
11
|
+
align-items: center;
|
6
12
|
font-size: 14px;
|
7
13
|
letter-spacing: normal;
|
8
14
|
color: #63656e;
|
9
15
|
cursor: pointer;
|
10
16
|
user-select: none;
|
11
17
|
|
18
|
+
& ~ .@{bk-prefix}-checkbox {
|
19
|
+
margin-left: 30px;
|
20
|
+
}
|
21
|
+
|
12
22
|
&.is-checked {
|
13
|
-
|
23
|
+
.@{bk-prefix}-checkbox-input {
|
14
24
|
background: @primary-color;
|
15
25
|
border-color: @primary-color;
|
16
26
|
transition: all .1s;
|
17
27
|
|
28
|
+
&.small {
|
29
|
+
&::after {
|
30
|
+
width: 3px;
|
31
|
+
height: 6px;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
18
35
|
&::after {
|
19
36
|
position: absolute;
|
20
|
-
top:
|
21
|
-
left:
|
37
|
+
top: 50%;
|
38
|
+
left: 50%;
|
22
39
|
width: 4px;
|
23
40
|
height: 8px;
|
24
41
|
border: 2px solid #fff;
|
25
42
|
border-top: 0;
|
26
43
|
border-left: 0;
|
27
44
|
content: '';
|
28
|
-
transform: scaleY(1) rotate(45deg);
|
45
|
+
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
29
46
|
transform-origin: center;
|
30
47
|
}
|
31
48
|
}
|
32
49
|
}
|
33
50
|
|
51
|
+
&.is-indeterminated {
|
52
|
+
.@{bk-prefix}-checkbox-input {
|
53
|
+
background: @primary-color;
|
54
|
+
border-color: @primary-color;
|
55
|
+
transition: all .1s;
|
56
|
+
|
57
|
+
&.small {
|
58
|
+
&::after {
|
59
|
+
width: 6px;
|
60
|
+
height: 2px;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
&::after {
|
65
|
+
position: absolute;
|
66
|
+
top: 50%;
|
67
|
+
left: 50%;
|
68
|
+
width: 8px;
|
69
|
+
height: 2px;
|
70
|
+
background: #fff;
|
71
|
+
border: none;
|
72
|
+
border-radius: 2px;
|
73
|
+
content: '';
|
74
|
+
transform: translate(-50%, -50%);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
34
79
|
&.is-disabled {
|
35
80
|
color: #c4c6cc;
|
36
81
|
cursor: not-allowed;
|
37
82
|
|
38
|
-
|
83
|
+
.@{bk-prefix}-checkbox-input {
|
39
84
|
background: #fafbfd;
|
40
85
|
border-color: @disable-color;
|
41
86
|
|
@@ -45,36 +90,39 @@
|
|
45
90
|
}
|
46
91
|
|
47
92
|
&.is-checked {
|
48
|
-
|
93
|
+
.@{bk-prefix}-checkbox-input {
|
49
94
|
background: @disable-color;
|
50
95
|
}
|
51
96
|
}
|
52
97
|
}
|
98
|
+
}
|
53
99
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
border-radius: 2px;
|
63
|
-
|
64
|
-
}
|
100
|
+
.@{bk-prefix}-checkbox-input {
|
101
|
+
position: relative;
|
102
|
+
display: inline-block;
|
103
|
+
width: 16px;
|
104
|
+
height: 16px;
|
105
|
+
vertical-align: middle;
|
106
|
+
border: 1px solid #979ba5;
|
107
|
+
border-radius: 2px;
|
65
108
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
left: 0;
|
70
|
-
z-index: -1;
|
71
|
-
width: 0;
|
72
|
-
height: 0;
|
109
|
+
&.small {
|
110
|
+
width: 14px;
|
111
|
+
height: 14px;
|
73
112
|
}
|
113
|
+
}
|
74
114
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
115
|
+
.@{bk-prefix}-checkbox-original {
|
116
|
+
position: absolute;
|
117
|
+
top: 0;
|
118
|
+
left: 0;
|
119
|
+
z-index: -1;
|
120
|
+
width: 0;
|
121
|
+
height: 0;
|
122
|
+
}
|
123
|
+
|
124
|
+
.@{bk-prefix}-checkbox-label {
|
125
|
+
display: inline-block;
|
126
|
+
margin-left: 5px;
|
127
|
+
vertical-align: middle;
|
80
128
|
}
|