bkui-vue 0.0.1-beta.15 → 0.0.1-beta.152
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 +7 -3
- package/dist/index.cjs.js +171 -0
- package/dist/index.esm.js +32035 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4328
- 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 +116 -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 +35 -6
- package/lib/alert/index.d.ts +96 -60
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +48 -28
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +28 -14
- package/lib/backtop/backtop.variable.css +30 -3
- package/lib/backtop/index.d.ts +111 -55
- 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 +35 -8
- package/lib/badge/index.d.ts +202 -84
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.d.ts +22 -14
- package/lib/breadcrumb/breadcrumb.variable.css +81 -3
- package/lib/breadcrumb/index.d.ts +100 -64
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +92 -45
- package/lib/button/button.d.ts +76 -26
- package/lib/button/button.less +88 -47
- package/lib/button/button.variable.css +122 -48
- package/lib/button/index.d.ts +191 -102
- 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 +126 -4
- package/lib/card/index.d.ts +225 -69
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +50 -0
- package/lib/cascader/cascader.css +137 -0
- package/lib/cascader/cascader.d.ts +276 -0
- package/lib/cascader/cascader.less +154 -0
- package/lib/cascader/cascader.variable.css +250 -0
- package/lib/cascader/index.d.ts +749 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +47 -0
- package/lib/cascader/node.d.ts +25 -0
- package/lib/cascader/store.d.ts +19 -0
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +33 -6
- package/lib/checkbox/checkbox.d.ts +43 -32
- package/lib/checkbox/checkbox.less +44 -6
- package/lib/checkbox/checkbox.variable.css +63 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +150 -104
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +3 -7
- 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 +299 -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 +75 -0
- package/lib/collapse/collapse.css +28 -12
- package/lib/collapse/collapse.d.ts +34 -43
- package/lib/collapse/collapse.less +54 -29
- package/lib/collapse/collapse.variable.css +141 -12
- package/lib/collapse/index.d.ts +212 -76
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +123 -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 +128 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +388 -0
- package/lib/color-picker/index.d.ts +231 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +26 -6
- 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 +204 -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 +3 -2
- package/lib/date-picker/date-picker.d.ts +92 -137
- package/lib/date-picker/date-picker.less +5 -2
- package/lib/date-picker/date-picker.variable.css +33 -5
- package/lib/date-picker/index.d.ts +504 -276
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/props.d.ts +118 -0
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.css +78 -21
- package/lib/dialog/dialog.d.ts +285 -52
- package/lib/dialog/dialog.less +56 -22
- package/lib/dialog/dialog.variable.css +78 -21
- package/lib/dialog/index.d.ts +665 -115
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +132 -0
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +21 -13
- package/lib/divider/divider.variable.css +30 -3
- package/lib/divider/index.d.ts +84 -52
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/const.d.ts +4 -0
- package/lib/dropdown/dropdown-item.d.ts +6 -5
- package/lib/dropdown/dropdown-menu.d.ts +6 -5
- package/lib/dropdown/dropdown.css +12 -5
- package/lib/dropdown/dropdown.d.ts +59 -16
- package/lib/dropdown/dropdown.less +48 -34
- package/lib/dropdown/dropdown.variable.css +42 -8
- package/lib/dropdown/index.d.ts +168 -75
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +30 -3
- package/lib/exception/index.d.ts +44 -36
- 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 +30 -3
- package/lib/fixed-navbar/index.d.ts +96 -37
- 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 +61 -45
- package/lib/form/form.css +96 -10
- package/lib/form/form.d.ts +45 -40
- package/lib/form/form.less +136 -34
- package/lib/form/form.variable.css +209 -10
- package/lib/form/index.d.ts +303 -3
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +8 -6
- package/lib/form/validator.d.ts +1 -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.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.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.js +1 -0
- package/lib/icon/angle-down-line.js +1 -0
- package/lib/icon/angle-down.js +1 -0
- package/lib/icon/angle-left.js +1 -0
- package/lib/icon/angle-right.js +1 -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.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.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.js +1 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.js +1 -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.js +1 -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.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.js +1 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.js +1 -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 +27 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -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.js +1 -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.js +1 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.js +1 -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.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.js +1 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +23 -0
- package/lib/info-box/index.js +1 -0
- package/lib/input/index.d.ts +429 -207
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -17
- package/lib/input/input.d.ts +187 -53
- package/lib/input/input.less +180 -18
- package/lib/input/input.variable.css +259 -16
- package/lib/link/index.d.ts +102 -54
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +30 -3
- package/lib/loading/index.d.ts +187 -71
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +177 -98
- package/lib/loading/loading.d.ts +109 -25
- package/lib/loading/loading.less +84 -73
- package/lib/loading/loading.variable.css +207 -101
- package/lib/menu/index.d.ts +82 -71
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +6 -5
- package/lib/menu/menu-item.d.ts +6 -5
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +16 -21
- package/lib/menu/menu.variable.css +81 -3
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +6 -5
- package/lib/menu/submenu.less +1 -1
- package/lib/menu/submenu.variable.css +33 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +24 -3
- package/lib/message/message.less +27 -2
- package/lib/message/message.variable.css +54 -6
- package/lib/message/messageConstructor.d.ts +69 -21
- package/lib/modal/index.d.ts +517 -68
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +25 -1
- package/lib/modal/modal.d.ts +191 -24
- package/lib/modal/modal.less +33 -1
- package/lib/modal/modal.variable.css +25 -1
- package/lib/modal/props.mixin.d.ts +77 -10
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +10 -7
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +50 -24
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +31 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +24 -4
- package/lib/notify/notify.less +27 -4
- package/lib/notify/notify.variable.css +54 -7
- package/lib/notify/notifyConstructor.d.ts +84 -24
- 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 +292 -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 +312 -182
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +4 -0
- package/lib/popover/popover.d.ts +102 -32
- package/lib/popover/popover.less +4 -0
- package/lib/popover/popover.variable.css +34 -3
- package/lib/popover/props.d.ts +28 -1
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +10 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +476 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +200 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +138 -0
- package/lib/popover2/props.d.ts +104 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +20 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popper-id.d.ts +7 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +126 -66
- package/lib/process/index.js +1 -15
- package/lib/process/process.css +2 -3
- package/lib/process/process.d.ts +32 -17
- package/lib/process/process.less +2 -3
- package/lib/process/process.variable.css +32 -6
- package/lib/progress/index.d.ts +299 -151
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +76 -39
- package/lib/progress/progress.variable.css +81 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +145 -96
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +30 -23
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +62 -57
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +94 -62
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +52 -40
- 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 +302 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1114 -632
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +22 -12
- package/lib/select/optionGroup.d.ts +22 -90
- package/lib/select/select.css +200 -81
- package/lib/select/select.d.ts +405 -173
- package/lib/select/select.less +290 -189
- package/lib/select/select.variable.css +230 -84
- package/lib/select/selectTagInput.d.ts +72 -0
- package/lib/select/type.d.ts +38 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
- package/lib/shared/index.d.ts +16 -4
- 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} +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +11 -7
- package/lib/sideslider/index.d.ts +432 -80
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +54 -10
- package/lib/sideslider/sideslider.d.ts +185 -30
- package/lib/sideslider/sideslider.less +71 -13
- package/lib/sideslider/sideslider.variable.css +84 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +15 -7
- package/lib/slider/slider.d.ts +84 -42
- package/lib/slider/slider.variable.css +30 -3
- package/lib/steps/index.d.ts +160 -108
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +17 -3
- package/lib/steps/steps.d.ts +40 -27
- package/lib/steps/steps.less +27 -3
- package/lib/steps/steps.variable.css +47 -6
- package/lib/styles/index.d.ts +13 -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/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +130 -0
- package/lib/styles/themes/themes.less +40 -3
- 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 +201 -137
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +52 -36
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +87 -9
- package/lib/tab/index.d.ts +306 -282
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +102 -87
- package/lib/tab/tab-panel.d.ts +53 -26
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +59 -51
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +55 -4
- package/lib/table/const.d.ts +67 -0
- package/lib/table/index.d.ts +484 -131
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +88 -0
- package/lib/table/plugins/head-filter.variable.css +181 -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 +135 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +242 -0
- package/lib/table/props.d.ts +174 -4
- package/lib/table/render.d.ts +76 -5
- package/lib/table/table.css +1091 -14
- package/lib/table/table.d.ts +197 -24
- package/lib/table/table.less +255 -25
- package/lib/table/table.variable.css +1122 -18
- package/lib/table/use-common.d.ts +72 -0
- package/lib/table/utils.d.ts +78 -3
- package/lib/tag/index.d.ts +165 -274
- 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 +127 -3
- 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 +322 -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 +348 -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 +252 -0
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +467 -106
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +133 -1
- package/lib/tree/tree.css +166 -14
- package/lib/tree/tree.d.ts +193 -29
- package/lib/tree/tree.less +66 -29
- package/lib/tree/tree.variable.css +279 -14
- 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 +31 -13
- package/lib/upload/index.d.ts +580 -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 +417 -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 +530 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +439 -255
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +20 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -24
- package/lib/virtual-render/virtual-render.d.ts +122 -42
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +130 -24
- package/lib/volar.components.d.ts +100 -0
- package/package.json +104 -84
- package/README_EN.md +0 -89
- package/dist/bkui-vue.cjs.js +0 -11375
- package/dist/bkui-vue.esm.js +0 -11328
- package/dist/bkui-vue.umd.js +0 -11378
- package/lib/form/common.d.ts +0 -3
- package/lib/styles/index.js +0 -1
@@ -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 O()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=T(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 T(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,T(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 L(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(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,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(L),!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),L(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;L(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,o){var i=o.emit,a=r.store,c=(0,t.reactive)({list:[r.store.getNodes()]}),s=(0,t.ref)([]),l=(0,t.ref)([]),u=function(e){e.config.multiple?l.value=a.getCheckedNodes().map((function(e){return e.path})):l.value=e.path,i("input",l.value)},d=function(e){var t;if(!e.isDisabled){if(c.list=c.list.slice(0,e.level),s.value=s.value.slice(0,e.level-1),null===(t=e.children)||void 0===t?void 0:t.length)return c.list.push(e.children),void s.value.push(e);a.config.isRemote&&!e.isLeaf&&(e.loading=!0,a.config.remoteMethod(e,(function(t){a.appendNodes(t,e||null),c.list.push(e.children),s.value.push(e),e.loading=!1})))}};return{menus:c,activePath:s,nodeExpandHandler:d,isNodeInPath:function(e){return(s.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&&d(e),n&&!o&&u(e),e.isLeaf&&!o&&u(e)},onMouseenter:function(){"hover"===r&&d(e)}}},isCheckedNode:function(t,r){return!t.config.multiple&&(0,e.arrayEqual)(r,t.path)},checkValue:l,nodeClear:function(){i("input",[])},checkNode:function(e,t){e.setNodeCheck(t),u(e)},iconRender:function(e){return e.loading?(0,t.createVNode)(n.Spinner,{class:"icon-spinner"},null):(0,t.createVNode)(n.AngleRight,{class:"icon-angle-right"},null)},syncCheckedValue:function(e){e.forEach((function(e){var t=a.getNodeById(e);d(t)})),l.value=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:"bk-cascader-node-name"},[r.name]),r.isLeaf?"":e.iconRender(r)])}))])}))])}});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.leaf=t.leaf,this.level=this.parent?this.parent.level+1:1,this.initState()}return p(e,[{key:"initState",value:function(){var t=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 e(r,t.config,t)})),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 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(e){var r=this;d(this,t);var n=e.list;this.data=n,this.config=e,this.nodes=this.data.map((function(e){return new f(e,r.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}},{key:"getNodeById",value:function(e){return this.getFlattedNodes().find((function(t){return t.id===e}))}},{key:"appendNode",value:function(e,t){var r=new f(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}(),g=(0,t.defineComponent)({name:"Cascader",directives:{clickoutside:r.clickoutside},components:{CascaderPanel:u,BkPopover:i()},props:{modelValue:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.number).def([]),e.PropTypes.arrayOf(e.PropTypes.string).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","change","clear","toggle"],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=(0,t.ref)(e.modelValue),v=(0,t.ref)();(0,t.watch)((function(){return e.modelValue}),(function(e){g(e)}));var g=function(e){if(v.value.syncCheckedValue(e),i)p.value=u.getCheckedNodes().map((function(e){return{text:e.pathNames.join(o),key:e.id}}));else if(0===e.length)h.value="";else{var t=u.getNodeByValue(e);h.value=t.pathNames.join(o)}};return{store:u,updateValue:g,hidePopover:function(){d.value=!1},inputClickHandler:function(e){e.stopPropagation(),d.value=!d.value,n("toggle",d.value)},selectedText:h,checkedValue:f,panelShow:d,handleClear:function(t){t.stopPropagation(),g([]),n("clear",JSON.parse(JSON.stringify(e.modelValue)))},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),g(n)},inputChangeHandler:function(e){g(e),n("update:modelValue",e),n("change",e)},cascaderPanel:v}},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,ref:"cascaderPanel",onInput:function(t){return e.inputChangeHandler(t)}},null)])}})])}});var m=(0,e.withInstallProps)(g,{CascaderPanel:u});const b=m})(),l})()));
|
@@ -0,0 +1,47 @@
|
|
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
|
+
isLeaf: boolean;
|
24
|
+
pathNames: string[];
|
25
|
+
path: string[];
|
26
|
+
setNodeCheck(status: boolean): void;
|
27
|
+
}
|
28
|
+
export interface IData {
|
29
|
+
id: string;
|
30
|
+
name: string;
|
31
|
+
leaf?: boolean;
|
32
|
+
disabled?: boolean;
|
33
|
+
children?: IData[];
|
34
|
+
}
|
35
|
+
export interface IConfig {
|
36
|
+
checkAnyLevel: boolean;
|
37
|
+
childrenKey: string;
|
38
|
+
clearable: boolean;
|
39
|
+
disabled: boolean;
|
40
|
+
idKey: string;
|
41
|
+
isRemote: boolean;
|
42
|
+
multiple: boolean;
|
43
|
+
nameKey: string;
|
44
|
+
showCompleteName: boolean;
|
45
|
+
trigger: string;
|
46
|
+
remoteMethod: Function;
|
47
|
+
}
|
@@ -0,0 +1,25 @@
|
|
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
|
+
children?: null[];
|
13
|
+
leaf: boolean;
|
14
|
+
pathNodes: INode[];
|
15
|
+
path: string[];
|
16
|
+
pathNames: string[];
|
17
|
+
nodes: INode[];
|
18
|
+
constructor(node: IData, config: any, parent?: any);
|
19
|
+
initState(): void;
|
20
|
+
get isLeaf(): boolean;
|
21
|
+
get isDisabled(): boolean;
|
22
|
+
setNodeCheck(status: boolean): void;
|
23
|
+
calculateNodesPath(): INode[];
|
24
|
+
}
|
25
|
+
export default Node;
|
@@ -0,0 +1,19 @@
|
|
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: Array<number | string>): INode;
|
14
|
+
getNodeById(id: number | string): INode;
|
15
|
+
/** 插入单个节点 */
|
16
|
+
appendNode(nodeData: IData, parentNode: IData): void;
|
17
|
+
appendNodes(nodeDataList: IData[], parentNode: IData): void;
|
18
|
+
}
|
19
|
+
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,30 +1,54 @@
|
|
1
1
|
.bk-checkbox {
|
2
|
-
display: inline-
|
3
|
-
|
2
|
+
display: inline-flex;
|
3
|
+
justify-self: center;
|
4
4
|
font-size: 14px;
|
5
|
+
line-height: 18px;
|
5
6
|
letter-spacing: normal;
|
6
7
|
color: #63656e;
|
7
8
|
cursor: pointer;
|
8
9
|
user-select: none;
|
9
10
|
}
|
11
|
+
.bk-checkbox ~ .bk-checkbox {
|
12
|
+
margin-left: 30px;
|
13
|
+
}
|
10
14
|
.bk-checkbox.is-checked .bk-checkbox-input {
|
11
15
|
background: #3a84ff;
|
12
16
|
border-color: #3a84ff;
|
13
17
|
transition: all 0.1s;
|
14
18
|
}
|
19
|
+
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
20
|
+
width: 3px;
|
21
|
+
height: 6px;
|
22
|
+
}
|
15
23
|
.bk-checkbox.is-checked .bk-checkbox-input::after {
|
16
24
|
position: absolute;
|
17
|
-
top:
|
18
|
-
left:
|
25
|
+
top: 50%;
|
26
|
+
left: 50%;
|
19
27
|
width: 4px;
|
20
28
|
height: 8px;
|
21
29
|
border: 2px solid #fff;
|
22
30
|
border-top: 0;
|
23
31
|
border-left: 0;
|
24
32
|
content: '';
|
25
|
-
transform: scaleY(1) rotate(45deg);
|
33
|
+
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
26
34
|
transform-origin: center;
|
27
35
|
}
|
36
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
37
|
+
width: 6px;
|
38
|
+
height: 2px;
|
39
|
+
}
|
40
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input::after {
|
41
|
+
position: absolute;
|
42
|
+
top: 50%;
|
43
|
+
left: 50%;
|
44
|
+
width: 8px;
|
45
|
+
height: 2px;
|
46
|
+
background: #fff;
|
47
|
+
border: none;
|
48
|
+
border-radius: 2px;
|
49
|
+
content: '';
|
50
|
+
transform: translate(-50%, -50%);
|
51
|
+
}
|
28
52
|
.bk-checkbox.is-disabled {
|
29
53
|
color: #c4c6cc;
|
30
54
|
cursor: not-allowed;
|
@@ -49,6 +73,10 @@
|
|
49
73
|
border: 1px solid #979ba5;
|
50
74
|
border-radius: 2px;
|
51
75
|
}
|
76
|
+
.bk-checkbox .bk-checkbox-input.small {
|
77
|
+
width: 14px;
|
78
|
+
height: 14px;
|
79
|
+
}
|
52
80
|
.bk-checkbox .bk-checkbox-original {
|
53
81
|
position: absolute;
|
54
82
|
top: 0;
|
@@ -59,6 +87,5 @@
|
|
59
87
|
}
|
60
88
|
.bk-checkbox .bk-checkbox-label {
|
61
89
|
display: inline-block;
|
62
|
-
line-height: 18px;
|
63
90
|
vertical-align: middle;
|
64
91
|
}
|
@@ -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
|
};
|
@@ -28,16 +26,16 @@ export declare const checkboxProps: {
|
|
28
26
|
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
29
27
|
default: (...args: any[]) => any;
|
30
28
|
};
|
31
|
-
size: import("vue-types").VueTypeDef<string
|
29
|
+
size: import("vue-types").VueTypeDef<string> & {
|
30
|
+
default: string;
|
31
|
+
};
|
32
32
|
};
|
33
33
|
export declare type CheckboxProps = Readonly<ExtractPropTypes<typeof checkboxProps>>;
|
34
34
|
declare const _default: import("vue").DefineComponent<{
|
35
35
|
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
36
36
|
default: string | number | boolean;
|
37
37
|
};
|
38
|
-
label: import("vue-types").VueTypeDef<string | number | boolean
|
39
|
-
required: true;
|
40
|
-
};
|
38
|
+
label: import("vue-types").VueTypeDef<string | number | boolean>;
|
41
39
|
trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
42
40
|
default: string | number | boolean;
|
43
41
|
};
|
@@ -60,41 +58,54 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
58
|
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
61
59
|
default: (...args: any[]) => any;
|
62
60
|
};
|
63
|
-
size: import("vue-types").VueTypeDef<string
|
61
|
+
size: import("vue-types").VueTypeDef<string> & {
|
62
|
+
default: string;
|
63
|
+
};
|
64
64
|
}, {
|
65
|
-
currentValue: import("vue").ComputedRef<string | number | boolean>;
|
66
65
|
isFocus: import("vue").Ref<boolean>;
|
67
|
-
isChecked: import("vue").
|
66
|
+
isChecked: import("vue").Ref<boolean>;
|
68
67
|
isDisabled: import("vue").ComputedRef<boolean>;
|
68
|
+
setChecked: (value?: boolean) => void;
|
69
69
|
handleBlur: () => void;
|
70
70
|
handleFocus: () => void;
|
71
71
|
handleChange: (event: Event) => void;
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
disabled: boolean
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
}
|
72
|
+
size: string;
|
73
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
74
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
75
|
+
default: string | number | boolean;
|
76
|
+
};
|
77
|
+
label: import("vue-types").VueTypeDef<string | number | boolean>;
|
78
|
+
trueLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
79
|
+
default: string | number | boolean;
|
80
|
+
};
|
81
|
+
falseLabel: import("vue-types").VueTypeDef<string | number | boolean> & {
|
82
|
+
default: string | number | boolean;
|
83
|
+
};
|
84
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
85
|
+
default: boolean;
|
86
|
+
} & {
|
87
|
+
default: boolean;
|
88
|
+
};
|
89
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
90
|
+
default: boolean;
|
91
|
+
} & {
|
92
|
+
default: boolean;
|
93
|
+
};
|
94
|
+
indeterminate: import("vue-types").VueTypeValidableDef<boolean> & {
|
95
|
+
default: boolean;
|
96
|
+
};
|
97
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
98
|
+
default: (...args: any[]) => any;
|
99
|
+
};
|
100
|
+
size: import("vue-types").VueTypeDef<string> & {
|
101
|
+
default: string;
|
102
|
+
};
|
103
|
+
}>> & {
|
94
104
|
onChange?: (...args: any[]) => any;
|
95
105
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
96
106
|
}, {
|
97
107
|
disabled: boolean;
|
108
|
+
size: string;
|
98
109
|
modelValue: string | number | boolean;
|
99
110
|
trueLabel: string | number | boolean;
|
100
111
|
falseLabel: string | number | boolean;
|
@@ -1,13 +1,17 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
3
|
.@{bk-prefix}-checkbox {
|
4
|
-
display: inline-
|
5
|
-
|
4
|
+
display: inline-flex;
|
5
|
+
justify-self: center;
|
6
6
|
font-size: 14px;
|
7
|
+
line-height: 18px;
|
7
8
|
letter-spacing: normal;
|
8
9
|
color: #63656e;
|
9
10
|
cursor: pointer;
|
10
11
|
user-select: none;
|
12
|
+
&~.@{bk-prefix}-checkbox {
|
13
|
+
margin-left: 30px;
|
14
|
+
}
|
11
15
|
|
12
16
|
&.is-checked {
|
13
17
|
.bk-checkbox-input {
|
@@ -15,22 +19,53 @@
|
|
15
19
|
border-color: @primary-color;
|
16
20
|
transition: all .1s;
|
17
21
|
|
22
|
+
&.small {
|
23
|
+
&::after {
|
24
|
+
width: 3px;
|
25
|
+
height: 6px;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
18
29
|
&::after {
|
19
30
|
position: absolute;
|
20
|
-
top:
|
21
|
-
left:
|
31
|
+
top: 50%;
|
32
|
+
left: 50%;
|
22
33
|
width: 4px;
|
23
34
|
height: 8px;
|
24
35
|
border: 2px solid #fff;
|
25
36
|
border-top: 0;
|
26
37
|
border-left: 0;
|
27
38
|
content: '';
|
28
|
-
transform: scaleY(1) rotate(45deg);
|
39
|
+
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
29
40
|
transform-origin: center;
|
30
41
|
}
|
31
42
|
}
|
32
43
|
}
|
33
44
|
|
45
|
+
&.is-indeterminated {
|
46
|
+
.bk-checkbox-input {
|
47
|
+
&.small {
|
48
|
+
&::after {
|
49
|
+
width: 6px;
|
50
|
+
height: 2px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
&::after {
|
55
|
+
position: absolute;
|
56
|
+
top: 50%;
|
57
|
+
left: 50%;
|
58
|
+
width: 8px;
|
59
|
+
height: 2px;
|
60
|
+
background: #fff;
|
61
|
+
border: none;
|
62
|
+
border-radius: 2px;
|
63
|
+
content: '';
|
64
|
+
transform: translate(-50%, -50%);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
34
69
|
&.is-disabled {
|
35
70
|
color: #c4c6cc;
|
36
71
|
cursor: not-allowed;
|
@@ -61,6 +96,10 @@
|
|
61
96
|
border: 1px solid #979ba5;
|
62
97
|
border-radius: 2px;
|
63
98
|
|
99
|
+
&.small {
|
100
|
+
width: 14px;
|
101
|
+
height: 14px;
|
102
|
+
}
|
64
103
|
}
|
65
104
|
|
66
105
|
.bk-checkbox-original {
|
@@ -74,7 +113,6 @@
|
|
74
113
|
|
75
114
|
.bk-checkbox-label {
|
76
115
|
display: inline-block;
|
77
|
-
line-height: 18px;
|
78
116
|
vertical-align: middle;
|
79
117
|
}
|
80
118
|
}
|
@@ -1,5 +1,6 @@
|
|
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;
|
@@ -8,6 +9,7 @@
|
|
8
9
|
--gray-color: #979ba5;
|
9
10
|
--light-gray: #c4c6cc;
|
10
11
|
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
11
13
|
--disable-color: #dcdee5;
|
12
14
|
--font-size-base: 12px;
|
13
15
|
--font-size-medium: 14px;
|
@@ -17,7 +19,7 @@
|
|
17
19
|
--line-height-large: 18px;
|
18
20
|
--component-size-small: 26px;
|
19
21
|
--component-size-base: 32px;
|
20
|
-
--component-size-large:
|
22
|
+
--component-size-large: 40px;
|
21
23
|
--border-width-base: 1px;
|
22
24
|
--border-style-base: solid;
|
23
25
|
--border-radius-base: 2px;
|
@@ -30,8 +32,9 @@
|
|
30
32
|
--input-broder-radius: 3px;
|
31
33
|
--input-shadow-color: #a3c5fd;
|
32
34
|
--input-horizontal-padding: 10px;
|
33
|
-
--input-block-color: #
|
34
|
-
--input-
|
35
|
+
--input-block-color: #f5f7fa;
|
36
|
+
--input-block-hover-color: #eaebf0;
|
37
|
+
--input-icon-size: var(--font-size-medium);
|
35
38
|
--input-maxlength-color: #979ba5;
|
36
39
|
--button-primary-hover-color: #5594fa;
|
37
40
|
--button-danger-hover-color: #ff5656;
|
@@ -42,6 +45,15 @@
|
|
42
45
|
--button-danger-active-color: #db2626;
|
43
46
|
--button-success-active-color: #1ab943;
|
44
47
|
--button-warning-active-color: #eb9000;
|
48
|
+
--button-selected-bg-color: #e1ecff;
|
49
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
50
|
+
--radio-font-color: #63656e;
|
51
|
+
--radio-active-color: #5594fa;
|
52
|
+
--radio-hover-border-color: #979ba5;
|
53
|
+
--radio-disabled-border: #dcdee5;
|
54
|
+
--radio-disabled-font-color: #c4c6c;
|
55
|
+
--radio-distable-checked-bg: #fafbfd;
|
56
|
+
--radio-button-checked-bg: #e1ecff;
|
45
57
|
--fixed-navbar-background: #fff;
|
46
58
|
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
47
59
|
--switch-default-color: #fff;
|
@@ -62,12 +74,16 @@
|
|
62
74
|
--message-color: var(--default-color);
|
63
75
|
--message-primary-bg-color: #f0f8ff;
|
64
76
|
--message-primary-border-color: #e1ecff;
|
77
|
+
--message-primary-shadow-color: #e1e8f4;
|
65
78
|
--message-warning-bg-color: #fff4e2;
|
66
79
|
--message-warning-border-color: #ffe8c3;
|
80
|
+
--message-warning-shadow-color: #ede6db;
|
67
81
|
--message-success-bg-color: #f2fff4;
|
68
82
|
--message-success-border-color: #dcffe2;
|
83
|
+
--message-success-shadow-color: #cef0d7;
|
69
84
|
--message-danger-bg-color: #ffeded;
|
70
85
|
--message-danger-border-color: #ffdddd;
|
86
|
+
--message-danger-shadow-color: #f6dada;
|
71
87
|
--slider-default-bg: #dcdee5;
|
72
88
|
--slider-disable-bar-bg: #979ba5;
|
73
89
|
--menu-bg-color: #182132;
|
@@ -83,34 +99,69 @@
|
|
83
99
|
--date-picker-disabled-bg: #fafbfd;
|
84
100
|
--date-picker-dropdown-mb: 4px;
|
85
101
|
--date-picker-dropdown-bg: #fff;
|
102
|
+
--table-bg-color: var(--white-color);
|
103
|
+
--table-border-color: #dcdee5;
|
104
|
+
--table-head-bg-color: #fafbfd;
|
105
|
+
--table-head-font-color: #313238;
|
106
|
+
--table-body-font-color: #575961;
|
107
|
+
--table-row-hover-bg-color: #f5f7fa;
|
108
|
+
--table-row-active-bg-color: #f0f1f5;
|
109
|
+
--cascader-panel-border-color: #dcdee5;
|
110
|
+
--cascader-panel-hover: #eaf3ff;
|
111
|
+
--cascader-panel-active: #f4f6fa;
|
112
|
+
--cascader-panel-disabled-bg: #fff;
|
86
113
|
}
|
87
114
|
.bk-checkbox {
|
88
|
-
display: inline-
|
89
|
-
|
115
|
+
display: inline-flex;
|
116
|
+
justify-self: center;
|
90
117
|
font-size: 14px;
|
118
|
+
line-height: 18px;
|
91
119
|
letter-spacing: normal;
|
92
120
|
color: #63656e;
|
93
121
|
cursor: pointer;
|
94
122
|
user-select: none;
|
95
123
|
}
|
124
|
+
.bk-checkbox ~ .bk-checkbox {
|
125
|
+
margin-left: 30px;
|
126
|
+
}
|
96
127
|
.bk-checkbox.is-checked .bk-checkbox-input {
|
97
128
|
background: var(--primary-color);
|
98
129
|
border-color: var(--primary-color);
|
99
130
|
transition: all 0.1s;
|
100
131
|
}
|
132
|
+
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
133
|
+
width: 3px;
|
134
|
+
height: 6px;
|
135
|
+
}
|
101
136
|
.bk-checkbox.is-checked .bk-checkbox-input::after {
|
102
137
|
position: absolute;
|
103
|
-
top:
|
104
|
-
left:
|
138
|
+
top: 50%;
|
139
|
+
left: 50%;
|
105
140
|
width: 4px;
|
106
141
|
height: 8px;
|
107
142
|
border: 2px solid #fff;
|
108
143
|
border-top: 0;
|
109
144
|
border-left: 0;
|
110
145
|
content: '';
|
111
|
-
transform: scaleY(1) rotate(45deg);
|
146
|
+
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
112
147
|
transform-origin: center;
|
113
148
|
}
|
149
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
150
|
+
width: 6px;
|
151
|
+
height: 2px;
|
152
|
+
}
|
153
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input::after {
|
154
|
+
position: absolute;
|
155
|
+
top: 50%;
|
156
|
+
left: 50%;
|
157
|
+
width: 8px;
|
158
|
+
height: 2px;
|
159
|
+
background: #fff;
|
160
|
+
border: none;
|
161
|
+
border-radius: 2px;
|
162
|
+
content: '';
|
163
|
+
transform: translate(-50%, -50%);
|
164
|
+
}
|
114
165
|
.bk-checkbox.is-disabled {
|
115
166
|
color: #c4c6cc;
|
116
167
|
cursor: not-allowed;
|
@@ -135,6 +186,10 @@
|
|
135
186
|
border: 1px solid #979ba5;
|
136
187
|
border-radius: 2px;
|
137
188
|
}
|
189
|
+
.bk-checkbox .bk-checkbox-input.small {
|
190
|
+
width: 14px;
|
191
|
+
height: 14px;
|
192
|
+
}
|
138
193
|
.bk-checkbox .bk-checkbox-original {
|
139
194
|
position: absolute;
|
140
195
|
top: 0;
|
@@ -145,6 +200,5 @@
|
|
145
200
|
}
|
146
201
|
.bk-checkbox .bk-checkbox-label {
|
147
202
|
display: inline-block;
|
148
|
-
line-height: 18px;
|
149
203
|
vertical-align: middle;
|
150
204
|
}
|
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
|
};
|