bkui-vue 0.0.1-beta.3 → 0.0.1-beta.32
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/README_EN.md +93 -0
- package/dist/bkui-vue.cjs.js +18095 -2770
- package/dist/bkui-vue.esm.js +18052 -2776
- package/dist/bkui-vue.umd.js +18097 -2772
- package/dist/style.css +4114 -259
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +32 -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 +32 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +10 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +42 -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 +9 -0
- package/lib/button/button.d.ts +57 -28
- package/lib/button/button.less +23 -15
- package/lib/button/button.variable.css +41 -0
- package/lib/button/index.d.ts +226 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +32 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +32 -0
- package/lib/checkbox/common.d.ts +1 -1
- package/lib/checkbox/index.d.ts +261 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +7 -6
- 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 +279 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.d.ts +166 -0
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +39 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +294 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +500 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -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 +111 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.d.ts +57 -27
- package/lib/dialog/index.d.ts +286 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +14 -14
- package/lib/directives/tooltips.d.ts +17 -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 +131 -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 +43 -0
- package/lib/dropdown/dropdown.d.ts +61 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +32 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +145 -0
- package/lib/form/form.css +48 -0
- package/lib/form/form.d.ts +64 -0
- package/lib/form/form.less +63 -0
- package/lib/form/form.variable.css +48 -0
- package/lib/form/index.d.ts +246 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -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 +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +15 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +15 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +53 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +15 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +15 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +15 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +417 -0
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +20 -2
- package/lib/input/input.d.ts +97 -45
- package/lib/input/input.less +28 -5
- package/lib/input/input.variable.css +52 -2
- 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 +32 -0
- package/lib/loading/index.d.ts +164 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +108 -73
- package/lib/loading/loading.d.ts +61 -20
- package/lib/loading/loading.less +73 -58
- package/lib/loading/loading.variable.css +140 -73
- package/lib/menu/index.d.ts +188 -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 +182 -0
- package/lib/menu/menu.d.ts +64 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +275 -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 +96 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +146 -0
- package/lib/message/messageConstructor.d.ts +73 -0
- package/lib/modal/index.d.ts +214 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +33 -15
- package/lib/modal/props.mixin.d.ts +5 -1
- package/lib/navigation/index.d.ts +2 -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 +277 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +142 -0
- package/lib/notify/notifyConstructor.d.ts +91 -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 +272 -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 +287 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +75 -46
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +55 -14
- package/lib/popover/props.d.ts +77 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +15 -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 +231 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +32 -3
- package/lib/radio/common.d.ts +1 -1
- package/lib/radio/index.d.ts +277 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +8 -2
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.less +9 -2
- package/lib/radio/radio.variable.css +40 -2
- package/lib/radio/type.d.ts +1 -1
- 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 +282 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1347 -0
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +243 -17
- package/lib/select/select.d.ts +268 -155
- package/lib/select/select.less +245 -46
- package/lib/select/select.variable.css +275 -17
- 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 +51 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +8 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +206 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
- package/lib/slider/index.js +15 -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 +242 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +15 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +47 -0
- package/lib/styles/index.js +1 -1
- 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 +52 -2
- 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 +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +181 -135
- package/lib/tab/index.d.ts +443 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +191 -0
- package/lib/tab/tab-nav.d.ts +165 -0
- package/lib/tab/tab-panel.d.ts +73 -0
- package/lib/tab/tab.css +148 -0
- package/lib/tab/tab.d.ts +140 -0
- package/lib/tab/tab.less +222 -0
- package/lib/tab/tab.variable.css +241 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +278 -0
- package/lib/table/index.js +10 -1
- package/lib/table/props.d.ts +117 -0
- package/lib/table/render.d.ts +82 -0
- package/lib/table/table.css +90 -0
- package/lib/table/table.d.ts +83 -37
- package/lib/table/table.less +116 -1
- package/lib/table/table.variable.css +122 -0
- package/lib/table/utils.d.ts +69 -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 +129 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -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 +208 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +301 -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 +328 -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 +251 -0
- package/lib/tree/index.d.ts +279 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +121 -0
- package/lib/tree/tree.less +63 -0
- package/lib/tree/tree.variable.css +143 -0
- package/lib/tree/util.d.ts +70 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +10 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +71 -54
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1,417 @@
|
|
1
|
+
declare const BkInput: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
type: string;
|
7
|
+
placeholder: string;
|
8
|
+
prefix: string;
|
9
|
+
step: number;
|
10
|
+
disabled: boolean;
|
11
|
+
readonly: boolean;
|
12
|
+
clearable: boolean;
|
13
|
+
behavior: string;
|
14
|
+
max: number;
|
15
|
+
min: number;
|
16
|
+
maxlength: number;
|
17
|
+
prefixIcon: string;
|
18
|
+
suffixIcon: string;
|
19
|
+
suffix: string;
|
20
|
+
showWordLimit: boolean;
|
21
|
+
showControl: boolean;
|
22
|
+
showClearOnlyHover: boolean;
|
23
|
+
precision: number;
|
24
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
25
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
26
|
+
default: string;
|
27
|
+
} & {
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
|
+
default: boolean;
|
32
|
+
};
|
33
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
34
|
+
default: boolean;
|
35
|
+
};
|
36
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
37
|
+
default: boolean;
|
38
|
+
};
|
39
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
40
|
+
default: string;
|
41
|
+
};
|
42
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
43
|
+
default: string;
|
44
|
+
};
|
45
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
46
|
+
default: string;
|
47
|
+
};
|
48
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
52
|
+
default: string;
|
53
|
+
};
|
54
|
+
step: import("vue-types").VueTypeDef<number> & {
|
55
|
+
default: number;
|
56
|
+
};
|
57
|
+
max: import("vue-types").VueTypeDef<number> & {
|
58
|
+
default: number;
|
59
|
+
};
|
60
|
+
min: import("vue-types").VueTypeDef<number> & {
|
61
|
+
default: number;
|
62
|
+
};
|
63
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
64
|
+
default: number;
|
65
|
+
};
|
66
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
67
|
+
default: string;
|
68
|
+
};
|
69
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
70
|
+
default: boolean;
|
71
|
+
};
|
72
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
73
|
+
default: boolean;
|
74
|
+
} & {
|
75
|
+
default: boolean;
|
76
|
+
};
|
77
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
78
|
+
default: boolean;
|
79
|
+
} & {
|
80
|
+
default: boolean;
|
81
|
+
};
|
82
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
83
|
+
default: number;
|
84
|
+
} & {
|
85
|
+
default: number;
|
86
|
+
} & {
|
87
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
88
|
+
};
|
89
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
90
|
+
size: import("vue-types").VueTypeDef<string>;
|
91
|
+
}>> & {
|
92
|
+
onPaste?: (...args: any[]) => any;
|
93
|
+
onFocus?: (...args: any[]) => any;
|
94
|
+
onBlur?: (...args: any[]) => any;
|
95
|
+
onChange?: (...args: any[]) => any;
|
96
|
+
onInput?: (...args: any[]) => any;
|
97
|
+
onKeydown?: (...args: any[]) => any;
|
98
|
+
onKeypress?: (...args: any[]) => any;
|
99
|
+
onKeyup?: (...args: any[]) => any;
|
100
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
101
|
+
onClear?: (...args: any[]) => any;
|
102
|
+
onEnter?: (...args: any[]) => any;
|
103
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "placeholder" | "prefix" | "step" | "disabled" | "readonly" | "clearable" | "behavior" | "max" | "min" | "maxlength" | "prefixIcon" | "suffixIcon" | "suffix" | "showWordLimit" | "showControl" | "showClearOnlyHover" | "precision">;
|
104
|
+
$attrs: {
|
105
|
+
[x: string]: unknown;
|
106
|
+
};
|
107
|
+
$refs: {
|
108
|
+
[x: string]: unknown;
|
109
|
+
};
|
110
|
+
$slots: Readonly<{
|
111
|
+
[name: string]: import("vue").Slot;
|
112
|
+
}>;
|
113
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
114
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
115
|
+
$emit: (event: "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", ...args: any[]) => void;
|
116
|
+
$el: any;
|
117
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
118
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
119
|
+
default: string;
|
120
|
+
} & {
|
121
|
+
default: string;
|
122
|
+
};
|
123
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
124
|
+
default: boolean;
|
125
|
+
};
|
126
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
127
|
+
default: boolean;
|
128
|
+
};
|
129
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
130
|
+
default: boolean;
|
131
|
+
};
|
132
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
133
|
+
default: string;
|
134
|
+
};
|
135
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
136
|
+
default: string;
|
137
|
+
};
|
138
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
139
|
+
default: string;
|
140
|
+
};
|
141
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
142
|
+
default: string;
|
143
|
+
};
|
144
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
145
|
+
default: string;
|
146
|
+
};
|
147
|
+
step: import("vue-types").VueTypeDef<number> & {
|
148
|
+
default: number;
|
149
|
+
};
|
150
|
+
max: import("vue-types").VueTypeDef<number> & {
|
151
|
+
default: number;
|
152
|
+
};
|
153
|
+
min: import("vue-types").VueTypeDef<number> & {
|
154
|
+
default: number;
|
155
|
+
};
|
156
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
157
|
+
default: number;
|
158
|
+
};
|
159
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
160
|
+
default: string;
|
161
|
+
};
|
162
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
163
|
+
default: boolean;
|
164
|
+
};
|
165
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
166
|
+
default: boolean;
|
167
|
+
} & {
|
168
|
+
default: boolean;
|
169
|
+
};
|
170
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
171
|
+
default: boolean;
|
172
|
+
} & {
|
173
|
+
default: boolean;
|
174
|
+
};
|
175
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
176
|
+
default: number;
|
177
|
+
} & {
|
178
|
+
default: number;
|
179
|
+
} & {
|
180
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
181
|
+
};
|
182
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
183
|
+
size: import("vue-types").VueTypeDef<string>;
|
184
|
+
}>> & {
|
185
|
+
onPaste?: (...args: any[]) => any;
|
186
|
+
onFocus?: (...args: any[]) => any;
|
187
|
+
onBlur?: (...args: any[]) => any;
|
188
|
+
onChange?: (...args: any[]) => any;
|
189
|
+
onInput?: (...args: any[]) => any;
|
190
|
+
onKeydown?: (...args: any[]) => any;
|
191
|
+
onKeypress?: (...args: any[]) => any;
|
192
|
+
onKeyup?: (...args: any[]) => any;
|
193
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
194
|
+
onClear?: (...args: any[]) => any;
|
195
|
+
onEnter?: (...args: any[]) => any;
|
196
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], string, {
|
197
|
+
type: string;
|
198
|
+
placeholder: string;
|
199
|
+
prefix: string;
|
200
|
+
step: number;
|
201
|
+
disabled: boolean;
|
202
|
+
readonly: boolean;
|
203
|
+
clearable: boolean;
|
204
|
+
behavior: string;
|
205
|
+
max: number;
|
206
|
+
min: number;
|
207
|
+
maxlength: number;
|
208
|
+
prefixIcon: string;
|
209
|
+
suffixIcon: string;
|
210
|
+
suffix: string;
|
211
|
+
showWordLimit: boolean;
|
212
|
+
showControl: boolean;
|
213
|
+
showClearOnlyHover: boolean;
|
214
|
+
precision: number;
|
215
|
+
}> & {
|
216
|
+
beforeCreate?: (() => void) | (() => void)[];
|
217
|
+
created?: (() => void) | (() => void)[];
|
218
|
+
beforeMount?: (() => void) | (() => void)[];
|
219
|
+
mounted?: (() => void) | (() => void)[];
|
220
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
221
|
+
updated?: (() => void) | (() => void)[];
|
222
|
+
activated?: (() => void) | (() => void)[];
|
223
|
+
deactivated?: (() => void) | (() => void)[];
|
224
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
225
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
226
|
+
destroyed?: (() => void) | (() => void)[];
|
227
|
+
unmounted?: (() => void) | (() => void)[];
|
228
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
229
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
230
|
+
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)[];
|
231
|
+
};
|
232
|
+
$forceUpdate: () => void;
|
233
|
+
$nextTick: typeof import("vue").nextTick;
|
234
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
235
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
236
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
237
|
+
default: string;
|
238
|
+
} & {
|
239
|
+
default: string;
|
240
|
+
};
|
241
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
242
|
+
default: boolean;
|
243
|
+
};
|
244
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
245
|
+
default: boolean;
|
246
|
+
};
|
247
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
248
|
+
default: boolean;
|
249
|
+
};
|
250
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
251
|
+
default: string;
|
252
|
+
};
|
253
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
254
|
+
default: string;
|
255
|
+
};
|
256
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
257
|
+
default: string;
|
258
|
+
};
|
259
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
260
|
+
default: string;
|
261
|
+
};
|
262
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
263
|
+
default: string;
|
264
|
+
};
|
265
|
+
step: import("vue-types").VueTypeDef<number> & {
|
266
|
+
default: number;
|
267
|
+
};
|
268
|
+
max: import("vue-types").VueTypeDef<number> & {
|
269
|
+
default: number;
|
270
|
+
};
|
271
|
+
min: import("vue-types").VueTypeDef<number> & {
|
272
|
+
default: number;
|
273
|
+
};
|
274
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
275
|
+
default: number;
|
276
|
+
};
|
277
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
278
|
+
default: string;
|
279
|
+
};
|
280
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
281
|
+
default: boolean;
|
282
|
+
};
|
283
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
284
|
+
default: boolean;
|
285
|
+
} & {
|
286
|
+
default: boolean;
|
287
|
+
};
|
288
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
289
|
+
default: boolean;
|
290
|
+
} & {
|
291
|
+
default: boolean;
|
292
|
+
};
|
293
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
294
|
+
default: number;
|
295
|
+
} & {
|
296
|
+
default: number;
|
297
|
+
} & {
|
298
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
299
|
+
};
|
300
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
301
|
+
size: import("vue-types").VueTypeDef<string>;
|
302
|
+
}>> & {
|
303
|
+
onPaste?: (...args: any[]) => any;
|
304
|
+
onFocus?: (...args: any[]) => any;
|
305
|
+
onBlur?: (...args: any[]) => any;
|
306
|
+
onChange?: (...args: any[]) => any;
|
307
|
+
onInput?: (...args: any[]) => any;
|
308
|
+
onKeydown?: (...args: any[]) => any;
|
309
|
+
onKeypress?: (...args: any[]) => any;
|
310
|
+
onKeyup?: (...args: any[]) => any;
|
311
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
312
|
+
onClear?: (...args: any[]) => any;
|
313
|
+
onEnter?: (...args: any[]) => any;
|
314
|
+
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & {} & import("vue").ComponentCustomProperties;
|
315
|
+
__isFragment?: never;
|
316
|
+
__isTeleport?: never;
|
317
|
+
__isSuspense?: never;
|
318
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
319
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
320
|
+
default: string;
|
321
|
+
} & {
|
322
|
+
default: string;
|
323
|
+
};
|
324
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
325
|
+
default: boolean;
|
326
|
+
};
|
327
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
328
|
+
default: boolean;
|
329
|
+
};
|
330
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
331
|
+
default: boolean;
|
332
|
+
};
|
333
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
334
|
+
default: string;
|
335
|
+
};
|
336
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
337
|
+
default: string;
|
338
|
+
};
|
339
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
340
|
+
default: string;
|
341
|
+
};
|
342
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
343
|
+
default: string;
|
344
|
+
};
|
345
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
346
|
+
default: string;
|
347
|
+
};
|
348
|
+
step: import("vue-types").VueTypeDef<number> & {
|
349
|
+
default: number;
|
350
|
+
};
|
351
|
+
max: import("vue-types").VueTypeDef<number> & {
|
352
|
+
default: number;
|
353
|
+
};
|
354
|
+
min: import("vue-types").VueTypeDef<number> & {
|
355
|
+
default: number;
|
356
|
+
};
|
357
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
358
|
+
default: number;
|
359
|
+
};
|
360
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
361
|
+
default: string;
|
362
|
+
};
|
363
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
364
|
+
default: boolean;
|
365
|
+
};
|
366
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
367
|
+
default: boolean;
|
368
|
+
} & {
|
369
|
+
default: boolean;
|
370
|
+
};
|
371
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
372
|
+
default: boolean;
|
373
|
+
} & {
|
374
|
+
default: boolean;
|
375
|
+
};
|
376
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
377
|
+
default: number;
|
378
|
+
} & {
|
379
|
+
default: number;
|
380
|
+
} & {
|
381
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
382
|
+
};
|
383
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
384
|
+
size: import("vue-types").VueTypeDef<string>;
|
385
|
+
}>> & {
|
386
|
+
onPaste?: (...args: any[]) => any;
|
387
|
+
onFocus?: (...args: any[]) => any;
|
388
|
+
onBlur?: (...args: any[]) => any;
|
389
|
+
onChange?: (...args: any[]) => any;
|
390
|
+
onInput?: (...args: any[]) => any;
|
391
|
+
onKeydown?: (...args: any[]) => any;
|
392
|
+
onKeypress?: (...args: any[]) => any;
|
393
|
+
onKeyup?: (...args: any[]) => any;
|
394
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
395
|
+
onClear?: (...args: any[]) => any;
|
396
|
+
onEnter?: (...args: any[]) => any;
|
397
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", {
|
398
|
+
type: string;
|
399
|
+
placeholder: string;
|
400
|
+
prefix: string;
|
401
|
+
step: number;
|
402
|
+
disabled: boolean;
|
403
|
+
readonly: boolean;
|
404
|
+
clearable: boolean;
|
405
|
+
behavior: string;
|
406
|
+
max: number;
|
407
|
+
min: number;
|
408
|
+
maxlength: number;
|
409
|
+
prefixIcon: string;
|
410
|
+
suffixIcon: string;
|
411
|
+
suffix: string;
|
412
|
+
showWordLimit: boolean;
|
413
|
+
showControl: boolean;
|
414
|
+
showClearOnlyHover: boolean;
|
415
|
+
precision: number;
|
416
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
417
|
+
export default BkInput;
|
package/lib/input/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue"),require("../icon")):"function"==typeof define&&define.amd?define(["exports","../shared","vue","../icon"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue,e["@bkui-vue/icon/icons"])}(this,(function(e,t,r,o){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l={exports:{}},a={exports:{}};!function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var s={exports:{}};!function(e){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,n,l=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(o=r.next()).done)&&(l.push(o.value),!t||l.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw n}}return l}},e.exports.__esModule=!0,e.exports.default=e.exports}(s);var u={exports:{}},i={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o},e.exports.__esModule=!0,e.exports.default=e.exports}(i),function(e){var t=i.exports;e.exports=function(e,r){if(e){if("string"==typeof e)return t(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,r):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(u);var p={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(p),function(e){var t=a.exports,r=s.exports,o=u.exports,n=p.exports;e.exports=function(e,l){return t(e)||r(e,l)||o(e,l)||n()},e.exports.__esModule=!0,e.exports.default=e.exports}(l);var c=n(l.exports),d={exports:{}};!function(e){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports}(d);var f=n(d.exports);
|
2
2
|
/*! *****************************************************************************
|
3
3
|
Copyright (c) Microsoft Corporation.
|
4
4
|
|
@@ -12,4 +12,4 @@
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
15
|
-
***************************************************************************** */var
|
15
|
+
***************************************************************************** */var y={type:t.PropTypes.string.def("text"),clearable:t.PropTypes.bool,disabled:t.PropTypes.bool,readonly:t.PropTypes.bool,placeholder:t.PropTypes.string,prefixIcon:t.PropTypes.string,suffixIcon:t.PropTypes.string,suffix:t.PropTypes.string,prefix:t.PropTypes.string,step:t.PropTypes.integer,max:t.PropTypes.integer,min:t.PropTypes.integer,maxlength:t.PropTypes.integer,behavior:t.PropTypes.commonType(["simplicity","normal"]).def("normal"),showWordLimit:t.PropTypes.bool,showControl:t.PropTypes.bool.def(!0),showClearOnlyHover:t.PropTypes.bool.def(!1),precision:t.PropTypes.number.def(0).validate((function(e){return e>=0&&e<20})),modelValue:t.PropTypes.oneOfType([t.PropTypes.string,t.PropTypes.number]),size:t.PropTypes.size()},m=["update:modelValue","focus","blur","change","clear","input","keypress","keydown","keyup","enter","paste"],x=t.stringEnum([].concat(m)),v=r.defineComponent({name:"Input",inheritAttrs:!1,props:y,emits:[].concat(m),setup:function(e,n){var l=r.ref(!1),a=r.ref(!1),s="bk-input",u=n.attrs,i=u.class,p=u.style,d=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}(u,["class","style"]),y=r.computed((function(){var r;return t.classes((f(r={},"".concat(s,"--").concat(e.size),!!e.size),f(r,"is-focused",l.value),f(r,"is-readonly",e.readonly),f(r,"is-disabled",e.disabled),f(r,"is-simplicity","simplicity"===e.behavior),f(r,"".concat(i),!!i),r),s)})),m={search:function(){return r.createVNode(o.Search,null,null)},password:function(){return r.createVNode(o.Eye,{onClick:D},null)}},v=K("suffix-icon"),b=r.computed((function(){var t=m[e.type];return P.value?r.createVNode(o.Unvisible,{onClick:D,class:v},null):t?r.createVNode(t,{class:v},null):null})),h=r.computed((function(){return"number"===e.type})),g=r.computed((function(){return Math.floor(e.maxlength)})),P=r.ref(!1),V=r.computed((function(){return t.classes({"show-clear-only-hover":e.showClearOnlyHover},v)}));function T(){n.emit(x["update:modelValue"],""),n.emit(x.change,""),n.emit(x.clear)}function w(e){l.value=!0,n.emit(x.focus,e)}function N(e){l.value=!1,n.emit(x.blur,e)}var O=[x.keyup,x.keydown,x.keypress,x.paste,x.change,x.input].map((function(e){return function(t){var r=e;("Enter"!==t.code&&"Enter"!==t.key&&13!==t.keyCode||(r=x.enter,t.type===x.keyup))&&(a.value&&[x.input,x.change].some((function(t){return e===t}))||(e===x.input&&n.emit(x["update:modelValue"],h.value?+t.target.value:t.target.value),n.emit(r,t.target.value,t)))}})),_=c(O,6),k=_[0],C=_[1],I=_[2],S=_[3],M=_[4],j=_[5];function A(){a.value=!0}function E(e){a.value=!1,j(e)}function z(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=parseInt(String(t),10),n=Number.isInteger(e.precision)?e.precision:0,l=parseFloat(e.modelValue.toString()),a=Number.isInteger(o)?o:1,s=l+(r?a:-1*a);return Number.isInteger(e.max)&&(s=Math.min(s,e.max)),Number.isInteger(e.min)&&(s=Math.max(s,e.min)),+s.toFixed(n)}function q(){var t=z(e.step);n.emit(x["update:modelValue"],t)}function F(){var t=z(e.step,!1);n.emit(x["update:modelValue"],t)}function K(e){return"".concat(s,"--").concat(e)}function D(){P.value=!P.value}return function(){var t,l,a,u,i,c;return r.createVNode("div",{class:y.value,style:p},[null!==(a=null===(l=null===(t=n.slots)||void 0===t?void 0:t.prefix)||void 0===l?void 0:l.call(t))&&void 0!==a?a:e.prefix&&r.createVNode("div",{class:K("prefix-area")},[r.createVNode("span",{class:K("prefix-area--text")},[e.prefix])]),r.createVNode("input",r.mergeProps(d,{class:"".concat(s,"--text"),value:e.modelValue,type:P.value&&"password"===e.type?"text":e.type,maxlength:e.maxlength,step:e.step,max:e.max,min:e.min,placeholder:e.placeholder,readonly:e.readonly,disabled:e.disabled,onInput:j,onFocus:w,onBlur:N,onPaste:S,onChange:M,onKeypress:I,onKeydown:C,onKeyup:k,onCompositionstart:A,onCompositionend:E}),null),e.clearable&&!!e.modelValue&&r.createVNode(o.Close,{onClick:T,class:V.value},null),b.value,"number"==typeof e.maxlength&&e.showWordLimit&&r.createVNode("p",{class:K("max-length")},[e.modelValue.toString().length,r.createTextVNode("/"),r.createVNode("span",null,[g.value])]),h.value&&e.showControl&&r.createVNode("div",{class:K("number-control")},[r.createVNode(o.DownSmall,{onClick:q},null),r.createVNode(o.DownSmall,{onClick:F},null)]),null!==(c=null===(i=null===(u=n.slots)||void 0===u?void 0:u.suffix)||void 0===i?void 0:i.call(u))&&void 0!==c?c:e.suffix&&r.createVNode("div",{class:K("suffix-area")},[r.createVNode("span",{class:K("suffix-area--text")},[e.suffix])])])}}}),b=t.withInstall(v);e.default=b,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/input/input.css
CHANGED
@@ -28,12 +28,24 @@
|
|
28
28
|
border-radius: 2px;
|
29
29
|
transition: all 0.3s;
|
30
30
|
}
|
31
|
+
.bk-input:hover .show-clear-only-hover {
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
.bk-input.is-simplicity {
|
35
|
+
background-color: transparent;
|
36
|
+
border-color: transparent;
|
37
|
+
border-bottom-color: #c4c6cc;
|
38
|
+
}
|
31
39
|
.bk-input--suffix-icon {
|
32
40
|
padding-right: 10px;
|
33
41
|
font-size: 16px;
|
42
|
+
line-height: 1;
|
34
43
|
color: #c4c6cc;
|
35
44
|
align-self: center;
|
36
45
|
}
|
46
|
+
.bk-input--suffix-icon.show-clear-only-hover {
|
47
|
+
display: none;
|
48
|
+
}
|
37
49
|
.bk-input--large {
|
38
50
|
height: 38px;
|
39
51
|
font-size: 16px;
|
@@ -47,6 +59,11 @@
|
|
47
59
|
outline: 0;
|
48
60
|
box-shadow: 0px 0px 3px 0px #a3c5fd;
|
49
61
|
}
|
62
|
+
.bk-input.is-focused:not(.is-readonly).is-simplicity {
|
63
|
+
border-color: transparent;
|
64
|
+
border-bottom-color: #3a84ff;
|
65
|
+
box-shadow: none;
|
66
|
+
}
|
50
67
|
.bk-input.is-disabled {
|
51
68
|
cursor: not-allowed;
|
52
69
|
background-color: #fafbfd;
|
@@ -91,12 +108,12 @@
|
|
91
108
|
.bk-input--text[type='search']::-webkit-search-results-decoration {
|
92
109
|
appearance: none;
|
93
110
|
}
|
94
|
-
.bk-input--text [type=search]::-ms-clear {
|
111
|
+
.bk-input--text [type='search']::-ms-clear {
|
95
112
|
display: none;
|
96
113
|
width: 0;
|
97
114
|
height: 0;
|
98
115
|
}
|
99
|
-
.bk-input--text [type=search]::-ms-reveal {
|
116
|
+
.bk-input--text [type='search']::-ms-reveal {
|
100
117
|
display: none;
|
101
118
|
width: 0;
|
102
119
|
height: 0;
|
@@ -120,6 +137,7 @@
|
|
120
137
|
height: 50%;
|
121
138
|
overflow: hidden;
|
122
139
|
color: #c4c6cc;
|
140
|
+
text-align: center;
|
123
141
|
}
|
124
142
|
.bk-input--number-control svg {
|
125
143
|
font-size: 16px;
|