bkui-vue 0.0.1-beta.9 → 0.0.1-beta.90
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 +24736 -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 +25 -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 +4 -1
- package/lib/steps/steps.d.ts +42 -29
- package/lib/steps/steps.less +5 -1
- package/lib/steps/steps.variable.css +33 -1
- 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 +239 -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
@@ -45,6 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
color: import("vue-types").VueTypeValidableDef<string> & {
|
46
46
|
default: string;
|
47
47
|
};
|
48
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
52
|
+
default: number;
|
53
|
+
} & {
|
54
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
55
|
+
} & {
|
56
|
+
default: number;
|
57
|
+
};
|
48
58
|
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
49
59
|
default: (...args: any[]) => any;
|
50
60
|
} & {
|
@@ -64,55 +74,98 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
74
|
}, {}, unknown, {}, {
|
65
75
|
/** 验证进度值 */
|
66
76
|
validPercent(percent?: number): number;
|
67
|
-
/** text
|
77
|
+
/** text 区域展示内容*/
|
68
78
|
renderProcessInfo(): JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
69
79
|
[key: string]: any;
|
70
80
|
}>[];
|
71
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
72
|
-
extCls
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
81
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
82
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
83
|
+
default: string;
|
84
|
+
};
|
85
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
86
|
+
default: string;
|
87
|
+
} & {
|
88
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
89
|
+
} & {
|
90
|
+
default: string;
|
91
|
+
};
|
92
|
+
percent: import("vue-types").VueTypeValidableDef<number> & {
|
93
|
+
default: number;
|
94
|
+
} & {
|
95
|
+
default: number;
|
96
|
+
};
|
97
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
98
|
+
default: string;
|
99
|
+
};
|
100
|
+
size: import("vue-types").VueTypeDef<string>;
|
101
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
102
|
+
default: number;
|
103
|
+
} & {
|
104
|
+
default: number;
|
105
|
+
};
|
106
|
+
strokeWidth: import("vue-types").VueTypeValidableDef<number> & {
|
107
|
+
default: number;
|
108
|
+
};
|
109
|
+
strokeLinecap: import("vue-types").VueTypeValidableDef<string> & {
|
110
|
+
default: string;
|
111
|
+
} & {
|
112
|
+
default: string;
|
113
|
+
};
|
114
|
+
textInside: import("vue-types").VueTypeValidableDef<boolean> & {
|
115
|
+
default: boolean;
|
116
|
+
} & {
|
117
|
+
default: boolean;
|
118
|
+
};
|
119
|
+
showText: import("vue-types").VueTypeValidableDef<boolean> & {
|
120
|
+
default: boolean;
|
121
|
+
} & {
|
122
|
+
default: boolean;
|
123
|
+
};
|
124
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
125
|
+
default: string;
|
126
|
+
};
|
127
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
128
|
+
default: string;
|
129
|
+
};
|
130
|
+
fixed: import("vue-types").VueTypeValidableDef<number> & {
|
131
|
+
default: number;
|
132
|
+
} & {
|
133
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
134
|
+
} & {
|
135
|
+
default: number;
|
136
|
+
};
|
137
|
+
format: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
138
|
+
default: (...args: any[]) => any;
|
139
|
+
} & {
|
140
|
+
default: (...args: any[]) => any;
|
141
|
+
};
|
142
|
+
titleStyle: import("vue-types").VueTypeValidableDef<{
|
95
143
|
[key: string]: any;
|
144
|
+
}> & {
|
145
|
+
default: () => {
|
146
|
+
[key: string]: any;
|
147
|
+
};
|
148
|
+
} & {
|
149
|
+
default: () => {
|
150
|
+
[key: string]: any;
|
151
|
+
};
|
96
152
|
};
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
format?: (...args: any[]) => any;
|
102
|
-
}> & {}, {
|
153
|
+
}>>, {
|
154
|
+
fixed: number;
|
155
|
+
type: string;
|
156
|
+
theme: string;
|
103
157
|
width: number;
|
104
158
|
color: string;
|
105
|
-
theme: string;
|
106
159
|
extCls: string;
|
107
|
-
type: string;
|
108
|
-
percent: number;
|
109
|
-
strokeWidth: number;
|
110
160
|
strokeLinecap: string;
|
161
|
+
strokeWidth: number;
|
162
|
+
format: (...args: any[]) => any;
|
163
|
+
percent: number;
|
164
|
+
bgColor: string;
|
111
165
|
titleStyle: {
|
112
166
|
[key: string]: any;
|
113
167
|
};
|
114
168
|
showText: boolean;
|
115
169
|
textInside: boolean;
|
116
|
-
format: (...args: any[]) => any;
|
117
170
|
}>;
|
118
171
|
export default _default;
|
@@ -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,6 +70,32 @@
|
|
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
|
@keyframes loading-scale-animate {
|
72
101
|
0% {
|
@@ -89,6 +118,14 @@
|
|
89
118
|
.bk-fade-transtion .bk-fade-leave-to {
|
90
119
|
opacity: 0;
|
91
120
|
}
|
121
|
+
.clearfix-style::after {
|
122
|
+
display: block;
|
123
|
+
height: 0;
|
124
|
+
clear: both;
|
125
|
+
font-size: 0;
|
126
|
+
content: '';
|
127
|
+
visibility: hidden;
|
128
|
+
}
|
92
129
|
.bk-progress {
|
93
130
|
display: inline-block;
|
94
131
|
}
|
@@ -146,9 +183,6 @@
|
|
146
183
|
width: 7%;
|
147
184
|
text-align: center;
|
148
185
|
}
|
149
|
-
.bk-progress .process-circle-trail {
|
150
|
-
stroke: #f5f5f5;
|
151
|
-
}
|
152
186
|
.bk-progress .progress-circle-text {
|
153
187
|
position: absolute;
|
154
188
|
top: 50%;
|
package/lib/radio/common.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
import type
|
1
|
+
import { type InjectionKey, type Ref } from 'vue';
|
2
2
|
import type { IRadioGroupContext } from './type';
|
3
3
|
export declare const radioGroupKey: InjectionKey<IRadioGroupContext>;
|
4
4
|
export declare function useFocus(): [Ref<boolean>, {
|
5
5
|
blur: () => void;
|
6
6
|
focus: () => void;
|
7
7
|
}];
|
8
|
-
export declare
|
9
|
-
|
10
|
-
isCheck: import("vue").ComputedRef<boolean>;
|
8
|
+
export declare const useRadio: () => {
|
9
|
+
isChecked: Ref<boolean>;
|
11
10
|
isDisabled: import("vue").ComputedRef<boolean>;
|
12
|
-
|
11
|
+
setChecked: (value?: boolean) => void;
|
12
|
+
handleChange: (event: Event) => void;
|
13
13
|
};
|
@@ -0,0 +1,277 @@
|
|
1
|
+
import RadioButton from './radio-button';
|
2
|
+
import RadioGroup from './radio-group';
|
3
|
+
declare const BkRadio: {
|
4
|
+
new (...args: any[]): {
|
5
|
+
$: import("vue").ComponentInternalInstance;
|
6
|
+
$data: {};
|
7
|
+
$props: Partial<{
|
8
|
+
name: string;
|
9
|
+
disabled: boolean;
|
10
|
+
modelValue: string | number | boolean;
|
11
|
+
checked: boolean;
|
12
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
13
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
14
|
+
default: string;
|
15
|
+
} & {
|
16
|
+
default: string;
|
17
|
+
};
|
18
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
19
|
+
required: true;
|
20
|
+
};
|
21
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
22
|
+
default: string | number | boolean;
|
23
|
+
};
|
24
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
25
|
+
default: boolean;
|
26
|
+
} & {
|
27
|
+
default: boolean;
|
28
|
+
};
|
29
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
30
|
+
default: boolean;
|
31
|
+
} & {
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
}>> & {
|
35
|
+
onChange?: (...args: any[]) => any;
|
36
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
37
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "name" | "disabled" | "modelValue" | "checked">;
|
38
|
+
$attrs: {
|
39
|
+
[x: string]: unknown;
|
40
|
+
};
|
41
|
+
$refs: {
|
42
|
+
[x: string]: unknown;
|
43
|
+
};
|
44
|
+
$slots: Readonly<{
|
45
|
+
[name: string]: import("vue").Slot;
|
46
|
+
}>;
|
47
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
48
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
49
|
+
$emit: (event: "change" | "update:modelValue", ...args: any[]) => void;
|
50
|
+
$el: any;
|
51
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
52
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
53
|
+
default: string;
|
54
|
+
} & {
|
55
|
+
default: string;
|
56
|
+
};
|
57
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
58
|
+
required: true;
|
59
|
+
};
|
60
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
61
|
+
default: string | number | boolean;
|
62
|
+
};
|
63
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
64
|
+
default: boolean;
|
65
|
+
} & {
|
66
|
+
default: boolean;
|
67
|
+
};
|
68
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
69
|
+
default: boolean;
|
70
|
+
} & {
|
71
|
+
default: boolean;
|
72
|
+
};
|
73
|
+
}>> & {
|
74
|
+
onChange?: (...args: any[]) => any;
|
75
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
76
|
+
}, {
|
77
|
+
isFocused: import("vue").Ref<boolean>;
|
78
|
+
isChecked: import("vue").Ref<boolean>;
|
79
|
+
isDisabled: import("vue").ComputedRef<boolean>;
|
80
|
+
setChecked: (value?: boolean) => void;
|
81
|
+
handleBlur: () => void;
|
82
|
+
handleFocus: () => void;
|
83
|
+
handleChange: (event: Event) => void;
|
84
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
|
85
|
+
name: string;
|
86
|
+
disabled: boolean;
|
87
|
+
modelValue: string | number | boolean;
|
88
|
+
checked: boolean;
|
89
|
+
}> & {
|
90
|
+
beforeCreate?: (() => void) | (() => void)[];
|
91
|
+
created?: (() => void) | (() => void)[];
|
92
|
+
beforeMount?: (() => void) | (() => void)[];
|
93
|
+
mounted?: (() => void) | (() => void)[];
|
94
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
95
|
+
updated?: (() => void) | (() => void)[];
|
96
|
+
activated?: (() => void) | (() => void)[];
|
97
|
+
deactivated?: (() => void) | (() => void)[];
|
98
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
99
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
100
|
+
destroyed?: (() => void) | (() => void)[];
|
101
|
+
unmounted?: (() => void) | (() => void)[];
|
102
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
103
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
104
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
105
|
+
};
|
106
|
+
$forceUpdate: () => void;
|
107
|
+
$nextTick: typeof import("vue").nextTick;
|
108
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
109
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
110
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
111
|
+
default: string;
|
112
|
+
} & {
|
113
|
+
default: string;
|
114
|
+
};
|
115
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
116
|
+
required: true;
|
117
|
+
};
|
118
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
119
|
+
default: string | number | boolean;
|
120
|
+
};
|
121
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
122
|
+
default: boolean;
|
123
|
+
} & {
|
124
|
+
default: boolean;
|
125
|
+
};
|
126
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
127
|
+
default: boolean;
|
128
|
+
} & {
|
129
|
+
default: boolean;
|
130
|
+
};
|
131
|
+
}>> & {
|
132
|
+
onChange?: (...args: any[]) => any;
|
133
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
134
|
+
} & import("vue").ShallowUnwrapRef<{
|
135
|
+
isFocused: import("vue").Ref<boolean>;
|
136
|
+
isChecked: import("vue").Ref<boolean>;
|
137
|
+
isDisabled: import("vue").ComputedRef<boolean>;
|
138
|
+
setChecked: (value?: boolean) => void;
|
139
|
+
handleBlur: () => void;
|
140
|
+
handleFocus: () => void;
|
141
|
+
handleChange: (event: Event) => void;
|
142
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
143
|
+
__isFragment?: never;
|
144
|
+
__isTeleport?: never;
|
145
|
+
__isSuspense?: never;
|
146
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
147
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
148
|
+
default: string;
|
149
|
+
} & {
|
150
|
+
default: string;
|
151
|
+
};
|
152
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
153
|
+
required: true;
|
154
|
+
};
|
155
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
156
|
+
default: string | number | boolean;
|
157
|
+
};
|
158
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
159
|
+
default: boolean;
|
160
|
+
} & {
|
161
|
+
default: boolean;
|
162
|
+
};
|
163
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
164
|
+
default: boolean;
|
165
|
+
} & {
|
166
|
+
default: boolean;
|
167
|
+
};
|
168
|
+
}>> & {
|
169
|
+
onChange?: (...args: any[]) => any;
|
170
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
171
|
+
}, {
|
172
|
+
isFocused: import("vue").Ref<boolean>;
|
173
|
+
isChecked: import("vue").Ref<boolean>;
|
174
|
+
isDisabled: import("vue").ComputedRef<boolean>;
|
175
|
+
setChecked: (value?: boolean) => void;
|
176
|
+
handleBlur: () => void;
|
177
|
+
handleFocus: () => void;
|
178
|
+
handleChange: (event: Event) => void;
|
179
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
|
180
|
+
name: string;
|
181
|
+
disabled: boolean;
|
182
|
+
modelValue: string | number | boolean;
|
183
|
+
checked: boolean;
|
184
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
185
|
+
Group: import("vue").DefineComponent<{
|
186
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
187
|
+
default: string;
|
188
|
+
} & {
|
189
|
+
default: string;
|
190
|
+
};
|
191
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
|
192
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
193
|
+
default: boolean;
|
194
|
+
};
|
195
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
196
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
197
|
+
default: string;
|
198
|
+
} & {
|
199
|
+
default: string;
|
200
|
+
};
|
201
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
|
202
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
203
|
+
default: boolean;
|
204
|
+
};
|
205
|
+
}>> & {
|
206
|
+
onChange?: (...args: any[]) => any;
|
207
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
208
|
+
}, {
|
209
|
+
name: string;
|
210
|
+
disabled: boolean;
|
211
|
+
}>;
|
212
|
+
Button: import("vue").DefineComponent<{
|
213
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
214
|
+
default: string;
|
215
|
+
} & {
|
216
|
+
default: string;
|
217
|
+
};
|
218
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
219
|
+
required: true;
|
220
|
+
};
|
221
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
222
|
+
default: string | number | boolean;
|
223
|
+
};
|
224
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
225
|
+
default: boolean;
|
226
|
+
} & {
|
227
|
+
default: boolean;
|
228
|
+
};
|
229
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
230
|
+
default: boolean;
|
231
|
+
} & {
|
232
|
+
default: boolean;
|
233
|
+
};
|
234
|
+
size: typeof import("@bkui-vue/shared").PropTypes.size;
|
235
|
+
}, {
|
236
|
+
isFocused: import("vue").Ref<boolean>;
|
237
|
+
isChecked: import("vue").Ref<boolean>;
|
238
|
+
isDisabled: import("vue").ComputedRef<boolean>;
|
239
|
+
setChecked: (value?: boolean) => void;
|
240
|
+
handleBlur: () => void;
|
241
|
+
handleFocus: () => void;
|
242
|
+
handleChange: (event: Event) => void;
|
243
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
244
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
245
|
+
default: string;
|
246
|
+
} & {
|
247
|
+
default: string;
|
248
|
+
};
|
249
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
250
|
+
required: true;
|
251
|
+
};
|
252
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
253
|
+
default: string | number | boolean;
|
254
|
+
};
|
255
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
256
|
+
default: boolean;
|
257
|
+
} & {
|
258
|
+
default: boolean;
|
259
|
+
};
|
260
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
261
|
+
default: boolean;
|
262
|
+
} & {
|
263
|
+
default: boolean;
|
264
|
+
};
|
265
|
+
size: typeof import("@bkui-vue/shared").PropTypes.size;
|
266
|
+
}>> & {
|
267
|
+
onChange?: (...args: any[]) => any;
|
268
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
269
|
+
}, {
|
270
|
+
name: string;
|
271
|
+
disabled: boolean;
|
272
|
+
modelValue: string | number | boolean;
|
273
|
+
checked: boolean;
|
274
|
+
}>;
|
275
|
+
}>;
|
276
|
+
export default BkRadio;
|
277
|
+
export { BkRadio, RadioGroup as BkRadioGroup, RadioButton as BkRadioButton, };
|
package/lib/radio/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkRadio:()=>b,BkRadioButton:()=>p,BkRadioGroup:()=>f,default:()=>v});var e=r(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function o(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a=[],i=!0,s=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){s=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(s)throw r}}return a}}(e,o)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,o):void 0}}(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n=r(748),i=Symbol("RadioGroup");function s(){var e=(0,n.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}var l=function(){var t=(0,n.getCurrentInstance)(),o=t.props,r=t.emit,a=(0,e.useFormItem)(),s=(0,n.inject)(i,e.EMPTY_OBJ),l=!(0,e.isEmptyObj)(s),d=(0,n.ref)(!1),u=(0,n.computed)((function(){return!(!l||!s.props.disabled)||o.disabled}));return l?(0,n.watch)((function(){return s.props.modelValue}),(function(e){d.value=e===o.label}),{immediate:!0}):(0,n.watch)((function(){return o.modelValue}),(function(e){""!==e&&(d.value=e===o.label)}),{immediate:!0}),(0,n.onMounted)((function(){l&&s.register(t.proxy)})),(0,n.onBeforeUnmount)((function(){l&&s.unregister(t.proxy)})),{isChecked:d,isDisabled:u,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];d.value=e},handleChange:function(e){var i;if(!u.value){var c=e.target;d.value=c.checked;var p=d.value?o.label:"";r("change",p),r("update:modelValue",p),l&&s.handleChange(t.proxy),null===(i=null==a?void 0:a.validate)||void 0===i||i.call(a,"change"),(0,n.nextTick)((function(){c.checked!==d.value&&(c.checked=d.value)}))}}}},d={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1)};const u=(0,n.defineComponent)({name:"Radio",props:d,emits:["change","update:modelValue"],setup:function(){var e=o(s(),2),t=e[0],n=e[1],r=n.blur,a=n.focus,i=l();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange}},render:function(){var t=(0,e.classes)({"bk-radio":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,n.createVNode)("label",{class:t,tabindex:"0"},[(0,n.createVNode)("input",{class:"bk-radio-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),(0,n.createVNode)("span",{class:"bk-radio-text"},[this.$slots.default?this.$slots.default():this.label])])}});var c={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size};const p=(0,n.defineComponent)({name:"RadioButton",props:c,emits:["change","update:modelValue"],setup:function(){var e=o(s(),2),t=e[0],n=e[1],r=n.blur,a=n.focus,i=l();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange}},render:function(){var t=(0,e.classes)({"bk-radio-button":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,n.createVNode)("label",{class:t,tabindex:"0"},[(0,n.createVNode)("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),(0,n.createVNode)("div",{class:"bk-radio-button-text"},[this.$slots.default?this.$slots.default():this.label])])}});var h={name:e.PropTypes.string.def(""),modelValue:e.PropTypes.oneOfType([String,Number,Boolean]),disabled:e.PropTypes.bool};const f=(0,n.defineComponent)({name:"RadioGroup",props:h,emits:["change","update:modelValue"],setup:function(e,t){var o=[];return(0,n.provide)(i,{props:e,register:function(e){o.push(e)},unregister:function(e){var t=o.indexOf(e);t>-1&&o.splice(t,1)},handleChange:function(e){var n=e.label;o.forEach((function(t){t!==e&&t.setChecked(!1)})),t.emit("update:modelValue",n),t.emit("change",n)}}),(0,n.onMounted)((function(){""!==e.modelValue&&o.forEach((function(t){t.setChecked(t.label===e.modelValue)}))})),{}},render:function(){var e;return(0,n.createVNode)("div",{class:"bk-radio-group"},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var b=(0,e.withInstallProps)(u,{Group:f,Button:p});const v=b})(),a})()));
|
@@ -49,29 +49,37 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
49
|
};
|
50
50
|
size: typeof PropTypes.size;
|
51
51
|
}, {
|
52
|
-
|
53
|
-
|
54
|
-
isCheck: import("vue").ComputedRef<boolean>;
|
52
|
+
isFocused: import("vue").Ref<boolean>;
|
53
|
+
isChecked: import("vue").Ref<boolean>;
|
55
54
|
isDisabled: import("vue").ComputedRef<boolean>;
|
55
|
+
setChecked: (value?: boolean) => void;
|
56
56
|
handleBlur: () => void;
|
57
57
|
handleFocus: () => void;
|
58
|
-
|
59
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
60
|
-
name
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
checked: boolean
|
72
|
-
|
73
|
-
|
74
|
-
|
58
|
+
handleChange: (event: Event) => void;
|
59
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
60
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
61
|
+
default: string;
|
62
|
+
} & {
|
63
|
+
default: string;
|
64
|
+
};
|
65
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
66
|
+
required: true;
|
67
|
+
};
|
68
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
69
|
+
default: string | number | boolean;
|
70
|
+
};
|
71
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
72
|
+
default: boolean;
|
73
|
+
} & {
|
74
|
+
default: boolean;
|
75
|
+
};
|
76
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
77
|
+
default: boolean;
|
78
|
+
} & {
|
79
|
+
default: boolean;
|
80
|
+
};
|
81
|
+
size: typeof PropTypes.size;
|
82
|
+
}>> & {
|
75
83
|
onChange?: (...args: any[]) => any;
|
76
84
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
77
85
|
}, {
|