bkui-vue 0.0.1-beta.9 → 0.0.1-beta.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -19
- package/dist/index.cjs.js +57 -0
- package/dist/index.esm.js +24958 -0
- package/dist/index.umd.js +57 -0
- package/dist/style.css +1 -2348
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +102 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +34 -3
- package/lib/alert/index.d.ts +180 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +29 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +64 -22
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +34 -5
- package/lib/badge/index.d.ts +267 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +18 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +47 -1
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +73 -44
- package/lib/button/button.d.ts +67 -31
- package/lib/button/button.less +68 -47
- package/lib/button/button.variable.css +102 -44
- package/lib/button/index.d.ts +237 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +53 -1
- package/lib/card/card.d.ts +74 -18
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +82 -1
- package/lib/card/index.d.ts +283 -0
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +229 -0
- package/lib/cascader/index.d.ts +721 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +15 -2
- package/lib/checkbox/checkbox.d.ts +33 -30
- package/lib/checkbox/checkbox.less +20 -2
- package/lib/checkbox/checkbox.variable.css +44 -2
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +253 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +4 -8
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +285 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +25 -1
- package/lib/collapse/collapse.d.ts +51 -22
- package/lib/collapse/collapse.less +34 -2
- package/lib/collapse/collapse.variable.css +124 -1
- package/lib/collapse/index.d.ts +182 -0
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/components.d.ts +27 -4
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +48 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +147 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.css +408 -0
- package/lib/date-picker/date-picker.d.ts +312 -0
- package/lib/date-picker/date-picker.less +527 -0
- package/lib/date-picker/date-picker.variable.css +507 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +753 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +118 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.css +66 -14
- package/lib/dialog/dialog.d.ts +305 -52
- package/lib/dialog/dialog.less +34 -14
- package/lib/dialog/dialog.variable.css +66 -14
- package/lib/dialog/index.d.ts +772 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +137 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +47 -0
- package/lib/dropdown/dropdown.d.ts +63 -0
- package/lib/dropdown/dropdown.less +59 -0
- package/lib/dropdown/dropdown.variable.css +146 -0
- package/lib/dropdown/index.d.ts +200 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +29 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -0
- package/lib/fixed-navbar/index.d.ts +147 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +155 -0
- package/lib/form/form.css +125 -0
- package/lib/form/form.d.ts +81 -0
- package/lib/form/form.less +152 -0
- package/lib/form/form.variable.css +224 -0
- package/lib/form/index.d.ts +303 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +23 -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.js +1 -0
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +1 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +1 -0
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +1 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +1 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +1 -0
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +1 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +1 -0
- package/lib/icon/down-small.js +1 -0
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +1 -0
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +1 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +1 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +69 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +1 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +1 -0
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +1 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +1 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -0
- package/lib/input/index.d.ts +541 -0
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +82 -5
- package/lib/input/input.d.ts +181 -51
- package/lib/input/input.less +93 -9
- package/lib/input/input.variable.css +112 -5
- package/lib/link/index.d.ts +164 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +29 -0
- package/lib/loading/index.d.ts +172 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +122 -75
- package/lib/loading/loading.d.ts +67 -20
- package/lib/loading/loading.less +79 -60
- package/lib/loading/loading.variable.css +151 -75
- package/lib/menu/index.d.ts +176 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +190 -0
- package/lib/menu/menu.d.ts +55 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +289 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +22 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +102 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/{message.d.ts → index.d.ts} +0 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +27 -1
- package/lib/message/message.less +30 -1
- package/lib/message/message.variable.css +56 -1
- package/lib/message/messageConstructor.d.ts +71 -20
- package/lib/modal/index.d.ts +605 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +30 -1
- package/lib/modal/modal.d.ts +195 -24
- package/lib/modal/modal.less +39 -1
- package/lib/modal/modal.variable.css +30 -1
- package/lib/modal/props.mixin.d.ts +82 -10
- package/lib/navigation/index.d.ts +292 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +111 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +283 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +65 -0
- package/lib/notify/notify.less +76 -0
- package/lib/notify/notify.variable.css +164 -0
- package/lib/notify/notifyConstructor.d.ts +135 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +278 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +387 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +28 -16
- package/lib/popover/popover.d.ts +122 -45
- package/lib/popover/popover.less +59 -46
- package/lib/popover/popover.variable.css +57 -16
- package/lib/popover/props.d.ts +104 -0
- package/lib/preset.d.ts +2 -3
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +1 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +237 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +8 -3
- package/lib/progress/progress.d.ts +89 -36
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +37 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +277 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +28 -20
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +14 -8
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +16 -9
- package/lib/radio/radio.variable.css +44 -9
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +288 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1675 -0
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +15 -20
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +229 -41
- package/lib/select/select.d.ts +381 -157
- package/lib/select/select.less +242 -53
- package/lib/select/select.variable.css +258 -41
- package/lib/select/selectTagInput.d.ts +71 -0
- package/lib/select/type.d.ts +35 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +73 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +60 -6
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +12 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +533 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +205 -30
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +77 -3
- package/lib/slider/index.d.ts +440 -0
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider-button.d.ts +80 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +201 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +248 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +15 -4
- package/lib/steps/steps.d.ts +42 -29
- package/lib/steps/steps.less +22 -4
- package/lib/steps/steps.variable.css +44 -4
- package/lib/styles/index.d.ts +51 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +8 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +8 -0
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +45 -1
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +286 -0
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +157 -135
- package/lib/switcher/switcher.d.ts +51 -35
- package/lib/switcher/switcher.less +211 -153
- package/lib/switcher/switcher.variable.css +186 -135
- package/lib/tab/index.d.ts +440 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +169 -0
- package/lib/tab/tab-panel.d.ts +73 -0
- package/lib/tab/tab.css +167 -0
- package/lib/tab/tab.d.ts +139 -0
- package/lib/tab/tab.less +228 -0
- package/lib/tab/tab.variable.css +266 -0
- package/lib/table/const.d.ts +43 -0
- package/lib/table/index.d.ts +547 -0
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +83 -0
- package/lib/table/plugins/head-filter.variable.css +167 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +121 -0
- package/lib/table/plugins/settings.css +110 -0
- package/lib/table/plugins/settings.less +136 -0
- package/lib/table/plugins/settings.variable.css +209 -0
- package/lib/table/props.d.ts +243 -0
- package/lib/table/render.d.ts +118 -0
- package/lib/table/table.css +436 -0
- package/lib/table/table.d.ts +194 -32
- package/lib/table/table.less +282 -1
- package/lib/table/table.variable.css +465 -0
- package/lib/table/use-common.d.ts +71 -0
- package/lib/table/utils.d.ts +102 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +126 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +894 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +308 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +240 -0
- package/lib/timeline/timeline.variable.css +334 -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 +139 -0
- package/lib/transfer/transfer.d.ts +160 -0
- package/lib/transfer/transfer.less +144 -0
- package/lib/transfer/transfer.variable.css +238 -0
- package/lib/tree/constant.d.ts +43 -0
- package/lib/tree/index.d.ts +472 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +168 -0
- package/lib/tree/tree.css +53 -0
- package/lib/tree/tree.d.ts +204 -0
- package/lib/tree/tree.less +66 -0
- package/lib/tree/tree.variable.css +152 -0
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +11 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +31 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +66 -0
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +374 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +473 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +579 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +167 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +6 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +255 -0
- package/lib/virtual-render/virtual-render.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +108 -81
- package/dist/bkui-vue.cjs.js +0 -5171
- package/dist/bkui-vue.esm.js +0 -5137
- package/dist/bkui-vue.umd.js +0 -5174
- package/lib/styles/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("../popover"),require("../checkbox"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives","../icon","../popover","../checkbox"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("../popover"),require("../checkbox")):t(e["../shared"],e.vue,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)=>(()=>{var a={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",c=o.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=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 C(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 j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=L(a,r);if(c){if(c===v)continue;return c}}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 s=u(e,t,r);if("normal"===s.type){if(n=r.done?f:h,s.arg===v)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=f,r.method="throw",r.arg=s.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={};s(b,i,(function(){return this}));var k=Object.getPrototypeOf,w=k&&k(k(E([])));w&&w!==r&&n.call(w,i)&&(b=w);var N=m.prototype=y.prototype=Object.create(b);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function P(e,t){function r(o,i,a,c){var s=u(e[o],e,i);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,c)}))}c(s.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 L(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,L(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 T(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 V(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,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:j}}function j(){return{value:t,done:!0}}return g.prototype=m,s(N,"constructor",m),s(m,"constructor",g),g.displayName=s(m,c,"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,s(e,c,"GeneratorFunction")),e.prototype=Object.create(N),e},e.awrap=function(e){return{__await:e}},x(P.prototype),s(P.prototype,a,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(l(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(N),s(N,c,"Generator"),s(N,i,(function(){return this})),s(N,"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,C.prototype={constructor:C,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(V),!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 c.type="throw",c.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],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){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),V(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;V(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=i},4061:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=n},5537:e=>{"use strict";e.exports=o},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},c={};function s(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return a[e](r,r.exports,s),r.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";s.r(l),s.d(l,{BkCascader:()=>m,BkCascaderPanel:()=>u,default:()=>b});var e=s(4212),t=s(748),r=s(4061),n=s(6870),o=s(5537),i=s.n(o);s(7162),Symbol("BkSelect"),Symbol("BkOptionGroup");var a=s(5800),c=s.n(a);const u=(0,t.defineComponent)({name:"CascaderPanel",props:{store:e.PropTypes.object.def({})},emits:["input"],setup:function(r,n){var o=n.emit,i=r.store,a=(0,t.reactive)({list:[r.store.getNodes()]}),c=(0,t.ref)([]),s=(0,t.ref)([]),l=function(e){e.config.multiple?s.value=i.getCheckedNodes().map((function(e){return e.path})):s.value=e.path,o("input",s.value)},u=function(e){var t;e.isDisabled||(a.list=a.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)&&(a.list.push(e.children),c.value.push(e)))};return{menus:a,activePath:c,nodeExpandHandler:u,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&&u(e),n&&!o&&l(e),e.isLeaf&&!o&&l(e)},onMouseenter:function(){"hover"===r&&u(e)}}},isCheckedNode:function(t,r){return!t.config.multiple&&(0,e.arrayEqual)(r,t.path)},checkValue:s,nodeClear:function(){o("input",[])},checkNode:function(e,t){e.setNodeCheck(t),l(e)}}},render:function(){var e=this;return(0,t.createVNode)("div",{class:"bk-cascader-panel-wrapper"},[this.menus.list.map((function(r){return(0,t.createVNode)("ul",{class:"bk-cascader-panel"},[r.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.nodeEvent(r)),[r.config.multiple&&(0,t.createVNode)(c(),{disabled:r.isDisabled,modelValue:r.checked,"onUpdate:modelValue":function(e){return r.checked=e},onChange:function(t){return e.checkNode(r,t)}},null),(0,t.createVNode)("span",{class:"content"},[r.name]),r.isLeaf?"":(0,t.createVNode)(n.AngleRight,{class:"icon-angle-right"},null)])}))])}))])}});function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 p(e,t,r){return t&&h(e.prototype,t),r&&h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}const f=function(){function e(t,r,n){d(this,e),this.data=t,this.config=r,this.parent=n||null,this.level=this.parent?this.parent.level+1:1,this.initState()}return p(e,[{key:"initState",value:function(){var t,r=this,n=this.config,o=n.idKey,i=n.nameKey,a=n.childrenKey;this.id=this.data[o],this.name=this.data[i],this.loading=!1,this.checked=!1;var c=this.data[a];this.children=(c||[]).map((function(t){return new e(t,r.config,r)})),this.hasChildren=0!==(null===(t=this.children)||void 0===t?void 0:t.length),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(){return!this.hasChildren}},{key:"isDisabled",get:function(){return this.data.disabled}},{key:"setNodeCheck",value:function(e){this.checked=e}},{key:"calculateNodesPath",value:function(){for(var e=[this],t=this.parent;t;)e.unshift(t),t=t.parent;return e}}]),e}();var v=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 y=function(){function t(r){var n=this;d(this,t);var o=r.list;this.data=o,this.config=(0,e.filterProperty)(r,["list"]),this.nodes=this.data.map((function(e){return new f(e,n.config)}))}return p(t,[{key:"getNodes",value:function(){return this.nodes}},{key:"getFlattedNodes",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(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}}]),t}(),g=(0,t.defineComponent)({name:"Cascader",directives:{clickoutside:r.clickoutside},components:{CascaderPanel:u,BkPopover:i()},props:{modelValue:e.PropTypes.array.def([]),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(!1),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("")},emits:["update:modelValue"],setup:function(e,r){var n=r.emit,o=e.separator,i=e.multiple,a=function(){var e=(0,t.ref)(!1);return{isHover:e,setHover:function(){e.value=!0},cancelHover:function(){e.value=!1}}}(),c=a.isHover,s=a.setHover,l=a.cancelHover,u=(0,t.reactive)(new y(e)),d=(0,t.ref)(!1),h=(0,t.ref)(""),p=(0,t.ref)([]),f=function(e){if(n("update:modelValue",e),i)p.value=u.getCheckedNodes().map((function(e){return{text:e.pathNames.join(o),key:e.id}}));else if(0!==e.length){var t=u.getNodeByValue(e);h.value=t.pathNames.join(o)}else h.value=""};return{store:u,updateValue:f,hidePopover:function(){d.value=!1},inputClickHandler:function(e){e.stopPropagation(),d.value=!d.value},selectedText:h,panelShow:d,handleClear:function(e){e.stopPropagation(),f([])},isHover:c,setHover:s,cancelHover:l,selectedTags:p,removeTag:function(e,t,r){r.stopPropagation();var n=JSON.parse(JSON.stringify(e));n.splice(t,1),f(n)}}},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}],tabindex:"0","data-placeholder":this.placeholder,onMouseenter:this.setHover,onMouseleave:this.cancelHover},[e.clearable&&e.isHover?(0,t.createVNode)(n.Close,{class:"bk-icon-clear-icon",onClick:e.handleClear},null):(0,t.createVNode)(n.AngleUp,{class:"bk-icon-angle-up"},null),(0,t.createVNode)(i(),{placement:"bottom-start",theme:"light bk-cascader-popover",trigger:"click",arrow:!1,class:"bk-cascader-popover-wrapper",isShow:e.panelShow,"onUpdate:isShow":function(t){return e.panelShow=t},boundary:"body"},{default:function(){return(0,t.createVNode)("div",{class:"bk-cascader-name",onClick:e.inputClickHandler},[e.multiple&&(e.limitOneLine?(0,t.createVNode)("span",null,[e.selectedText]):(0,t.createVNode)("div",{class:"cascader-tag-list"},[e.selectedTags.map((function(r,o){return(0,t.createVNode)("span",{class:"cascader-tag-item"},[(0,t.createVNode)("span",{class:"cascader-tag-item-name"},[r.text]),(0,t.createVNode)(n.Error,{class:"bk-icon-clear-icon",onClick:function(t){return e.removeTag(e.modelValue,o,t)}},null)])}))])),e.filterable?(0,t.createVNode)("input",{class:"bk-cascader-search-input",type:"text",placeholder:e.placeholder},null):(0,t.createVNode)("span",null,[e.selectedText])])},content:function(){return(0,t.createVNode)("div",{class:"bk-cascader-popover"},[(0,t.createVNode)(u,{store:e.store,onInput:function(t){return e.updateValue(t)}},null)])}})])}});var m=(0,e.withInstallProps)(g,{CascaderPanel:u});const b=m})(),l})()));
|
@@ -0,0 +1,44 @@
|
|
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
|
+
hasChildren: boolean;
|
16
|
+
id: string;
|
17
|
+
level: number;
|
18
|
+
loading: boolean;
|
19
|
+
name: string;
|
20
|
+
parent?: INode;
|
21
|
+
isDisabled: boolean;
|
22
|
+
isLeaf: boolean;
|
23
|
+
pathNames: string[];
|
24
|
+
path: string[];
|
25
|
+
setNodeCheck(status: boolean): void;
|
26
|
+
}
|
27
|
+
export interface IData {
|
28
|
+
id: string;
|
29
|
+
name: string;
|
30
|
+
disabled?: boolean;
|
31
|
+
children?: IData[];
|
32
|
+
}
|
33
|
+
export interface IConfig {
|
34
|
+
checkAnyLevel: boolean;
|
35
|
+
childrenKey: string;
|
36
|
+
clearable: boolean;
|
37
|
+
disabled: boolean;
|
38
|
+
idKey: string;
|
39
|
+
isRemote: boolean;
|
40
|
+
multiple: boolean;
|
41
|
+
nameKey: string;
|
42
|
+
showCompleteName: boolean;
|
43
|
+
trigger: string;
|
44
|
+
}
|
@@ -0,0 +1,24 @@
|
|
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
|
+
checked: boolean;
|
11
|
+
children?: null[];
|
12
|
+
hasChildren: boolean;
|
13
|
+
pathNodes: INode[];
|
14
|
+
path: string[];
|
15
|
+
pathNames: string[];
|
16
|
+
nodes: INode[];
|
17
|
+
constructor(node: IData, config: any, parent?: any);
|
18
|
+
initState(): void;
|
19
|
+
get isLeaf(): boolean;
|
20
|
+
get isDisabled(): boolean;
|
21
|
+
setNodeCheck(status: boolean): void;
|
22
|
+
calculateNodesPath(): INode[];
|
23
|
+
}
|
24
|
+
export default Node;
|
@@ -0,0 +1,15 @@
|
|
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
|
+
/** 拍平节点,方便筛选 */
|
9
|
+
getFlattedNodes(leafOnly?: boolean): any;
|
10
|
+
/** 获取多选下,被选中(checked)的节点 */
|
11
|
+
getCheckedNodes(): any;
|
12
|
+
/** 根据值获得node实例 */
|
13
|
+
getNodeByValue(value: string[]): INode;
|
14
|
+
}
|
15
|
+
export default Store;
|
@@ -25,15 +25,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
26
26
|
default: boolean;
|
27
27
|
};
|
28
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
29
|
-
name
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
}
|
28
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
29
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
30
|
+
default: string;
|
31
|
+
} & {
|
32
|
+
default: string;
|
33
|
+
};
|
34
|
+
modelValue: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
35
|
+
default: () => unknown[];
|
36
|
+
};
|
37
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
38
|
+
default: boolean;
|
39
|
+
};
|
40
|
+
}>> & {
|
37
41
|
onChange?: (...args: any[]) => any;
|
38
42
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
39
43
|
}, {
|
@@ -1,7 +1,9 @@
|
|
1
1
|
.bk-checkbox {
|
2
|
-
display: inline-
|
2
|
+
display: inline-flex;
|
3
|
+
justify-self: center;
|
3
4
|
margin-right: 30px;
|
4
5
|
font-size: 14px;
|
6
|
+
line-height: 18px;
|
5
7
|
letter-spacing: normal;
|
6
8
|
color: #63656e;
|
7
9
|
cursor: pointer;
|
@@ -25,6 +27,18 @@
|
|
25
27
|
transform: scaleY(1) rotate(45deg);
|
26
28
|
transform-origin: center;
|
27
29
|
}
|
30
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input:after {
|
31
|
+
position: absolute;
|
32
|
+
top: 50%;
|
33
|
+
left: 50%;
|
34
|
+
width: 8px;
|
35
|
+
height: 2px;
|
36
|
+
background: #fff;
|
37
|
+
border: none;
|
38
|
+
border-radius: 2px;
|
39
|
+
content: '';
|
40
|
+
transform: translate(-50%, -50%);
|
41
|
+
}
|
28
42
|
.bk-checkbox.is-disabled {
|
29
43
|
color: #c4c6cc;
|
30
44
|
cursor: not-allowed;
|
@@ -59,6 +73,5 @@
|
|
59
73
|
}
|
60
74
|
.bk-checkbox .bk-checkbox-label {
|
61
75
|
display: inline-block;
|
62
|
-
line-height: 18px;
|
63
76
|
vertical-align: middle;
|
64
77
|
}
|
@@ -3,9 +3,7 @@ export declare const checkboxProps: {
|
|
3
3
|
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
4
4
|
default: string | number | boolean;
|
5
5
|
};
|
6
|
-
label: import("vue-types").VueTypeDef<string | number | boolean
|
7
|
-
required: true;
|
8
|
-
};
|
6
|
+
label: import("vue-types").VueTypeDef<string | number | boolean>;
|
9
7
|
trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
10
8
|
default: string | number | boolean;
|
11
9
|
};
|
@@ -35,9 +33,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
33
|
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
36
34
|
default: string | number | boolean;
|
37
35
|
};
|
38
|
-
label: import("vue-types").VueTypeDef<string | number | boolean
|
39
|
-
required: true;
|
40
|
-
};
|
36
|
+
label: import("vue-types").VueTypeDef<string | number | boolean>;
|
41
37
|
trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
42
38
|
default: string | number | boolean;
|
43
39
|
};
|
@@ -62,35 +58,42 @@ declare const _default: import("vue").DefineComponent<{
|
|
62
58
|
};
|
63
59
|
size: import("vue-types").VueTypeDef<string>;
|
64
60
|
}, {
|
65
|
-
currentValue: import("vue").ComputedRef<string | number | boolean>;
|
66
61
|
isFocus: import("vue").Ref<boolean>;
|
67
|
-
isChecked: import("vue").
|
62
|
+
isChecked: import("vue").Ref<boolean>;
|
68
63
|
isDisabled: import("vue").ComputedRef<boolean>;
|
64
|
+
setChecked: (value?: boolean) => void;
|
69
65
|
handleBlur: () => void;
|
70
66
|
handleFocus: () => void;
|
71
67
|
handleChange: (event: Event) => void;
|
72
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
73
|
-
modelValue
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
}
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
checked: boolean
|
89
|
-
|
90
|
-
} & {
|
91
|
-
|
92
|
-
|
93
|
-
|
68
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
69
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
70
|
+
default: string | number | boolean;
|
71
|
+
};
|
72
|
+
label: import("vue-types").VueTypeDef<string | number | boolean>;
|
73
|
+
trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
74
|
+
default: string | number | boolean;
|
75
|
+
};
|
76
|
+
falseLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
77
|
+
default: string | number | boolean;
|
78
|
+
};
|
79
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
80
|
+
default: boolean;
|
81
|
+
} & {
|
82
|
+
default: boolean;
|
83
|
+
};
|
84
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
85
|
+
default: boolean;
|
86
|
+
} & {
|
87
|
+
default: boolean;
|
88
|
+
};
|
89
|
+
indeterminate: import("vue-types").VueTypeValidableDef<boolean> & {
|
90
|
+
default: boolean;
|
91
|
+
};
|
92
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
93
|
+
default: (...args: any[]) => any;
|
94
|
+
};
|
95
|
+
size: import("vue-types").VueTypeDef<string>;
|
96
|
+
}>> & {
|
94
97
|
onChange?: (...args: any[]) => any;
|
95
98
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
96
99
|
}, {
|
@@ -1,9 +1,11 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
3
|
.@{bk-prefix}-checkbox {
|
4
|
-
display: inline-
|
4
|
+
display: inline-flex;
|
5
|
+
justify-self: center;
|
5
6
|
margin-right: 30px;
|
6
7
|
font-size: 14px;
|
8
|
+
line-height: 18px;
|
7
9
|
letter-spacing: normal;
|
8
10
|
color: #63656e;
|
9
11
|
cursor: pointer;
|
@@ -31,6 +33,23 @@
|
|
31
33
|
}
|
32
34
|
}
|
33
35
|
|
36
|
+
&.is-indeterminated {
|
37
|
+
.bk-checkbox-input {
|
38
|
+
&:after {
|
39
|
+
position: absolute;
|
40
|
+
top: 50%;
|
41
|
+
left: 50%;
|
42
|
+
width: 8px;
|
43
|
+
height: 2px;
|
44
|
+
background: #fff;
|
45
|
+
border: none;
|
46
|
+
border-radius: 2px;
|
47
|
+
content: '';
|
48
|
+
transform: translate(-50%, -50%);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
34
53
|
&.is-disabled {
|
35
54
|
color: #c4c6cc;
|
36
55
|
cursor: not-allowed;
|
@@ -74,7 +93,6 @@
|
|
74
93
|
|
75
94
|
.bk-checkbox-label {
|
76
95
|
display: inline-block;
|
77
|
-
line-height: 18px;
|
78
96
|
vertical-align: middle;
|
79
97
|
}
|
80
98
|
}
|
@@ -1,12 +1,15 @@
|
|
1
1
|
:root {
|
2
2
|
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
3
4
|
--primary-color: #3a84ff;
|
4
5
|
--success-color: #2dcb56;
|
5
6
|
--warning-color: #ff9c01;
|
6
7
|
--danger-color: #ea3636;
|
7
8
|
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
8
10
|
--light-gray: #c4c6cc;
|
9
11
|
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
10
13
|
--disable-color: #dcdee5;
|
11
14
|
--font-size-base: 12px;
|
12
15
|
--font-size-medium: 14px;
|
@@ -67,11 +70,39 @@
|
|
67
70
|
--message-success-border-color: #dcffe2;
|
68
71
|
--message-danger-bg-color: #ffeded;
|
69
72
|
--message-danger-border-color: #ffdddd;
|
73
|
+
--slider-default-bg: #dcdee5;
|
74
|
+
--slider-disable-bar-bg: #979ba5;
|
75
|
+
--menu-bg-color: #182132;
|
76
|
+
--submenu-bg-color: #151d2c;
|
77
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
78
|
+
--menu-color: #96a2b9;
|
79
|
+
--menu-group-color: var(--default-color);
|
80
|
+
--menu-width: 260px;
|
81
|
+
--menu-collapse-width: 60px;
|
82
|
+
--menu-active-color: white;
|
83
|
+
--nav-header-bg-color: #182132;
|
84
|
+
--nav-bg-color: #182132;
|
85
|
+
--date-picker-disabled-bg: #fafbfd;
|
86
|
+
--date-picker-dropdown-mb: 4px;
|
87
|
+
--date-picker-dropdown-bg: #fff;
|
88
|
+
--table-bg-color: var(--white-color);
|
89
|
+
--table-border-color: #dcdee5;
|
90
|
+
--table-head-bg-color: #fafbfd;
|
91
|
+
--table-head-font-color: #313238;
|
92
|
+
--table-body-font-color: #575961;
|
93
|
+
--table-row-hover-bg-color: #f5f7fa;
|
94
|
+
--table-row-active-bg-color: #f0f1f5;
|
95
|
+
--cascader-panel-border-color: #dcdee5;
|
96
|
+
--cascader-panel-hover: #eaf3ff;
|
97
|
+
--cascader-panel-active: #f4f6fa;
|
98
|
+
--cascader-panel-disabled-bg: #fff;
|
70
99
|
}
|
71
100
|
.bk-checkbox {
|
72
|
-
display: inline-
|
101
|
+
display: inline-flex;
|
102
|
+
justify-self: center;
|
73
103
|
margin-right: 30px;
|
74
104
|
font-size: 14px;
|
105
|
+
line-height: 18px;
|
75
106
|
letter-spacing: normal;
|
76
107
|
color: #63656e;
|
77
108
|
cursor: pointer;
|
@@ -95,6 +126,18 @@
|
|
95
126
|
transform: scaleY(1) rotate(45deg);
|
96
127
|
transform-origin: center;
|
97
128
|
}
|
129
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input:after {
|
130
|
+
position: absolute;
|
131
|
+
top: 50%;
|
132
|
+
left: 50%;
|
133
|
+
width: 8px;
|
134
|
+
height: 2px;
|
135
|
+
background: #fff;
|
136
|
+
border: none;
|
137
|
+
border-radius: 2px;
|
138
|
+
content: '';
|
139
|
+
transform: translate(-50%, -50%);
|
140
|
+
}
|
98
141
|
.bk-checkbox.is-disabled {
|
99
142
|
color: #c4c6cc;
|
100
143
|
cursor: not-allowed;
|
@@ -129,6 +172,5 @@
|
|
129
172
|
}
|
130
173
|
.bk-checkbox .bk-checkbox-label {
|
131
174
|
display: inline-block;
|
132
|
-
line-height: 18px;
|
133
175
|
vertical-align: middle;
|
134
176
|
}
|
package/lib/checkbox/common.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import type
|
1
|
+
import { type InjectionKey, type Ref } from 'vue';
|
2
2
|
import type { ICheckboxGroupContext } from './type';
|
3
3
|
export declare const checkboxGroupKey: InjectionKey<ICheckboxGroupContext>;
|
4
4
|
export declare function useFocus(): [Ref<boolean>, {
|
@@ -6,8 +6,8 @@ export declare function useFocus(): [Ref<boolean>, {
|
|
6
6
|
focus: () => void;
|
7
7
|
}];
|
8
8
|
export declare const useCheckbox: () => {
|
9
|
-
|
10
|
-
isChecked: import("vue").ComputedRef<boolean>;
|
9
|
+
isChecked: Ref<boolean>;
|
11
10
|
isDisabled: import("vue").ComputedRef<boolean>;
|
11
|
+
setChecked: (value?: boolean) => void;
|
12
12
|
handleChange: (event: Event) => void;
|
13
13
|
};
|