bkui-vue 2.0.1-beta.11 → 2.0.1-beta.111
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 +15 -0
- package/dist/index.cjs.js +142 -168
- package/dist/index.esm.js +29125 -32074
- package/dist/index.umd.js +142 -168
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +1 -0
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +24 -24
- package/lib/alert/alert.d.ts +5 -12
- package/lib/alert/alert.variable.css +1 -0
- package/lib/alert/index.d.ts +131 -93
- package/lib/alert/index.js +25 -25
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +1 -0
- package/lib/backtop/index.d.ts +118 -70
- package/lib/backtop/index.js +16 -17
- package/lib/badge/badge.variable.css +1 -0
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +20 -20
- package/lib/breadcrumb/breadcrumb.variable.css +1 -0
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.css +188 -144
- package/lib/button/button.d.ts +10 -10
- package/lib/button/button.less +74 -71
- package/lib/button/button.variable.css +189 -144
- package/lib/button/index.d.ts +160 -124
- package/lib/button/index.js +26 -26
- package/lib/card/card.variable.css +1 -0
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader-panel.d.ts +6 -1
- package/lib/cascader/cascader.css +4 -0
- package/lib/cascader/cascader.d.ts +8 -4
- package/lib/cascader/cascader.less +5 -0
- package/lib/cascader/cascader.variable.css +5 -0
- package/lib/cascader/index.d.ts +355 -393
- package/lib/cascader/index.js +377 -308
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +0 -16
- package/lib/checkbox/checkbox.css +8 -0
- package/lib/checkbox/checkbox.d.ts +40 -8
- package/lib/checkbox/checkbox.less +12 -0
- package/lib/checkbox/checkbox.variable.css +9 -0
- package/lib/checkbox/index.d.ts +194 -127
- package/lib/checkbox/index.js +65 -52
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +1 -0
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +446 -389
- package/lib/collapse/collapse-panel.d.ts +5 -5
- package/lib/collapse/collapse.variable.css +1 -0
- package/lib/collapse/index.d.ts +180 -161
- package/lib/collapse/index.js +31 -30
- package/lib/collapse/props.d.ts +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +1 -0
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.d.ts +17 -1
- package/lib/color-picker/color-picker.variable.css +1 -0
- package/lib/color-picker/index.d.ts +168 -124
- package/lib/color-picker/index.js +93 -88
- package/lib/components.d.ts +30 -32
- package/lib/components.js +29 -31
- package/lib/config-provider/config-provider.variable.css +1 -0
- package/lib/config-provider/index.d.ts +228 -161
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.d.ts +1 -1
- package/lib/container/container.variable.css +1 -0
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +32 -35
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +2 -2
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +7 -15
- package/lib/date-picker/date-picker.variable.css +1 -0
- package/lib/date-picker/index.d.ts +356 -399
- package/lib/date-picker/index.js +343 -297
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +6 -6
- package/lib/date-picker/panel/date.d.ts +2 -2
- package/lib/date-picker/panel/time-range.d.ts +3 -12
- package/lib/date-picker/panel/time.d.ts +3 -12
- package/lib/date-picker/props.d.ts +1 -5
- package/lib/date-picker/time-picker.d.ts +7 -14
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +47 -31
- package/lib/dialog/dialog.variable.css +1 -0
- package/lib/dialog/index.d.ts +309 -305
- package/lib/dialog/index.js +252 -249
- package/lib/dialog/props.d.ts +20 -13
- package/lib/directives/index.d.ts +4 -3
- package/lib/directives/index.js +219 -197
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +1 -0
- package/lib/divider/index.d.ts +116 -62
- package/lib/divider/index.js +4 -5
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.d.ts +7 -7
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +144 -102
- package/lib/dropdown/index.js +32 -32
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +1 -0
- package/lib/exception/index.d.ts +107 -46
- package/lib/exception/index.js +31 -31
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +4 -5
- package/lib/form/form-item.d.ts +7 -19
- package/lib/form/form.d.ts +3 -3
- package/lib/form/form.variable.css +1 -0
- package/lib/form/index.d.ts +139 -94
- package/lib/form/index.js +44 -42
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/angle-double-down-line.js +17 -17
- package/lib/icon/angle-double-left-line.js +17 -17
- package/lib/icon/angle-double-left.js +17 -17
- package/lib/icon/angle-double-right-line.js +17 -17
- package/lib/icon/angle-double-right.js +17 -17
- package/lib/icon/angle-double-up-line.js +17 -17
- package/lib/icon/angle-down-fill.js +17 -17
- package/lib/icon/angle-down-line.js +17 -17
- package/lib/icon/angle-down.js +17 -17
- package/lib/icon/angle-left.js +17 -17
- package/lib/icon/angle-right.js +17 -17
- package/lib/icon/angle-up-fill.js +17 -17
- package/lib/icon/angle-up.js +17 -17
- package/lib/icon/archive-fill.js +17 -17
- package/lib/icon/arrows-left.js +17 -17
- package/lib/icon/arrows-right.js +17 -17
- package/lib/icon/assistant.js +17 -17
- package/lib/icon/audio-fill.js +17 -17
- package/lib/icon/bk.js +17 -17
- package/lib/icon/circle.js +17 -17
- package/lib/icon/close-line.js +17 -17
- package/lib/icon/close.js +17 -17
- package/lib/icon/code.js +17 -17
- package/lib/icon/cog-shape.js +17 -17
- package/lib/icon/collapse-left.js +17 -17
- package/lib/icon/copy-shape.js +17 -17
- package/lib/icon/copy.js +17 -17
- package/lib/icon/data-shape.js +17 -17
- package/lib/icon/del.js +17 -17
- package/lib/icon/doc-fill.js +17 -17
- package/lib/icon/done.js +17 -17
- package/lib/icon/down-shape.js +17 -17
- package/lib/icon/down-small.js +17 -17
- package/lib/icon/edit-line.js +17 -17
- package/lib/icon/ellipsis.js +17 -17
- package/lib/icon/enlarge-line.js +17 -17
- package/lib/icon/error.js +17 -17
- package/lib/icon/excel-fill.js +17 -17
- package/lib/icon/exclamation-circle-shape.js +17 -17
- package/lib/icon/eye.js +17 -17
- package/lib/icon/filliscreen-line.js +17 -17
- package/lib/icon/fix-line.js +17 -17
- package/lib/icon/fix-shape.js +17 -17
- package/lib/icon/folder-open.js +17 -17
- package/lib/icon/folder-shape-open.js +17 -17
- package/lib/icon/folder-shape.js +17 -17
- package/lib/icon/folder.js +17 -17
- package/lib/icon/funnel.js +17 -17
- package/lib/icon/grag-fill.js +17 -17
- package/lib/icon/help-document-fill.js +17 -17
- package/lib/icon/help-fill.js +17 -17
- package/lib/icon/help.js +17 -17
- package/lib/icon/image-fill.js +17 -17
- package/lib/icon/img-error.js +17 -17
- package/lib/icon/img-placehoulder.js +17 -17
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/icon/info-line.js +17 -17
- package/lib/icon/info.js +17 -17
- package/lib/icon/left-shape.js +17 -17
- package/lib/icon/left-turn-line.js +17 -17
- package/lib/icon/loading.js +17 -17
- package/lib/icon/narrow-line.js +17 -17
- package/lib/icon/original.js +17 -17
- package/lib/icon/pdf-fill.js +17 -17
- package/lib/icon/play-shape.js +17 -17
- package/lib/icon/plus.js +17 -17
- package/lib/icon/ppt-fill.js +17 -17
- package/lib/icon/qq.js +17 -17
- package/lib/icon/right-shape.js +17 -17
- package/lib/icon/right-turn-line.js +17 -17
- package/lib/icon/search.js +17 -17
- package/lib/icon/share.js +17 -17
- package/lib/icon/spinner.js +17 -17
- package/lib/icon/success.js +17 -17
- package/lib/icon/switcher-loading.js +17 -17
- package/lib/icon/text-all.js +17 -17
- package/lib/icon/text-file.js +17 -17
- package/lib/icon/text-fill.js +17 -17
- package/lib/icon/transfer.js +17 -17
- package/lib/icon/tree-application-shape.js +17 -17
- package/lib/icon/unfull-screen.js +17 -17
- package/lib/icon/unvisible.js +17 -17
- package/lib/icon/up-shape.js +17 -17
- package/lib/icon/upload.js +17 -17
- package/lib/icon/video-fill.js +17 -17
- package/lib/icon/warn.js +17 -17
- package/lib/icon/weixin-pro.js +17 -17
- package/lib/icon/weixin.js +17 -17
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +1 -0
- package/lib/image/image.variable.css +1 -0
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +46 -48
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.js +250 -250
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/info-box/info-box.variable.css +1 -0
- package/lib/input/index.d.ts +299 -332
- package/lib/input/index.js +110 -561
- package/lib/input/input.css +23 -1
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.less +30 -1
- package/lib/input/input.variable.css +24 -1
- package/lib/link/index.d.ts +127 -78
- package/lib/link/index.js +5 -5
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +1 -0
- package/lib/loading/index.d.ts +162 -135
- package/lib/loading/index.js +43 -40
- package/lib/loading/loading.d.ts +9 -9
- package/lib/loading/loading.variable.css +1 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.d.ts +131 -51
- package/lib/menu/index.js +46 -27
- package/lib/menu/menu-group.d.ts +9 -0
- package/lib/menu/menu-item.d.ts +9 -0
- package/lib/menu/menu.css +29 -17
- package/lib/menu/menu.less +33 -18
- package/lib/menu/menu.variable.css +30 -17
- package/lib/menu/submenu.d.ts +1 -0
- package/lib/menu/submenu.variable.css +1 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +43 -42
- package/lib/message/message.css +2 -1
- package/lib/message/message.less +3 -2
- package/lib/message/message.variable.css +3 -1
- package/lib/message/messageConstructor.d.ts +21 -21
- package/lib/modal/index.d.ts +214 -159
- package/lib/modal/index.js +68 -47
- package/lib/modal/modal.d.ts +24 -8
- package/lib/modal/modal.variable.css +1 -0
- package/lib/modal/props.mixin.d.ts +10 -3
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +27 -29
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +1 -0
- package/lib/notify/index.js +25 -24
- package/lib/notify/notify.variable.css +1 -0
- package/lib/notify/notifyConstructor.d.ts +5 -5
- package/lib/overflow-title/components/overflow-title.d.ts +45 -16
- package/lib/overflow-title/index.d.ts +298 -328
- package/lib/overflow-title/index.js +85 -28
- package/lib/overflow-title/overflow-title.css +3 -0
- package/lib/overflow-title/overflow-title.less +4 -0
- package/lib/overflow-title/overflow-title.variable.css +3 -0
- package/lib/overflow-title/props.d.ts +36 -21
- package/lib/pagination/index.d.ts +198 -203
- package/lib/pagination/index.js +128 -68
- package/lib/pagination/pagination.css +8 -8
- package/lib/pagination/pagination.d.ts +0 -13
- package/lib/pagination/pagination.less +14 -13
- package/lib/pagination/pagination.variable.css +9 -8
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +328 -442
- package/lib/pop-confirm/index.d.ts +162 -148
- package/lib/pop-confirm/index.js +40 -35
- package/lib/pop-confirm/pop-confirm.css +3 -1
- package/lib/pop-confirm/pop-confirm.d.ts +10 -20
- package/lib/pop-confirm/pop-confirm.less +3 -1
- package/lib/pop-confirm/pop-confirm.variable.css +4 -1
- package/lib/pop-confirm/props.d.ts +8 -11
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +6 -3
- package/lib/popover/index.d.ts +411 -380
- package/lib/popover/index.js +328 -442
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +51 -8
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover/props.d.ts +28 -4
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover/utils.d.ts +2 -0
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +229 -229
- package/lib/process/process.variable.css +1 -0
- package/lib/progress/index.d.ts +192 -183
- package/lib/progress/index.js +31 -33
- package/lib/progress/progress.d.ts +9 -9
- package/lib/progress/progress.variable.css +1 -0
- package/lib/radio/index.d.ts +155 -106
- package/lib/radio/index.js +76 -63
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +1 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +28 -27
- package/lib/rate/rate.variable.css +1 -0
- package/lib/resize-layout/index.d.ts +204 -157
- package/lib/resize-layout/index.js +54 -34
- package/lib/resize-layout/resize-layout.d.ts +18 -7
- package/lib/resize-layout/resize-layout.variable.css +1 -0
- package/lib/scrollbar/css/scrollbar.css +109 -0
- package/lib/scrollbar/css/scrollbar.less +139 -0
- package/lib/scrollbar/{scrollbar.variable.css → css/scrollbar.variable.css} +96 -61
- package/lib/scrollbar/handlers/click-rail.d.ts +2 -0
- package/lib/scrollbar/handlers/drag-thumb.d.ts +1 -0
- package/lib/scrollbar/handlers/keyboard.d.ts +2 -0
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +2 -0
- package/lib/scrollbar/handlers/touch.d.ts +4 -0
- package/lib/scrollbar/helper/class-names.d.ts +21 -0
- package/lib/scrollbar/helper/css.d.ts +3 -0
- package/lib/scrollbar/helper/dom.d.ts +4 -0
- package/lib/scrollbar/helper/event-manager.d.ts +20 -0
- package/lib/scrollbar/helper/util.d.ts +11 -0
- package/lib/scrollbar/index.d.ts +133 -13
- package/lib/scrollbar/index.js +1380 -18482
- package/lib/scrollbar/process-scroll-diff.d.ts +1 -0
- package/lib/scrollbar/update-geometry.d.ts +8 -0
- package/lib/search-select/index.d.ts +946 -701
- package/lib/search-select/index.js +644 -486
- package/lib/search-select/input.d.ts +20 -8
- package/lib/search-select/menu.d.ts +13 -1
- package/lib/search-select/search-select.css +45 -47
- package/lib/search-select/search-select.d.ts +207 -160
- package/lib/search-select/search-select.less +41 -41
- package/lib/search-select/search-select.variable.css +46 -47
- package/lib/search-select/selected.d.ts +209 -127
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +1457 -1384
- package/lib/select/index.js +603 -477
- package/lib/select/option.d.ts +6 -6
- package/lib/select/select.css +9 -4
- package/lib/select/select.d.ts +285 -148
- package/lib/select/select.less +11 -4
- package/lib/select/select.variable.css +10 -4
- package/lib/select/selectTagInput.d.ts +9 -8
- package/lib/select/type.d.ts +10 -11
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +2 -1
- package/lib/shared/index.js +166 -101
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +50 -50
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +220 -182
- package/lib/sideslider/index.js +239 -237
- package/lib/sideslider/sideslider.css +7 -8
- package/lib/sideslider/sideslider.d.ts +24 -8
- package/lib/sideslider/sideslider.less +7 -8
- package/lib/sideslider/sideslider.variable.css +8 -8
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +246 -249
- package/lib/slider/slider.variable.css +1 -0
- package/lib/steps/index.d.ts +155 -131
- package/lib/steps/index.js +234 -234
- package/lib/steps/steps.d.ts +8 -18
- package/lib/steps/steps.variable.css +1 -0
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.variable.css +1 -0
- package/lib/styles/mixins/popper.variable.css +1 -0
- package/lib/styles/mixins/scroll.variable.css +1 -0
- package/lib/styles/reset.variable.css +1 -0
- package/lib/styles/themes/themes.less +1 -0
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +23 -23
- package/lib/swiper/swiper.variable.css +1 -0
- package/lib/switcher/index.d.ts +179 -157
- package/lib/switcher/index.js +24 -22
- package/lib/switcher/switcher.d.ts +9 -9
- package/lib/switcher/switcher.variable.css +1 -0
- package/lib/tab/index.d.ts +220 -258
- package/lib/tab/index.js +79 -69
- package/lib/tab/props.d.ts +27 -52
- package/lib/tab/tab-nav.d.ts +26 -66
- package/lib/tab/tab-panel.d.ts +27 -5
- package/lib/tab/tab.css +64 -0
- package/lib/tab/tab.d.ts +10 -54
- package/lib/tab/tab.less +91 -4
- package/lib/tab/tab.variable.css +65 -0
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-cell.d.ts +22 -0
- package/lib/table/components/table-column.d.ts +24 -127
- package/lib/table/const.d.ts +23 -10
- package/lib/table/events.d.ts +16 -112
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-checkbox-tooltip.d.ts +11 -0
- package/lib/table/hooks/use-column-resize.d.ts +7 -0
- package/lib/table/hooks/use-column-template.d.ts +5 -0
- package/lib/table/hooks/use-columns.d.ts +69 -0
- package/lib/table/{plugins → hooks}/use-draggable.d.ts +2 -2
- package/lib/table/hooks/use-fixed-column.d.ts +10 -0
- package/lib/table/hooks/use-head.d.ts +16 -0
- package/lib/table/hooks/use-layout.d.ts +25 -0
- package/lib/table/hooks/use-pagination.d.ts +16 -0
- package/lib/table/hooks/use-render.d.ts +21 -0
- package/lib/table/hooks/use-rows.d.ts +30 -0
- package/lib/table/hooks/use-settings.d.ts +138 -0
- package/lib/table/{plugins → hooks}/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +412 -1029
- package/lib/table/index.js +4698 -20825
- package/lib/table/plugins/head-filter.css +5 -0
- package/lib/table/plugins/head-filter.d.ts +2 -1
- package/lib/table/plugins/head-filter.less +4 -0
- package/lib/table/plugins/head-filter.variable.css +6 -0
- package/lib/table/plugins/head-sort.variable.css +1 -0
- package/lib/table/plugins/settings.css +11 -1
- package/lib/table/plugins/settings.less +12 -1
- package/lib/table/plugins/settings.variable.css +12 -1
- package/lib/table/props.d.ts +127 -62
- package/lib/table/table.css +503 -302
- package/lib/table/table.d.ts +51 -185
- package/lib/table/table.less +244 -112
- package/lib/table/table.variable.css +504 -302
- package/lib/table/utils.d.ts +44 -21
- package/lib/table-column/index.d.ts +156 -369
- package/lib/table-column/index.js +143 -62
- package/lib/tag/index.d.ts +147 -100
- package/lib/tag/index.js +21 -22
- package/lib/tag/tag.css +1 -1
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/common.d.ts +2 -2
- package/lib/tag-input/index.d.ts +595 -712
- package/lib/tag-input/index.js +150 -17391
- package/lib/tag-input/tag-input.css +12 -9
- package/lib/tag-input/tag-input.d.ts +60 -24
- package/lib/tag-input/tag-input.less +13 -9
- package/lib/tag-input/tag-input.variable.css +13 -9
- package/lib/tag-input/tag-props.d.ts +25 -2
- package/lib/time-picker/index.d.ts +391 -455
- package/lib/time-picker/time-picker.variable.css +1 -0
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +8 -8
- package/lib/timeline/timeline.variable.css +1 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.d.ts +206 -191
- package/lib/transfer/index.js +3 -5
- package/lib/transfer/transfer.variable.css +1 -0
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +329 -357
- package/lib/tree/index.js +176 -17389
- package/lib/tree/props.d.ts +18 -11
- package/lib/tree/tree.css +103 -69
- package/lib/tree/tree.d.ts +16 -10
- package/lib/tree/tree.variable.css +104 -69
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +10 -9
- package/lib/tree/use-node-async.d.ts +2 -1
- package/lib/tree/use-node-attribute.d.ts +42 -34
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +8 -5
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +294 -286
- package/lib/upload/index.js +398 -316
- package/lib/upload/props.d.ts +11 -2
- package/lib/upload/upload-list.d.ts +11 -1
- package/lib/upload/upload-trigger.d.ts +11 -1
- package/lib/upload/upload.d.ts +25 -4
- package/lib/upload/upload.type.d.ts +12 -6
- package/lib/upload/upload.variable.css +1 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +247 -373
- package/lib/virtual-render/index.js +223 -162
- package/lib/virtual-render/props.d.ts +2 -9
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +4 -17
- package/lib/virtual-render/v-virtual-render.d.ts +7 -1
- package/lib/virtual-render/virtual-render.css +96 -70
- package/lib/virtual-render/virtual-render.d.ts +7 -23
- package/lib/virtual-render/virtual-render.less +2 -11
- package/lib/virtual-render/virtual-render.variable.css +96 -69
- package/lib/volar.components.d.ts +2 -0
- package/package.json +17 -55
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.css +0 -75
- package/lib/scrollbar/scrollbar.less +0 -94
- package/lib/table/plugins/col-group.d.ts +0 -38
- package/lib/table/plugins/settings.d.ts +0 -16
- package/lib/table/plugins/use-active-columns.d.ts +0 -16
- package/lib/table/plugins/use-column-resize.d.ts +0 -35
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-fixed-column.d.ts +0 -27
- package/lib/table/plugins/use-head-cell.d.ts +0 -7
- package/lib/table/plugins/use-pagination.d.ts +0 -23
- package/lib/table/use-attributes.d.ts +0 -62
- package/lib/table/use-column.d.ts +0 -275
- package/lib/table/use-common.d.ts +0 -1679
- package/lib/table/use-render.d.ts +0 -11
- /package/lib/table/{plugins → components}/body-empty.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{plugins → hooks}/use-scroll-loading.d.ts +0 -0
package/lib/button/button.css
CHANGED
@@ -17,307 +17,351 @@
|
|
17
17
|
align-items: center;
|
18
18
|
justify-content: center;
|
19
19
|
}
|
20
|
-
.bk-button.bk-button-
|
20
|
+
.bk-button.bk-button-small {
|
21
|
+
height: 26px;
|
22
|
+
padding: 0 12px;
|
23
|
+
font-size: 12px;
|
24
|
+
}
|
25
|
+
.bk-button.bk-button-large {
|
26
|
+
height: 40px;
|
27
|
+
padding: 0 16px;
|
28
|
+
font-size: 16px;
|
29
|
+
}
|
30
|
+
.bk-button .bk-button-text {
|
31
|
+
display: inline-flex;
|
32
|
+
align-items: center;
|
33
|
+
line-height: 1;
|
34
|
+
}
|
35
|
+
.bk-button.is-loading {
|
36
|
+
position: relative;
|
37
|
+
}
|
38
|
+
.bk-button.is-loading .bk-button-loading:not(:last-child) {
|
39
|
+
position: absolute;
|
40
|
+
}
|
41
|
+
.bk-button.is-loading .bk-button-text {
|
42
|
+
visibility: hidden;
|
43
|
+
}
|
44
|
+
.bk-button:hover {
|
45
|
+
border-color: #979ba5;
|
46
|
+
}
|
47
|
+
.bk-button:active {
|
48
|
+
color: #3a84ff;
|
49
|
+
border-color: #3a84ff;
|
50
|
+
}
|
51
|
+
.bk-button.is-text {
|
52
|
+
height: auto;
|
53
|
+
padding: 0;
|
54
|
+
font-size: inherit;
|
55
|
+
color: #63656e;
|
56
|
+
text-decoration: none;
|
57
|
+
cursor: pointer;
|
58
|
+
background-color: transparent;
|
59
|
+
border: none;
|
60
|
+
outline: none;
|
61
|
+
}
|
62
|
+
.bk-button.is-disabled {
|
63
|
+
color: #dcdee5;
|
64
|
+
cursor: not-allowed;
|
65
|
+
border-color: #dcdee5;
|
66
|
+
}
|
67
|
+
.bk-button.is-disabled:not(.is-text) {
|
68
|
+
background-color: #f9fafd;
|
69
|
+
}
|
70
|
+
.bk-button-group {
|
71
|
+
display: inline-block;
|
72
|
+
font-size: 0;
|
73
|
+
}
|
74
|
+
.bk-button-group.bk-button-group-small .bk-button {
|
75
|
+
height: 26px;
|
76
|
+
padding: 0 12px;
|
77
|
+
font-size: 12px;
|
78
|
+
}
|
79
|
+
.bk-button-group.bk-button-group-large .bk-button {
|
80
|
+
height: 40px;
|
81
|
+
padding: 0 16px;
|
82
|
+
font-size: 16px;
|
83
|
+
}
|
84
|
+
.bk-button-group .bk-button {
|
85
|
+
height: 32px;
|
86
|
+
margin: 0 0 0 -1px;
|
87
|
+
border-radius: 0;
|
88
|
+
}
|
89
|
+
.bk-button-group .bk-button:not(.is-disabled) {
|
90
|
+
color: #63656e;
|
91
|
+
background-color: white;
|
92
|
+
border-color: #c4c6cc;
|
93
|
+
}
|
94
|
+
.bk-button-group .bk-button.is-disabled {
|
95
|
+
color: #c4c6cc;
|
96
|
+
}
|
97
|
+
.bk-button-group .bk-button:first-child {
|
98
|
+
border-radius: 2px 0 0 2px;
|
99
|
+
}
|
100
|
+
.bk-button-group .bk-button:last-child {
|
101
|
+
border-radius: 0 2px 2px 0;
|
102
|
+
}
|
103
|
+
.bk-button-group .bk-button:only-child {
|
104
|
+
border-radius: 2px;
|
105
|
+
}
|
106
|
+
.bk-button-group .bk-button:hover:not(.is-disabled),
|
107
|
+
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
108
|
+
position: relative;
|
109
|
+
z-index: 1;
|
110
|
+
color: #3a84ff;
|
111
|
+
background-color: white;
|
112
|
+
border-color: #3a84ff;
|
113
|
+
}
|
114
|
+
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
115
|
+
background-color: #e1ecff;
|
116
|
+
}
|
117
|
+
.bk-button-group .bk-button.is-selected.is-disabled {
|
118
|
+
background-color: #f0f1f5;
|
119
|
+
}
|
120
|
+
.bk-button.bk-button-primary,
|
121
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary {
|
21
122
|
background-color: #3a84ff;
|
22
123
|
color: white;
|
23
124
|
border-color: #3a84ff;
|
24
125
|
}
|
25
|
-
.bk-button.bk-button-primary:hover
|
126
|
+
.bk-button.bk-button-primary:hover,
|
127
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary:hover {
|
26
128
|
background-color: #5594fa;
|
27
129
|
border-color: #5594fa;
|
28
130
|
}
|
29
|
-
.bk-button.bk-button-primary:active
|
131
|
+
.bk-button.bk-button-primary:active,
|
132
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary:active {
|
30
133
|
background-color: #2c77f4;
|
31
134
|
border-color: #2c77f4;
|
32
135
|
color: white;
|
33
136
|
}
|
34
|
-
.bk-button.bk-button-primary.is-outline
|
137
|
+
.bk-button.bk-button-primary.is-outline,
|
138
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-outline {
|
35
139
|
color: #3a84ff;
|
36
140
|
border-color: #3a84ff;
|
37
141
|
background-color: white;
|
38
142
|
}
|
39
|
-
.bk-button.bk-button-primary.is-outline:hover
|
143
|
+
.bk-button.bk-button-primary.is-outline:hover,
|
144
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-outline:hover {
|
40
145
|
background-color: #5594fa;
|
41
146
|
border-color: #5594fa;
|
42
147
|
color: white;
|
43
148
|
}
|
44
|
-
.bk-button.bk-button-primary.is-outline:active
|
149
|
+
.bk-button.bk-button-primary.is-outline:active,
|
150
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-outline:active {
|
45
151
|
background-color: #2c77f4;
|
46
152
|
border-color: #2c77f4;
|
47
153
|
color: white;
|
48
154
|
}
|
49
|
-
.bk-button.bk-button-primary.is-text
|
155
|
+
.bk-button.bk-button-primary.is-text,
|
156
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-text {
|
50
157
|
color: #3a84ff;
|
51
158
|
background-color: transparent;
|
52
159
|
border: none;
|
53
160
|
}
|
54
|
-
.bk-button.bk-button-primary.is-text:not(.is-disabled):hover
|
161
|
+
.bk-button.bk-button-primary.is-text:not(.is-disabled):hover,
|
162
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-text:not(.is-disabled):hover {
|
55
163
|
color: #5594fa;
|
56
164
|
}
|
57
|
-
.bk-button.bk-button-primary.is-disabled
|
165
|
+
.bk-button.bk-button-primary.is-disabled,
|
166
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-disabled {
|
58
167
|
color: #dcdee5;
|
59
168
|
cursor: not-allowed;
|
60
169
|
}
|
61
|
-
.bk-button.bk-button-primary.is-disabled:not(.is-text)
|
170
|
+
.bk-button.bk-button-primary.is-disabled:not(.is-text),
|
171
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-primary.is-disabled:not(.is-text) {
|
62
172
|
background-color: #dcdee5;
|
63
173
|
color: white;
|
64
174
|
border-color: #dcdee5;
|
65
175
|
}
|
66
|
-
.bk-button.bk-button-hover-primary:hover
|
176
|
+
.bk-button.bk-button-hover-primary:hover,
|
177
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-hover-primary:hover {
|
67
178
|
background-color: #5594fa;
|
68
179
|
border-color: #5594fa;
|
69
180
|
color: white;
|
70
181
|
}
|
71
|
-
.bk-button.bk-button-warning
|
182
|
+
.bk-button.bk-button-warning,
|
183
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning {
|
72
184
|
background-color: #ff9c01;
|
73
185
|
color: white;
|
74
186
|
border-color: #ff9c01;
|
75
187
|
}
|
76
|
-
.bk-button.bk-button-warning:hover
|
188
|
+
.bk-button.bk-button-warning:hover,
|
189
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning:hover {
|
77
190
|
background-color: #ffb848;
|
78
191
|
border-color: #ffb848;
|
79
192
|
}
|
80
|
-
.bk-button.bk-button-warning:active
|
193
|
+
.bk-button.bk-button-warning:active,
|
194
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning:active {
|
81
195
|
background-color: #eb9000;
|
82
196
|
border-color: #eb9000;
|
83
197
|
color: white;
|
84
198
|
}
|
85
|
-
.bk-button.bk-button-warning.is-outline
|
199
|
+
.bk-button.bk-button-warning.is-outline,
|
200
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-outline {
|
86
201
|
color: #ff9c01;
|
87
202
|
border-color: #ff9c01;
|
88
203
|
background-color: white;
|
89
204
|
}
|
90
|
-
.bk-button.bk-button-warning.is-outline:hover
|
205
|
+
.bk-button.bk-button-warning.is-outline:hover,
|
206
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-outline:hover {
|
91
207
|
background-color: #ffb848;
|
92
208
|
border-color: #ffb848;
|
93
209
|
color: white;
|
94
210
|
}
|
95
|
-
.bk-button.bk-button-warning.is-outline:active
|
211
|
+
.bk-button.bk-button-warning.is-outline:active,
|
212
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-outline:active {
|
96
213
|
background-color: #eb9000;
|
97
214
|
border-color: #eb9000;
|
98
215
|
color: white;
|
99
216
|
}
|
100
|
-
.bk-button.bk-button-warning.is-text
|
217
|
+
.bk-button.bk-button-warning.is-text,
|
218
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-text {
|
101
219
|
color: #ff9c01;
|
102
220
|
background-color: transparent;
|
103
221
|
border: none;
|
104
222
|
}
|
105
|
-
.bk-button.bk-button-warning.is-text:not(.is-disabled):hover
|
223
|
+
.bk-button.bk-button-warning.is-text:not(.is-disabled):hover,
|
224
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-text:not(.is-disabled):hover {
|
106
225
|
color: #ffb848;
|
107
226
|
}
|
108
|
-
.bk-button.bk-button-warning.is-disabled
|
227
|
+
.bk-button.bk-button-warning.is-disabled,
|
228
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-disabled {
|
109
229
|
color: #dcdee5;
|
110
230
|
cursor: not-allowed;
|
111
231
|
}
|
112
|
-
.bk-button.bk-button-warning.is-disabled:not(.is-text)
|
232
|
+
.bk-button.bk-button-warning.is-disabled:not(.is-text),
|
233
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-warning.is-disabled:not(.is-text) {
|
113
234
|
background-color: #dcdee5;
|
114
235
|
color: white;
|
115
236
|
border-color: #dcdee5;
|
116
237
|
}
|
117
|
-
.bk-button.bk-button-hover-warning:hover
|
238
|
+
.bk-button.bk-button-hover-warning:hover,
|
239
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-hover-warning:hover {
|
118
240
|
background-color: #ffb848;
|
119
241
|
border-color: #ffb848;
|
120
242
|
color: white;
|
121
243
|
}
|
122
|
-
.bk-button.bk-button-success
|
244
|
+
.bk-button.bk-button-success,
|
245
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success {
|
123
246
|
background-color: #2dcb56;
|
124
247
|
color: white;
|
125
248
|
border-color: #2dcb56;
|
126
249
|
}
|
127
|
-
.bk-button.bk-button-success:hover
|
250
|
+
.bk-button.bk-button-success:hover,
|
251
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success:hover {
|
128
252
|
background-color: #45e35f;
|
129
253
|
border-color: #45e35f;
|
130
254
|
}
|
131
|
-
.bk-button.bk-button-success:active
|
255
|
+
.bk-button.bk-button-success:active,
|
256
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success:active {
|
132
257
|
background-color: #1ab943;
|
133
258
|
border-color: #1ab943;
|
134
259
|
color: white;
|
135
260
|
}
|
136
|
-
.bk-button.bk-button-success.is-outline
|
261
|
+
.bk-button.bk-button-success.is-outline,
|
262
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-outline {
|
137
263
|
color: #2dcb56;
|
138
264
|
border-color: #2dcb56;
|
139
265
|
background-color: white;
|
140
266
|
}
|
141
|
-
.bk-button.bk-button-success.is-outline:hover
|
267
|
+
.bk-button.bk-button-success.is-outline:hover,
|
268
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-outline:hover {
|
142
269
|
background-color: #45e35f;
|
143
270
|
border-color: #45e35f;
|
144
271
|
color: white;
|
145
272
|
}
|
146
|
-
.bk-button.bk-button-success.is-outline:active
|
273
|
+
.bk-button.bk-button-success.is-outline:active,
|
274
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-outline:active {
|
147
275
|
background-color: #1ab943;
|
148
276
|
border-color: #1ab943;
|
149
277
|
color: white;
|
150
278
|
}
|
151
|
-
.bk-button.bk-button-success.is-text
|
279
|
+
.bk-button.bk-button-success.is-text,
|
280
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-text {
|
152
281
|
color: #2dcb56;
|
153
282
|
background-color: transparent;
|
154
283
|
border: none;
|
155
284
|
}
|
156
|
-
.bk-button.bk-button-success.is-text:not(.is-disabled):hover
|
285
|
+
.bk-button.bk-button-success.is-text:not(.is-disabled):hover,
|
286
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-text:not(.is-disabled):hover {
|
157
287
|
color: #45e35f;
|
158
288
|
}
|
159
|
-
.bk-button.bk-button-success.is-disabled
|
289
|
+
.bk-button.bk-button-success.is-disabled,
|
290
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-disabled {
|
160
291
|
color: #dcdee5;
|
161
292
|
cursor: not-allowed;
|
162
293
|
}
|
163
|
-
.bk-button.bk-button-success.is-disabled:not(.is-text)
|
294
|
+
.bk-button.bk-button-success.is-disabled:not(.is-text),
|
295
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-success.is-disabled:not(.is-text) {
|
164
296
|
background-color: #dcdee5;
|
165
297
|
color: white;
|
166
298
|
border-color: #dcdee5;
|
167
299
|
}
|
168
|
-
.bk-button.bk-button-hover-success:hover
|
300
|
+
.bk-button.bk-button-hover-success:hover,
|
301
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-hover-success:hover {
|
169
302
|
background-color: #45e35f;
|
170
303
|
border-color: #45e35f;
|
171
304
|
color: white;
|
172
305
|
}
|
173
|
-
.bk-button.bk-button-danger
|
306
|
+
.bk-button.bk-button-danger,
|
307
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger {
|
174
308
|
background-color: #ea3636;
|
175
309
|
color: white;
|
176
310
|
border-color: #ea3636;
|
177
311
|
}
|
178
|
-
.bk-button.bk-button-danger:hover
|
312
|
+
.bk-button.bk-button-danger:hover,
|
313
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger:hover {
|
179
314
|
background-color: #ff5656;
|
180
315
|
border-color: #ff5656;
|
181
316
|
}
|
182
|
-
.bk-button.bk-button-danger:active
|
317
|
+
.bk-button.bk-button-danger:active,
|
318
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger:active {
|
183
319
|
background-color: #db2626;
|
184
320
|
border-color: #db2626;
|
185
321
|
color: white;
|
186
322
|
}
|
187
|
-
.bk-button.bk-button-danger.is-outline
|
323
|
+
.bk-button.bk-button-danger.is-outline,
|
324
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-outline {
|
188
325
|
color: #ea3636;
|
189
326
|
border-color: #ea3636;
|
190
327
|
background-color: white;
|
191
328
|
}
|
192
|
-
.bk-button.bk-button-danger.is-outline:hover
|
329
|
+
.bk-button.bk-button-danger.is-outline:hover,
|
330
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-outline:hover {
|
193
331
|
background-color: #ff5656;
|
194
332
|
border-color: #ff5656;
|
195
333
|
color: white;
|
196
334
|
}
|
197
|
-
.bk-button.bk-button-danger.is-outline:active
|
335
|
+
.bk-button.bk-button-danger.is-outline:active,
|
336
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-outline:active {
|
198
337
|
background-color: #db2626;
|
199
338
|
border-color: #db2626;
|
200
339
|
color: white;
|
201
340
|
}
|
202
|
-
.bk-button.bk-button-danger.is-text
|
341
|
+
.bk-button.bk-button-danger.is-text,
|
342
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-text {
|
203
343
|
color: #ea3636;
|
204
344
|
background-color: transparent;
|
205
345
|
border: none;
|
206
346
|
}
|
207
|
-
.bk-button.bk-button-danger.is-text:not(.is-disabled):hover
|
347
|
+
.bk-button.bk-button-danger.is-text:not(.is-disabled):hover,
|
348
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-text:not(.is-disabled):hover {
|
208
349
|
color: #ff5656;
|
209
350
|
}
|
210
|
-
.bk-button.bk-button-danger.is-disabled
|
351
|
+
.bk-button.bk-button-danger.is-disabled,
|
352
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-disabled {
|
211
353
|
color: #dcdee5;
|
212
354
|
cursor: not-allowed;
|
213
355
|
}
|
214
|
-
.bk-button.bk-button-danger.is-disabled:not(.is-text)
|
356
|
+
.bk-button.bk-button-danger.is-disabled:not(.is-text),
|
357
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-danger.is-disabled:not(.is-text) {
|
215
358
|
background-color: #dcdee5;
|
216
359
|
color: white;
|
217
360
|
border-color: #dcdee5;
|
218
361
|
}
|
219
|
-
.bk-button.bk-button-hover-danger:hover
|
362
|
+
.bk-button.bk-button-hover-danger:hover,
|
363
|
+
.bk-button-group .is-selected:not(.is-disabled).bk-button-hover-danger:hover {
|
220
364
|
background-color: #ff5656;
|
221
365
|
border-color: #ff5656;
|
222
366
|
color: white;
|
223
367
|
}
|
224
|
-
.bk-button.bk-button-small {
|
225
|
-
height: 26px;
|
226
|
-
padding: 0 12px;
|
227
|
-
font-size: 12px;
|
228
|
-
}
|
229
|
-
.bk-button.bk-button-large {
|
230
|
-
height: 40px;
|
231
|
-
padding: 0 16px;
|
232
|
-
font-size: 16px;
|
233
|
-
}
|
234
|
-
.bk-button .bk-button-text {
|
235
|
-
display: inline-flex;
|
236
|
-
align-items: center;
|
237
|
-
line-height: 1;
|
238
|
-
}
|
239
|
-
.bk-button.is-loading {
|
240
|
-
position: relative;
|
241
|
-
}
|
242
|
-
.bk-button.is-loading .bk-button-loading:not(:last-child) {
|
243
|
-
position: absolute;
|
244
|
-
}
|
245
|
-
.bk-button.is-loading .bk-button-text {
|
246
|
-
visibility: hidden;
|
247
|
-
}
|
248
|
-
.bk-button:hover {
|
249
|
-
border-color: #979ba5;
|
250
|
-
}
|
251
|
-
.bk-button:active {
|
252
|
-
color: #3a84ff;
|
253
|
-
border-color: #3a84ff;
|
254
|
-
}
|
255
|
-
.bk-button.is-text {
|
256
|
-
height: auto;
|
257
|
-
padding: 0;
|
258
|
-
font-size: inherit;
|
259
|
-
color: #63656e;
|
260
|
-
text-decoration: none;
|
261
|
-
cursor: pointer;
|
262
|
-
background-color: transparent;
|
263
|
-
border: none;
|
264
|
-
outline: none;
|
265
|
-
}
|
266
|
-
.bk-button.is-disabled {
|
267
|
-
color: #dcdee5;
|
268
|
-
cursor: not-allowed;
|
269
|
-
border-color: #dcdee5;
|
270
|
-
}
|
271
|
-
.bk-button.is-disabled:not(.is-text) {
|
272
|
-
background-color: #f9fafd;
|
273
|
-
}
|
274
|
-
.bk-button-group {
|
275
|
-
display: inline-block;
|
276
|
-
font-size: 0;
|
277
|
-
}
|
278
|
-
.bk-button-group.bk-button-group-small .bk-button {
|
279
|
-
height: 26px;
|
280
|
-
padding: 0 12px;
|
281
|
-
font-size: 12px;
|
282
|
-
}
|
283
|
-
.bk-button-group.bk-button-group-large .bk-button {
|
284
|
-
height: 40px;
|
285
|
-
padding: 0 16px;
|
286
|
-
font-size: 16px;
|
287
|
-
}
|
288
|
-
.bk-button-group .bk-button {
|
289
|
-
height: 32px;
|
290
|
-
margin: 0 0 0 -1px;
|
291
|
-
border-radius: 0;
|
292
|
-
}
|
293
|
-
.bk-button-group .bk-button:not(.is-disabled) {
|
294
|
-
color: #63656e;
|
295
|
-
background-color: white;
|
296
|
-
border-color: #c4c6cc;
|
297
|
-
}
|
298
|
-
.bk-button-group .bk-button.is-disabled {
|
299
|
-
color: #c4c6cc;
|
300
|
-
}
|
301
|
-
.bk-button-group .bk-button:first-child {
|
302
|
-
border-radius: 2px 0 0 2px;
|
303
|
-
}
|
304
|
-
.bk-button-group .bk-button:last-child {
|
305
|
-
border-radius: 0 2px 2px 0;
|
306
|
-
}
|
307
|
-
.bk-button-group .bk-button:only-child {
|
308
|
-
border-radius: 2px;
|
309
|
-
}
|
310
|
-
.bk-button-group .bk-button:hover:not(.is-disabled),
|
311
|
-
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
312
|
-
position: relative;
|
313
|
-
z-index: 1;
|
314
|
-
color: #3a84ff;
|
315
|
-
background-color: white;
|
316
|
-
border-color: #3a84ff;
|
317
|
-
}
|
318
|
-
.bk-button-group .bk-button.is-selected:not(.is-disabled) {
|
319
|
-
background-color: #e1ecff;
|
320
|
-
}
|
321
|
-
.bk-button-group .bk-button.is-selected.is-disabled {
|
322
|
-
background-color: #f0f1f5;
|
323
|
-
}
|
package/lib/button/button.d.ts
CHANGED
@@ -24,10 +24,10 @@
|
|
24
24
|
* IN THE SOFTWARE.
|
25
25
|
*/
|
26
26
|
import { ExtractPropTypes, PropType } from 'vue';
|
27
|
-
type IButtonNativeType = PropType<'button' | '
|
27
|
+
type IButtonNativeType = PropType<'button' | 'reset' | 'submit'>;
|
28
28
|
declare const buttonProps: {
|
29
|
-
theme: import("vue-types").VueTypeDef<"
|
30
|
-
hoverTheme: import("vue-types").VueTypeDef<"
|
29
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning">;
|
30
|
+
hoverTheme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning">;
|
31
31
|
size: {
|
32
32
|
type: PropType<"" | "small" | "large">;
|
33
33
|
default: "";
|
@@ -67,8 +67,8 @@ declare const buttonProps: {
|
|
67
67
|
};
|
68
68
|
export type ButtonPropTypes = ExtractPropTypes<typeof buttonProps>;
|
69
69
|
declare const _default: import("vue").DefineComponent<{
|
70
|
-
theme: import("vue-types").VueTypeDef<"
|
71
|
-
hoverTheme: import("vue-types").VueTypeDef<"
|
70
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning">;
|
71
|
+
hoverTheme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning">;
|
72
72
|
size: {
|
73
73
|
type: PropType<"" | "small" | "large">;
|
74
74
|
default: "";
|
@@ -106,8 +106,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
106
106
|
default: string;
|
107
107
|
};
|
108
108
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "mouseover")[], "click" | "mouseover", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
109
|
-
theme: import("vue-types").VueTypeDef<"
|
110
|
-
hoverTheme: import("vue-types").VueTypeDef<"
|
109
|
+
theme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning">;
|
110
|
+
hoverTheme: import("vue-types").VueTypeDef<"danger" | "primary" | "success" | "warning">;
|
111
111
|
size: {
|
112
112
|
type: PropType<"" | "small" | "large">;
|
113
113
|
default: "";
|
@@ -150,13 +150,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
150
150
|
}, {
|
151
151
|
title: string;
|
152
152
|
text: boolean;
|
153
|
-
size: "" | "small" | "large";
|
154
153
|
disabled: boolean;
|
155
|
-
icon: string;
|
156
154
|
loading: boolean;
|
155
|
+
size: "" | "small" | "large";
|
156
|
+
icon: string;
|
157
|
+
outline: boolean;
|
157
158
|
iconRight: string;
|
158
159
|
loadingMode: "default" | "spin";
|
159
|
-
outline: boolean;
|
160
160
|
selected: boolean;
|
161
161
|
nativeType: "reset" | "submit" | "button";
|
162
162
|
}, {}>;
|
package/lib/button/button.less
CHANGED
@@ -34,77 +34,7 @@
|
|
34
34
|
align-items: center;
|
35
35
|
justify-content: center;
|
36
36
|
|
37
|
-
each(@
|
38
|
-
@color: '@{value}-color';
|
39
|
-
@hoverColor: 'button-@{value}-hover-color';
|
40
|
-
@activeColor: 'button-@{value}-active-color';
|
41
|
-
|
42
|
-
&.@{bk-prefix}-button-@{value} {
|
43
|
-
background-color: @@color;
|
44
|
-
color: @white-color;
|
45
|
-
border-color: @@color;
|
46
|
-
|
47
|
-
&:hover {
|
48
|
-
background-color: @@hoverColor;
|
49
|
-
border-color: @@hoverColor;
|
50
|
-
}
|
51
|
-
|
52
|
-
&:active {
|
53
|
-
background-color: @@activeColor;
|
54
|
-
border-color: @@activeColor;
|
55
|
-
color: @white-color;
|
56
|
-
}
|
57
|
-
|
58
|
-
&.is-outline {
|
59
|
-
color: @@color;
|
60
|
-
border-color: @@color;
|
61
|
-
background-color: @white-color;
|
62
|
-
|
63
|
-
&:hover {
|
64
|
-
background-color: @@hoverColor;
|
65
|
-
border-color: @@hoverColor;
|
66
|
-
color: @white-color;
|
67
|
-
}
|
68
|
-
|
69
|
-
&:active {
|
70
|
-
background-color: @@activeColor;
|
71
|
-
border-color: @@activeColor;
|
72
|
-
color: @white-color;
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
&.is-text {
|
77
|
-
color: @@color;
|
78
|
-
background-color: transparent;
|
79
|
-
border: none;
|
80
|
-
|
81
|
-
&:not(.is-disabled):hover {
|
82
|
-
color: @@hoverColor;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
&.is-disabled {
|
87
|
-
&:not(.is-text) {
|
88
|
-
background-color: @disable-color;
|
89
|
-
color: @white-color;
|
90
|
-
border-color: @disable-color;
|
91
|
-
}
|
92
|
-
|
93
|
-
color: @disable-color;
|
94
|
-
cursor: not-allowed;
|
95
|
-
}
|
96
|
-
}
|
97
|
-
|
98
|
-
&.@{bk-prefix}-button-hover-@{value} {
|
99
|
-
&:hover {
|
100
|
-
background-color: @@hoverColor;
|
101
|
-
border-color: @@hoverColor;
|
102
|
-
color: @white-color;
|
103
|
-
}
|
104
|
-
}
|
105
|
-
})
|
106
|
-
|
107
|
-
each(@sizeSelectors, {
|
37
|
+
each(@sizeSelectors, {
|
108
38
|
@sizeBtnHeight: '@{value}BtnHeight';
|
109
39
|
@sizeBtnPadding: '@{value}BtnPadding';
|
110
40
|
@sizeBtnFontSize: '@{value}BtnFontSize';
|
@@ -239,3 +169,76 @@
|
|
239
169
|
|
240
170
|
}
|
241
171
|
}
|
172
|
+
|
173
|
+
.@{bk-prefix}-button,
|
174
|
+
.@{bk-prefix}-button-group .is-selected:not(.is-disabled) {
|
175
|
+
each(@themeSelectors, {
|
176
|
+
@color: '@{value}-color';
|
177
|
+
@hoverColor: 'button-@{value}-hover-color';
|
178
|
+
@activeColor: 'button-@{value}-active-color';
|
179
|
+
|
180
|
+
&.@{bk-prefix}-button-@{value} {
|
181
|
+
background-color: @@color;
|
182
|
+
color: @white-color;
|
183
|
+
border-color: @@color;
|
184
|
+
|
185
|
+
&:hover {
|
186
|
+
background-color: @@hoverColor;
|
187
|
+
border-color: @@hoverColor;
|
188
|
+
}
|
189
|
+
|
190
|
+
&:active {
|
191
|
+
background-color: @@activeColor;
|
192
|
+
border-color: @@activeColor;
|
193
|
+
color: @white-color;
|
194
|
+
}
|
195
|
+
|
196
|
+
&.is-outline {
|
197
|
+
color: @@color;
|
198
|
+
border-color: @@color;
|
199
|
+
background-color: @white-color;
|
200
|
+
|
201
|
+
&:hover {
|
202
|
+
background-color: @@hoverColor;
|
203
|
+
border-color: @@hoverColor;
|
204
|
+
color: @white-color;
|
205
|
+
}
|
206
|
+
|
207
|
+
&:active {
|
208
|
+
background-color: @@activeColor;
|
209
|
+
border-color: @@activeColor;
|
210
|
+
color: @white-color;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
&.is-text {
|
215
|
+
color: @@color;
|
216
|
+
background-color: transparent;
|
217
|
+
border: none;
|
218
|
+
|
219
|
+
&:not(.is-disabled):hover {
|
220
|
+
color: @@hoverColor;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
&.is-disabled {
|
225
|
+
&:not(.is-text) {
|
226
|
+
background-color: @disable-color;
|
227
|
+
color: @white-color;
|
228
|
+
border-color: @disable-color;
|
229
|
+
}
|
230
|
+
|
231
|
+
color: @disable-color;
|
232
|
+
cursor: not-allowed;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
&.@{bk-prefix}-button-hover-@{value} {
|
237
|
+
&:hover {
|
238
|
+
background-color: @@hoverColor;
|
239
|
+
border-color: @@hoverColor;
|
240
|
+
color: @white-color;
|
241
|
+
}
|
242
|
+
}
|
243
|
+
})
|
244
|
+
}
|