bkui-vue 0.0.1-beta.3 → 0.0.1-beta.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -19
- package/README_EN.md +93 -0
- package/dist/bkui-vue.cjs.js +18093 -2770
- package/dist/bkui-vue.esm.js +18049 -2775
- package/dist/bkui-vue.umd.js +18095 -2772
- package/dist/style.css +3958 -254
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +32 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +32 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +10 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +42 -1
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +9 -0
- package/lib/button/button.d.ts +57 -28
- package/lib/button/button.less +23 -15
- package/lib/button/button.variable.css +41 -0
- package/lib/button/index.d.ts +226 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +32 -0
- package/lib/card/index.d.ts +187 -0
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +32 -0
- package/lib/checkbox/common.d.ts +1 -1
- package/lib/checkbox/index.d.ts +261 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +7 -6
- package/lib/code-diff/code-diff.css +115 -0
- package/lib/code-diff/code-diff.d.ts +71 -0
- package/lib/code-diff/code-diff.less +145 -0
- package/lib/code-diff/code-diff.variable.css +208 -0
- package/lib/code-diff/index.d.ts +6 -0
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.d.ts +166 -0
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +39 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +294 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +500 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +111 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.d.ts +57 -27
- package/lib/dialog/index.d.ts +286 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +14 -14
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +131 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +61 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +32 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
- package/lib/fixed-navbar/index.d.ts +112 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +145 -0
- package/lib/form/form.css +48 -0
- package/lib/form/form.d.ts +64 -0
- package/lib/form/form.less +63 -0
- package/lib/form/form.variable.css +48 -0
- package/lib/form/index.d.ts +246 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -0
- package/lib/form/validator.d.ts +8 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +15 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +15 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +53 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +15 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +15 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +15 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +417 -0
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +20 -2
- package/lib/input/input.d.ts +97 -45
- package/lib/input/input.less +28 -5
- package/lib/input/input.variable.css +52 -2
- package/lib/link/index.d.ts +164 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +32 -0
- package/lib/loading/index.d.ts +147 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +100 -71
- package/lib/loading/loading.d.ts +48 -21
- package/lib/loading/loading.less +64 -49
- package/lib/loading/loading.variable.css +132 -71
- package/lib/menu/index.d.ts +188 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +182 -0
- package/lib/menu/menu.d.ts +64 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +275 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +22 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +96 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +146 -0
- package/lib/message/messageConstructor.d.ts +73 -0
- package/lib/modal/index.d.ts +214 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +33 -15
- package/lib/modal/props.mixin.d.ts +5 -1
- package/lib/navigation/index.d.ts +2 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +111 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +277 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +142 -0
- package/lib/notify/notifyConstructor.d.ts +91 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +272 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +287 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +75 -46
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +55 -14
- package/lib/popover/props.d.ts +77 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +15 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +231 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +32 -3
- package/lib/radio/common.d.ts +1 -1
- package/lib/radio/index.d.ts +277 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +8 -2
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.less +9 -2
- package/lib/radio/radio.variable.css +40 -2
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +282 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1347 -0
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +243 -17
- package/lib/select/select.d.ts +268 -155
- package/lib/select/select.less +245 -46
- package/lib/select/select.variable.css +275 -17
- package/lib/select/type.d.ts +31 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +51 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +32 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +8 -1
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +57 -6
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +8 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +206 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{changelog.config.js → lib/slider/index.d.ts} +2 -8
- package/lib/slider/index.js +15 -0
- package/lib/slider/slider-button.d.ts +75 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +189 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +242 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +15 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +46 -0
- package/lib/styles/index.js +1 -1
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +52 -2
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +286 -0
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +181 -135
- package/lib/tab/index.d.ts +552 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +190 -0
- package/lib/tab/tab-panel.d.ts +48 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +163 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +240 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +282 -0
- package/lib/table/index.js +10 -1
- package/lib/table/props.d.ts +118 -0
- package/lib/table/render.d.ts +74 -0
- package/lib/table/table.css +90 -0
- package/lib/table/table.d.ts +85 -37
- package/lib/table/table.less +116 -1
- package/lib/table/table.variable.css +122 -0
- package/lib/table/utils.d.ts +69 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +129 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +2 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +208 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +250 -0
- package/lib/tag-input/tag-input.variable.css +301 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +328 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +251 -0
- package/lib/tree/index.d.ts +279 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +50 -0
- package/lib/tree/tree.d.ts +121 -0
- package/lib/tree/tree.less +63 -0
- package/lib/tree/tree.variable.css +143 -0
- package/lib/tree/util.d.ts +70 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +10 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +71 -54
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
package/lib/input/input.d.ts
CHANGED
@@ -41,6 +41,9 @@ export declare const inputType: {
|
|
41
41
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
42
42
|
default: number;
|
43
43
|
};
|
44
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
45
|
+
default: string;
|
46
|
+
};
|
44
47
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
45
48
|
default: boolean;
|
46
49
|
};
|
@@ -49,6 +52,11 @@ export declare const inputType: {
|
|
49
52
|
} & {
|
50
53
|
default: boolean;
|
51
54
|
};
|
55
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
56
|
+
default: boolean;
|
57
|
+
} & {
|
58
|
+
default: boolean;
|
59
|
+
};
|
52
60
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
53
61
|
default: number;
|
54
62
|
} & {
|
@@ -102,6 +110,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
102
110
|
maxlength: import("vue-types").VueTypeDef<number> & {
|
103
111
|
default: number;
|
104
112
|
};
|
113
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
114
|
+
default: string;
|
115
|
+
};
|
105
116
|
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
106
117
|
default: boolean;
|
107
118
|
};
|
@@ -110,6 +121,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
121
|
} & {
|
111
122
|
default: boolean;
|
112
123
|
};
|
124
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
125
|
+
default: boolean;
|
126
|
+
} & {
|
127
|
+
default: boolean;
|
128
|
+
};
|
113
129
|
precision: import("vue-types").VueTypeValidableDef<number> & {
|
114
130
|
default: number;
|
115
131
|
} & {
|
@@ -119,67 +135,103 @@ declare const _default: import("vue").DefineComponent<{
|
|
119
135
|
};
|
120
136
|
modelValue: import("vue-types").VueTypeDef<string | number>;
|
121
137
|
size: import("vue-types").VueTypeDef<string>;
|
122
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "change" | "update:modelValue")[], "input" | "focus" | "blur" | "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
123
|
-
type
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
138
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter")[], "input" | "focus" | "blur" | "paste" | "change" | "keydown" | "keypress" | "keyup" | "clear" | "update:modelValue" | "enter", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
139
|
+
type: import("vue-types").VueTypeValidableDef<string> & {
|
140
|
+
default: string;
|
141
|
+
} & {
|
142
|
+
default: string;
|
143
|
+
};
|
144
|
+
clearable: import("vue-types").VueTypeValidableDef<boolean> & {
|
145
|
+
default: boolean;
|
146
|
+
};
|
147
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
148
|
+
default: boolean;
|
149
|
+
};
|
150
|
+
readonly: import("vue-types").VueTypeValidableDef<boolean> & {
|
151
|
+
default: boolean;
|
152
|
+
};
|
153
|
+
placeholder: import("vue-types").VueTypeValidableDef<string> & {
|
154
|
+
default: string;
|
155
|
+
};
|
156
|
+
prefixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
157
|
+
default: string;
|
158
|
+
};
|
159
|
+
suffixIcon: import("vue-types").VueTypeValidableDef<string> & {
|
160
|
+
default: string;
|
161
|
+
};
|
162
|
+
suffix: import("vue-types").VueTypeValidableDef<string> & {
|
163
|
+
default: string;
|
164
|
+
};
|
165
|
+
prefix: import("vue-types").VueTypeValidableDef<string> & {
|
166
|
+
default: string;
|
167
|
+
};
|
168
|
+
step: import("vue-types").VueTypeDef<number> & {
|
169
|
+
default: number;
|
170
|
+
};
|
171
|
+
max: import("vue-types").VueTypeDef<number> & {
|
172
|
+
default: number;
|
173
|
+
};
|
174
|
+
min: import("vue-types").VueTypeDef<number> & {
|
175
|
+
default: number;
|
176
|
+
};
|
177
|
+
maxlength: import("vue-types").VueTypeDef<number> & {
|
178
|
+
default: number;
|
179
|
+
};
|
180
|
+
behavior: import("vue-types").VueTypeDef<string> & {
|
181
|
+
default: string;
|
182
|
+
};
|
183
|
+
showWordLimit: import("vue-types").VueTypeValidableDef<boolean> & {
|
184
|
+
default: boolean;
|
185
|
+
};
|
186
|
+
showControl: import("vue-types").VueTypeValidableDef<boolean> & {
|
187
|
+
default: boolean;
|
188
|
+
} & {
|
189
|
+
default: boolean;
|
190
|
+
};
|
191
|
+
showClearOnlyHover: import("vue-types").VueTypeValidableDef<boolean> & {
|
192
|
+
default: boolean;
|
193
|
+
} & {
|
194
|
+
default: boolean;
|
195
|
+
};
|
196
|
+
precision: import("vue-types").VueTypeValidableDef<number> & {
|
197
|
+
default: number;
|
198
|
+
} & {
|
199
|
+
default: number;
|
200
|
+
} & {
|
201
|
+
validator: import("vue-types/dist/types").ValidatorFunction<unknown>;
|
202
|
+
};
|
203
|
+
modelValue: import("vue-types").VueTypeDef<string | number>;
|
204
|
+
size: import("vue-types").VueTypeDef<string>;
|
205
|
+
}>> & {
|
206
|
+
onPaste?: (...args: any[]) => any;
|
162
207
|
onFocus?: (...args: any[]) => any;
|
163
208
|
onBlur?: (...args: any[]) => any;
|
164
209
|
onChange?: (...args: any[]) => any;
|
165
210
|
onInput?: (...args: any[]) => any;
|
211
|
+
onKeydown?: (...args: any[]) => any;
|
212
|
+
onKeypress?: (...args: any[]) => any;
|
213
|
+
onKeyup?: (...args: any[]) => any;
|
166
214
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
215
|
+
onClear?: (...args: any[]) => any;
|
216
|
+
onEnter?: (...args: any[]) => any;
|
167
217
|
}, {
|
218
|
+
type: string;
|
168
219
|
placeholder: string;
|
169
220
|
prefix: string;
|
170
221
|
step: number;
|
171
222
|
disabled: boolean;
|
172
|
-
type: string;
|
173
|
-
clearable: boolean;
|
174
223
|
readonly: boolean;
|
175
|
-
|
176
|
-
|
177
|
-
suffix: string;
|
224
|
+
clearable: boolean;
|
225
|
+
behavior: string;
|
178
226
|
max: number;
|
179
227
|
min: number;
|
180
228
|
maxlength: number;
|
229
|
+
prefixIcon: string;
|
230
|
+
suffixIcon: string;
|
231
|
+
suffix: string;
|
181
232
|
showWordLimit: boolean;
|
182
233
|
showControl: boolean;
|
234
|
+
showClearOnlyHover: boolean;
|
183
235
|
precision: number;
|
184
236
|
}>;
|
185
237
|
export default _default;
|
package/lib/input/input.less
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
1
|
@import '../styles/themes/themes.less';
|
3
2
|
@import '../styles/mixins/mixins.less';
|
4
3
|
|
5
4
|
.active(@color: @primary-color) {
|
6
|
-
border-color: @primary-color;
|
5
|
+
border-color: @primary-color;
|
7
6
|
outline: 0;
|
8
7
|
box-shadow: 0px 0px 3px 0px @input-shadow-color;
|
9
8
|
}
|
@@ -23,11 +22,28 @@
|
|
23
22
|
border-radius: @border-radius-base;
|
24
23
|
transition: all .3s;
|
25
24
|
|
25
|
+
&:hover {
|
26
|
+
.show-clear-only-hover {
|
27
|
+
display: block;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
&.is-simplicity {
|
32
|
+
background-color: transparent;
|
33
|
+
border-color: transparent;
|
34
|
+
border-bottom-color: @input-border-color;
|
35
|
+
}
|
36
|
+
|
26
37
|
&--suffix-icon {
|
27
38
|
padding-right: @input-horizontal-padding;
|
28
39
|
font-size: @input-icon-size;
|
40
|
+
line-height: 1;
|
29
41
|
color: @light-gray;
|
30
42
|
align-self: center;
|
43
|
+
|
44
|
+
&.show-clear-only-hover {
|
45
|
+
display: none;
|
46
|
+
}
|
31
47
|
}
|
32
48
|
|
33
49
|
&--large {
|
@@ -40,6 +56,12 @@
|
|
40
56
|
|
41
57
|
&.is-focused:not(.is-readonly) {
|
42
58
|
.active();
|
59
|
+
|
60
|
+
&.is-simplicity {
|
61
|
+
border-color: transparent;
|
62
|
+
border-bottom-color: @primary-color;
|
63
|
+
box-shadow: none;
|
64
|
+
}
|
43
65
|
}
|
44
66
|
|
45
67
|
&.is-disabled {
|
@@ -69,7 +91,7 @@
|
|
69
91
|
color: @input-maxlength-color;
|
70
92
|
}
|
71
93
|
}
|
72
|
-
|
94
|
+
|
73
95
|
&--text {
|
74
96
|
padding: 0 @input-horizontal-padding;
|
75
97
|
font-size: @font-size-base;
|
@@ -91,13 +113,13 @@
|
|
91
113
|
appearance: none;
|
92
114
|
}
|
93
115
|
// IE
|
94
|
-
[type=search]::-ms-clear {
|
116
|
+
[type='search']::-ms-clear {
|
95
117
|
display: none;
|
96
118
|
width: 0;
|
97
119
|
height: 0;
|
98
120
|
}
|
99
121
|
|
100
|
-
[type=search]::-ms-reveal {
|
122
|
+
[type='search']::-ms-reveal {
|
101
123
|
display: none;
|
102
124
|
width: 0;
|
103
125
|
height: 0;
|
@@ -125,6 +147,7 @@
|
|
125
147
|
height: 50%;
|
126
148
|
overflow: hidden;
|
127
149
|
color: @light-gray;
|
150
|
+
text-align: center;
|
128
151
|
}
|
129
152
|
|
130
153
|
svg {
|
@@ -1,10 +1,12 @@
|
|
1
1
|
:root {
|
2
2
|
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
3
4
|
--primary-color: #3a84ff;
|
4
5
|
--success-color: #2dcb56;
|
5
6
|
--warning-color: #ff9c01;
|
6
7
|
--danger-color: #ea3636;
|
7
8
|
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
8
10
|
--light-gray: #c4c6cc;
|
9
11
|
--white-color: white;
|
10
12
|
--disable-color: #dcdee5;
|
@@ -58,6 +60,36 @@
|
|
58
60
|
--link-success-disabled-color: #94f5a4;
|
59
61
|
--link-warning-disabled-color: #ffd695;
|
60
62
|
--link-danger-disabled-color: #fd9c9c;
|
63
|
+
--message-color: var(--default-color);
|
64
|
+
--message-primary-bg-color: #f0f8ff;
|
65
|
+
--message-primary-border-color: #e1ecff;
|
66
|
+
--message-warning-bg-color: #fff4e2;
|
67
|
+
--message-warning-border-color: #ffe8c3;
|
68
|
+
--message-success-bg-color: #f2fff4;
|
69
|
+
--message-success-border-color: #dcffe2;
|
70
|
+
--message-danger-bg-color: #ffeded;
|
71
|
+
--message-danger-border-color: #ffdddd;
|
72
|
+
--slider-default-bg: #dcdee5;
|
73
|
+
--slider-disable-bar-bg: #979ba5;
|
74
|
+
--menu-bg-color: #182132;
|
75
|
+
--submenu-bg-color: #151d2c;
|
76
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
77
|
+
--menu-color: #96a2b9;
|
78
|
+
--menu-group-color: var(--default-color);
|
79
|
+
--menu-width: 260px;
|
80
|
+
--menu-collapse-width: 60px;
|
81
|
+
--menu-active-color: white;
|
82
|
+
--nav-header-bg-color: #182132;
|
83
|
+
--nav-bg-color: #182132;
|
84
|
+
--date-picker-disabled-bg: #fafbfd;
|
85
|
+
--date-picker-dropdown-mb: 4px;
|
86
|
+
--date-picker-dropdown-bg: #fff;
|
87
|
+
--table-bg-color: var(--white-color);
|
88
|
+
--table-border-color: #dcdee5;
|
89
|
+
--table-head-bg-color: #fafbfd;
|
90
|
+
--table-head-font-color: #313238;
|
91
|
+
--table-body-font-color: #575961;
|
92
|
+
--table-row-hover-bg-color: #f5f7fa;
|
61
93
|
}
|
62
94
|
@keyframes loading-scale-animate {
|
63
95
|
0% {
|
@@ -89,12 +121,24 @@
|
|
89
121
|
border-radius: var(--border-radius-base);
|
90
122
|
transition: all 0.3s;
|
91
123
|
}
|
124
|
+
.bk-input:hover .show-clear-only-hover {
|
125
|
+
display: block;
|
126
|
+
}
|
127
|
+
.bk-input.is-simplicity {
|
128
|
+
background-color: transparent;
|
129
|
+
border-color: transparent;
|
130
|
+
border-bottom-color: var(--input-border-color);
|
131
|
+
}
|
92
132
|
.bk-input--suffix-icon {
|
93
133
|
padding-right: var(--input-horizontal-padding);
|
94
134
|
font-size: var(--input-icon-size);
|
135
|
+
line-height: 1;
|
95
136
|
color: var(--light-gray);
|
96
137
|
align-self: center;
|
97
138
|
}
|
139
|
+
.bk-input--suffix-icon.show-clear-only-hover {
|
140
|
+
display: none;
|
141
|
+
}
|
98
142
|
.bk-input--large {
|
99
143
|
height: var(--component-size-large);
|
100
144
|
font-size: var(--font-size-large);
|
@@ -108,6 +152,11 @@
|
|
108
152
|
outline: 0;
|
109
153
|
box-shadow: 0px 0px 3px 0px var(--input-shadow-color);
|
110
154
|
}
|
155
|
+
.bk-input.is-focused:not(.is-readonly).is-simplicity {
|
156
|
+
border-color: transparent;
|
157
|
+
border-bottom-color: var(--primary-color);
|
158
|
+
box-shadow: none;
|
159
|
+
}
|
111
160
|
.bk-input.is-disabled {
|
112
161
|
cursor: not-allowed;
|
113
162
|
background-color: var(--input-disabled-bg);
|
@@ -152,12 +201,12 @@
|
|
152
201
|
.bk-input--text[type='search']::-webkit-search-results-decoration {
|
153
202
|
appearance: none;
|
154
203
|
}
|
155
|
-
.bk-input--text [type=search]::-ms-clear {
|
204
|
+
.bk-input--text [type='search']::-ms-clear {
|
156
205
|
display: none;
|
157
206
|
width: 0;
|
158
207
|
height: 0;
|
159
208
|
}
|
160
|
-
.bk-input--text [type=search]::-ms-reveal {
|
209
|
+
.bk-input--text [type='search']::-ms-reveal {
|
161
210
|
display: none;
|
162
211
|
width: 0;
|
163
212
|
height: 0;
|
@@ -181,6 +230,7 @@
|
|
181
230
|
height: 50%;
|
182
231
|
overflow: hidden;
|
183
232
|
color: var(--light-gray);
|
233
|
+
text-align: center;
|
184
234
|
}
|
185
235
|
.bk-input--number-control svg {
|
186
236
|
font-size: var(--input-icon-size);
|
@@ -0,0 +1,164 @@
|
|
1
|
+
declare const BkLink: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
theme: string;
|
7
|
+
target: string;
|
8
|
+
underline: boolean;
|
9
|
+
disabled: boolean;
|
10
|
+
href: string;
|
11
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
12
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
13
|
+
default: string;
|
14
|
+
};
|
15
|
+
href: import("vue-types").VueTypeValidableDef<string> & {
|
16
|
+
default: string;
|
17
|
+
} & {
|
18
|
+
default: string;
|
19
|
+
};
|
20
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
21
|
+
default: boolean;
|
22
|
+
} & {
|
23
|
+
default: boolean;
|
24
|
+
};
|
25
|
+
underline: import("vue-types").VueTypeValidableDef<boolean> & {
|
26
|
+
default: boolean;
|
27
|
+
} & {
|
28
|
+
default: boolean;
|
29
|
+
};
|
30
|
+
target: import("vue-types").VueTypeValidableDef<string> & {
|
31
|
+
default: string;
|
32
|
+
} & {
|
33
|
+
default: string;
|
34
|
+
};
|
35
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "target" | "underline" | "disabled" | "href">;
|
36
|
+
$attrs: {
|
37
|
+
[x: string]: unknown;
|
38
|
+
};
|
39
|
+
$refs: {
|
40
|
+
[x: string]: unknown;
|
41
|
+
};
|
42
|
+
$slots: Readonly<{
|
43
|
+
[name: string]: import("vue").Slot;
|
44
|
+
}>;
|
45
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
46
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
47
|
+
$emit: (event: string, ...args: any[]) => void;
|
48
|
+
$el: any;
|
49
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
50
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
51
|
+
default: string;
|
52
|
+
};
|
53
|
+
href: import("vue-types").VueTypeValidableDef<string> & {
|
54
|
+
default: string;
|
55
|
+
} & {
|
56
|
+
default: string;
|
57
|
+
};
|
58
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
59
|
+
default: boolean;
|
60
|
+
} & {
|
61
|
+
default: boolean;
|
62
|
+
};
|
63
|
+
underline: import("vue-types").VueTypeValidableDef<boolean> & {
|
64
|
+
default: boolean;
|
65
|
+
} & {
|
66
|
+
default: boolean;
|
67
|
+
};
|
68
|
+
target: import("vue-types").VueTypeValidableDef<string> & {
|
69
|
+
default: string;
|
70
|
+
} & {
|
71
|
+
default: string;
|
72
|
+
};
|
73
|
+
}>>, {
|
74
|
+
handleClick: (event: Event) => boolean;
|
75
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
76
|
+
theme: string;
|
77
|
+
target: string;
|
78
|
+
underline: boolean;
|
79
|
+
disabled: boolean;
|
80
|
+
href: string;
|
81
|
+
}> & {
|
82
|
+
beforeCreate?: (() => void) | (() => void)[];
|
83
|
+
created?: (() => void) | (() => void)[];
|
84
|
+
beforeMount?: (() => void) | (() => void)[];
|
85
|
+
mounted?: (() => void) | (() => void)[];
|
86
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
87
|
+
updated?: (() => void) | (() => void)[];
|
88
|
+
activated?: (() => void) | (() => void)[];
|
89
|
+
deactivated?: (() => void) | (() => void)[];
|
90
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
91
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
92
|
+
destroyed?: (() => void) | (() => void)[];
|
93
|
+
unmounted?: (() => void) | (() => void)[];
|
94
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
95
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
96
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
97
|
+
};
|
98
|
+
$forceUpdate: () => void;
|
99
|
+
$nextTick: typeof import("vue").nextTick;
|
100
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
101
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
102
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
103
|
+
default: string;
|
104
|
+
};
|
105
|
+
href: import("vue-types").VueTypeValidableDef<string> & {
|
106
|
+
default: string;
|
107
|
+
} & {
|
108
|
+
default: string;
|
109
|
+
};
|
110
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
111
|
+
default: boolean;
|
112
|
+
} & {
|
113
|
+
default: boolean;
|
114
|
+
};
|
115
|
+
underline: import("vue-types").VueTypeValidableDef<boolean> & {
|
116
|
+
default: boolean;
|
117
|
+
} & {
|
118
|
+
default: boolean;
|
119
|
+
};
|
120
|
+
target: import("vue-types").VueTypeValidableDef<string> & {
|
121
|
+
default: string;
|
122
|
+
} & {
|
123
|
+
default: string;
|
124
|
+
};
|
125
|
+
}>> & import("vue").ShallowUnwrapRef<{
|
126
|
+
handleClick: (event: Event) => boolean;
|
127
|
+
}> & {} & {} & import("vue").ComponentCustomProperties;
|
128
|
+
__isFragment?: never;
|
129
|
+
__isTeleport?: never;
|
130
|
+
__isSuspense?: never;
|
131
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
132
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
133
|
+
default: string;
|
134
|
+
};
|
135
|
+
href: import("vue-types").VueTypeValidableDef<string> & {
|
136
|
+
default: string;
|
137
|
+
} & {
|
138
|
+
default: string;
|
139
|
+
};
|
140
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
141
|
+
default: boolean;
|
142
|
+
} & {
|
143
|
+
default: boolean;
|
144
|
+
};
|
145
|
+
underline: import("vue-types").VueTypeValidableDef<boolean> & {
|
146
|
+
default: boolean;
|
147
|
+
} & {
|
148
|
+
default: boolean;
|
149
|
+
};
|
150
|
+
target: import("vue-types").VueTypeValidableDef<string> & {
|
151
|
+
default: string;
|
152
|
+
} & {
|
153
|
+
default: string;
|
154
|
+
};
|
155
|
+
}>>, {
|
156
|
+
handleClick: (event: Event) => boolean;
|
157
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
158
|
+
theme: string;
|
159
|
+
target: string;
|
160
|
+
underline: boolean;
|
161
|
+
disabled: boolean;
|
162
|
+
href: string;
|
163
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
164
|
+
export default BkLink;
|
package/lib/link/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("vue")):"function"==typeof define&&define.amd?define(["exports","../shared","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared,e.Vue)}(this,(function(e,t,i){"use strict";var n=i.defineComponent({name:"Link",props:{theme:t.PropTypes.theme(["danger","success","primary","warning","default"]).def("default"),href:t.PropTypes.string.def(""),disabled:t.PropTypes.bool.def(!1),underline:t.PropTypes.bool.def(!1),target:t.PropTypes.string.def("_self")},setup:function(e,t){var i=t.emit;return{handleClick:function(t){if(e.disabled)return t.preventDefault(),!1;i("click",t)}}},render:function(){var e,n,r=t.classes({"is-disabled":this.disabled,"has-underline":this.underline},"".concat(this.theme," bk-link"));return i.createVNode("a",{href:this.href,target:this.target,class:r,onClick:this.handleClick},[i.createVNode("span",null,[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])])}}),r=t.withInstall(n);e.default=r,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/link/link.d.ts
CHANGED
@@ -24,19 +24,31 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
24
|
};
|
25
25
|
}, {
|
26
26
|
handleClick: (event: Event) => boolean;
|
27
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
28
|
-
theme
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
} & {
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
27
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
28
|
+
theme: import("vue-types").VueTypeDef<string> & {
|
29
|
+
default: string;
|
30
|
+
};
|
31
|
+
href: import("vue-types").VueTypeValidableDef<string> & {
|
32
|
+
default: string;
|
33
|
+
} & {
|
34
|
+
default: string;
|
35
|
+
};
|
36
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
37
|
+
default: boolean;
|
38
|
+
} & {
|
39
|
+
default: boolean;
|
40
|
+
};
|
41
|
+
underline: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
|
+
default: boolean;
|
43
|
+
} & {
|
44
|
+
default: boolean;
|
45
|
+
};
|
46
|
+
target: import("vue-types").VueTypeValidableDef<string> & {
|
47
|
+
default: string;
|
48
|
+
} & {
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
}>>, {
|
40
52
|
theme: string;
|
41
53
|
target: string;
|
42
54
|
underline: boolean;
|
@@ -1,10 +1,12 @@
|
|
1
1
|
:root {
|
2
2
|
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
3
4
|
--primary-color: #3a84ff;
|
4
5
|
--success-color: #2dcb56;
|
5
6
|
--warning-color: #ff9c01;
|
6
7
|
--danger-color: #ea3636;
|
7
8
|
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
8
10
|
--light-gray: #c4c6cc;
|
9
11
|
--white-color: white;
|
10
12
|
--disable-color: #dcdee5;
|
@@ -58,6 +60,36 @@
|
|
58
60
|
--link-success-disabled-color: #94f5a4;
|
59
61
|
--link-warning-disabled-color: #ffd695;
|
60
62
|
--link-danger-disabled-color: #fd9c9c;
|
63
|
+
--message-color: var(--default-color);
|
64
|
+
--message-primary-bg-color: #f0f8ff;
|
65
|
+
--message-primary-border-color: #e1ecff;
|
66
|
+
--message-warning-bg-color: #fff4e2;
|
67
|
+
--message-warning-border-color: #ffe8c3;
|
68
|
+
--message-success-bg-color: #f2fff4;
|
69
|
+
--message-success-border-color: #dcffe2;
|
70
|
+
--message-danger-bg-color: #ffeded;
|
71
|
+
--message-danger-border-color: #ffdddd;
|
72
|
+
--slider-default-bg: #dcdee5;
|
73
|
+
--slider-disable-bar-bg: #979ba5;
|
74
|
+
--menu-bg-color: #182132;
|
75
|
+
--submenu-bg-color: #151d2c;
|
76
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
77
|
+
--menu-color: #96a2b9;
|
78
|
+
--menu-group-color: var(--default-color);
|
79
|
+
--menu-width: 260px;
|
80
|
+
--menu-collapse-width: 60px;
|
81
|
+
--menu-active-color: white;
|
82
|
+
--nav-header-bg-color: #182132;
|
83
|
+
--nav-bg-color: #182132;
|
84
|
+
--date-picker-disabled-bg: #fafbfd;
|
85
|
+
--date-picker-dropdown-mb: 4px;
|
86
|
+
--date-picker-dropdown-bg: #fff;
|
87
|
+
--table-bg-color: var(--white-color);
|
88
|
+
--table-border-color: #dcdee5;
|
89
|
+
--table-head-bg-color: #fafbfd;
|
90
|
+
--table-head-font-color: #313238;
|
91
|
+
--table-body-font-color: #575961;
|
92
|
+
--table-row-hover-bg-color: #f5f7fa;
|
61
93
|
}
|
62
94
|
.bk-link {
|
63
95
|
font-size: var(--font-size-medium);
|