bkui-vue 0.0.2-beta.13 → 0.0.2-beta.131
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/dist/index.cjs.js +143 -161
- package/dist/index.esm.js +19886 -21684
- package/dist/index.umd.js +143 -161
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/affix.variable.css +6 -2
- package/lib/affix/index.d.ts +4 -4
- package/lib/affix/index.js +321 -1
- package/lib/alert/alert.css +7 -0
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +16 -6
- package/lib/alert/alert.variable.css +13 -2
- package/lib/alert/index.d.ts +10 -10
- package/lib/alert/index.js +214 -1
- package/lib/animate-number/index.d.ts +1 -1
- package/lib/animate-number/index.js +155 -1
- package/lib/backtop/backtop.css +8 -8
- package/lib/backtop/backtop.less +3 -1
- package/lib/backtop/backtop.variable.css +17 -13
- package/lib/backtop/index.d.ts +1 -1
- package/lib/backtop/index.js +188 -1
- package/lib/badge/badge.css +8 -2
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/badge.less +8 -4
- package/lib/badge/badge.variable.css +14 -4
- package/lib/badge/index.d.ts +7 -7
- package/lib/badge/index.js +235 -1
- package/lib/breadcrumb/breadcrumb.css +4 -4
- package/lib/breadcrumb/breadcrumb.variable.css +10 -6
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/breadcrumb/index.js +309 -1
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +30 -7
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.less +29 -13
- package/lib/button/button.variable.css +44 -17
- package/lib/button/index.d.ts +7 -7
- package/lib/button/index.js +321 -1
- package/lib/card/card.css +11 -11
- package/lib/card/card.d.ts +1 -1
- package/lib/card/card.less +7 -7
- package/lib/card/card.variable.css +17 -13
- package/lib/card/index.d.ts +4 -4
- package/lib/card/index.js +285 -1
- package/lib/cascader/cascader-panel.d.ts +1 -0
- package/lib/cascader/cascader.css +6 -6
- package/lib/cascader/cascader.less +3 -5
- package/lib/cascader/cascader.variable.css +12 -8
- package/lib/cascader/index.d.ts +3 -2
- package/lib/cascader/index.js +2045 -2
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +6 -3
- package/lib/checkbox/checkbox.css +13 -1
- package/lib/checkbox/checkbox.d.ts +15 -12
- package/lib/checkbox/checkbox.less +15 -1
- package/lib/checkbox/checkbox.variable.css +19 -3
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +43 -31
- package/lib/checkbox/index.js +569 -1
- package/lib/code-diff/code-diff.variable.css +6 -2
- package/lib/code-diff/index.d.ts +1 -1
- package/lib/code-diff/index.js +5501 -1
- package/lib/collapse/collapse.variable.css +6 -2
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +570 -1
- package/lib/collapse-transition/collapse-transition.variable.css +6 -2
- package/lib/collapse-transition/index.d.ts +128 -2
- package/lib/collapse-transition/index.js +177 -1
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/color-picker.variable.css +6 -2
- package/lib/color-picker/components/recommend-colors.d.ts +16 -0
- package/lib/color-picker/index.d.ts +19 -1
- package/lib/color-picker/index.js +2665 -1
- package/lib/components.js +530 -1
- package/lib/config-provider/config-provider.d.ts +21 -0
- package/lib/config-provider/config-provider.variable.css +6 -2
- package/lib/config-provider/index.d.ts +29 -1
- package/lib/config-provider/index.js +365 -1
- package/lib/config-provider/token.d.ts +7 -0
- package/lib/config-provider/use-global-config.d.ts +2 -0
- package/lib/config-provider/use-prefix.d.ts +2 -0
- package/lib/container/container.css +4 -4
- package/lib/container/container.variable.css +10 -6
- package/lib/container/index.d.ts +2 -2
- package/lib/container/index.js +391 -1
- package/lib/date-picker/date-picker.d.ts +6 -2
- package/lib/date-picker/date-picker.variable.css +6 -2
- package/lib/date-picker/index.d.ts +21 -8
- package/lib/date-picker/index.js +5609 -1
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/time-picker.d.ts +3 -1
- package/lib/dialog/dialog.css +9 -6
- package/lib/dialog/dialog.less +7 -6
- package/lib/dialog/dialog.variable.css +15 -8
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +975 -2
- package/lib/directives/index.js +1387 -2
- package/lib/directives/tooltips.d.ts +3 -2
- package/lib/dist.index.js +87 -1
- package/lib/divider/divider.variable.css +6 -2
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +169 -1
- package/lib/dropdown/dropdown.css +2 -1
- package/lib/dropdown/dropdown.variable.css +8 -3
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/dropdown/index.js +369 -1
- package/lib/exception/exception.variable.css +6 -2
- package/lib/exception/index.d.ts +2 -2
- package/lib/exception/index.js +385 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +6 -2
- package/lib/fixed-navbar/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +154 -1
- package/lib/form/form.css +2 -1
- package/lib/form/form.less +3 -2
- package/lib/form/form.variable.css +8 -3
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +952 -1
- package/lib/hooks.d.ts +1 -1
- package/lib/hooks.js +73 -1
- package/lib/icon/angle-double-down-line.js +191 -1
- package/lib/icon/angle-double-left-line.js +191 -1
- package/lib/icon/angle-double-left.js +191 -1
- package/lib/icon/angle-double-right-line.js +191 -1
- package/lib/icon/angle-double-right.js +191 -1
- package/lib/icon/angle-double-up-line.js +191 -1
- package/lib/icon/angle-down-fill.js +191 -1
- package/lib/icon/angle-down-line.js +191 -1
- package/lib/icon/angle-down.js +191 -1
- package/lib/icon/angle-left.js +191 -1
- package/lib/icon/angle-right.js +191 -1
- package/lib/icon/angle-up-fill.js +191 -1
- package/lib/icon/angle-up.js +191 -1
- package/lib/icon/archive-fill.js +191 -1
- package/lib/icon/arrows-left.js +191 -1
- package/lib/icon/arrows-right.js +191 -1
- package/lib/icon/assistant.d.ts +4 -0
- package/lib/icon/assistant.js +191 -0
- package/lib/icon/audio-fill.js +191 -1
- package/lib/icon/bk.js +191 -1
- package/lib/icon/circle.js +191 -1
- package/lib/icon/close-line.js +191 -1
- package/lib/icon/close.js +191 -1
- package/lib/icon/code.js +191 -1
- package/lib/icon/cog-shape.js +191 -1
- package/lib/icon/collapse-left.js +191 -1
- package/lib/icon/copy-shape.js +191 -1
- package/lib/icon/copy.js +191 -1
- package/lib/icon/data-shape.js +191 -1
- package/lib/icon/del.js +191 -1
- package/lib/icon/doc-fill.js +191 -1
- package/lib/icon/done.js +191 -1
- package/lib/icon/down-shape.js +191 -1
- package/lib/icon/down-small.js +191 -1
- package/lib/icon/edit-line.js +191 -1
- package/lib/icon/ellipsis.js +191 -1
- package/lib/icon/enlarge-line.js +191 -1
- package/lib/icon/error.js +191 -1
- package/lib/icon/excel-fill.js +191 -1
- package/lib/icon/exclamation-circle-shape.js +191 -1
- package/lib/icon/eye.js +191 -1
- package/lib/icon/filliscreen-line.js +191 -1
- package/lib/icon/fix-line.js +191 -1
- package/lib/icon/fix-shape.js +191 -1
- package/lib/icon/folder-open.js +191 -1
- package/lib/icon/folder-shape-open.js +191 -1
- package/lib/icon/folder-shape.js +191 -1
- package/lib/icon/folder.js +191 -1
- package/lib/icon/funnel.js +191 -1
- package/lib/icon/help-document-fill.js +191 -1
- package/lib/icon/help-fill.js +191 -1
- package/lib/icon/help.js +191 -1
- package/lib/icon/image-fill.js +276 -1
- package/lib/icon/img-error.js +276 -1
- package/lib/icon/img-placehoulder.js +276 -1
- package/lib/icon/index.d.ts +2 -0
- package/lib/icon/index.js +2432 -1
- package/lib/icon/info-line.js +276 -1
- package/lib/icon/info.js +276 -1
- package/lib/icon/left-shape.js +276 -1
- package/lib/icon/left-turn-line.js +276 -1
- package/lib/icon/loading.d.ts +4 -0
- package/lib/icon/loading.js +276 -0
- package/lib/icon/narrow-line.js +276 -1
- package/lib/icon/original.js +276 -1
- package/lib/icon/pdf-fill.js +276 -1
- package/lib/icon/play-shape.js +276 -1
- package/lib/icon/plus.js +276 -1
- package/lib/icon/ppt-fill.js +276 -1
- package/lib/icon/qq.js +276 -1
- package/lib/icon/right-shape.js +276 -1
- package/lib/icon/right-turn-line.js +276 -1
- package/lib/icon/search.js +276 -1
- package/lib/icon/share.js +276 -1
- package/lib/icon/spinner.js +276 -1
- package/lib/icon/success.js +276 -1
- package/lib/icon/switcher-loading.js +276 -1
- package/lib/icon/text-file.js +276 -1
- package/lib/icon/text-fill.js +276 -1
- package/lib/icon/transfer.js +276 -1
- package/lib/icon/tree-application-shape.js +276 -1
- package/lib/icon/unfull-screen.js +276 -1
- package/lib/icon/unvisible.js +276 -1
- package/lib/icon/up-shape.js +276 -1
- package/lib/icon/upload.js +276 -1
- package/lib/icon/video-fill.js +276 -1
- package/lib/icon/warn.js +276 -1
- package/lib/icon/weixin-pro.js +276 -1
- package/lib/icon/weixin.js +276 -1
- package/lib/image/image-viewer.variable.css +6 -2
- package/lib/image/image.variable.css +6 -2
- package/lib/image/index.d.ts +1 -1
- package/lib/image/index.js +641 -1
- package/lib/index.js +97 -1
- package/lib/info-box/index.js +1165 -2
- package/lib/info-box/info-box.css +2 -0
- package/lib/info-box/info-box.d.ts +4 -0
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +8 -2
- package/lib/input/index.d.ts +150 -54
- package/lib/input/index.js +1233 -1
- package/lib/input/input.css +59 -15
- package/lib/input/input.d.ts +103 -14
- package/lib/input/input.less +71 -13
- package/lib/input/input.variable.css +65 -17
- package/lib/input/util.d.ts +6 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +160 -1
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.variable.css +6 -2
- package/lib/loading/index.d.ts +5 -5
- package/lib/loading/index.js +381 -1
- package/lib/loading/loading.css +13 -13
- package/lib/loading/loading.d.ts +1 -1
- package/lib/loading/loading.less +14 -9
- package/lib/loading/loading.variable.css +19 -15
- package/lib/locale/index.js +477 -1
- package/lib/locale/lang/en.d.ts +7 -0
- package/lib/menu/index.d.ts +2 -2
- package/lib/menu/index.js +724 -1
- package/lib/menu/menu.css +4 -4
- package/lib/menu/menu.variable.css +10 -6
- package/lib/menu/submenu.variable.css +6 -2
- package/lib/message/index.js +1795 -2
- package/lib/message/message.css +33 -9
- package/lib/message/message.less +78 -54
- package/lib/message/message.variable.css +39 -11
- package/lib/message/messageConstructor.d.ts +25 -4
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +396 -1
- package/lib/modal/modal.css +2 -0
- package/lib/modal/modal.variable.css +8 -2
- package/lib/navigation/index.d.ts +4 -1
- package/lib/navigation/index.js +367 -1
- package/lib/navigation/navigation.d.ts +1 -0
- package/lib/navigation/navigation.variable.css +6 -2
- package/lib/notify/index.js +397 -1
- package/lib/notify/notify.css +6 -6
- package/lib/notify/notify.less +6 -6
- package/lib/notify/notify.variable.css +12 -8
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +257 -1
- package/lib/overflow-title/index.d.ts +387 -2
- package/lib/overflow-title/index.js +461 -1
- package/lib/overflow-title/props.d.ts +129 -0
- package/lib/pagination/index.d.ts +6 -6
- package/lib/pagination/index.js +880 -1
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.d.ts +3 -3
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +7 -2
- package/lib/plugin-popover/index.js +3833 -1
- package/lib/plugins/index.js +63 -1
- package/lib/pop-confirm/index.d.ts +43 -4
- package/lib/pop-confirm/index.js +285 -1
- package/lib/pop-confirm/pop-confirm.css +4 -4
- package/lib/pop-confirm/pop-confirm.d.ts +14 -1
- package/lib/pop-confirm/pop-confirm.less +4 -4
- package/lib/pop-confirm/pop-confirm.variable.css +10 -6
- package/lib/popover/content.d.ts +33 -0
- package/lib/popover/index.d.ts +74 -16
- package/lib/popover/index.js +3841 -1
- package/lib/popover/popover.css +2 -1
- package/lib/popover/popover.d.ts +40 -7
- package/lib/popover/popover.less +4 -3
- package/lib/popover/popover.variable.css +8 -3
- package/lib/popover/props.d.ts +25 -2
- package/lib/popover/use-floating.d.ts +1 -1
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover2/index.d.ts +1 -1
- package/lib/popover2/index.js +107 -1
- package/lib/preset.d.ts +14 -0
- package/lib/preset.js +93 -1
- package/lib/process/index.d.ts +1 -1
- package/lib/process/index.js +759 -2
- package/lib/process/process.variable.css +6 -2
- package/lib/progress/index.d.ts +5 -5
- package/lib/progress/index.js +431 -1
- package/lib/progress/progress.css +11 -7
- package/lib/progress/progress.d.ts +3 -3
- package/lib/progress/progress.less +8 -3
- package/lib/progress/progress.variable.css +17 -9
- package/lib/radio/common.d.ts +1 -0
- package/lib/radio/index.d.ts +31 -25
- package/lib/radio/index.js +635 -1
- package/lib/radio/radio-button.d.ts +8 -7
- package/lib/radio/radio-group.d.ts +7 -4
- package/lib/radio/radio.css +26 -12
- package/lib/radio/radio.d.ts +5 -4
- package/lib/radio/radio.less +42 -8
- package/lib/radio/radio.variable.css +26 -8
- package/lib/rate/index.d.ts +12 -8
- package/lib/rate/index.js +354 -1
- package/lib/rate/rate.d.ts +4 -3
- package/lib/rate/rate.variable.css +6 -2
- package/lib/rate/star.css +3 -0
- package/lib/rate/star.less +3 -0
- package/lib/rate/star.variable.css +9 -2
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/index.js +429 -1
- package/lib/resize-layout/resize-layout.css +14 -2
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +14 -2
- package/lib/resize-layout/resize-layout.variable.css +20 -4
- package/lib/search-select/index.d.ts +62 -29
- package/lib/search-select/index.js +2729 -2
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/menu.d.ts +33 -2
- package/lib/search-select/search-select.css +39 -21
- package/lib/search-select/search-select.d.ts +23 -20
- package/lib/search-select/search-select.less +44 -23
- package/lib/search-select/search-select.variable.css +45 -23
- package/lib/search-select/selected.d.ts +5 -1
- package/lib/search-select/utils.d.ts +13 -5
- package/lib/select/common.d.ts +4 -1
- package/lib/select/index.d.ts +287 -90
- package/lib/select/index.js +2380 -2
- package/lib/select/option.d.ts +12 -0
- package/lib/select/select.css +16 -5
- package/lib/select/select.d.ts +120 -39
- package/lib/select/select.less +14 -1
- package/lib/select/select.variable.css +46 -31
- package/lib/select/selectTagInput.d.ts +10 -5
- package/lib/select/type.d.ts +3 -0
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/index.js +2690 -1
- package/lib/shared/mask-manager.d.ts +3 -4
- package/lib/shared/pop-manager.d.ts +6 -2
- package/lib/shared/popover.d.ts +2 -2
- package/lib/shared/vue-types.d.ts +4 -3
- package/lib/sideslider/index.d.ts +1 -1
- package/lib/sideslider/index.js +714 -2
- package/lib/sideslider/sideslider.variable.css +6 -2
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1297 -2
- package/lib/slider/slider.css +2 -0
- package/lib/slider/slider.less +2 -0
- package/lib/slider/slider.variable.css +8 -2
- package/lib/steps/index.d.ts +5 -5
- package/lib/steps/index.js +825 -2
- package/lib/steps/steps.css +18 -6
- package/lib/steps/steps.d.ts +3 -3
- package/lib/steps/steps.less +26 -5
- package/lib/steps/steps.variable.css +24 -8
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +10 -6
- package/lib/styles/mixins/animate.variable.css +130 -4
- package/lib/styles/mixins/mixins.css +4 -4
- package/lib/styles/mixins/mixins.variable.css +4 -4
- package/lib/styles/mixins/popper.less +6 -5
- package/lib/styles/mixins/popper.variable.css +6 -2
- package/lib/styles/mixins/scroll.variable.css +6 -2
- package/lib/styles/reset.variable.css +6 -2
- package/lib/styles/themes/themes.less +7 -3
- package/lib/swiper/index.d.ts +1 -1
- package/lib/swiper/index.js +336 -1
- package/lib/swiper/swiper.css +0 -6
- package/lib/swiper/swiper.less +0 -8
- package/lib/swiper/swiper.variable.css +6 -8
- package/lib/switcher/index.d.ts +34 -20
- package/lib/switcher/index.js +277 -1
- package/lib/switcher/switcher.css +4 -4
- package/lib/switcher/switcher.d.ts +76 -7
- package/lib/switcher/switcher.variable.css +10 -6
- package/lib/tab/index.d.ts +3 -3
- package/lib/tab/index.js +914 -1
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/tab/tab.variable.css +6 -2
- package/lib/table/components/table-cell.d.ts +22 -24
- package/lib/table/components/table-column.d.ts +129 -85
- package/lib/table/const.d.ts +24 -2
- package/lib/table/events.d.ts +26 -26
- package/lib/table/index.d.ts +332 -296
- package/lib/table/index.js +6510 -1
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/head-filter.css +4 -28
- package/lib/table/plugins/head-filter.less +5 -34
- package/lib/table/plugins/head-filter.variable.css +10 -30
- package/lib/table/plugins/head-sort.variable.css +6 -2
- package/lib/table/plugins/settings.d.ts +2 -19
- package/lib/table/plugins/settings.variable.css +6 -2
- package/lib/table/plugins/use-column-resize.d.ts +30 -10
- package/lib/table/plugins/use-fixed-column.d.ts +9 -9
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +8 -4
- package/lib/table/props.d.ts +120 -59
- package/lib/table/table.css +117 -53
- package/lib/table/table.d.ts +96 -73
- package/lib/table/table.less +70 -26
- package/lib/table/table.variable.css +123 -55
- package/lib/table/use-attributes.d.ts +59 -0
- package/lib/table/use-column.d.ts +264 -49
- package/lib/table/use-common.d.ts +1607 -88
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +34 -31
- package/lib/table-column/index.d.ts +384 -401
- package/lib/table-column/index.js +775 -1
- package/lib/tag/index.d.ts +10 -10
- package/lib/tag/index.js +233 -1
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +6 -2
- package/lib/tag-input/index.d.ts +49 -7
- package/lib/tag-input/index.js +1664 -1
- package/lib/tag-input/list-tag-render.d.ts +11 -0
- package/lib/tag-input/tag-input.css +8 -0
- package/lib/tag-input/tag-input.d.ts +32 -4
- package/lib/tag-input/tag-input.less +9 -0
- package/lib/tag-input/tag-input.variable.css +14 -2
- package/lib/tag-input/tag-props.d.ts +16 -2
- package/lib/time-picker/index.d.ts +10 -4
- package/lib/time-picker/index.js +71 -1
- package/lib/time-picker/time-picker.css +3 -3
- package/lib/time-picker/time-picker.less +4 -9
- package/lib/time-picker/time-picker.variable.css +9 -5
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/index.js +241 -1
- package/lib/timeline/timeline.variable.css +6 -2
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +673 -1
- package/lib/transfer/transfer.css +2 -2
- package/lib/transfer/transfer.less +2 -2
- package/lib/transfer/transfer.variable.css +8 -4
- package/lib/tree/constant.d.ts +2 -2
- package/lib/tree/index.d.ts +70 -40
- package/lib/tree/index.js +2584 -1
- package/lib/tree/props.d.ts +20 -10
- package/lib/tree/tree.css +13 -1
- package/lib/tree/tree.d.ts +42 -21
- package/lib/tree/tree.variable.css +19 -3
- package/lib/tree/use-empty.d.ts +1 -3
- package/lib/tree/use-node-action.d.ts +5 -3
- package/lib/tree/use-node-attribute.d.ts +17 -8
- package/lib/tree/use-search.d.ts +2 -2
- package/lib/tree/use-tree-init.d.ts +1 -2
- package/lib/tree/util.d.ts +9 -3
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/index.js +2874 -2
- package/lib/upload/upload.css +4 -4
- package/lib/upload/upload.type.d.ts +1 -1
- package/lib/upload/upload.variable.css +10 -6
- package/lib/upload/use-file-handler.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +43 -1
- package/lib/virtual-render/index.js +901 -1
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/use-fix-top.d.ts +18 -0
- package/lib/virtual-render/v-virtual-render.d.ts +24 -1
- package/lib/virtual-render/virtual-render.d.ts +25 -0
- package/lib/virtual-render/virtual-render.variable.css +6 -2
- package/lib/volar.components.d.ts +24 -24
- package/package.json +33 -19
- package/dist/index.cjs.source.js +0 -45479
- package/dist/index.esm.source.js +0 -45479
- package/dist/index.umd.source.js +0 -45482
- package/lib/cascader/index.js.LICENSE.txt +0 -1
- package/lib/dialog/index.js.LICENSE.txt +0 -1
- package/lib/directives/index.js.LICENSE.txt +0 -14
- package/lib/info-box/index.js.LICENSE.txt +0 -1
- package/lib/message/index.js.LICENSE.txt +0 -6
- package/lib/process/index.js.LICENSE.txt +0 -1
- package/lib/search-select/index.js.LICENSE.txt +0 -1
- package/lib/select/index.js.LICENSE.txt +0 -1
- package/lib/sideslider/index.js.LICENSE.txt +0 -1
- package/lib/slider/index.js.LICENSE.txt +0 -1
- package/lib/steps/index.js.LICENSE.txt +0 -1
- package/lib/table/render.d.ts +0 -140
- package/lib/upload/index.js.LICENSE.txt +0 -1
package/lib/input/input.css
CHANGED
@@ -11,12 +11,12 @@
|
|
11
11
|
background-color: transparent;
|
12
12
|
}
|
13
13
|
}
|
14
|
-
.bk-
|
15
|
-
.bk-
|
14
|
+
.bk-transition .bk-fade-enter-active,
|
15
|
+
.bk-transition .bk-fade-leave-active {
|
16
16
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
17
17
|
}
|
18
|
-
.bk-
|
19
|
-
.bk-
|
18
|
+
.bk-transition .bk-fade-enter,
|
19
|
+
.bk-transition .bk-fade-leave-to {
|
20
20
|
opacity: 0;
|
21
21
|
}
|
22
22
|
.clearfix-style::after {
|
@@ -71,12 +71,12 @@
|
|
71
71
|
left: -4px;
|
72
72
|
}
|
73
73
|
.bk-textarea {
|
74
|
+
--textarea-line-height: 20px;
|
74
75
|
display: inline-flex;
|
75
76
|
width: 100%;
|
76
|
-
min-height: 70px;
|
77
77
|
overflow: hidden;
|
78
78
|
font-size: 12px;
|
79
|
-
line-height:
|
79
|
+
line-height: var(--textarea-line-height);
|
80
80
|
color: #63656e;
|
81
81
|
background-color: white;
|
82
82
|
border: 1px solid #c4c6cc;
|
@@ -86,8 +86,20 @@
|
|
86
86
|
flex-direction: column;
|
87
87
|
}
|
88
88
|
.bk-textarea ::placeholder {
|
89
|
+
font-size: 12px;
|
89
90
|
color: #c4c6cc;
|
90
91
|
}
|
92
|
+
.bk-textarea.resizable {
|
93
|
+
resize: both;
|
94
|
+
}
|
95
|
+
.bk-textarea ::-webkit-scrollbar {
|
96
|
+
-webkit-appearance: none;
|
97
|
+
width: 3px;
|
98
|
+
}
|
99
|
+
.bk-textarea ::-webkit-scrollbar-thumb {
|
100
|
+
border-radius: 4px;
|
101
|
+
background-color: #DCDEE5;
|
102
|
+
}
|
91
103
|
.bk-textarea.is-disabled,
|
92
104
|
.bk-textarea.is-readonly {
|
93
105
|
background-color: #fafbfd;
|
@@ -123,10 +135,9 @@
|
|
123
135
|
border-radius: 2px;
|
124
136
|
outline: none;
|
125
137
|
resize: none;
|
126
|
-
flex: 1;
|
127
138
|
}
|
128
139
|
.bk-textarea--max-length {
|
129
|
-
padding-right:
|
140
|
+
padding-right: 8px;
|
130
141
|
margin: 0;
|
131
142
|
margin-left: auto;
|
132
143
|
font-size: 12px;
|
@@ -134,6 +145,9 @@
|
|
134
145
|
transform: scale(0.8);
|
135
146
|
justify-content: flex-end;
|
136
147
|
}
|
148
|
+
.bk-textarea--max-length.is-over-limit {
|
149
|
+
color: #ea3636;
|
150
|
+
}
|
137
151
|
.bk-textarea--max-length span {
|
138
152
|
color: #979ba5;
|
139
153
|
}
|
@@ -153,6 +167,7 @@
|
|
153
167
|
transition: all 0.3s;
|
154
168
|
}
|
155
169
|
.bk-input ::placeholder {
|
170
|
+
font-size: 12px;
|
156
171
|
color: #c4c6cc;
|
157
172
|
}
|
158
173
|
.bk-input.is-disabled,
|
@@ -205,18 +220,24 @@
|
|
205
220
|
.bk-input--suffix-icon {
|
206
221
|
display: flex;
|
207
222
|
height: 100%;
|
208
|
-
padding-right:
|
223
|
+
padding-right: 8px;
|
209
224
|
font-size: 14px;
|
210
225
|
color: #c4c6cc;
|
211
226
|
background-color: white;
|
212
227
|
align-items: center;
|
213
228
|
align-self: center;
|
229
|
+
flex-shrink: 0;
|
230
|
+
cursor: pointer;
|
231
|
+
}
|
232
|
+
.bk-input--suffix-icon:hover {
|
233
|
+
color: #313238;
|
214
234
|
}
|
215
235
|
.bk-input--suffix-icon.show-clear-only-hover {
|
216
236
|
display: none;
|
217
237
|
}
|
218
238
|
.bk-input--clear-icon {
|
219
239
|
cursor: pointer;
|
240
|
+
flex-shrink: 0;
|
220
241
|
}
|
221
242
|
.bk-input--clear-icon:hover {
|
222
243
|
color: #979ba5;
|
@@ -225,6 +246,10 @@
|
|
225
246
|
height: 40px;
|
226
247
|
font-size: 14px;
|
227
248
|
}
|
249
|
+
.bk-input--large ::placeholder {
|
250
|
+
font-size: 14px;
|
251
|
+
color: #c4c6cc;
|
252
|
+
}
|
228
253
|
.bk-input--large .bk-input--max-length {
|
229
254
|
font-size: 16px;
|
230
255
|
}
|
@@ -261,7 +286,7 @@
|
|
261
286
|
.bk-input--prefix-area,
|
262
287
|
.bk-input--suffix-area {
|
263
288
|
display: flex;
|
264
|
-
padding: 0
|
289
|
+
padding: 0 8px;
|
265
290
|
color: #63656e;
|
266
291
|
background-color: #f5f7fa;
|
267
292
|
border-right: 1px solid #c4c6cc;
|
@@ -273,18 +298,24 @@
|
|
273
298
|
}
|
274
299
|
.bk-input--max-length {
|
275
300
|
align-self: center;
|
276
|
-
padding-right:
|
301
|
+
padding-right: 8px;
|
277
302
|
font-size: 12px;
|
278
303
|
transform: scale(0.8);
|
279
304
|
}
|
305
|
+
.bk-input--max-length.is-over-limit {
|
306
|
+
color: #ea3636;
|
307
|
+
}
|
280
308
|
.bk-input--max-length span {
|
281
309
|
color: #979ba5;
|
282
310
|
}
|
283
311
|
.bk-input--text {
|
284
312
|
width: 100%;
|
285
|
-
padding: 0
|
313
|
+
padding: 0 8px;
|
314
|
+
overflow: hidden;
|
286
315
|
line-height: 1;
|
287
316
|
color: #63656e;
|
317
|
+
text-overflow: ellipsis;
|
318
|
+
white-space: nowrap;
|
288
319
|
background-color: white;
|
289
320
|
background-image: none;
|
290
321
|
border: none;
|
@@ -315,9 +346,6 @@
|
|
315
346
|
margin: 0;
|
316
347
|
appearance: none;
|
317
348
|
}
|
318
|
-
.bk-input--text::placeholder {
|
319
|
-
color: #c4c6cc;
|
320
|
-
}
|
321
349
|
.bk-input--number-control {
|
322
350
|
display: flex;
|
323
351
|
width: 26px;
|
@@ -352,3 +380,19 @@
|
|
352
380
|
.bk-input--number-control span:not(.is-disabled):hover {
|
353
381
|
background-color: #eaebf0;
|
354
382
|
}
|
383
|
+
/* 针对 Chrome、Safari 和新版 Edge 的样式 */
|
384
|
+
input:-webkit-autofill,
|
385
|
+
input:-webkit-autofill:hover,
|
386
|
+
input:-webkit-autofill:focus,
|
387
|
+
input:-webkit-autofill:active {
|
388
|
+
-webkit-box-shadow: 0 0 0 100px white inset !important;
|
389
|
+
box-shadow: 0 0 0 100px white inset !important;
|
390
|
+
}
|
391
|
+
/* 针对 Firefox 的样式 */
|
392
|
+
input:-moz-autofill,
|
393
|
+
input:-moz-autofill:hover,
|
394
|
+
input:-moz-autofill:focus,
|
395
|
+
input:-moz-autofill:active {
|
396
|
+
-moz-box-shadow: 0 0 0 100px white inset !important;
|
397
|
+
box-shadow: 0 0 0 100px white inset !important;
|
398
|
+
}
|
package/lib/input/input.d.ts
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
|
+
export type InputAutoSize = {
|
3
|
+
minRows?: number;
|
4
|
+
maxRows?: number;
|
5
|
+
};
|
2
6
|
export declare const inputType: {
|
3
7
|
type: import("vue-types").VueTypeValidableDef<string> & {
|
4
8
|
default: string;
|
@@ -43,6 +47,9 @@ export declare const inputType: {
|
|
43
47
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
44
48
|
default: number;
|
45
49
|
};
|
50
|
+
maxcharacter: import("vue-types").VueTypeDef<number> & {
|
51
|
+
default: number;
|
52
|
+
};
|
46
53
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
47
54
|
default: "normal" | "simplicity";
|
48
55
|
};
|
@@ -67,7 +74,7 @@ export declare const inputType: {
|
|
67
74
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
68
75
|
};
|
69
76
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
70
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
77
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
71
78
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
72
79
|
default: number;
|
73
80
|
};
|
@@ -81,6 +88,29 @@ export declare const inputType: {
|
|
81
88
|
} & {
|
82
89
|
default: boolean;
|
83
90
|
};
|
91
|
+
overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
92
|
+
default: boolean;
|
93
|
+
} & {
|
94
|
+
default: boolean;
|
95
|
+
};
|
96
|
+
showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
|
97
|
+
default: boolean;
|
98
|
+
} & {
|
99
|
+
default: boolean;
|
100
|
+
};
|
101
|
+
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
102
|
+
default: boolean;
|
103
|
+
} & {
|
104
|
+
default: boolean;
|
105
|
+
};
|
106
|
+
autosize: import("vue-types").VueTypeDef<Boolean | InputAutoSize> & {
|
107
|
+
default: (() => Boolean) | (() => InputAutoSize);
|
108
|
+
};
|
109
|
+
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
110
|
+
default: boolean;
|
111
|
+
} & {
|
112
|
+
default: boolean;
|
113
|
+
};
|
84
114
|
};
|
85
115
|
export declare const enum EVENTS {
|
86
116
|
UPDATE = "update:modelValue",
|
@@ -98,7 +128,8 @@ export declare const enum EVENTS {
|
|
98
128
|
COMPOSITIONUPDATE = "compositionupdate",
|
99
129
|
COMPOSITIONEND = "compositionend"
|
100
130
|
}
|
101
|
-
declare function EventFunction(_value: any, _evt
|
131
|
+
declare function EventFunction(_value: any, _evt: KeyboardEvent): any;
|
132
|
+
declare function PastEventFunction(_value: any, _e: ClipboardEvent): boolean;
|
102
133
|
declare function CompositionEventFunction(evt: CompositionEvent): CompositionEvent;
|
103
134
|
export declare const inputEmitEventsType: {
|
104
135
|
"update:modelValue": typeof EventFunction;
|
@@ -111,7 +142,7 @@ export declare const inputEmitEventsType: {
|
|
111
142
|
keydown: typeof EventFunction;
|
112
143
|
keyup: typeof EventFunction;
|
113
144
|
enter: typeof EventFunction;
|
114
|
-
paste: typeof
|
145
|
+
paste: typeof PastEventFunction;
|
115
146
|
compositionstart: typeof CompositionEventFunction;
|
116
147
|
compositionupdate: typeof CompositionEventFunction;
|
117
148
|
compositionend: typeof CompositionEventFunction;
|
@@ -161,6 +192,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
161
192
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
162
193
|
default: number;
|
163
194
|
};
|
195
|
+
maxcharacter: import("vue-types").VueTypeDef<number> & {
|
196
|
+
default: number;
|
197
|
+
};
|
164
198
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
165
199
|
default: "normal" | "simplicity";
|
166
200
|
};
|
@@ -185,7 +219,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
185
219
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
186
220
|
};
|
187
221
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
188
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
222
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
189
223
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
190
224
|
default: number;
|
191
225
|
};
|
@@ -199,6 +233,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
199
233
|
} & {
|
200
234
|
default: boolean;
|
201
235
|
};
|
236
|
+
overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
237
|
+
default: boolean;
|
238
|
+
} & {
|
239
|
+
default: boolean;
|
240
|
+
};
|
241
|
+
showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
|
242
|
+
default: boolean;
|
243
|
+
} & {
|
244
|
+
default: boolean;
|
245
|
+
};
|
246
|
+
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
247
|
+
default: boolean;
|
248
|
+
} & {
|
249
|
+
default: boolean;
|
250
|
+
};
|
251
|
+
autosize: import("vue-types").VueTypeDef<Boolean | InputAutoSize> & {
|
252
|
+
default: (() => Boolean) | (() => InputAutoSize);
|
253
|
+
};
|
254
|
+
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
255
|
+
default: boolean;
|
256
|
+
} & {
|
257
|
+
default: boolean;
|
258
|
+
};
|
202
259
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
203
260
|
"update:modelValue": typeof EventFunction;
|
204
261
|
focus: (evt: FocusEvent) => FocusEvent;
|
@@ -210,7 +267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
210
267
|
keydown: typeof EventFunction;
|
211
268
|
keyup: typeof EventFunction;
|
212
269
|
enter: typeof EventFunction;
|
213
|
-
paste: typeof
|
270
|
+
paste: typeof PastEventFunction;
|
214
271
|
compositionstart: typeof CompositionEventFunction;
|
215
272
|
compositionupdate: typeof CompositionEventFunction;
|
216
273
|
compositionend: typeof CompositionEventFunction;
|
@@ -258,6 +315,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
258
315
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
259
316
|
default: number;
|
260
317
|
};
|
318
|
+
maxcharacter: import("vue-types").VueTypeDef<number> & {
|
319
|
+
default: number;
|
320
|
+
};
|
261
321
|
behavior: import("vue-types").VueTypeDef<"normal" | "simplicity"> & {
|
262
322
|
default: "normal" | "simplicity";
|
263
323
|
};
|
@@ -282,7 +342,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
282
342
|
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
283
343
|
};
|
284
344
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
285
|
-
size: import("vue-types").VueTypeDef<"default" | "small" | "large">;
|
345
|
+
size: import("vue-types").VueTypeDef<"default" | "small" | "large" | "huge">;
|
286
346
|
rows: import("vue-types").VueTypeValidableDef<number> & {
|
287
347
|
default: number;
|
288
348
|
};
|
@@ -296,24 +356,48 @@ declare const _default: import("vue").DefineComponent<{
|
|
296
356
|
} & {
|
297
357
|
default: boolean;
|
298
358
|
};
|
359
|
+
overMaxLengthLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
360
|
+
default: boolean;
|
361
|
+
} & {
|
362
|
+
default: boolean;
|
363
|
+
};
|
364
|
+
showOverflowTooltips: import("vue-types").VueTypeValidableDef<boolean> & {
|
365
|
+
default: boolean;
|
366
|
+
} & {
|
367
|
+
default: boolean;
|
368
|
+
};
|
369
|
+
resize: import("vue-types").VueTypeValidableDef<boolean> & {
|
370
|
+
default: boolean;
|
371
|
+
} & {
|
372
|
+
default: boolean;
|
373
|
+
};
|
374
|
+
autosize: import("vue-types").VueTypeDef<Boolean | InputAutoSize> & {
|
375
|
+
default: (() => Boolean) | (() => InputAutoSize);
|
376
|
+
};
|
377
|
+
stopPropagation: import("vue-types").VueTypeValidableDef<boolean> & {
|
378
|
+
default: boolean;
|
379
|
+
} & {
|
380
|
+
default: boolean;
|
381
|
+
};
|
299
382
|
}>> & {
|
300
|
-
onPaste?: (_value: any,
|
383
|
+
onPaste?: (_value: any, _e: ClipboardEvent) => any;
|
301
384
|
onCompositionend?: (evt: CompositionEvent) => any;
|
302
385
|
onCompositionstart?: (evt: CompositionEvent) => any;
|
303
386
|
onCompositionupdate?: (evt: CompositionEvent) => any;
|
304
387
|
onFocus?: (evt: FocusEvent) => any;
|
305
388
|
onBlur?: (evt: FocusEvent) => any;
|
306
|
-
onChange?: (_value: any, _evt
|
307
|
-
onInput?: (_value: any, _evt
|
308
|
-
onKeydown?: (_value: any, _evt
|
309
|
-
onKeypress?: (_value: any, _evt
|
310
|
-
onKeyup?: (_value: any, _evt
|
389
|
+
onChange?: (_value: any, _evt: KeyboardEvent) => any;
|
390
|
+
onInput?: (_value: any, _evt: KeyboardEvent) => any;
|
391
|
+
onKeydown?: (_value: any, _evt: KeyboardEvent) => any;
|
392
|
+
onKeypress?: (_value: any, _evt: KeyboardEvent) => any;
|
393
|
+
onKeyup?: (_value: any, _evt: KeyboardEvent) => any;
|
311
394
|
onClear?: () => any;
|
312
|
-
"onUpdate:modelValue"?: (_value: any, _evt
|
313
|
-
onEnter?: (_value: any, _evt
|
395
|
+
"onUpdate:modelValue"?: (_value: any, _evt: KeyboardEvent) => any;
|
396
|
+
onEnter?: (_value: any, _evt: KeyboardEvent) => any;
|
314
397
|
}, {
|
315
398
|
type: string;
|
316
399
|
prefix: string;
|
400
|
+
resize: boolean;
|
317
401
|
disabled: boolean;
|
318
402
|
placeholder: string;
|
319
403
|
step: number;
|
@@ -326,6 +410,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
326
410
|
prefixIcon: string;
|
327
411
|
suffixIcon: string;
|
328
412
|
suffix: string;
|
413
|
+
maxcharacter: number;
|
329
414
|
showWordLimit: boolean;
|
330
415
|
showControl: boolean;
|
331
416
|
showClearOnlyHover: boolean;
|
@@ -333,5 +418,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
333
418
|
rows: number;
|
334
419
|
selectReadonly: boolean;
|
335
420
|
withValidate: boolean;
|
421
|
+
overMaxLengthLimit: boolean;
|
422
|
+
showOverflowTooltips: boolean;
|
423
|
+
autosize: Boolean | InputAutoSize;
|
424
|
+
stopPropagation: boolean;
|
336
425
|
}, {}>;
|
337
426
|
export default _default;
|
package/lib/input/input.less
CHANGED
@@ -8,10 +8,12 @@
|
|
8
8
|
}
|
9
9
|
|
10
10
|
.disabled() {
|
11
|
+
|
11
12
|
&.is-disabled,
|
12
13
|
&.is-readonly {
|
13
14
|
background-color: @input-disabled-bg;
|
14
15
|
border-color: @disable-color;
|
16
|
+
|
15
17
|
.@{bk-prefix}-input--prefix-area,
|
16
18
|
.@{bk-prefix}-input--suffix-area,
|
17
19
|
.@{bk-prefix}-input--suffix-icon {
|
@@ -36,20 +38,20 @@
|
|
36
38
|
|
37
39
|
}
|
38
40
|
|
39
|
-
.placeholder() {
|
41
|
+
.placeholder(@fontSize: @font-size-base) {
|
40
42
|
::placeholder {
|
43
|
+
font-size: @fontSize;
|
41
44
|
color: @light-gray;
|
42
45
|
}
|
43
46
|
}
|
44
47
|
|
45
48
|
.@{bk-prefix}-textarea {
|
46
|
-
|
49
|
+
--textarea-line-height: 20px;
|
47
50
|
display: inline-flex;
|
48
51
|
width: 100%;
|
49
|
-
min-height: 70px;
|
50
52
|
overflow: hidden;
|
51
53
|
font-size: @font-size-base;
|
52
|
-
line-height:
|
54
|
+
line-height: var(--textarea-line-height);
|
53
55
|
color: @input-color;
|
54
56
|
background-color: white;
|
55
57
|
border: @border-width-base @border-style-base @input-border-color;
|
@@ -57,9 +59,25 @@
|
|
57
59
|
box-sizing: border-box;
|
58
60
|
transition: all .3s;
|
59
61
|
flex-direction: column;
|
62
|
+
.placeholder();
|
63
|
+
|
64
|
+
&.resizable {
|
65
|
+
resize: both;
|
66
|
+
}
|
67
|
+
|
68
|
+
::-webkit-scrollbar {
|
69
|
+
-webkit-appearance: none;
|
70
|
+
width: 3px;
|
71
|
+
}
|
72
|
+
|
73
|
+
::-webkit-scrollbar-thumb {
|
74
|
+
border-radius: 4px;
|
75
|
+
background-color: #DCDEE5;
|
76
|
+
}
|
77
|
+
|
60
78
|
.disabled();
|
61
79
|
|
62
|
-
>
|
80
|
+
>textarea {
|
63
81
|
width: 100%;
|
64
82
|
padding: 5px 10px;
|
65
83
|
line-height: 1.5;
|
@@ -68,21 +86,23 @@
|
|
68
86
|
border-radius: @border-radius-base;
|
69
87
|
outline: none;
|
70
88
|
resize: none;
|
71
|
-
flex: 1;
|
72
89
|
}
|
73
90
|
|
74
91
|
&--max-length {
|
75
92
|
padding-right: @input-horizontal-padding;
|
76
93
|
margin: 0;
|
77
94
|
margin-left: auto;
|
78
|
-
font-size:
|
95
|
+
font-size: @font-size-base;
|
79
96
|
text-align: right;
|
80
97
|
transform: scale(.8);
|
81
98
|
justify-content: flex-end;
|
82
99
|
|
100
|
+
&.is-over-limit {
|
101
|
+
color: @danger-color;
|
102
|
+
}
|
103
|
+
|
83
104
|
span {
|
84
105
|
color: @input-maxlength-color;
|
85
|
-
|
86
106
|
}
|
87
107
|
}
|
88
108
|
|
@@ -121,7 +141,9 @@
|
|
121
141
|
border-color: transparent;
|
122
142
|
border-bottom-color: @light-gray;
|
123
143
|
box-shadow: none;
|
124
|
-
|
144
|
+
|
145
|
+
.@{bk-prefix}-input--text,
|
146
|
+
.@{bk-prefix}-input--suffix-icon {
|
125
147
|
background-color: @input-block-color;
|
126
148
|
}
|
127
149
|
}
|
@@ -136,6 +158,12 @@
|
|
136
158
|
background-color: @input-bg;
|
137
159
|
align-items: center;
|
138
160
|
align-self: center;
|
161
|
+
flex-shrink: 0;
|
162
|
+
cursor: pointer;
|
163
|
+
|
164
|
+
&:hover {
|
165
|
+
color: #313238;
|
166
|
+
}
|
139
167
|
|
140
168
|
&.show-clear-only-hover {
|
141
169
|
display: none;
|
@@ -144,6 +172,7 @@
|
|
144
172
|
|
145
173
|
&--clear-icon {
|
146
174
|
cursor: pointer;
|
175
|
+
flex-shrink: 0;
|
147
176
|
|
148
177
|
&:hover {
|
149
178
|
color: @gray-color;
|
@@ -153,10 +182,12 @@
|
|
153
182
|
|
154
183
|
&--large {
|
155
184
|
.component-size(@component-size-large, @font-size-medium);
|
185
|
+
.placeholder(@font-size-medium);
|
156
186
|
|
157
187
|
.@{bk-prefix}-input--max-length {
|
158
188
|
font-size: @font-size-large;
|
159
189
|
}
|
190
|
+
|
160
191
|
.@{bk-prefix}-input--number-control {
|
161
192
|
span:first-child {
|
162
193
|
margin-bottom: 4px;
|
@@ -187,7 +218,9 @@
|
|
187
218
|
border-color: transparent;
|
188
219
|
border-bottom-color: @primary-color;
|
189
220
|
box-shadow: none;
|
190
|
-
|
221
|
+
|
222
|
+
.@{bk-prefix}-input--text,
|
223
|
+
.@{bk-prefix}-input--suffix-icon {
|
191
224
|
background-color: @input-block-color;
|
192
225
|
}
|
193
226
|
}
|
@@ -216,6 +249,10 @@
|
|
216
249
|
font-size: 12px;
|
217
250
|
transform: scale(.8);
|
218
251
|
|
252
|
+
&.is-over-limit {
|
253
|
+
color: @danger-color;
|
254
|
+
}
|
255
|
+
|
219
256
|
span {
|
220
257
|
color: @input-maxlength-color;
|
221
258
|
}
|
@@ -224,8 +261,11 @@
|
|
224
261
|
&--text {
|
225
262
|
width: 100%;
|
226
263
|
padding: 0 @input-horizontal-padding;
|
264
|
+
overflow: hidden;
|
227
265
|
line-height: 1;
|
228
266
|
color: @input-color;
|
267
|
+
text-overflow: ellipsis;
|
268
|
+
white-space: nowrap;
|
229
269
|
background-color: @input-bg;
|
230
270
|
background-image: none;
|
231
271
|
border: none;
|
@@ -242,6 +282,7 @@
|
|
242
282
|
&[type='search']::-webkit-search-results-decoration {
|
243
283
|
appearance: none;
|
244
284
|
}
|
285
|
+
|
245
286
|
// IE
|
246
287
|
[type='search']::-ms-clear {
|
247
288
|
display: none;
|
@@ -261,9 +302,7 @@
|
|
261
302
|
appearance: none;
|
262
303
|
}
|
263
304
|
|
264
|
-
|
265
|
-
color: @light-gray;
|
266
|
-
}
|
305
|
+
|
267
306
|
}
|
268
307
|
|
269
308
|
&--number-control {
|
@@ -306,3 +345,22 @@
|
|
306
345
|
}
|
307
346
|
}
|
308
347
|
}
|
348
|
+
|
349
|
+
// 去掉自动填充时的背景颜色
|
350
|
+
/* 针对 Chrome、Safari 和新版 Edge 的样式 */
|
351
|
+
input:-webkit-autofill,
|
352
|
+
input:-webkit-autofill:hover,
|
353
|
+
input:-webkit-autofill:focus,
|
354
|
+
input:-webkit-autofill:active {
|
355
|
+
-webkit-box-shadow: 0 0 0 100px @input-bg inset !important;
|
356
|
+
box-shadow: 0 0 0 100px @input-bg inset !important;
|
357
|
+
}
|
358
|
+
|
359
|
+
/* 针对 Firefox 的样式 */
|
360
|
+
input:-moz-autofill,
|
361
|
+
input:-moz-autofill:hover,
|
362
|
+
input:-moz-autofill:focus,
|
363
|
+
input:-moz-autofill:active {
|
364
|
+
-moz-box-shadow: 0 0 0 100px @input-bg inset !important;
|
365
|
+
box-shadow: 0 0 0 100px @input-bg inset !important;
|
366
|
+
}
|