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
@@ -21,16 +21,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
21
21
|
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
22
22
|
default: boolean;
|
23
23
|
};
|
24
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
25
|
-
name
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
}
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
25
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
26
|
+
default: string;
|
27
|
+
} & {
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean>;
|
31
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
32
|
+
default: boolean;
|
33
|
+
};
|
34
|
+
}>> & {
|
34
35
|
onChange?: (...args: any[]) => any;
|
35
36
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
36
37
|
}, {
|
package/lib/radio/radio.css
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
.bk-radio {
|
2
|
-
display: inline-
|
2
|
+
display: inline-flex;
|
3
|
+
align-items: center;
|
3
4
|
margin-right: 30px;
|
4
5
|
font-size: 12px;
|
5
6
|
font-weight: normal;
|
@@ -21,11 +22,11 @@
|
|
21
22
|
border-color: #3a84ff;
|
22
23
|
}
|
23
24
|
.bk-radio.is-disabled {
|
24
|
-
color: #
|
25
|
+
color: #c4c6cc;
|
25
26
|
cursor: not-allowed;
|
26
27
|
}
|
27
28
|
.bk-radio.is-disabled.is-checked .bk-radio-input {
|
28
|
-
background-color: #
|
29
|
+
background-color: #fafbfd;
|
29
30
|
}
|
30
31
|
.bk-radio.is-disabled .bk-radio-input {
|
31
32
|
cursor: not-allowed;
|
@@ -34,14 +35,13 @@
|
|
34
35
|
.bk-radio.is-disabled .bk-radio-text {
|
35
36
|
cursor: not-allowed;
|
36
37
|
}
|
37
|
-
.bk-radio.is-
|
38
|
+
.bk-radio.is-focused .bk-radio-input {
|
38
39
|
border-color: #3a84ff;
|
39
40
|
}
|
40
41
|
.bk-radio .bk-radio-text {
|
41
42
|
font-size: 12px;
|
42
43
|
font-style: normal;
|
43
44
|
font-weight: normal;
|
44
|
-
color: #63656e;
|
45
45
|
vertical-align: middle;
|
46
46
|
cursor: pointer;
|
47
47
|
}
|
@@ -55,7 +55,7 @@
|
|
55
55
|
vertical-align: middle;
|
56
56
|
cursor: pointer;
|
57
57
|
background-color: #fff;
|
58
|
-
border: 1px solid #
|
58
|
+
border: 1px solid #979ba5;
|
59
59
|
border-radius: 50%;
|
60
60
|
outline: none;
|
61
61
|
visibility: visible;
|
@@ -107,7 +107,7 @@
|
|
107
107
|
background: #dcdee5;
|
108
108
|
border-color: #dcdee5;
|
109
109
|
}
|
110
|
-
.bk-radio-button.is-
|
110
|
+
.bk-radio-button.is-focused .bk-radio-button-text {
|
111
111
|
border-color: #3a84ff;
|
112
112
|
}
|
113
113
|
.bk-radio-button .bk-radio-button-input {
|
@@ -127,6 +127,12 @@
|
|
127
127
|
text-align: center;
|
128
128
|
vertical-align: middle;
|
129
129
|
cursor: pointer;
|
130
|
-
border: 1px solid #
|
130
|
+
border: 1px solid #979ba5;
|
131
131
|
transition: all 0.3s;
|
132
132
|
}
|
133
|
+
.bk-radio-group {
|
134
|
+
display: inline-block;
|
135
|
+
font-size: 0;
|
136
|
+
line-height: 0;
|
137
|
+
letter-spacing: normal;
|
138
|
+
}
|
package/lib/radio/radio.d.ts
CHANGED
@@ -46,26 +46,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
46
46
|
default: boolean;
|
47
47
|
};
|
48
48
|
}, {
|
49
|
-
|
50
|
-
|
51
|
-
isCheck: import("vue").ComputedRef<boolean>;
|
49
|
+
isFocused: import("vue").Ref<boolean>;
|
50
|
+
isChecked: import("vue").Ref<boolean>;
|
52
51
|
isDisabled: import("vue").ComputedRef<boolean>;
|
52
|
+
setChecked: (value?: boolean) => void;
|
53
53
|
handleBlur: () => void;
|
54
54
|
handleFocus: () => void;
|
55
|
-
|
56
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
57
|
-
name
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
55
|
+
handleChange: (event: Event) => void;
|
56
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
57
|
+
name: import("vue-types").VueTypeValidableDef<string> & {
|
58
|
+
default: string;
|
59
|
+
} & {
|
60
|
+
default: string;
|
61
|
+
};
|
62
|
+
label: import("vue-types").VueTypeDef<string | number | boolean> & {
|
63
|
+
required: true;
|
64
|
+
};
|
65
|
+
modelValue: import("vue-types").VueTypeDef<string | number | boolean> & {
|
66
|
+
default: string | number | boolean;
|
67
|
+
};
|
68
|
+
checked: import("vue-types").VueTypeValidableDef<boolean> & {
|
69
|
+
default: boolean;
|
70
|
+
} & {
|
71
|
+
default: boolean;
|
72
|
+
};
|
73
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
74
|
+
default: boolean;
|
75
|
+
} & {
|
76
|
+
default: boolean;
|
77
|
+
};
|
78
|
+
}>> & {
|
69
79
|
onChange?: (...args: any[]) => any;
|
70
80
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
71
81
|
}, {
|
package/lib/radio/radio.less
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
3
|
.bk-radio {
|
4
|
-
display: inline-
|
4
|
+
display: inline-flex;
|
5
|
+
align-items: center;
|
5
6
|
margin-right: 30px;
|
6
7
|
font-size: @font-size-base;
|
7
8
|
font-weight: normal;
|
@@ -27,18 +28,18 @@
|
|
27
28
|
}
|
28
29
|
|
29
30
|
&.is-disabled {
|
30
|
-
color:
|
31
|
+
color: #c4c6cc;
|
31
32
|
cursor: not-allowed;
|
32
33
|
|
33
34
|
&.is-checked {
|
34
35
|
.bk-radio-input {
|
35
|
-
background-color:
|
36
|
+
background-color: #fafbfd;
|
36
37
|
}
|
37
38
|
}
|
38
39
|
|
39
40
|
.bk-radio-input {
|
40
41
|
cursor: not-allowed;
|
41
|
-
border-color:
|
42
|
+
border-color: #dcdee5;
|
42
43
|
}
|
43
44
|
|
44
45
|
.bk-radio-text {
|
@@ -46,7 +47,7 @@
|
|
46
47
|
}
|
47
48
|
}
|
48
49
|
|
49
|
-
&.is-
|
50
|
+
&.is-focused {
|
50
51
|
.bk-radio-input {
|
51
52
|
border-color: @primary-color;
|
52
53
|
}
|
@@ -56,7 +57,6 @@
|
|
56
57
|
font-size: 12px;
|
57
58
|
font-style: normal;
|
58
59
|
font-weight: normal;
|
59
|
-
color: @default-color;
|
60
60
|
vertical-align: middle;
|
61
61
|
cursor: pointer;
|
62
62
|
}
|
@@ -71,7 +71,7 @@
|
|
71
71
|
vertical-align: middle;
|
72
72
|
cursor: pointer;
|
73
73
|
background-color: #fff;
|
74
|
-
border: @border-width-base @border-style-base
|
74
|
+
border: @border-width-base @border-style-base #979ba5;
|
75
75
|
border-radius: 50%;
|
76
76
|
outline: none;
|
77
77
|
visibility: visible;
|
@@ -136,7 +136,7 @@
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
|
139
|
-
&.is-
|
139
|
+
&.is-focused {
|
140
140
|
.bk-radio-button-text {
|
141
141
|
border-color: @primary-color;
|
142
142
|
}
|
@@ -160,7 +160,14 @@
|
|
160
160
|
text-align: center;
|
161
161
|
vertical-align: middle;
|
162
162
|
cursor: pointer;
|
163
|
-
border: @border-width-base @border-style-base
|
163
|
+
border: @border-width-base @border-style-base #979ba5;
|
164
164
|
transition: all .3s;
|
165
165
|
}
|
166
166
|
}
|
167
|
+
|
168
|
+
.bk-radio-group {
|
169
|
+
display: inline-block;
|
170
|
+
font-size: 0;
|
171
|
+
line-height: 0;
|
172
|
+
letter-spacing: normal;
|
173
|
+
}
|
@@ -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,9 +70,36 @@
|
|
67
70
|
--message-success-border-color: #dcffe2;
|
68
71
|
--message-danger-bg-color: #ffeded;
|
69
72
|
--message-danger-border-color: #ffdddd;
|
73
|
+
--slider-default-bg: #dcdee5;
|
74
|
+
--slider-disable-bar-bg: #979ba5;
|
75
|
+
--menu-bg-color: #182132;
|
76
|
+
--submenu-bg-color: #151d2c;
|
77
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
78
|
+
--menu-color: #96a2b9;
|
79
|
+
--menu-group-color: var(--default-color);
|
80
|
+
--menu-width: 260px;
|
81
|
+
--menu-collapse-width: 60px;
|
82
|
+
--menu-active-color: white;
|
83
|
+
--nav-header-bg-color: #182132;
|
84
|
+
--nav-bg-color: #182132;
|
85
|
+
--date-picker-disabled-bg: #fafbfd;
|
86
|
+
--date-picker-dropdown-mb: 4px;
|
87
|
+
--date-picker-dropdown-bg: #fff;
|
88
|
+
--table-bg-color: var(--white-color);
|
89
|
+
--table-border-color: #dcdee5;
|
90
|
+
--table-head-bg-color: #fafbfd;
|
91
|
+
--table-head-font-color: #313238;
|
92
|
+
--table-body-font-color: #575961;
|
93
|
+
--table-row-hover-bg-color: #f5f7fa;
|
94
|
+
--table-row-active-bg-color: #f0f1f5;
|
95
|
+
--cascader-panel-border-color: #dcdee5;
|
96
|
+
--cascader-panel-hover: #eaf3ff;
|
97
|
+
--cascader-panel-active: #f4f6fa;
|
98
|
+
--cascader-panel-disabled-bg: #fff;
|
70
99
|
}
|
71
100
|
.bk-radio {
|
72
|
-
display: inline-
|
101
|
+
display: inline-flex;
|
102
|
+
align-items: center;
|
73
103
|
margin-right: 30px;
|
74
104
|
font-size: var(--font-size-base);
|
75
105
|
font-weight: normal;
|
@@ -91,27 +121,26 @@
|
|
91
121
|
border-color: var(--primary-color);
|
92
122
|
}
|
93
123
|
.bk-radio.is-disabled {
|
94
|
-
color:
|
124
|
+
color: #c4c6cc;
|
95
125
|
cursor: not-allowed;
|
96
126
|
}
|
97
127
|
.bk-radio.is-disabled.is-checked .bk-radio-input {
|
98
|
-
background-color:
|
128
|
+
background-color: #fafbfd;
|
99
129
|
}
|
100
130
|
.bk-radio.is-disabled .bk-radio-input {
|
101
131
|
cursor: not-allowed;
|
102
|
-
border-color:
|
132
|
+
border-color: #dcdee5;
|
103
133
|
}
|
104
134
|
.bk-radio.is-disabled .bk-radio-text {
|
105
135
|
cursor: not-allowed;
|
106
136
|
}
|
107
|
-
.bk-radio.is-
|
137
|
+
.bk-radio.is-focused .bk-radio-input {
|
108
138
|
border-color: var(--primary-color);
|
109
139
|
}
|
110
140
|
.bk-radio .bk-radio-text {
|
111
141
|
font-size: 12px;
|
112
142
|
font-style: normal;
|
113
143
|
font-weight: normal;
|
114
|
-
color: var(--default-color);
|
115
144
|
vertical-align: middle;
|
116
145
|
cursor: pointer;
|
117
146
|
}
|
@@ -125,7 +154,7 @@
|
|
125
154
|
vertical-align: middle;
|
126
155
|
cursor: pointer;
|
127
156
|
background-color: #fff;
|
128
|
-
border: var(--border-width-base) var(--border-style-base)
|
157
|
+
border: var(--border-width-base) var(--border-style-base) #979ba5;
|
129
158
|
border-radius: 50%;
|
130
159
|
outline: none;
|
131
160
|
visibility: visible;
|
@@ -177,7 +206,7 @@
|
|
177
206
|
background: var(--disable-color);
|
178
207
|
border-color: var(--disable-color);
|
179
208
|
}
|
180
|
-
.bk-radio-button.is-
|
209
|
+
.bk-radio-button.is-focused .bk-radio-button-text {
|
181
210
|
border-color: var(--primary-color);
|
182
211
|
}
|
183
212
|
.bk-radio-button .bk-radio-button-input {
|
@@ -197,6 +226,12 @@
|
|
197
226
|
text-align: center;
|
198
227
|
vertical-align: middle;
|
199
228
|
cursor: pointer;
|
200
|
-
border: var(--border-width-base) var(--border-style-base)
|
229
|
+
border: var(--border-width-base) var(--border-style-base) #979ba5;
|
201
230
|
transition: all 0.3s;
|
202
231
|
}
|
232
|
+
.bk-radio-group {
|
233
|
+
display: inline-block;
|
234
|
+
font-size: 0;
|
235
|
+
line-height: 0;
|
236
|
+
letter-spacing: normal;
|
237
|
+
}
|
package/lib/radio/type.d.ts
CHANGED
@@ -1,9 +1,14 @@
|
|
1
|
-
import type {
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
2
2
|
import type { RadioProps } from './radio';
|
3
|
+
import type { RadioGroupProps } from './radio-group';
|
4
|
+
export declare type IRadioInstance = ComponentPublicInstance<RadioProps, {
|
5
|
+
isChecked: boolean;
|
6
|
+
label: string;
|
7
|
+
setChecked: (value: boolean) => void;
|
8
|
+
}>;
|
3
9
|
export interface IRadioGroupContext {
|
4
10
|
props: RadioGroupProps;
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
handleChange: (value: RadioProps['label']) => void;
|
11
|
+
register: (radioInstance: IRadioInstance) => void;
|
12
|
+
unregister: (radioInstance: IRadioInstance) => void;
|
13
|
+
handleChange: (radioInstance: IRadioInstance) => void;
|
9
14
|
}
|
@@ -0,0 +1,113 @@
|
|
1
|
+
declare const BkRate: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
modelValue: number;
|
7
|
+
editable: boolean;
|
8
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
9
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
10
|
+
default: number;
|
11
|
+
} & {
|
12
|
+
default: number;
|
13
|
+
};
|
14
|
+
size: import("vue-types").VueTypeDef<string>;
|
15
|
+
editable: import("vue-types").VueTypeValidableDef<boolean> & {
|
16
|
+
default: boolean;
|
17
|
+
} & {
|
18
|
+
default: boolean;
|
19
|
+
};
|
20
|
+
}>> & {
|
21
|
+
onChange?: (...args: any[]) => any;
|
22
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
23
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "modelValue" | "editable">;
|
24
|
+
$attrs: {
|
25
|
+
[x: string]: unknown;
|
26
|
+
};
|
27
|
+
$refs: {
|
28
|
+
[x: string]: unknown;
|
29
|
+
};
|
30
|
+
$slots: Readonly<{
|
31
|
+
[name: string]: import("vue").Slot;
|
32
|
+
}>;
|
33
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
34
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
35
|
+
$emit: (event: "change" | "update:modelValue", ...args: any[]) => void;
|
36
|
+
$el: any;
|
37
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
38
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
39
|
+
default: number;
|
40
|
+
} & {
|
41
|
+
default: number;
|
42
|
+
};
|
43
|
+
size: import("vue-types").VueTypeDef<string>;
|
44
|
+
editable: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
|
+
default: boolean;
|
46
|
+
} & {
|
47
|
+
default: boolean;
|
48
|
+
};
|
49
|
+
}>> & {
|
50
|
+
onChange?: (...args: any[]) => any;
|
51
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
52
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], string, {
|
53
|
+
modelValue: number;
|
54
|
+
editable: boolean;
|
55
|
+
}> & {
|
56
|
+
beforeCreate?: (() => void) | (() => void)[];
|
57
|
+
created?: (() => void) | (() => void)[];
|
58
|
+
beforeMount?: (() => void) | (() => void)[];
|
59
|
+
mounted?: (() => void) | (() => void)[];
|
60
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
61
|
+
updated?: (() => void) | (() => void)[];
|
62
|
+
activated?: (() => void) | (() => void)[];
|
63
|
+
deactivated?: (() => void) | (() => void)[];
|
64
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
65
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
66
|
+
destroyed?: (() => void) | (() => void)[];
|
67
|
+
unmounted?: (() => void) | (() => void)[];
|
68
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
69
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
70
|
+
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)[];
|
71
|
+
};
|
72
|
+
$forceUpdate: () => void;
|
73
|
+
$nextTick: typeof import("vue").nextTick;
|
74
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
75
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
76
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
77
|
+
default: number;
|
78
|
+
} & {
|
79
|
+
default: number;
|
80
|
+
};
|
81
|
+
size: import("vue-types").VueTypeDef<string>;
|
82
|
+
editable: import("vue-types").VueTypeValidableDef<boolean> & {
|
83
|
+
default: boolean;
|
84
|
+
} & {
|
85
|
+
default: boolean;
|
86
|
+
};
|
87
|
+
}>> & {
|
88
|
+
onChange?: (...args: any[]) => any;
|
89
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
90
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
91
|
+
__isFragment?: never;
|
92
|
+
__isTeleport?: never;
|
93
|
+
__isSuspense?: never;
|
94
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
95
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
96
|
+
default: number;
|
97
|
+
} & {
|
98
|
+
default: number;
|
99
|
+
};
|
100
|
+
size: import("vue-types").VueTypeDef<string>;
|
101
|
+
editable: import("vue-types").VueTypeValidableDef<boolean> & {
|
102
|
+
default: boolean;
|
103
|
+
} & {
|
104
|
+
default: boolean;
|
105
|
+
};
|
106
|
+
}>> & {
|
107
|
+
onChange?: (...args: any[]) => any;
|
108
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
109
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", {
|
110
|
+
modelValue: number;
|
111
|
+
editable: boolean;
|
112
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
113
|
+
export default BkRate;
|
package/lib/rate/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 r="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t)=>(()=>{"use strict";var r={4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{a.r(n),a.d(n,{default:()=>s});var e=a(4212),t=a(748);const r=(0,t.defineComponent)({name:"Star",props:{rate:e.PropTypes.number.def(0),width:e.PropTypes.number.def(15),height:e.PropTypes.number.def(16),editable:e.PropTypes.bool.def(!0),hoverRate:e.PropTypes.number.def(0),max:e.PropTypes.number.def(5)},emits:["chooseRate","changeHover"],setup:function(r,o){var a=o.emit,n=function(t){return(0,e.classes)({"bk-is-select":t<Math.floor(s.value),"bk-is-edit":r.editable,"bk-rate-star":!0})},s=(0,t.computed)((function(){return r.hoverRate||r.rate})),i={width:"".concat(r.width,"px"),height:"".concat(r.height,"px"),minWidth:"".concat(r.width,"px")};return function(){return(0,t.createVNode)("p",{class:"bk-rate-stars"},[Array(r.max).fill(1).map((function(e,o){return(0,t.createVNode)("svg",{class:n(o),style:i,x:"0px",y:"0px",viewBox:"0 0 64 64",onClick:function(){return function(e){r.editable&&a("chooseRate",e+1)}(o)},onMouseenter:function(){return function(e){r.editable&&a("changeHover",e+1)}(o)}},[(0,t.createVNode)("g",{transform:"translate(-143.000000, -635.000000)"},[(0,t.createVNode)("g",{transform:"translate(83.000000, 114.000000)"},[(0,t.createVNode)("g",{transform:"translate(15.000000, 384.000000)"},[(0,t.createVNode)("g",{transform:"translate(29.000000, 137.000000)"},[(0,t.createVNode)("polygon",{class:"st1",points:"48,53 28.2,63.9 32,40.8 16,24.4 38.1,21 48,-0.1 57.8,21 79.9,24.4 63.9,40.8 67.7,63.9"},null)])])])])])}))])}}}),o=(0,t.defineComponent)({name:"Rate",components:{star:r},props:{modelValue:e.PropTypes.number.def(0),size:e.PropTypes.size(),editable:e.PropTypes.bool.def(!0)},emits:["change","update:modelValue"],setup:function(o,a){var n=a.emit,s=(0,e.useFormItem)(),i=(0,t.ref)(0),l=function(e){var t;o.editable&&(n("update:modelValue",e),n("change",e),null===(t=null==s?void 0:s.validate)||void 0===t||t.call(s,"change"))},u=function(e){i.value=e},d=(0,e.classes)({"bk-rate":!0}),c={small:{width:12,height:12},large:{width:18,height:18}}[o.size]||{width:15,height:16},p=(0,t.computed)((function(){var e=Math.floor(o.modelValue),t=(c.width+3)*e,r=c.width*(o.modelValue-e);return{width:"".concat(t+r,"px")}})),f={width:c.width,height:c.height};return function(){return(0,t.createVNode)("p",{class:d},[o.editable?(0,t.createVNode)(r,(0,t.mergeProps)({rate:o.modelValue,"hover-rate":i.value,onChooseRate:l,onChangeHover:u,onMouseleave:function(){return u(0)}},f),null):[(0,t.createVNode)(r,(0,t.mergeProps)({rate:5,style:p.value,class:"bk-score-real",editable:!1},f),null),(0,t.createVNode)(r,(0,t.mergeProps)({rate:0,editable:!1},f),null)]])}}}),s=(0,e.withInstall)(o)})(),n})()));
|
package/lib/rate/rate.d.ts
CHANGED
@@ -10,16 +10,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
10
10
|
} & {
|
11
11
|
default: boolean;
|
12
12
|
};
|
13
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
14
|
-
modelValue
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
}
|
13
|
+
}, () => JSX.Element, 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<{
|
14
|
+
modelValue: import("vue-types").VueTypeValidableDef<number> & {
|
15
|
+
default: number;
|
16
|
+
} & {
|
17
|
+
default: number;
|
18
|
+
};
|
19
|
+
size: import("vue-types").VueTypeDef<string>;
|
20
|
+
editable: import("vue-types").VueTypeValidableDef<boolean> & {
|
21
|
+
default: boolean;
|
22
|
+
} & {
|
23
|
+
default: boolean;
|
24
|
+
};
|
25
|
+
}>> & {
|
23
26
|
onChange?: (...args: any[]) => any;
|
24
27
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
25
28
|
}, {
|
package/lib/rate/star.d.ts
CHANGED
@@ -29,29 +29,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
29
29
|
} & {
|
30
30
|
default: number;
|
31
31
|
};
|
32
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("chooseRate" | "changeHover")[], "chooseRate" | "changeHover", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
33
|
-
rate
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
32
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("chooseRate" | "changeHover")[], "chooseRate" | "changeHover", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
|
+
rate: import("vue-types").VueTypeValidableDef<number> & {
|
34
|
+
default: number;
|
35
|
+
} & {
|
36
|
+
default: number;
|
37
|
+
};
|
38
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
39
|
+
default: number;
|
40
|
+
} & {
|
41
|
+
default: number;
|
42
|
+
};
|
43
|
+
height: import("vue-types").VueTypeValidableDef<number> & {
|
44
|
+
default: number;
|
45
|
+
} & {
|
46
|
+
default: number;
|
47
|
+
};
|
48
|
+
editable: import("vue-types").VueTypeValidableDef<boolean> & {
|
49
|
+
default: boolean;
|
50
|
+
} & {
|
51
|
+
default: boolean;
|
52
|
+
};
|
53
|
+
hoverRate: import("vue-types").VueTypeValidableDef<number> & {
|
54
|
+
default: number;
|
55
|
+
} & {
|
56
|
+
default: number;
|
57
|
+
};
|
58
|
+
max: import("vue-types").VueTypeValidableDef<number> & {
|
59
|
+
default: number;
|
60
|
+
} & {
|
61
|
+
default: number;
|
62
|
+
};
|
63
|
+
}>> & {
|
47
64
|
onChooseRate?: (...args: any[]) => any;
|
48
65
|
onChangeHover?: (...args: any[]) => any;
|
49
66
|
}, {
|
50
67
|
width: number;
|
51
68
|
height: number;
|
52
69
|
max: number;
|
53
|
-
rate: number;
|
54
70
|
editable: boolean;
|
71
|
+
rate: number;
|
55
72
|
hoverRate: number;
|
56
73
|
}>;
|
57
74
|
export default _default;
|