bkui-vue 0.0.1-beta.2 → 0.0.1-beta.22
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 +10044 -1374
- package/dist/bkui-vue.esm.js +10003 -1380
- package/dist/bkui-vue.umd.js +10044 -1374
- package/dist/style.css +3322 -241
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +32 -0
- package/lib/alert/index.d.ts +180 -3
- 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 -2
- 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 -2
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -2
- 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 +144 -43
- 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 +225 -3
- 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 -2
- 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/index.d.ts +261 -2
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +6 -5
- package/lib/code-diff/code-diff.css +114 -0
- package/lib/code-diff/code-diff.d.ts +71 -0
- package/lib/code-diff/code-diff.less +144 -0
- package/lib/code-diff/code-diff.variable.css +207 -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 -2
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +37 -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 -2
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -0
- package/lib/directives/index.d.ts +2 -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 +95 -1
- 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 -2
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +159 -0
- package/lib/form/form.css +39 -0
- package/lib/form/form.d.ts +84 -0
- package/lib/form/form.less +50 -0
- package/lib/form/form.variable.css +39 -0
- package/lib/form/index.d.ts +286 -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 +42 -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 -2
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +20 -2
- package/lib/input/input.d.ts +98 -46
- package/lib/input/input.less +28 -5
- package/lib/input/input.variable.css +52 -2
- package/lib/link/index.d.ts +164 -2
- 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 +146 -2
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +98 -71
- package/lib/loading/loading.d.ts +47 -21
- package/lib/loading/loading.less +62 -49
- package/lib/loading/loading.variable.css +130 -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 -3
- 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 -27
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +74 -45
- 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 -2
- 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/index.d.ts +277 -2
- 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 +6 -0
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.less +7 -0
- package/lib/radio/radio.variable.css +38 -0
- package/lib/rate/index.d.ts +113 -2
- 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/select/common.d.ts +13 -3
- package/lib/select/index.d.ts +962 -2
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +130 -0
- package/lib/select/select.css +130 -14
- package/lib/select/select.d.ts +152 -150
- package/lib/select/select.less +164 -26
- package/lib/select/select.variable.css +162 -14
- package/lib/shared/bk-helper-core.d.ts +6 -0
- package/lib/shared/bk-mask-manager.d.ts +32 -3
- package/lib/shared/bk-pop-manager.d.ts +8 -1
- package/lib/shared/bk-popover.d.ts +56 -5
- package/lib/shared/index.d.ts +24 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +7 -6
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +206 -2
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{index.d.ts → lib/slider/index.d.ts} +4 -5
- package/lib/slider/index.js +15 -0
- package/{commitlint.config.js → lib/slider/slider-button.d.ts} +50 -42
- 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 +43 -25
- 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/switcher/index.d.ts +286 -2
- 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 -2
- package/lib/table/index.js +1 -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 -2
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +91 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +103 -2
- package/lib/tag/tag.variable.css +123 -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/{changelog.config.js → lib/transfer/index.d.ts} +2 -8
- 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 +276 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +89 -0
- package/lib/tree/tree.css +42 -0
- package/lib/tree/tree.d.ts +112 -0
- package/lib/tree/tree.less +52 -0
- package/lib/tree/tree.variable.css +42 -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 +1 -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 +63 -48
- package/index.html +0 -40
- package/lib/checkbox-group/index.d.ts +0 -2
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.d.ts +0 -2
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.d.ts +0 -2
- 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/loading/index.d.ts
CHANGED
@@ -1,3 +1,147 @@
|
|
1
|
-
import
|
1
|
+
import { setDefaultIndicator, BkLoadingMode, BkLoadingSize } from './loading';
|
2
|
+
declare const BkLoading: {
|
3
|
+
new (...args: any[]): {
|
4
|
+
$: import("vue").ComponentInternalInstance;
|
5
|
+
$data: {};
|
6
|
+
$props: Partial<{
|
7
|
+
title: string;
|
8
|
+
size: string;
|
9
|
+
loading: boolean;
|
10
|
+
mode: string;
|
11
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
12
|
+
indicator: {
|
13
|
+
type: FunctionConstructor;
|
14
|
+
};
|
15
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
16
|
+
default: boolean;
|
17
|
+
};
|
18
|
+
theme: import("vue-types").VueTypeDef<string>;
|
19
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
20
|
+
default: string;
|
21
|
+
} & {
|
22
|
+
default: string;
|
23
|
+
};
|
24
|
+
size: import("vue-types").VueTypeDef<string> & {
|
25
|
+
default: string;
|
26
|
+
};
|
27
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "size" | "loading" | "mode">;
|
31
|
+
$attrs: {
|
32
|
+
[x: string]: unknown;
|
33
|
+
};
|
34
|
+
$refs: {
|
35
|
+
[x: string]: unknown;
|
36
|
+
};
|
37
|
+
$slots: Readonly<{
|
38
|
+
[name: string]: import("vue").Slot;
|
39
|
+
}>;
|
40
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
41
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
42
|
+
$emit: (event: string, ...args: any[]) => void;
|
43
|
+
$el: any;
|
44
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
45
|
+
indicator: {
|
46
|
+
type: FunctionConstructor;
|
47
|
+
};
|
48
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
49
|
+
default: boolean;
|
50
|
+
};
|
51
|
+
theme: import("vue-types").VueTypeDef<string>;
|
52
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
53
|
+
default: string;
|
54
|
+
} & {
|
55
|
+
default: string;
|
56
|
+
};
|
57
|
+
size: import("vue-types").VueTypeDef<string> & {
|
58
|
+
default: string;
|
59
|
+
};
|
60
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
61
|
+
default: string;
|
62
|
+
};
|
63
|
+
}>>, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
64
|
+
[key: string]: any;
|
65
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
66
|
+
title: string;
|
67
|
+
size: string;
|
68
|
+
loading: boolean;
|
69
|
+
mode: string;
|
70
|
+
}> & {
|
71
|
+
beforeCreate?: (() => void) | (() => void)[];
|
72
|
+
created?: (() => void) | (() => void)[];
|
73
|
+
beforeMount?: (() => void) | (() => void)[];
|
74
|
+
mounted?: (() => void) | (() => void)[];
|
75
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
76
|
+
updated?: (() => void) | (() => void)[];
|
77
|
+
activated?: (() => void) | (() => void)[];
|
78
|
+
deactivated?: (() => void) | (() => void)[];
|
79
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
80
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
81
|
+
destroyed?: (() => void) | (() => void)[];
|
82
|
+
unmounted?: (() => void) | (() => void)[];
|
83
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
84
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
85
|
+
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)[];
|
86
|
+
};
|
87
|
+
$forceUpdate: () => void;
|
88
|
+
$nextTick: typeof import("vue").nextTick;
|
89
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
90
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
91
|
+
indicator: {
|
92
|
+
type: FunctionConstructor;
|
93
|
+
};
|
94
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
95
|
+
default: boolean;
|
96
|
+
};
|
97
|
+
theme: import("vue-types").VueTypeDef<string>;
|
98
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
99
|
+
default: string;
|
100
|
+
} & {
|
101
|
+
default: string;
|
102
|
+
};
|
103
|
+
size: import("vue-types").VueTypeDef<string> & {
|
104
|
+
default: string;
|
105
|
+
};
|
106
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
107
|
+
default: string;
|
108
|
+
};
|
109
|
+
}>> & import("vue").ShallowUnwrapRef<() => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
110
|
+
[key: string]: any;
|
111
|
+
}>[]> & {} & {} & import("vue").ComponentCustomProperties;
|
112
|
+
__isFragment?: never;
|
113
|
+
__isTeleport?: never;
|
114
|
+
__isSuspense?: never;
|
115
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
116
|
+
indicator: {
|
117
|
+
type: FunctionConstructor;
|
118
|
+
};
|
119
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
120
|
+
default: boolean;
|
121
|
+
};
|
122
|
+
theme: import("vue-types").VueTypeDef<string>;
|
123
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
124
|
+
default: string;
|
125
|
+
} & {
|
126
|
+
default: string;
|
127
|
+
};
|
128
|
+
size: import("vue-types").VueTypeDef<string> & {
|
129
|
+
default: string;
|
130
|
+
};
|
131
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
132
|
+
default: string;
|
133
|
+
};
|
134
|
+
}>>, () => JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
135
|
+
[key: string]: any;
|
136
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
137
|
+
title: string;
|
138
|
+
size: string;
|
139
|
+
loading: boolean;
|
140
|
+
mode: string;
|
141
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin & Readonly<{
|
142
|
+
setDefaultIndicator: typeof setDefaultIndicator;
|
143
|
+
BkLoadingMode: typeof BkLoadingMode;
|
144
|
+
BkLoadingSize: typeof BkLoadingSize;
|
145
|
+
}>;
|
2
146
|
export default BkLoading;
|
3
|
-
export { BkLoadingMode, BkLoadingSize, };
|
147
|
+
export { BkLoading, setDefaultIndicator, BkLoadingMode, BkLoadingSize, };
|
package/lib/loading/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("vue"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../shared"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Shared)}(this,(function(e,o,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var a={exports:{}};!function(e){e.exports=function(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e},e.exports.__esModule=!0,e.exports.default=e.exports}(a);var i,d,l,r=n(a.exports);function u(e){l="function"==typeof e?e:function(){return o.createVNode(e,null,null)}}e.BkLoadingMode=void 0,(i=e.BkLoadingMode||(e.BkLoadingMode={})).Default="default",i.Spin="spin",e.BkLoadingSize=void 0,(d=e.BkLoadingSize||(e.BkLoadingSize={})).Mini="mini",d.Small="small",d.Large="large";var s={indicator:{type:Function},loading:t.PropTypes.bool,theme:t.PropTypes.theme(["white","primary","warning","success","danger"]),title:t.PropTypes.string.def(""),size:t.PropTypes.commonType(Object.values(e.BkLoadingSize)).def("small"),mode:t.PropTypes.commonType(Object.values(e.BkLoadingMode)).def("default")},c=o.defineComponent({name:"Loading",props:s,setup:function(n,a){var i=[1,2,3,4].map((function(e){return o.createVNode("span",{class:"dot dot-".concat(e)},null)})),d=o.createVNode("div",{class:"bk-spin-indicator"},[[1,2,3,4,5,6,7,8].map((function(e){return o.createVNode("span",{class:"oval oval-".concat(e)},null)}))]),u=o.computed((function(){return t.classes({"bk-nested-loading":!!a.slots.default},"bk-loading-wrapper")}));console.log(n.theme);var s=o.computed((function(){var e;return t.classes((r(e={},"bk-loading-size-".concat(n.size),!!n.size),r(e,"bk-loading-".concat(n.theme),!!n.theme),e),"bk-loading-indicator")})),c=o.computed((function(){return!!n.title})),p=o.computed((function(){var t=n.mode===e.BkLoadingMode.Spin;return"function"==typeof n.indicator?o.createVNode(n.indicator,null,null):"function"==typeof l?o.createVNode(l,null,null):t?d:i}));return function(){var e,t;return a.slots.default&&!n.loading?null===(t=(e=a.slots).default)||void 0===t?void 0:t.call(e):o.createVNode("div",{class:u.value},[o.createVNode("div",{class:s.value},[p.value,c.value&&o.createVNode("div",{class:"bk-loading-title"},[n.title])]),a.slots.default&&o.createVNode("div",{class:"bk-loading-mask"},[a.slots.default()])])}}}),p=t.withInstallProps(c,{setDefaultIndicator:u,BkLoadingMode:e.BkLoadingMode,BkLoadingSize:e.BkLoadingSize},!0);e.BkLoading=p,e.default=p,e.setDefaultIndicator=u,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/lib/loading/loading.css
CHANGED
@@ -23,6 +23,7 @@
|
|
23
23
|
position: static;
|
24
24
|
display: inline-block;
|
25
25
|
font-size: 0;
|
26
|
+
vertical-align: middle;
|
26
27
|
}
|
27
28
|
.bk-loading-wrapper.bk-nested-loading {
|
28
29
|
position: relative;
|
@@ -32,8 +33,33 @@
|
|
32
33
|
top: 50%;
|
33
34
|
left: 50%;
|
34
35
|
z-index: 4;
|
36
|
+
text-align: center;
|
35
37
|
transform: translate(-50%, -50%);
|
36
38
|
}
|
39
|
+
.bk-loading-wrapper .dot {
|
40
|
+
display: inline-block;
|
41
|
+
width: 14px;
|
42
|
+
height: 14px;
|
43
|
+
margin-right: 10px;
|
44
|
+
border-radius: 50%;
|
45
|
+
transform: scale(0.6);
|
46
|
+
animation-duration: 0.8s;
|
47
|
+
animation-iteration-count: infinite;
|
48
|
+
animation-name: loading-scale-animate;
|
49
|
+
animation-direction: normal;
|
50
|
+
}
|
51
|
+
.bk-loading-wrapper .oval {
|
52
|
+
position: absolute;
|
53
|
+
width: 6px;
|
54
|
+
height: 8px;
|
55
|
+
background-color: #63656e;
|
56
|
+
border-radius: 8px;
|
57
|
+
animation-duration: 1.2s;
|
58
|
+
animation-iteration-count: infinite;
|
59
|
+
animation-name: fade;
|
60
|
+
transform-origin: center 20px;
|
61
|
+
animation-direction: normal;
|
62
|
+
}
|
37
63
|
.bk-loading-wrapper .bk-loading-mask {
|
38
64
|
opacity: 0.5;
|
39
65
|
}
|
@@ -50,7 +76,55 @@
|
|
50
76
|
content: '';
|
51
77
|
}
|
52
78
|
.bk-loading-wrapper .bk-loading-indicator {
|
53
|
-
|
79
|
+
text-align: center;
|
80
|
+
}
|
81
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .oval,
|
82
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot,
|
83
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot-1,
|
84
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot-2,
|
85
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot-3,
|
86
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot-4 {
|
87
|
+
background-color: #2dcb56;
|
88
|
+
}
|
89
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .oval,
|
90
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot,
|
91
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot-1,
|
92
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot-2,
|
93
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot-3,
|
94
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot-4 {
|
95
|
+
background-color: #ea3636;
|
96
|
+
}
|
97
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .oval,
|
98
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot,
|
99
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot-1,
|
100
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot-2,
|
101
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot-3,
|
102
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot-4 {
|
103
|
+
background-color: #ff9c01;
|
104
|
+
}
|
105
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .oval,
|
106
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot,
|
107
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot-1,
|
108
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot-2,
|
109
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot-3,
|
110
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot-4 {
|
111
|
+
background-color: #3a84ff;
|
112
|
+
}
|
113
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .oval,
|
114
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot,
|
115
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot-1,
|
116
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot-2,
|
117
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot-3,
|
118
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot-4 {
|
119
|
+
background-color: white;
|
120
|
+
}
|
121
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .oval,
|
122
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot,
|
123
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot-1,
|
124
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot-2,
|
125
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot-3,
|
126
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot-4 {
|
127
|
+
background-color: #c4c6cc;
|
54
128
|
}
|
55
129
|
.bk-loading-wrapper .bk-loading-indicator .dot-1 {
|
56
130
|
background-color: #ea3636;
|
@@ -67,7 +141,7 @@
|
|
67
141
|
.bk-loading-wrapper .bk-loading-indicator .dot-4 {
|
68
142
|
background-color: #3a84ff;
|
69
143
|
animation-delay: 0.55s;
|
70
|
-
margin-right:
|
144
|
+
margin-right: 0px;
|
71
145
|
}
|
72
146
|
.bk-loading-wrapper .bk-loading-indicator .oval-1 {
|
73
147
|
transform: rotate(-135deg);
|
@@ -101,59 +175,35 @@
|
|
101
175
|
transform: rotate(180deg);
|
102
176
|
animation-delay: 1.65s;
|
103
177
|
}
|
104
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot3,
|
109
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot4 {
|
110
|
-
background-color: #2dcb56;
|
178
|
+
.bk-loading-wrapper .bk-loading-indicator .bk-spin-indicator {
|
179
|
+
display: inline-block;
|
180
|
+
width: 40px;
|
181
|
+
height: 40px;
|
111
182
|
}
|
112
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-
|
113
|
-
|
114
|
-
|
115
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot2,
|
116
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot3,
|
117
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot4 {
|
118
|
-
background-color: #ea3636;
|
183
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-mini .bk-spin-indicator {
|
184
|
+
height: 16px;
|
185
|
+
width: 16px;
|
119
186
|
}
|
120
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot3,
|
125
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot4 {
|
126
|
-
background-color: #ff9c01;
|
187
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-mini .dot {
|
188
|
+
width: 3px;
|
189
|
+
height: 3px;
|
190
|
+
margin-right: 3px;
|
127
191
|
}
|
128
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-
|
129
|
-
|
130
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot1,
|
131
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot2,
|
132
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot3,
|
133
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot4 {
|
134
|
-
background-color: #3a84ff;
|
135
|
-
}
|
136
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .oval,
|
137
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot,
|
138
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot1,
|
139
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot2,
|
140
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot3,
|
141
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot4 {
|
142
|
-
background-color: white;
|
192
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-mini .dot.dot-4 {
|
193
|
+
margin-right: 0;
|
143
194
|
}
|
144
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot4 {
|
150
|
-
background-color: #c4c6cc;
|
195
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-mini .oval {
|
196
|
+
width: 2px;
|
197
|
+
height: 3px;
|
198
|
+
border-radius: 3px;
|
199
|
+
transform-origin: center 8px;
|
151
200
|
}
|
152
|
-
.bk-loading-wrapper .bk-loading-indicator .bk-
|
153
|
-
|
201
|
+
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-mini .bk-loading-title {
|
202
|
+
font-size: 14px;
|
154
203
|
}
|
155
204
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .bk-spin-indicator {
|
156
205
|
height: 22px;
|
206
|
+
width: 22px;
|
157
207
|
}
|
158
208
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .dot {
|
159
209
|
width: 6px;
|
@@ -174,6 +224,7 @@
|
|
174
224
|
}
|
175
225
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .bk-spin-indicator {
|
176
226
|
height: 52px;
|
227
|
+
width: 52px;
|
177
228
|
}
|
178
229
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .dot {
|
179
230
|
width: 20px;
|
@@ -199,27 +250,3 @@
|
|
199
250
|
color: #63656e;
|
200
251
|
text-align: center;
|
201
252
|
}
|
202
|
-
.bk-loading-wrapper .bk-loading-indicator .dot {
|
203
|
-
display: inline-block;
|
204
|
-
width: 14px;
|
205
|
-
height: 14px;
|
206
|
-
margin-right: 10px;
|
207
|
-
border-radius: 50%;
|
208
|
-
transform: scale(0.6);
|
209
|
-
animation-duration: 0.8s;
|
210
|
-
animation-iteration-count: infinite;
|
211
|
-
animation-name: loading-scale-animate;
|
212
|
-
animation-direction: normal;
|
213
|
-
}
|
214
|
-
.bk-loading-wrapper .bk-loading-indicator .oval {
|
215
|
-
position: absolute;
|
216
|
-
width: 6px;
|
217
|
-
height: 8px;
|
218
|
-
background-color: #63656e;
|
219
|
-
border-radius: 8px;
|
220
|
-
animation-duration: 1.2s;
|
221
|
-
animation-iteration-count: infinite;
|
222
|
-
animation-name: fade;
|
223
|
-
transform-origin: center 20px;
|
224
|
-
animation-direction: normal;
|
225
|
-
}
|
package/lib/loading/loading.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
1
|
+
import { ExtractPropTypes, VNode } from 'vue';
|
2
2
|
export declare enum BkLoadingMode {
|
3
|
-
|
4
|
-
|
3
|
+
Default = "default",
|
4
|
+
Spin = "spin"
|
5
5
|
}
|
6
6
|
export declare enum BkLoadingSize {
|
7
|
+
Mini = "mini",
|
7
8
|
Small = "small",
|
8
9
|
Large = "large"
|
9
10
|
}
|
@@ -12,42 +13,67 @@ export declare const loadingTypes: {
|
|
12
13
|
indicator: {
|
13
14
|
type: FunctionConstructor;
|
14
15
|
};
|
16
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
17
|
+
default: boolean;
|
18
|
+
};
|
15
19
|
theme: import("vue-types").VueTypeDef<string>;
|
16
20
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
17
21
|
default: string;
|
18
22
|
} & {
|
19
23
|
default: string;
|
20
24
|
};
|
21
|
-
size: import("vue-types").VueTypeDef<string
|
22
|
-
|
25
|
+
size: import("vue-types").VueTypeDef<string> & {
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
29
|
+
default: string;
|
30
|
+
};
|
23
31
|
};
|
24
32
|
export declare type LoadingTypes = ExtractPropTypes<typeof loadingTypes>;
|
25
33
|
declare const _default: import("vue").DefineComponent<{
|
26
34
|
indicator: {
|
27
35
|
type: FunctionConstructor;
|
28
36
|
};
|
37
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
38
|
+
default: boolean;
|
39
|
+
};
|
29
40
|
theme: import("vue-types").VueTypeDef<string>;
|
30
41
|
title: import("vue-types").VueTypeValidableDef<string> & {
|
31
42
|
default: string;
|
32
43
|
} & {
|
33
44
|
default: string;
|
34
45
|
};
|
35
|
-
size: import("vue-types").VueTypeDef<string
|
36
|
-
|
37
|
-
}
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
} & {
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
46
|
+
size: import("vue-types").VueTypeDef<string> & {
|
47
|
+
default: string;
|
48
|
+
};
|
49
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
}, () => JSX.Element | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
53
|
+
[key: string]: any;
|
54
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
55
|
+
indicator: {
|
56
|
+
type: FunctionConstructor;
|
57
|
+
};
|
58
|
+
loading: import("vue-types").VueTypeValidableDef<boolean> & {
|
59
|
+
default: boolean;
|
60
|
+
};
|
61
|
+
theme: import("vue-types").VueTypeDef<string>;
|
62
|
+
title: import("vue-types").VueTypeValidableDef<string> & {
|
63
|
+
default: string;
|
64
|
+
} & {
|
65
|
+
default: string;
|
66
|
+
};
|
67
|
+
size: import("vue-types").VueTypeDef<string> & {
|
68
|
+
default: string;
|
69
|
+
};
|
70
|
+
mode: import("vue-types").VueTypeDef<string> & {
|
71
|
+
default: string;
|
72
|
+
};
|
73
|
+
}>>, {
|
51
74
|
title: string;
|
75
|
+
size: string;
|
76
|
+
loading: boolean;
|
77
|
+
mode: string;
|
52
78
|
}>;
|
53
79
|
export default _default;
|
package/lib/loading/loading.less
CHANGED
@@ -8,6 +8,12 @@
|
|
8
8
|
@ovalGap: 20px;
|
9
9
|
@titleMarginTop: 8px;
|
10
10
|
|
11
|
+
@miniDotSize: 3px;
|
12
|
+
@miniDotGap: 3px;
|
13
|
+
@miniOvalWidth: 2px;
|
14
|
+
@miniOvalHeight: 3px;
|
15
|
+
@miniOvalGap: 8px;
|
16
|
+
|
11
17
|
@smallDotSize: 6px;
|
12
18
|
@smallDotGap: 6px;
|
13
19
|
@smallOvalWidth: 4px;
|
@@ -29,15 +35,15 @@
|
|
29
35
|
.loading-theme(@theme) {
|
30
36
|
.oval,
|
31
37
|
.dot,
|
32
|
-
.
|
33
|
-
.
|
34
|
-
.
|
35
|
-
.
|
38
|
+
.dot-1,
|
39
|
+
.dot-2,
|
40
|
+
.dot-3,
|
41
|
+
.dot-4 {
|
36
42
|
background-color: @theme;
|
37
43
|
}
|
38
44
|
}
|
39
45
|
|
40
|
-
@sizeSelectors: small, large;
|
46
|
+
@sizeSelectors: mini, small, large;
|
41
47
|
@selectors: @danger-color, @warning-color, @success-color, @primary-color;
|
42
48
|
@themeSelectors: {
|
43
49
|
success: @success-color;
|
@@ -48,24 +54,52 @@
|
|
48
54
|
default: @light-gray;
|
49
55
|
};
|
50
56
|
|
51
|
-
|
57
|
+
.@{bk-prefix}-loading-wrapper {
|
52
58
|
position: static;
|
53
59
|
display: inline-block;
|
54
60
|
font-size: 0;
|
61
|
+
vertical-align: middle;
|
55
62
|
|
56
|
-
|
63
|
+
&.@{bk-prefix}-nested-loading {
|
57
64
|
position: relative;
|
58
65
|
|
59
|
-
|
66
|
+
.@{bk-prefix}-loading-indicator {
|
60
67
|
position: absolute;
|
61
68
|
top: 50%;
|
62
69
|
left: 50%;
|
63
70
|
z-index: 4;
|
71
|
+
text-align: center;
|
64
72
|
transform: translate(-50%, -50%);
|
65
73
|
}
|
66
74
|
}
|
67
75
|
|
68
|
-
.
|
76
|
+
.dot {
|
77
|
+
display: inline-block;
|
78
|
+
width: @dotSize;
|
79
|
+
height: @dotSize;
|
80
|
+
margin-right: @dotGap;
|
81
|
+
border-radius: 50%;
|
82
|
+
transform: scale(.6);
|
83
|
+
animation-duration: .8s;
|
84
|
+
animation-iteration-count: infinite;
|
85
|
+
animation-name: loading-scale-animate;
|
86
|
+
animation-direction: normal;
|
87
|
+
}
|
88
|
+
|
89
|
+
.oval {
|
90
|
+
position: absolute;
|
91
|
+
width: @ovalWidth;
|
92
|
+
height: @ovalHeight;
|
93
|
+
background-color: @default-color;
|
94
|
+
border-radius: @ovalHeight;
|
95
|
+
animation-duration: 1.2s;
|
96
|
+
animation-iteration-count: infinite;
|
97
|
+
animation-name: fade;
|
98
|
+
transform-origin: center @ovalGap;
|
99
|
+
animation-direction: normal;
|
100
|
+
}
|
101
|
+
|
102
|
+
.@{bk-prefix}-loading-mask {
|
69
103
|
opacity: .5;
|
70
104
|
|
71
105
|
&::after {
|
@@ -82,16 +116,20 @@
|
|
82
116
|
}
|
83
117
|
}
|
84
118
|
|
85
|
-
|
86
|
-
|
87
|
-
|
119
|
+
.@{bk-prefix}-loading-indicator {
|
120
|
+
text-align: center;
|
121
|
+
each(@themeSelectors, {
|
122
|
+
&.@{bk-prefix}-loading-@{key} {
|
123
|
+
.loading-theme(@value);
|
124
|
+
}
|
125
|
+
})
|
88
126
|
|
89
|
-
|
127
|
+
each(@selectors, {
|
90
128
|
.dot-@{index} {
|
91
129
|
background-color: @value;
|
92
130
|
animation-delay: .1s + (@index - 1) * .15;
|
93
131
|
& when (@index = 4) {
|
94
|
-
margin-right:
|
132
|
+
margin-right: 0px;
|
95
133
|
}
|
96
134
|
}
|
97
135
|
});
|
@@ -102,15 +140,12 @@
|
|
102
140
|
}
|
103
141
|
});
|
104
142
|
|
105
|
-
each(@themeSelectors, {
|
106
|
-
&.bk-loading-@{key} {
|
107
|
-
.loading-theme(@value);
|
108
|
-
}
|
109
|
-
})
|
110
143
|
|
111
144
|
;
|
112
145
|
|
113
|
-
|
146
|
+
.@{bk-prefix}-spin-indicator {
|
147
|
+
display: inline-block;
|
148
|
+
width: 2 * @ovalGap;
|
114
149
|
height: 2 * @ovalGap;
|
115
150
|
}
|
116
151
|
|
@@ -121,9 +156,10 @@
|
|
121
156
|
@sizedOvalHeight: '@{value}OvalHeight';
|
122
157
|
@sizedOvalGap: '@{value}OvalGap';
|
123
158
|
|
124
|
-
|
125
|
-
|
159
|
+
&.@{bk-prefix}-loading-size-@{value} {
|
160
|
+
.@{bk-prefix}-spin-indicator {
|
126
161
|
height: 2 * @@sizedOvalGap;
|
162
|
+
width: 2 * @@sizedOvalGap;
|
127
163
|
}
|
128
164
|
.dot {
|
129
165
|
width: @@sizedDotSize;
|
@@ -139,13 +175,13 @@
|
|
139
175
|
border-radius: @@sizedOvalHeight;
|
140
176
|
transform-origin: center @@sizedOvalGap;
|
141
177
|
}
|
142
|
-
|
178
|
+
.@{bk-prefix}-loading-title {
|
143
179
|
font-size: if(@value = small, @font-size-base, @font-size-medium);
|
144
180
|
}
|
145
181
|
}
|
146
182
|
})
|
147
183
|
|
148
|
-
|
184
|
+
.@{bk-prefix}-loading-title {
|
149
185
|
margin-top: @titleMarginTop;
|
150
186
|
font-size: @font-size-medium;
|
151
187
|
line-height: normal;
|
@@ -153,29 +189,6 @@
|
|
153
189
|
text-align: center;
|
154
190
|
}
|
155
191
|
|
156
|
-
|
157
|
-
|
158
|
-
width: @dotSize;
|
159
|
-
height: @dotSize;
|
160
|
-
margin-right: @dotGap;
|
161
|
-
border-radius: 50%;
|
162
|
-
transform: scale(.6);
|
163
|
-
animation-duration: .8s;
|
164
|
-
animation-iteration-count: infinite;
|
165
|
-
animation-name: loading-scale-animate;
|
166
|
-
animation-direction: normal;
|
167
|
-
}
|
168
|
-
|
169
|
-
.oval {
|
170
|
-
position: absolute;
|
171
|
-
width: @ovalWidth;
|
172
|
-
height: @ovalHeight;
|
173
|
-
background-color: @default-color;
|
174
|
-
border-radius: @ovalHeight;
|
175
|
-
animation-duration: 1.2s;
|
176
|
-
animation-iteration-count: infinite;
|
177
|
-
animation-name: fade;
|
178
|
-
transform-origin: center @ovalGap;
|
179
|
-
animation-direction: normal;
|
180
|
-
}}
|
192
|
+
|
193
|
+
}
|
181
194
|
}
|