bkui-vue 0.0.1-beta.8 → 0.0.1-beta.80
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 +24346 -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 +2 -0
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.less +2 -0
- package/lib/alert/alert.variable.css +31 -0
- 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 +72 -48
- package/lib/button/button.d.ts +76 -30
- package/lib/button/button.less +61 -55
- package/lib/button/button.variable.css +101 -48
- package/lib/button/index.d.ts +252 -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 +52 -0
- package/lib/dialog/dialog.d.ts +305 -52
- package/lib/dialog/dialog.less +20 -0
- package/lib/dialog/dialog.variable.css +52 -0
- 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/common.d.ts +3 -0
- 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 +67 -0
- package/lib/form/form.less +152 -0
- package/lib/form/form.variable.css +224 -0
- package/lib/form/index.d.ts +280 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +22 -0
- package/lib/form/validator.d.ts +8 -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 +3 -0
- 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 +78 -4
- package/lib/input/input.d.ts +178 -48
- package/lib/input/input.less +89 -8
- package/lib/input/input.variable.css +108 -4
- 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 +121 -75
- package/lib/loading/loading.d.ts +67 -20
- package/lib/loading/loading.less +78 -60
- package/lib/loading/loading.variable.css +150 -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 +364 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +28 -16
- package/lib/popover/popover.d.ts +111 -45
- package/lib/popover/popover.less +59 -46
- package/lib/popover/popover.variable.css +57 -16
- package/lib/popover/props.d.ts +99 -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 +88 -35
- 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 +278 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +29 -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 +1377 -0
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +245 -29
- package/lib/select/select.d.ts +282 -156
- package/lib/select/select.less +237 -40
- package/lib/select/select.variable.css +274 -29
- package/lib/select/type.d.ts +31 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +71 -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 +2 -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 +48 -32
- 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 +30 -0
- package/lib/table/index.d.ts +389 -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 +189 -0
- package/lib/table/render.d.ts +115 -0
- package/lib/table/table.css +387 -0
- package/lib/table/table.d.ts +126 -36
- package/lib/table/table.less +229 -1
- package/lib/table/table.variable.css +416 -0
- package/lib/table/use-common.d.ts +19 -0
- package/lib/table/utils.d.ts +93 -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/index.d.ts +351 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +257 -0
- package/lib/tree/constant.d.ts +43 -0
- package/lib/tree/index.d.ts +449 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +159 -0
- package/lib/tree/tree.css +53 -0
- package/lib/tree/tree.d.ts +193 -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-form.d.ts +3 -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
package/lib/input/input.css
CHANGED
@@ -19,39 +19,110 @@
|
|
19
19
|
.bk-fade-transtion .bk-fade-leave-to {
|
20
20
|
opacity: 0;
|
21
21
|
}
|
22
|
+
.clearfix-style::after {
|
23
|
+
display: block;
|
24
|
+
height: 0;
|
25
|
+
clear: both;
|
26
|
+
font-size: 0;
|
27
|
+
content: '';
|
28
|
+
visibility: hidden;
|
29
|
+
}
|
30
|
+
.bk-textarea {
|
31
|
+
width: 100%;
|
32
|
+
min-height: 70px;
|
33
|
+
font-size: 12px;
|
34
|
+
line-height: 20px;
|
35
|
+
background-color: white;
|
36
|
+
border: 1px solid #c4c6cc;
|
37
|
+
border-radius: 2px;
|
38
|
+
box-sizing: border-box;
|
39
|
+
transition: all 0.3s;
|
40
|
+
}
|
41
|
+
.bk-textarea > textarea {
|
42
|
+
width: 100%;
|
43
|
+
padding: 5px 10px;
|
44
|
+
line-height: 1.5;
|
45
|
+
text-align: left;
|
46
|
+
vertical-align: middle;
|
47
|
+
border: 0;
|
48
|
+
outline: none;
|
49
|
+
resize: none;
|
50
|
+
}
|
51
|
+
.bk-textarea--max-length {
|
52
|
+
padding-right: 10px;
|
53
|
+
margin: 0;
|
54
|
+
text-align: right;
|
55
|
+
}
|
56
|
+
.bk-textarea--max-length span {
|
57
|
+
color: #979ba5;
|
58
|
+
}
|
22
59
|
.bk-input {
|
23
60
|
display: flex;
|
24
61
|
align-items: stretch;
|
62
|
+
width: 100%;
|
25
63
|
height: 32px;
|
26
64
|
font-size: 12px;
|
27
65
|
border: 1px solid #c4c6cc;
|
28
66
|
border-radius: 2px;
|
29
67
|
transition: all 0.3s;
|
30
68
|
}
|
69
|
+
.bk-input:hover .show-clear-only-hover {
|
70
|
+
display: block;
|
71
|
+
}
|
72
|
+
.bk-input.is-simplicity {
|
73
|
+
background-color: transparent;
|
74
|
+
border-color: transparent;
|
75
|
+
border-bottom-color: #c4c6cc;
|
76
|
+
}
|
31
77
|
.bk-input--suffix-icon {
|
32
78
|
padding-right: 10px;
|
33
79
|
font-size: 16px;
|
80
|
+
line-height: 1;
|
34
81
|
color: #c4c6cc;
|
35
82
|
align-self: center;
|
36
83
|
}
|
84
|
+
.bk-input--suffix-icon.show-clear-only-hover {
|
85
|
+
display: none;
|
86
|
+
}
|
37
87
|
.bk-input--large {
|
38
88
|
height: 38px;
|
89
|
+
font-size: 14px;
|
90
|
+
}
|
91
|
+
.bk-input--large .bk-input--max-length {
|
39
92
|
font-size: 16px;
|
40
93
|
}
|
41
94
|
.bk-input--small {
|
42
95
|
height: 26px;
|
43
96
|
font-size: 12px;
|
44
97
|
}
|
98
|
+
.bk-input--small .bk-input--max-length {
|
99
|
+
font-size: 12px;
|
100
|
+
}
|
101
|
+
.bk-input--default {
|
102
|
+
font-size: 12px;
|
103
|
+
}
|
104
|
+
.bk-input--default .bk-input--max-length {
|
105
|
+
font-size: 12px;
|
106
|
+
}
|
45
107
|
.bk-input.is-focused:not(.is-readonly) {
|
46
108
|
border-color: #3a84ff;
|
47
109
|
outline: 0;
|
48
110
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
49
111
|
}
|
50
|
-
.bk-input.is-
|
112
|
+
.bk-input.is-focused:not(.is-readonly).is-simplicity {
|
113
|
+
border-color: transparent;
|
114
|
+
border-bottom-color: #3a84ff;
|
115
|
+
box-shadow: none;
|
116
|
+
}
|
117
|
+
.bk-input.is-disabled input,
|
118
|
+
.bk-input.is-readonly input {
|
51
119
|
cursor: not-allowed;
|
52
120
|
background-color: #fafbfd;
|
53
121
|
opacity: 1;
|
54
122
|
}
|
123
|
+
.bk-input.is-readonly input {
|
124
|
+
cursor: auto;
|
125
|
+
}
|
55
126
|
.bk-input--prefix-area,
|
56
127
|
.bk-input--suffix-area {
|
57
128
|
display: flex;
|
@@ -73,8 +144,8 @@
|
|
73
144
|
color: #979ba5;
|
74
145
|
}
|
75
146
|
.bk-input--text {
|
147
|
+
width: 100%;
|
76
148
|
padding: 0 10px;
|
77
|
-
font-size: 12px;
|
78
149
|
line-height: 1;
|
79
150
|
color: #63656e;
|
80
151
|
background-color: white;
|
@@ -91,12 +162,12 @@
|
|
91
162
|
.bk-input--text[type='search']::-webkit-search-results-decoration {
|
92
163
|
appearance: none;
|
93
164
|
}
|
94
|
-
.bk-input--text [type=search]::-ms-clear {
|
165
|
+
.bk-input--text [type='search']::-ms-clear {
|
95
166
|
display: none;
|
96
167
|
width: 0;
|
97
168
|
height: 0;
|
98
169
|
}
|
99
|
-
.bk-input--text [type=search]::-ms-reveal {
|
170
|
+
.bk-input--text [type='search']::-ms-reveal {
|
100
171
|
display: none;
|
101
172
|
width: 0;
|
102
173
|
height: 0;
|
@@ -114,12 +185,15 @@
|
|
114
185
|
height: 100%;
|
115
186
|
font-size: 0;
|
116
187
|
flex-direction: column;
|
188
|
+
user-select: none;
|
117
189
|
}
|
118
190
|
.bk-input--number-control span {
|
119
191
|
display: block;
|
120
192
|
height: 50%;
|
121
193
|
overflow: hidden;
|
194
|
+
line-height: 1;
|
122
195
|
color: #c4c6cc;
|
196
|
+
text-align: center;
|
123
197
|
}
|
124
198
|
.bk-input--number-control svg {
|
125
199
|
font-size: 16px;
|
package/lib/input/input.d.ts
CHANGED
@@ -16,6 +16,8 @@ export declare const inputType: {
|
|
16
16
|
};
|
17
17
|
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
18
18
|
default: string;
|
19
|
+
} & {
|
20
|
+
default: string;
|
19
21
|
};
|
20
22
|
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
21
23
|
default: string;
|
@@ -41,6 +43,9 @@ export declare const inputType: {
|
|
41
43
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
42
44
|
default: number;
|
43
45
|
};
|
46
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
47
|
+
default: string;
|
48
|
+
};
|
44
49
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
50
|
default: boolean;
|
46
51
|
};
|
@@ -49,6 +54,11 @@ export declare const inputType: {
|
|
49
54
|
} & {
|
50
55
|
default: boolean;
|
51
56
|
};
|
57
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
58
|
+
default: boolean;
|
59
|
+
} & {
|
60
|
+
default: boolean;
|
61
|
+
};
|
52
62
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
53
63
|
default: number;
|
54
64
|
} & {
|
@@ -56,8 +66,50 @@ export declare const inputType: {
|
|
56
66
|
} & {
|
57
67
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
58
68
|
};
|
59
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
69
|
+
modelValue: import("vue-types").VueTypeDef<string | number> & {
|
70
|
+
default: string | number;
|
71
|
+
};
|
60
72
|
size: import("vue-types").VueTypeDef<string>;
|
73
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
74
|
+
default: number;
|
75
|
+
};
|
76
|
+
};
|
77
|
+
export declare enum EVENTS {
|
78
|
+
UPDATE = "update:modelValue",
|
79
|
+
FOCUS = "focus",
|
80
|
+
BLUR = "blur",
|
81
|
+
CHANGE = "change",
|
82
|
+
CLEAR = "clear",
|
83
|
+
INPUT = "input",
|
84
|
+
KEYPRESS = "keypress",
|
85
|
+
KEYDOWN = "keydown",
|
86
|
+
KEYUP = "keyup",
|
87
|
+
ENTER = "enter",
|
88
|
+
PASTE = "paste",
|
89
|
+
COMPOSITIONSTART = "compositionstart",
|
90
|
+
COMPOSITIONUPDATE = "compositionupdate",
|
91
|
+
COMPOSITIONEND = "compositionend"
|
92
|
+
}
|
93
|
+
declare function EventFunction(value: string | number, evt?: KeyboardEvent | Event): {
|
94
|
+
value: string | number;
|
95
|
+
evt: Event | KeyboardEvent;
|
96
|
+
};
|
97
|
+
declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
|
98
|
+
export declare const inputEmitEventsType: {
|
99
|
+
"update:modelValue": typeof EventFunction;
|
100
|
+
focus: (evt: FocusEvent) => FocusEvent;
|
101
|
+
blur: (evt: FocusEvent) => FocusEvent;
|
102
|
+
change: typeof EventFunction;
|
103
|
+
clear: () => boolean;
|
104
|
+
input: typeof EventFunction;
|
105
|
+
keypress: typeof EventFunction;
|
106
|
+
keydown: typeof EventFunction;
|
107
|
+
keyup: typeof EventFunction;
|
108
|
+
enter: typeof EventFunction;
|
109
|
+
paste: typeof EventFunction;
|
110
|
+
compositionstart: typeof CompositionEventFunction;
|
111
|
+
compositionupdate: typeof CompositionEventFunction;
|
112
|
+
compositionend: typeof CompositionEventFunction;
|
61
113
|
};
|
62
114
|
export declare type InputType = ExtractPropTypes<typeof inputType>;
|
63
115
|
declare const _default: import("vue").DefineComponent<{
|
@@ -77,6 +129,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
77
129
|
};
|
78
130
|
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
79
131
|
default: string;
|
132
|
+
} & {
|
133
|
+
default: string;
|
80
134
|
};
|
81
135
|
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
82
136
|
default: string;
|
@@ -102,6 +156,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
102
156
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
103
157
|
default: number;
|
104
158
|
};
|
159
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
160
|
+
default: string;
|
161
|
+
};
|
105
162
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
106
163
|
default: boolean;
|
107
164
|
};
|
@@ -110,6 +167,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
167
|
} & {
|
111
168
|
default: boolean;
|
112
169
|
};
|
170
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
171
|
+
default: boolean;
|
172
|
+
} & {
|
173
|
+
default: boolean;
|
174
|
+
};
|
113
175
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
114
176
|
default: number;
|
115
177
|
} & {
|
@@ -117,59 +179,123 @@ declare const _default: import("vue").DefineComponent<{
|
|
117
179
|
} & {
|
118
180
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
119
181
|
};
|
120
|
-
modelValue: import("vue-types").VueTypeDef<string | number
|
182
|
+
modelValue: import("vue-types").VueTypeDef<string | number> & {
|
183
|
+
default: string | number;
|
184
|
+
};
|
121
185
|
size: import("vue-types").VueTypeDef<string>;
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
186
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
187
|
+
default: number;
|
188
|
+
};
|
189
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
190
|
+
"update:modelValue": typeof EventFunction;
|
191
|
+
focus: (evt: FocusEvent) => FocusEvent;
|
192
|
+
blur: (evt: FocusEvent) => FocusEvent;
|
193
|
+
change: typeof EventFunction;
|
194
|
+
clear: () => boolean;
|
195
|
+
input: typeof EventFunction;
|
196
|
+
keypress: typeof EventFunction;
|
197
|
+
keydown: typeof EventFunction;
|
198
|
+
keyup: typeof EventFunction;
|
199
|
+
enter: typeof EventFunction;
|
200
|
+
paste: typeof EventFunction;
|
201
|
+
compositionstart: typeof CompositionEventFunction;
|
202
|
+
compositionupdate: typeof CompositionEventFunction;
|
203
|
+
compositionend: typeof CompositionEventFunction;
|
204
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
205
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
206
|
+
default: string;
|
207
|
+
} & {
|
208
|
+
default: string;
|
209
|
+
};
|
210
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
211
|
+
default: boolean;
|
212
|
+
};
|
213
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
214
|
+
default: boolean;
|
215
|
+
};
|
216
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
217
|
+
default: boolean;
|
218
|
+
};
|
219
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
220
|
+
default: string;
|
221
|
+
} & {
|
222
|
+
default: string;
|
223
|
+
};
|
224
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
225
|
+
default: string;
|
226
|
+
};
|
227
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
228
|
+
default: string;
|
229
|
+
};
|
230
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
231
|
+
default: string;
|
232
|
+
};
|
233
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
234
|
+
default: string;
|
235
|
+
};
|
236
|
+
step: import("vue-types").VueTypeDef<number> & {
|
237
|
+
default: number;
|
238
|
+
};
|
239
|
+
max: import("vue-types").VueTypeDef<number> & {
|
240
|
+
default: number;
|
241
|
+
};
|
242
|
+
min: import("vue-types").VueTypeDef<number> & {
|
243
|
+
default: number;
|
244
|
+
};
|
245
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
246
|
+
default: number;
|
247
|
+
};
|
248
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
249
|
+
default: string;
|
250
|
+
};
|
251
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
252
|
+
default: boolean;
|
253
|
+
};
|
254
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
255
|
+
default: boolean;
|
256
|
+
} & {
|
257
|
+
default: boolean;
|
258
|
+
};
|
259
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
260
|
+
default: boolean;
|
261
|
+
} & {
|
262
|
+
default: boolean;
|
263
|
+
};
|
264
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
265
|
+
default: number;
|
266
|
+
} & {
|
267
|
+
default: number;
|
268
|
+
} & {
|
269
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
270
|
+
};
|
271
|
+
modelValue: import("vue-types").VueTypeDef<string | number> & {
|
272
|
+
default: string | number;
|
273
|
+
};
|
274
|
+
size: import("vue-types").VueTypeDef<string>;
|
275
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
276
|
+
default: number;
|
277
|
+
};
|
278
|
+
}>> & {
|
279
|
+
onChange?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
280
|
+
onPaste?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
281
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
282
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
283
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
284
|
+
onFocus?: (evt: FocusEvent) => any;
|
285
|
+
onBlur?: (evt: FocusEvent) => any;
|
286
|
+
onInput?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
287
|
+
onKeydown?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
288
|
+
onKeypress?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
289
|
+
onKeyup?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
290
|
+
onEnter?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
291
|
+
"onUpdate:modelValue"?: (value: string | number, evt?: Event | KeyboardEvent) => any;
|
292
|
+
onClear?: () => any;
|
293
|
+
}, {
|
143
294
|
prefix: string;
|
144
|
-
step: number;
|
145
|
-
disabled: boolean;
|
146
295
|
type: string;
|
147
|
-
clearable: boolean;
|
148
|
-
readonly: boolean;
|
149
|
-
prefixIcon: string;
|
150
|
-
suffixIcon: string;
|
151
|
-
suffix: string;
|
152
|
-
max: number;
|
153
|
-
min: number;
|
154
|
-
maxlength: number;
|
155
|
-
showWordLimit: boolean;
|
156
|
-
showControl: boolean;
|
157
|
-
precision: number;
|
158
|
-
} & {
|
159
|
-
size?: string;
|
160
|
-
modelValue?: string | number;
|
161
|
-
}> & {
|
162
|
-
onFocus?: (...args: any[]) => any;
|
163
|
-
onBlur?: (...args: any[]) => any;
|
164
|
-
onChange?: (...args: any[]) => any;
|
165
|
-
onInput?: (...args: any[]) => any;
|
166
|
-
"onUpdate:modelValue"?: (...args: any[]) => any;
|
167
|
-
}, {
|
168
296
|
placeholder: string;
|
169
|
-
prefix: string;
|
170
297
|
step: number;
|
171
298
|
disabled: boolean;
|
172
|
-
type: string;
|
173
299
|
clearable: boolean;
|
174
300
|
readonly: boolean;
|
175
301
|
prefixIcon: string;
|
@@ -178,8 +304,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
178
304
|
max: number;
|
179
305
|
min: number;
|
180
306
|
maxlength: number;
|
307
|
+
behavior: string;
|
181
308
|
showWordLimit: boolean;
|
182
309
|
showControl: boolean;
|
310
|
+
showClearOnlyHover: boolean;
|
183
311
|
precision: number;
|
312
|
+
modelValue: string | number;
|
313
|
+
rows: number;
|
184
314
|
}>;
|
185
315
|
export default _default;
|
package/lib/input/input.less
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
1
|
@import '../styles/themes/themes.less';
|
3
2
|
@import '../styles/mixins/mixins.less';
|
4
3
|
|
5
4
|
.active(@color: @primary-color) {
|
6
|
-
border-color: @primary-color;
|
5
|
+
border-color: @primary-color;
|
7
6
|
outline: 0;
|
8
7
|
box-shadow: 0px 0px 3px 0px @input-shadow-color;
|
9
8
|
}
|
@@ -14,38 +13,117 @@
|
|
14
13
|
opacity: 1;
|
15
14
|
}
|
16
15
|
|
16
|
+
.@{bk-prefix}-textarea {
|
17
|
+
width: 100%;
|
18
|
+
min-height: 70px;
|
19
|
+
font-size: @font-size-base;
|
20
|
+
line-height: 20px;
|
21
|
+
background-color: white;
|
22
|
+
border: @border-width-base @border-style-base @input-border-color;
|
23
|
+
border-radius: 2px;
|
24
|
+
border-radius: @border-radius-base;
|
25
|
+
box-sizing: border-box;
|
26
|
+
transition: all .3s;
|
27
|
+
|
28
|
+
> textarea {
|
29
|
+
width: 100%;
|
30
|
+
padding: 5px 10px;
|
31
|
+
line-height: 1.5;
|
32
|
+
text-align: left;
|
33
|
+
vertical-align: middle;
|
34
|
+
border: 0;
|
35
|
+
outline: none;
|
36
|
+
resize: none;
|
37
|
+
}
|
38
|
+
|
39
|
+
&--max-length {
|
40
|
+
padding-right: @input-horizontal-padding;
|
41
|
+
margin: 0;
|
42
|
+
text-align: right;
|
43
|
+
|
44
|
+
span {
|
45
|
+
color: @input-maxlength-color;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
17
50
|
.@{bk-prefix}-input {
|
18
51
|
display: flex;
|
19
52
|
align-items: stretch;
|
53
|
+
width: 100%;
|
20
54
|
height: @input-height-base;
|
21
55
|
font-size: @font-size-base;
|
22
56
|
border: @border-width-base @border-style-base @input-border-color;
|
23
57
|
border-radius: @border-radius-base;
|
24
58
|
transition: all .3s;
|
25
59
|
|
60
|
+
&:hover {
|
61
|
+
.show-clear-only-hover {
|
62
|
+
display: block;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
&.is-simplicity {
|
67
|
+
background-color: transparent;
|
68
|
+
border-color: transparent;
|
69
|
+
border-bottom-color: @input-border-color;
|
70
|
+
}
|
71
|
+
|
26
72
|
&--suffix-icon {
|
27
73
|
padding-right: @input-horizontal-padding;
|
28
74
|
font-size: @input-icon-size;
|
75
|
+
line-height: 1;
|
29
76
|
color: @light-gray;
|
30
77
|
align-self: center;
|
78
|
+
|
79
|
+
&.show-clear-only-hover {
|
80
|
+
display: none;
|
81
|
+
}
|
31
82
|
}
|
32
83
|
|
33
84
|
&--large {
|
34
|
-
.component-size(@component-size-large, @font-size-
|
85
|
+
.component-size(@component-size-large, @font-size-medium);
|
86
|
+
|
87
|
+
.@{bk-prefix}-input--max-length {
|
88
|
+
font-size: @font-size-large;
|
89
|
+
}
|
35
90
|
}
|
36
91
|
|
37
92
|
&--small {
|
38
93
|
.component-size(@component-size-small, @font-size-base);
|
94
|
+
|
95
|
+
.@{bk-prefix}-input--max-length {
|
96
|
+
font-size: @font-size-base;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
&--default {
|
101
|
+
font-size: @font-size-base;
|
102
|
+
|
103
|
+
.@{bk-prefix}-input--max-length {
|
104
|
+
font-size: @font-size-base;
|
105
|
+
}
|
39
106
|
}
|
40
107
|
|
41
108
|
&.is-focused:not(.is-readonly) {
|
42
109
|
.active();
|
110
|
+
|
111
|
+
&.is-simplicity {
|
112
|
+
border-color: transparent;
|
113
|
+
border-bottom-color: @primary-color;
|
114
|
+
box-shadow: none;
|
115
|
+
}
|
43
116
|
}
|
44
117
|
|
45
|
-
&.is-disabled
|
118
|
+
&.is-disabled input,
|
119
|
+
&.is-readonly input {
|
46
120
|
.disabled();
|
47
121
|
}
|
48
122
|
|
123
|
+
&.is-readonly input {
|
124
|
+
cursor: auto;
|
125
|
+
}
|
126
|
+
|
49
127
|
&--prefix-area,
|
50
128
|
&--suffix-area {
|
51
129
|
display: flex;
|
@@ -69,10 +147,10 @@
|
|
69
147
|
color: @input-maxlength-color;
|
70
148
|
}
|
71
149
|
}
|
72
|
-
|
150
|
+
|
73
151
|
&--text {
|
152
|
+
width: 100%;
|
74
153
|
padding: 0 @input-horizontal-padding;
|
75
|
-
font-size: @font-size-base;
|
76
154
|
line-height: 1;
|
77
155
|
color: @input-color;
|
78
156
|
background-color: @input-bg;
|
@@ -91,13 +169,13 @@
|
|
91
169
|
appearance: none;
|
92
170
|
}
|
93
171
|
// IE
|
94
|
-
[type=search]::-ms-clear {
|
172
|
+
[type='search']::-ms-clear {
|
95
173
|
display: none;
|
96
174
|
width: 0;
|
97
175
|
height: 0;
|
98
176
|
}
|
99
177
|
|
100
|
-
[type=search]::-ms-reveal {
|
178
|
+
[type='search']::-ms-reveal {
|
101
179
|
display: none;
|
102
180
|
width: 0;
|
103
181
|
height: 0;
|
@@ -119,12 +197,15 @@
|
|
119
197
|
height: 100%;
|
120
198
|
font-size: 0;
|
121
199
|
flex-direction: column;
|
200
|
+
user-select: none;
|
122
201
|
|
123
202
|
span {
|
124
203
|
display: block;
|
125
204
|
height: 50%;
|
126
205
|
overflow: hidden;
|
206
|
+
line-height: 1;
|
127
207
|
color: @light-gray;
|
208
|
+
text-align: center;
|
128
209
|
}
|
129
210
|
|
130
211
|
svg {
|