bkui-vue 0.0.1-beta.16 → 0.0.1-beta.162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/index.cjs.js +171 -0
- package/dist/index.esm.js +34935 -0
- package/dist/index.umd.js +171 -0
- package/dist/style.css +1 -4328
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +116 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +5 -3
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.less +7 -3
- package/lib/alert/alert.variable.css +35 -6
- package/lib/alert/index.d.ts +96 -60
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +48 -28
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +28 -14
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +38 -3
- package/lib/backtop/index.d.ts +111 -55
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +64 -22
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +35 -8
- package/lib/badge/index.d.ts +202 -84
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.d.ts +22 -14
- package/lib/breadcrumb/breadcrumb.variable.css +81 -3
- package/lib/breadcrumb/index.d.ts +100 -64
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +92 -45
- package/lib/button/button.d.ts +76 -26
- package/lib/button/button.less +88 -47
- package/lib/button/button.variable.css +122 -48
- package/lib/button/index.d.ts +191 -102
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +74 -18
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +126 -4
- package/lib/card/index.d.ts +225 -69
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +50 -0
- package/lib/cascader/cascader.css +147 -0
- package/lib/cascader/cascader.d.ts +275 -0
- package/lib/cascader/cascader.less +167 -0
- package/lib/cascader/cascader.variable.css +260 -0
- package/lib/cascader/index.d.ts +746 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +47 -0
- package/lib/cascader/node.d.ts +25 -0
- package/lib/cascader/store.d.ts +19 -0
- package/lib/checkbox/checkbox-group.d.ts +29 -9
- package/lib/checkbox/checkbox.css +33 -6
- package/lib/checkbox/checkbox.d.ts +43 -32
- package/lib/checkbox/checkbox.less +44 -6
- package/lib/checkbox/checkbox.variable.css +63 -9
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +161 -104
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +3 -7
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +299 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +75 -0
- package/lib/collapse/collapse.css +28 -12
- package/lib/collapse/collapse.d.ts +34 -43
- package/lib/collapse/collapse.less +54 -29
- package/lib/collapse/collapse.variable.css +141 -12
- package/lib/collapse/index.d.ts +212 -76
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +123 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +388 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +28 -6
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +204 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/date-picker.css +18 -2
- package/lib/date-picker/date-picker.d.ts +101 -137
- package/lib/date-picker/date-picker.less +23 -2
- package/lib/date-picker/date-picker.variable.css +48 -5
- package/lib/date-picker/index.d.ts +528 -279
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +10 -1
- package/lib/date-picker/props.d.ts +161 -0
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -1
- package/lib/dialog/dialog.css +78 -21
- package/lib/dialog/dialog.d.ts +285 -52
- package/lib/dialog/dialog.less +56 -22
- package/lib/dialog/dialog.variable.css +78 -21
- package/lib/dialog/index.d.ts +665 -115
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +132 -0
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +21 -13
- package/lib/divider/divider.variable.css +30 -3
- package/lib/divider/index.d.ts +84 -52
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/const.d.ts +4 -0
- package/lib/dropdown/dropdown-item.d.ts +6 -5
- package/lib/dropdown/dropdown-menu.d.ts +6 -5
- package/lib/dropdown/dropdown.css +12 -5
- package/lib/dropdown/dropdown.d.ts +59 -16
- package/lib/dropdown/dropdown.less +48 -34
- package/lib/dropdown/dropdown.variable.css +42 -8
- package/lib/dropdown/index.d.ts +168 -75
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +20 -11
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +70 -17
- package/lib/exception/index.d.ts +62 -39
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +30 -3
- package/lib/fixed-navbar/index.d.ts +96 -37
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +60 -44
- package/lib/form/form.css +102 -10
- package/lib/form/form.d.ts +45 -40
- package/lib/form/form.less +145 -34
- package/lib/form/form.variable.css +215 -10
- package/lib/form/index.d.ts +303 -3
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +8 -6
- package/lib/form/validator.d.ts +1 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.js +1 -15
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.js +1 -15
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.js +1 -15
- package/lib/icon/angle-down-line.js +1 -15
- package/lib/icon/angle-down.js +1 -15
- package/lib/icon/angle-left.js +1 -15
- package/lib/icon/angle-right.js +1 -15
- package/lib/icon/angle-up-fill.js +1 -15
- package/lib/icon/angle-up.js +1 -15
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -15
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.js +1 -15
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -15
- package/lib/icon/code.js +1 -15
- package/lib/icon/cog-shape.js +1 -15
- package/lib/icon/collapse-left.js +1 -15
- package/lib/icon/copy.js +1 -15
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -15
- package/lib/icon/down-shape.js +1 -15
- package/lib/icon/down-small.js +1 -15
- 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/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -15
- 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 -15
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/folder-open.js +1 -15
- package/lib/icon/folder-shape-open.js +1 -15
- package/lib/icon/folder-shape.js +1 -15
- package/lib/icon/folder.js +1 -15
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -15
- package/lib/icon/help-fill.js +1 -15
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +36 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -15
- package/lib/icon/info.js +1 -15
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original .d.ts +4 -0
- package/lib/icon/original .js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -15
- package/lib/icon/plus.js +1 -15
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.js +1 -15
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -15
- package/lib/icon/share.js +1 -15
- package/lib/icon/spinner.js +1 -15
- package/lib/icon/success.js +1 -15
- package/lib/icon/switcher-loading.js +1 -15
- package/lib/icon/text-file.js +1 -15
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -15
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -15
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -15
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +23 -0
- package/lib/info-box/index.js +1 -0
- package/lib/input/index.d.ts +449 -204
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +232 -17
- package/lib/input/input.d.ts +202 -52
- package/lib/input/input.less +180 -18
- package/lib/input/input.variable.css +259 -16
- package/lib/link/index.d.ts +102 -54
- package/lib/link/index.js +1 -1
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +42 -15
- package/lib/loading/index.d.ts +187 -71
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +177 -98
- package/lib/loading/loading.d.ts +109 -25
- package/lib/loading/loading.less +84 -73
- package/lib/loading/loading.variable.css +207 -101
- package/lib/menu/index.d.ts +82 -71
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +6 -5
- package/lib/menu/menu-item.d.ts +6 -5
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +16 -21
- package/lib/menu/menu.variable.css +81 -3
- package/lib/menu/submenu.d.ts +6 -5
- package/lib/menu/submenu.variable.css +30 -3
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +24 -3
- package/lib/message/message.less +27 -2
- package/lib/message/message.variable.css +54 -6
- package/lib/message/messageConstructor.d.ts +69 -21
- package/lib/modal/index.d.ts +517 -68
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +25 -1
- package/lib/modal/modal.d.ts +191 -24
- package/lib/modal/modal.less +33 -1
- package/lib/modal/modal.variable.css +25 -1
- package/lib/modal/props.mixin.d.ts +77 -10
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +10 -7
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +50 -24
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +31 -4
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +24 -4
- package/lib/notify/notify.less +27 -4
- package/lib/notify/notify.variable.css +54 -7
- package/lib/notify/notifyConstructor.d.ts +84 -24
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +292 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +312 -182
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +4 -0
- package/lib/popover/popover.d.ts +102 -32
- package/lib/popover/popover.less +4 -0
- package/lib/popover/popover.variable.css +34 -3
- package/lib/popover/props.d.ts +28 -1
- package/lib/popover2/arrow.d.ts +2 -0
- package/lib/popover2/const.d.ts +10 -0
- package/lib/popover2/content.d.ts +24 -0
- package/lib/popover2/index.d.ts +482 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover2.css +25 -0
- package/lib/popover2/popover2.d.ts +202 -0
- package/lib/popover2/popover2.less +35 -0
- package/lib/popover2/popover2.variable.css +138 -0
- package/lib/popover2/props.d.ts +104 -0
- package/lib/popover2/reference.d.ts +2 -0
- package/lib/popover2/root.d.ts +16 -0
- package/lib/popover2/use-floating.d.ts +20 -0
- package/lib/popover2/use-platform.d.ts +30 -0
- package/lib/popover2/use-popper-id.d.ts +7 -0
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +126 -66
- package/lib/process/index.js +1 -15
- package/lib/process/process.css +2 -3
- package/lib/process/process.d.ts +32 -17
- package/lib/process/process.less +2 -3
- package/lib/process/process.variable.css +32 -6
- package/lib/progress/index.d.ts +299 -151
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +76 -39
- package/lib/progress/progress.variable.css +81 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +156 -96
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +30 -23
- package/lib/radio/radio-group.d.ts +27 -10
- package/lib/radio/radio.css +62 -57
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +181 -172
- package/lib/radio/radio.variable.css +94 -62
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +76 -41
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +24 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +302 -0
- package/lib/select/common.d.ts +20 -31
- package/lib/select/index.d.ts +1202 -633
- package/lib/select/index.js +1 -15
- package/lib/select/option.d.ts +23 -12
- package/lib/select/optionGroup.d.ts +22 -90
- package/lib/select/select.css +230 -81
- package/lib/select/select.d.ts +447 -173
- package/lib/select/select.less +326 -187
- package/lib/select/select.variable.css +261 -85
- package/lib/select/selectTagInput.d.ts +70 -0
- package/lib/select/type.d.ts +39 -0
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +0 -1
- package/lib/shared/index.d.ts +17 -4
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +7 -3
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +11 -7
- package/lib/sideslider/index.d.ts +432 -80
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +54 -10
- package/lib/sideslider/sideslider.d.ts +185 -30
- package/lib/sideslider/sideslider.less +71 -13
- package/lib/sideslider/sideslider.variable.css +84 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -15
- package/lib/slider/slider-button.d.ts +15 -7
- package/lib/slider/slider.d.ts +84 -42
- package/lib/slider/slider.variable.css +30 -3
- package/lib/steps/index.d.ts +162 -110
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +17 -3
- package/lib/steps/steps.d.ts +41 -28
- package/lib/steps/steps.less +27 -3
- package/lib/steps/steps.variable.css +47 -6
- package/lib/styles/index.d.ts +14 -0
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +130 -0
- package/lib/styles/themes/themes.less +40 -3
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +224 -137
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +63 -36
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +87 -9
- package/lib/tab/index.d.ts +306 -282
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +102 -87
- package/lib/tab/tab-panel.d.ts +53 -26
- package/lib/tab/tab.css +25 -1
- package/lib/tab/tab.d.ts +59 -51
- package/lib/tab/tab.less +31 -19
- package/lib/tab/tab.variable.css +55 -4
- package/lib/table/const.d.ts +67 -0
- package/lib/table/index.d.ts +484 -131
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +88 -0
- package/lib/table/plugins/head-filter.variable.css +181 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +135 -0
- package/lib/table/plugins/settings.css +129 -0
- package/lib/table/plugins/settings.less +157 -0
- package/lib/table/plugins/settings.variable.css +242 -0
- package/lib/table/props.d.ts +174 -4
- package/lib/table/render.d.ts +76 -5
- package/lib/table/table.css +1125 -14
- package/lib/table/table.d.ts +197 -24
- package/lib/table/table.less +262 -25
- package/lib/table/table.variable.css +1156 -18
- package/lib/table/use-common.d.ts +72 -0
- package/lib/table/utils.d.ts +76 -2
- package/lib/tag/index.d.ts +165 -274
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +112 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +127 -2
- package/lib/tag/tag.variable.css +142 -3
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +913 -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 +383 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +322 -0
- package/lib/tag-input/tag-props.d.ts +135 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +328 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +240 -0
- package/lib/timeline/timeline.variable.css +348 -0
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +365 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/props.d.ts +54 -0
- package/lib/transfer/transfer.css +139 -0
- package/lib/transfer/transfer.d.ts +160 -0
- package/lib/transfer/transfer.less +144 -0
- package/lib/transfer/transfer.variable.css +252 -0
- package/lib/tree/constant.d.ts +45 -0
- package/lib/tree/index.d.ts +467 -106
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +133 -1
- package/lib/tree/tree.css +170 -14
- package/lib/tree/tree.d.ts +193 -29
- package/lib/tree/tree.less +70 -26
- package/lib/tree/tree.variable.css +283 -14
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +31 -13
- package/lib/upload/index.d.ts +580 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +417 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +530 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +435 -266
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +11 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -24
- package/lib/virtual-render/virtual-render.d.ts +116 -44
- package/lib/virtual-render/virtual-render.less +2 -31
- package/lib/virtual-render/virtual-render.variable.css +130 -24
- package/lib/volar.components.d.ts +100 -0
- package/package.json +104 -84
- package/README_EN.md +0 -89
- package/dist/bkui-vue.cjs.js +0 -11401
- package/dist/bkui-vue.esm.js +0 -11354
- package/dist/bkui-vue.umd.js +0 -11404
- package/lib/form/common.d.ts +0 -3
- package/lib/icon/help.js +0 -15
- package/lib/icon/icon.js +0 -15
- package/lib/styles/index.js +0 -1
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
|
} & {
|
@@ -58,6 +68,53 @@ export declare const inputType: {
|
|
58
68
|
};
|
59
69
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
60
70
|
size: import("vue-types").VueTypeDef<string>;
|
71
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
72
|
+
default: number;
|
73
|
+
};
|
74
|
+
selectReadonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
75
|
+
default: boolean;
|
76
|
+
} & {
|
77
|
+
default: boolean;
|
78
|
+
};
|
79
|
+
withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
|
80
|
+
default: boolean;
|
81
|
+
} & {
|
82
|
+
default: boolean;
|
83
|
+
};
|
84
|
+
};
|
85
|
+
export declare const enum EVENTS {
|
86
|
+
UPDATE = "update:modelValue",
|
87
|
+
FOCUS = "focus",
|
88
|
+
BLUR = "blur",
|
89
|
+
CHANGE = "change",
|
90
|
+
CLEAR = "clear",
|
91
|
+
INPUT = "input",
|
92
|
+
KEYPRESS = "keypress",
|
93
|
+
KEYDOWN = "keydown",
|
94
|
+
KEYUP = "keyup",
|
95
|
+
ENTER = "enter",
|
96
|
+
PASTE = "paste",
|
97
|
+
COMPOSITIONSTART = "compositionstart",
|
98
|
+
COMPOSITIONUPDATE = "compositionupdate",
|
99
|
+
COMPOSITIONEND = "compositionend"
|
100
|
+
}
|
101
|
+
declare function EventFunction(_value: any, _evt?: KeyboardEvent | Event): boolean;
|
102
|
+
declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
|
103
|
+
export declare const inputEmitEventsType: {
|
104
|
+
"update:modelValue": typeof EventFunction;
|
105
|
+
focus: (evt: FocusEvent) => FocusEvent;
|
106
|
+
blur: (evt: FocusEvent) => FocusEvent;
|
107
|
+
change: typeof EventFunction;
|
108
|
+
clear: () => boolean;
|
109
|
+
input: typeof EventFunction;
|
110
|
+
keypress: typeof EventFunction;
|
111
|
+
keydown: typeof EventFunction;
|
112
|
+
keyup: typeof EventFunction;
|
113
|
+
enter: typeof EventFunction;
|
114
|
+
paste: typeof EventFunction;
|
115
|
+
compositionstart: typeof CompositionEventFunction;
|
116
|
+
compositionupdate: typeof CompositionEventFunction;
|
117
|
+
compositionend: typeof CompositionEventFunction;
|
61
118
|
};
|
62
119
|
export declare type InputType = ExtractPropTypes<typeof inputType>;
|
63
120
|
declare const _default: import("vue").DefineComponent<{
|
@@ -77,6 +134,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
77
134
|
};
|
78
135
|
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
79
136
|
default: string;
|
137
|
+
} & {
|
138
|
+
default: string;
|
80
139
|
};
|
81
140
|
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
82
141
|
default: string;
|
@@ -102,6 +161,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
102
161
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
103
162
|
default: number;
|
104
163
|
};
|
164
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
165
|
+
default: string;
|
166
|
+
};
|
105
167
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
106
168
|
default: boolean;
|
107
169
|
};
|
@@ -110,6 +172,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
172
|
} & {
|
111
173
|
default: boolean;
|
112
174
|
};
|
175
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
176
|
+
default: boolean;
|
177
|
+
} & {
|
178
|
+
default: boolean;
|
179
|
+
};
|
113
180
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
114
181
|
default: number;
|
115
182
|
} & {
|
@@ -119,69 +186,152 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
186
|
};
|
120
187
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
121
188
|
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
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
}
|
159
|
-
|
160
|
-
|
161
|
-
}
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
189
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
190
|
+
default: number;
|
191
|
+
};
|
192
|
+
selectReadonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
193
|
+
default: boolean;
|
194
|
+
} & {
|
195
|
+
default: boolean;
|
196
|
+
};
|
197
|
+
withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
|
198
|
+
default: boolean;
|
199
|
+
} & {
|
200
|
+
default: boolean;
|
201
|
+
};
|
202
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
203
|
+
"update:modelValue": typeof EventFunction;
|
204
|
+
focus: (evt: FocusEvent) => FocusEvent;
|
205
|
+
blur: (evt: FocusEvent) => FocusEvent;
|
206
|
+
change: typeof EventFunction;
|
207
|
+
clear: () => boolean;
|
208
|
+
input: typeof EventFunction;
|
209
|
+
keypress: typeof EventFunction;
|
210
|
+
keydown: typeof EventFunction;
|
211
|
+
keyup: typeof EventFunction;
|
212
|
+
enter: typeof EventFunction;
|
213
|
+
paste: typeof EventFunction;
|
214
|
+
compositionstart: typeof CompositionEventFunction;
|
215
|
+
compositionupdate: typeof CompositionEventFunction;
|
216
|
+
compositionend: typeof CompositionEventFunction;
|
217
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
218
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
219
|
+
default: string;
|
220
|
+
} & {
|
221
|
+
default: string;
|
222
|
+
};
|
223
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
224
|
+
default: boolean;
|
225
|
+
};
|
226
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
227
|
+
default: boolean;
|
228
|
+
};
|
229
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
230
|
+
default: boolean;
|
231
|
+
};
|
232
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
233
|
+
default: string;
|
234
|
+
} & {
|
235
|
+
default: string;
|
236
|
+
};
|
237
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
238
|
+
default: string;
|
239
|
+
};
|
240
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
241
|
+
default: string;
|
242
|
+
};
|
243
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
244
|
+
default: string;
|
245
|
+
};
|
246
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
247
|
+
default: string;
|
248
|
+
};
|
249
|
+
step: import("vue-types").VueTypeDef<number> & {
|
250
|
+
default: number;
|
251
|
+
};
|
252
|
+
max: import("vue-types").VueTypeDef<number> & {
|
253
|
+
default: number;
|
254
|
+
};
|
255
|
+
min: import("vue-types").VueTypeDef<number> & {
|
256
|
+
default: number;
|
257
|
+
};
|
258
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
259
|
+
default: number;
|
260
|
+
};
|
261
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
262
|
+
default: string;
|
263
|
+
};
|
264
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
265
|
+
default: boolean;
|
266
|
+
};
|
267
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
268
|
+
default: boolean;
|
269
|
+
} & {
|
270
|
+
default: boolean;
|
271
|
+
};
|
272
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
273
|
+
default: boolean;
|
274
|
+
} & {
|
275
|
+
default: boolean;
|
276
|
+
};
|
277
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
278
|
+
default: number;
|
279
|
+
} & {
|
280
|
+
default: number;
|
281
|
+
} & {
|
282
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
283
|
+
};
|
284
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
285
|
+
size: import("vue-types").VueTypeDef<string>;
|
286
|
+
rows: import("vue-types").VueTypeValidableDef<number> & {
|
287
|
+
default: number;
|
288
|
+
};
|
289
|
+
selectReadonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
290
|
+
default: boolean;
|
291
|
+
} & {
|
292
|
+
default: boolean;
|
293
|
+
};
|
294
|
+
withValidate: import("vue-types").VueTypeValidableDef<boolean> & {
|
295
|
+
default: boolean;
|
296
|
+
} & {
|
297
|
+
default: boolean;
|
298
|
+
};
|
299
|
+
}>> & {
|
300
|
+
onPaste?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
301
|
+
onCompositionend?: (evt: CompositionEvent) => any;
|
302
|
+
onCompositionstart?: (evt: CompositionEvent) => any;
|
303
|
+
onCompositionupdate?: (evt: CompositionEvent) => any;
|
304
|
+
onFocus?: (evt: FocusEvent) => any;
|
305
|
+
onBlur?: (evt: FocusEvent) => any;
|
306
|
+
onChange?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
307
|
+
onInput?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
308
|
+
onKeydown?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
309
|
+
onKeypress?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
310
|
+
onKeyup?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
311
|
+
onEnter?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
312
|
+
"onUpdate:modelValue"?: (_value: any, _evt?: Event | KeyboardEvent) => any;
|
313
|
+
onClear?: () => any;
|
169
314
|
}, {
|
170
|
-
|
315
|
+
type: string;
|
316
|
+
disabled: boolean;
|
171
317
|
placeholder: string;
|
318
|
+
prefix: string;
|
172
319
|
step: number;
|
173
|
-
disabled: boolean;
|
174
|
-
type: string;
|
175
|
-
readonly: boolean;
|
176
|
-
clearable: boolean;
|
177
320
|
max: number;
|
178
321
|
min: number;
|
179
322
|
maxlength: number;
|
323
|
+
clearable: boolean;
|
324
|
+
readonly: boolean;
|
180
325
|
prefixIcon: string;
|
181
326
|
suffixIcon: string;
|
182
327
|
suffix: string;
|
328
|
+
behavior: string;
|
183
329
|
showWordLimit: boolean;
|
184
330
|
showControl: boolean;
|
331
|
+
showClearOnlyHover: boolean;
|
185
332
|
precision: number;
|
333
|
+
rows: number;
|
334
|
+
selectReadonly: boolean;
|
335
|
+
withValidate: boolean;
|
186
336
|
}>;
|
187
337
|
export default _default;
|
package/lib/input/input.less
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
@import '../styles/themes/themes.less';
|
3
2
|
@import '../styles/mixins/mixins.less';
|
4
3
|
|
@@ -9,44 +8,191 @@
|
|
9
8
|
}
|
10
9
|
|
11
10
|
.disabled() {
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
&.is-disabled,
|
12
|
+
&.is-readonly {
|
13
|
+
background-color: @input-disabled-bg;
|
14
|
+
border-color: @disable-color;
|
15
|
+
.@{bk-prefix}-input--prefix-area,
|
16
|
+
.@{bk-prefix}-input--suffix-area,
|
17
|
+
.@{bk-prefix}-input--suffix-icon {
|
18
|
+
cursor: not-allowed;
|
19
|
+
background-color: @input-disabled-bg;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
&.is-disabled input,
|
24
|
+
&.is-readonly input,
|
25
|
+
&.is-disabled textarea,
|
26
|
+
&.is-readonly textarea {
|
27
|
+
cursor: not-allowed;
|
28
|
+
background-color: @input-disabled-bg;
|
29
|
+
opacity: 1;
|
30
|
+
}
|
31
|
+
|
32
|
+
&.is-readonly input,
|
33
|
+
&.is-readonly textarea {
|
34
|
+
cursor: auto;
|
35
|
+
}
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
.placeholder() {
|
40
|
+
::placeholder {
|
41
|
+
color: @light-gray;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.@{bk-prefix}-textarea {
|
46
|
+
.placeholder();
|
47
|
+
display: inline-flex;
|
48
|
+
width: 100%;
|
49
|
+
min-height: 70px;
|
50
|
+
font-size: @font-size-base;
|
51
|
+
line-height: 20px;
|
52
|
+
color: @input-color;
|
53
|
+
background-color: white;
|
54
|
+
border: @border-width-base @border-style-base @input-border-color;
|
55
|
+
border-radius: 2px;
|
56
|
+
border-radius: @border-radius-base;
|
57
|
+
box-sizing: border-box;
|
58
|
+
transition: all .3s;
|
59
|
+
flex-direction: column;
|
60
|
+
.disabled();
|
61
|
+
|
62
|
+
> textarea {
|
63
|
+
width: 100%;
|
64
|
+
flex: 1;
|
65
|
+
padding: 5px 10px;
|
66
|
+
line-height: 1.5;
|
67
|
+
text-align: left;
|
68
|
+
border: 0;
|
69
|
+
outline: none;
|
70
|
+
resize: none;
|
71
|
+
}
|
72
|
+
|
73
|
+
&--max-length {
|
74
|
+
padding-right: @input-horizontal-padding;
|
75
|
+
margin: 0;
|
76
|
+
margin-left: auto;
|
77
|
+
font-size: 12px;
|
78
|
+
text-align: right;
|
79
|
+
transform: scale(.8);
|
80
|
+
justify-content: flex-end;
|
81
|
+
|
82
|
+
span {
|
83
|
+
color: @input-maxlength-color;
|
84
|
+
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
&.is-focused:not(.is-readonly) {
|
89
|
+
.active();
|
90
|
+
}
|
15
91
|
}
|
16
92
|
|
17
93
|
.@{bk-prefix}-input {
|
18
|
-
display: flex;
|
94
|
+
display: inline-flex;
|
19
95
|
align-items: stretch;
|
96
|
+
width: 100%;
|
20
97
|
height: @input-height-base;
|
21
98
|
font-size: @font-size-base;
|
22
99
|
border: @border-width-base @border-style-base @input-border-color;
|
23
100
|
border-radius: @border-radius-base;
|
24
101
|
transition: all .3s;
|
102
|
+
.placeholder();
|
103
|
+
.disabled();
|
104
|
+
|
105
|
+
&:hover:not(.is-disabled) {
|
106
|
+
border-color: @gray-color;
|
107
|
+
|
108
|
+
.show-clear-only-hover {
|
109
|
+
display: flex;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
&.is-simplicity {
|
114
|
+
background-color: transparent;
|
115
|
+
border-color: transparent;
|
116
|
+
border-bottom-color: @input-border-color;
|
117
|
+
|
118
|
+
&:hover:not(.is-disabled) {
|
119
|
+
border-color: transparent;
|
120
|
+
border-bottom-color: @light-gray;
|
121
|
+
box-shadow: none;
|
122
|
+
.@{bk-prefix}-input--text {
|
123
|
+
background-color: @input-block-color;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
25
127
|
|
26
128
|
&--suffix-icon {
|
129
|
+
display: flex;
|
130
|
+
height: 100%;
|
27
131
|
padding-right: @input-horizontal-padding;
|
28
132
|
font-size: @input-icon-size;
|
29
|
-
line-height: 1;
|
30
133
|
color: @light-gray;
|
134
|
+
background-color: @input-bg;
|
135
|
+
align-items: center;
|
31
136
|
align-self: center;
|
137
|
+
|
138
|
+
&.show-clear-only-hover {
|
139
|
+
display: none;
|
140
|
+
}
|
32
141
|
}
|
33
142
|
|
143
|
+
&--clear-icon {
|
144
|
+
cursor: pointer;
|
145
|
+
|
146
|
+
&:hover {
|
147
|
+
color: @gray-color;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
|
34
152
|
&--large {
|
35
|
-
.component-size(@component-size-large, @font-size-
|
153
|
+
.component-size(@component-size-large, @font-size-medium);
|
154
|
+
|
155
|
+
.@{bk-prefix}-input--max-length {
|
156
|
+
font-size: @font-size-large;
|
157
|
+
}
|
158
|
+
.@{bk-prefix}-input--number-control {
|
159
|
+
span:first-child {
|
160
|
+
margin-bottom: 4px;
|
161
|
+
}
|
162
|
+
}
|
36
163
|
}
|
37
164
|
|
38
165
|
&--small {
|
39
166
|
.component-size(@component-size-small, @font-size-base);
|
167
|
+
|
168
|
+
.@{bk-prefix}-input--max-length {
|
169
|
+
font-size: @font-size-base;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
&--default {
|
174
|
+
font-size: @font-size-base;
|
175
|
+
|
176
|
+
.@{bk-prefix}-input--max-length {
|
177
|
+
font-size: @font-size-base;
|
178
|
+
}
|
40
179
|
}
|
41
180
|
|
42
181
|
&.is-focused:not(.is-readonly) {
|
43
182
|
.active();
|
44
|
-
}
|
45
183
|
|
46
|
-
|
47
|
-
|
184
|
+
&.is-simplicity {
|
185
|
+
border-color: transparent;
|
186
|
+
border-bottom-color: @primary-color;
|
187
|
+
box-shadow: none;
|
188
|
+
.@{bk-prefix}-input--text {
|
189
|
+
background-color: @input-block-color;
|
190
|
+
}
|
191
|
+
}
|
48
192
|
}
|
49
193
|
|
194
|
+
|
195
|
+
|
50
196
|
&--prefix-area,
|
51
197
|
&--suffix-area {
|
52
198
|
display: flex;
|
@@ -65,6 +211,8 @@
|
|
65
211
|
&--max-length {
|
66
212
|
align-self: center;
|
67
213
|
padding-right: @input-horizontal-padding;
|
214
|
+
font-size: 12px;
|
215
|
+
transform: scale(.8);
|
68
216
|
|
69
217
|
span {
|
70
218
|
color: @input-maxlength-color;
|
@@ -72,8 +220,8 @@
|
|
72
220
|
}
|
73
221
|
|
74
222
|
&--text {
|
223
|
+
width: 100%;
|
75
224
|
padding: 0 @input-horizontal-padding;
|
76
|
-
font-size: @font-size-base;
|
77
225
|
line-height: 1;
|
78
226
|
color: @input-color;
|
79
227
|
background-color: @input-bg;
|
@@ -92,13 +240,13 @@
|
|
92
240
|
appearance: none;
|
93
241
|
}
|
94
242
|
// IE
|
95
|
-
[type=search]::-ms-clear {
|
243
|
+
[type='search']::-ms-clear {
|
96
244
|
display: none;
|
97
245
|
width: 0;
|
98
246
|
height: 0;
|
99
247
|
}
|
100
248
|
|
101
|
-
[type=search]::-ms-reveal {
|
249
|
+
[type='search']::-ms-reveal {
|
102
250
|
display: none;
|
103
251
|
width: 0;
|
104
252
|
height: 0;
|
@@ -116,16 +264,30 @@
|
|
116
264
|
}
|
117
265
|
|
118
266
|
&--number-control {
|
267
|
+
display: flex;
|
119
268
|
width: 26px;
|
120
269
|
height: 100%;
|
270
|
+
padding: 4px 0;
|
121
271
|
font-size: 0;
|
272
|
+
user-select: none;
|
122
273
|
flex-direction: column;
|
274
|
+
align-items: center;
|
123
275
|
|
124
276
|
span {
|
125
|
-
display:
|
126
|
-
height: 50%;
|
277
|
+
display: flex;
|
127
278
|
overflow: hidden;
|
128
|
-
|
279
|
+
line-height: 1;
|
280
|
+
color: @gray-color;
|
281
|
+
text-align: center;
|
282
|
+
cursor: pointer;
|
283
|
+
background-color: @input-block-color;
|
284
|
+
flex: 1;
|
285
|
+
align-items: center;
|
286
|
+
|
287
|
+
&.is-disabled {
|
288
|
+
color: @light-gray;
|
289
|
+
cursor: not-allowed;
|
290
|
+
}
|
129
291
|
}
|
130
292
|
|
131
293
|
svg {
|
@@ -136,8 +298,8 @@
|
|
136
298
|
transform: rotate(180deg);
|
137
299
|
}
|
138
300
|
|
139
|
-
span:hover {
|
140
|
-
background-color:
|
301
|
+
span:not(.is-disabled):hover {
|
302
|
+
background-color: @input-block-hover-color;
|
141
303
|
}
|
142
304
|
}
|
143
305
|
}
|