bkui-vue 2.0.1-beta.107 → 2.0.1-beta.108
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +71 -71
- package/dist/index.esm.js +18590 -18752
- package/dist/index.umd.js +70 -70
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +130 -0
- package/lib/affix/affix.variable.css +261 -1
- package/lib/affix/index.d.ts +111 -57
- package/lib/affix/index.js +17 -17
- package/lib/alert/alert.css +133 -3
- package/lib/alert/alert.variable.css +261 -1
- package/lib/alert/index.d.ts +126 -73
- package/lib/alert/index.js +20 -20
- package/lib/animate-number/index.d.ts +96 -33
- package/lib/animate-number/index.js +7 -8
- package/lib/backtop/backtop.css +133 -3
- package/lib/backtop/backtop.variable.css +394 -4
- package/lib/backtop/index.d.ts +117 -69
- package/lib/backtop/index.js +10 -11
- package/lib/badge/badge.css +156 -26
- package/lib/badge/badge.variable.css +261 -1
- package/lib/badge/index.d.ts +152 -119
- package/lib/badge/index.js +19 -19
- package/lib/breadcrumb/breadcrumb.css +135 -5
- package/lib/breadcrumb/breadcrumb.variable.css +396 -6
- package/lib/breadcrumb/index.d.ts +119 -67
- package/lib/breadcrumb/index.js +17 -17
- package/lib/button/button.css +273 -143
- package/lib/button/button.d.ts +2 -2
- package/lib/button/button.variable.css +261 -1
- package/lib/button/index.d.ts +155 -119
- package/lib/button/index.js +20 -19
- package/lib/card/card.css +134 -4
- package/lib/card/card.variable.css +395 -5
- package/lib/card/index.d.ts +157 -128
- package/lib/card/index.js +22 -20
- package/lib/cascader/cascader.css +153 -23
- package/lib/cascader/cascader.d.ts +3 -3
- package/lib/cascader/cascader.variable.css +414 -24
- package/lib/cascader/index.d.ts +354 -393
- package/lib/cascader/index.js +268 -270
- package/lib/checkbox/checkbox.css +140 -10
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +261 -1
- package/lib/checkbox/index.d.ts +175 -143
- package/lib/checkbox/index.js +45 -45
- package/lib/code-diff/code-diff.css +130 -0
- package/lib/code-diff/code-diff.variable.css +261 -1
- package/lib/code-diff/index.d.ts +82 -65
- package/lib/code-diff/index.js +438 -381
- package/lib/collapse/collapse.css +131 -1
- package/lib/collapse/collapse.variable.css +261 -1
- package/lib/collapse/index.d.ts +175 -156
- package/lib/collapse/index.js +27 -28
- package/lib/collapse-transition/collapse-transition.css +130 -0
- package/lib/collapse-transition/collapse-transition.variable.css +261 -1
- package/lib/collapse-transition/index.d.ts +94 -19
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/color-picker.css +130 -0
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/color-picker.variable.css +261 -1
- package/lib/color-picker/index.d.ts +165 -144
- package/lib/color-picker/index.js +41 -43
- package/lib/config-provider/config-provider.css +130 -0
- package/lib/config-provider/config-provider.variable.css +261 -1
- package/lib/config-provider/index.d.ts +227 -160
- package/lib/config-provider/index.js +17 -17
- package/lib/container/container.css +130 -0
- package/lib/container/container.d.ts +1 -1
- package/lib/container/container.variable.css +391 -1
- package/lib/container/index.d.ts +85 -74
- package/lib/container/index.js +26 -28
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/time-spinner.d.ts +3 -3
- package/lib/date-picker/date-picker.css +147 -17
- package/lib/date-picker/date-picker.d.ts +4 -4
- package/lib/date-picker/date-picker.variable.css +261 -1
- package/lib/date-picker/index.d.ts +351 -380
- package/lib/date-picker/index.js +79 -80
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +4 -4
- package/lib/dialog/dialog.css +138 -8
- package/lib/dialog/dialog.variable.css +399 -9
- package/lib/dialog/index.d.ts +269 -299
- package/lib/dialog/index.js +228 -227
- package/lib/directives/index.js +29 -29
- package/lib/divider/divider.css +133 -3
- package/lib/divider/divider.variable.css +261 -1
- package/lib/divider/index.d.ts +111 -57
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/dropdown.css +130 -0
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/dropdown.variable.css +391 -1
- package/lib/dropdown/index.d.ts +136 -94
- package/lib/dropdown/index.js +22 -24
- package/lib/exception/exception.css +130 -0
- package/lib/exception/exception.variable.css +261 -1
- package/lib/exception/index.d.ts +102 -41
- package/lib/exception/index.js +21 -21
- package/lib/fixed-navbar/fixed-navbar.css +134 -4
- package/lib/fixed-navbar/fixed-navbar.variable.css +261 -1
- package/lib/fixed-navbar/index.d.ts +113 -59
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/form.css +130 -0
- package/lib/form/form.d.ts +1 -1
- package/lib/form/form.variable.css +261 -1
- package/lib/form/index.d.ts +132 -80
- package/lib/form/index.js +22 -21
- 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/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.css +130 -0
- package/lib/image/image-viewer.variable.css +261 -1
- package/lib/image/image.css +130 -0
- package/lib/image/image.variable.css +391 -1
- package/lib/image/index.d.ts +149 -113
- package/lib/image/index.js +26 -27
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +233 -232
- package/lib/info-box/info-box.css +134 -4
- package/lib/info-box/info-box.variable.css +261 -1
- package/lib/input/index.d.ts +293 -326
- package/lib/input/index.js +48 -46
- package/lib/input/input.css +205 -75
- package/lib/input/input.variable.css +466 -76
- package/lib/link/index.d.ts +122 -73
- package/lib/link/index.js +2 -2
- package/lib/link/link.css +146 -16
- package/lib/link/link.variable.css +261 -1
- package/lib/loading/index.d.ts +156 -130
- package/lib/loading/index.js +33 -32
- package/lib/loading/loading.css +146 -16
- package/lib/loading/loading.d.ts +1 -1
- package/lib/loading/loading.variable.css +407 -17
- package/lib/menu/index.d.ts +116 -55
- package/lib/menu/index.js +25 -26
- package/lib/menu/menu.css +150 -20
- package/lib/menu/menu.variable.css +411 -21
- package/lib/menu/submenu.css +130 -0
- package/lib/menu/submenu.variable.css +261 -1
- package/lib/message/index.js +25 -24
- package/lib/message/message.css +151 -21
- package/lib/message/message.variable.css +261 -1
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +185 -171
- package/lib/modal/index.js +19 -19
- package/lib/modal/modal.css +134 -4
- package/lib/modal/modal.variable.css +395 -5
- package/lib/navigation/index.d.ts +188 -152
- package/lib/navigation/index.js +7 -9
- package/lib/navigation/navigation.css +132 -2
- package/lib/navigation/navigation.variable.css +261 -1
- package/lib/notify/index.js +21 -20
- package/lib/notify/notify.css +137 -7
- package/lib/notify/notify.variable.css +261 -1
- package/lib/overflow-title/index.d.ts +256 -343
- package/lib/overflow-title/index.js +10 -11
- package/lib/pagination/index.d.ts +198 -184
- package/lib/pagination/index.js +56 -49
- package/lib/pagination/pagination.css +131 -1
- package/lib/pagination/pagination.variable.css +261 -1
- package/lib/plugin-popover/index.js +135 -233
- package/lib/pop-confirm/index.d.ts +153 -115
- package/lib/pop-confirm/index.js +4 -5
- package/lib/pop-confirm/pop-confirm.css +130 -0
- package/lib/pop-confirm/pop-confirm.d.ts +1 -1
- package/lib/pop-confirm/pop-confirm.variable.css +261 -1
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +361 -423
- package/lib/popover/index.js +135 -233
- package/lib/popover/popover.css +130 -0
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover/popover.variable.css +261 -1
- package/lib/popover/use-popover-init.d.ts +1 -2
- package/lib/popover2/index.d.ts +83 -8
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.d.ts +137 -93
- package/lib/process/index.js +226 -226
- package/lib/process/process.css +143 -13
- package/lib/process/process.variable.css +261 -1
- package/lib/progress/index.d.ts +187 -178
- package/lib/progress/index.js +21 -22
- package/lib/progress/progress.css +134 -4
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +395 -5
- package/lib/radio/index.d.ts +140 -91
- package/lib/radio/index.js +48 -46
- package/lib/radio/radio.css +172 -42
- package/lib/radio/radio.variable.css +261 -1
- package/lib/rate/index.d.ts +112 -55
- package/lib/rate/index.js +20 -19
- package/lib/rate/rate.css +130 -0
- package/lib/rate/rate.variable.css +261 -1
- package/lib/resize-layout/index.d.ts +192 -168
- package/lib/resize-layout/index.js +21 -20
- package/lib/resize-layout/resize-layout.css +130 -0
- package/lib/resize-layout/resize-layout.d.ts +2 -2
- package/lib/resize-layout/resize-layout.variable.css +261 -1
- package/lib/scrollbar/css/scrollbar.css +130 -0
- package/lib/scrollbar/css/scrollbar.variable.css +261 -1
- package/lib/scrollbar/index.js +38 -38
- package/lib/search-select/index.d.ts +901 -684
- package/lib/search-select/index.js +274 -274
- package/lib/search-select/input.d.ts +2 -2
- package/lib/search-select/search-select.css +163 -33
- package/lib/search-select/search-select.d.ts +188 -133
- package/lib/search-select/search-select.variable.css +424 -34
- package/lib/search-select/selected.d.ts +188 -133
- package/lib/select/index.d.ts +1333 -1491
- package/lib/select/index.js +280 -279
- package/lib/select/select.css +169 -39
- package/lib/select/select.d.ts +169 -132
- package/lib/select/select.variable.css +430 -40
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/shared/index.js +56 -54
- package/lib/sideslider/index.d.ts +201 -197
- package/lib/sideslider/index.js +228 -227
- package/lib/sideslider/sideslider.css +131 -1
- package/lib/sideslider/sideslider.variable.css +261 -1
- package/lib/slider/index.d.ts +210 -214
- package/lib/slider/index.js +225 -226
- package/lib/slider/slider.css +135 -5
- package/lib/slider/slider.variable.css +261 -1
- package/lib/steps/index.d.ts +149 -110
- package/lib/steps/index.js +231 -230
- package/lib/steps/steps.css +168 -38
- package/lib/steps/steps.variable.css +261 -1
- package/lib/styles/mixins/animate.css +130 -0
- package/lib/styles/mixins/animate.variable.css +261 -1
- package/lib/styles/mixins/mixins.css +130 -0
- package/lib/styles/mixins/mixins.variable.css +130 -0
- package/lib/styles/mixins/popper.css +130 -0
- package/lib/styles/mixins/popper.variable.css +261 -1
- package/lib/styles/mixins/scroll.css +130 -0
- package/lib/styles/mixins/scroll.variable.css +261 -1
- package/lib/styles/reset.css +130 -0
- package/lib/styles/reset.variable.css +261 -1
- package/lib/styles/themes/themes.css +130 -0
- package/lib/styles/themes/themes.less +299 -130
- package/lib/styles/themes/themes.variable.css +130 -0
- package/lib/swiper/index.d.ts +127 -81
- package/lib/swiper/index.js +18 -18
- package/lib/swiper/swiper.css +130 -0
- package/lib/swiper/swiper.variable.css +261 -1
- package/lib/switcher/index.d.ts +174 -152
- package/lib/switcher/index.js +22 -20
- package/lib/switcher/switcher.css +147 -17
- package/lib/switcher/switcher.variable.css +408 -18
- package/lib/tab/index.d.ts +183 -151
- package/lib/tab/index.js +19 -20
- package/lib/tab/tab.css +156 -26
- package/lib/tab/tab.variable.css +261 -1
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/hooks/use-columns.d.ts +1 -1
- package/lib/table/hooks/use-layout.d.ts +2 -2
- package/lib/table/hooks/use-rows.d.ts +1 -1
- package/lib/table/index.d.ts +362 -457
- package/lib/table/index.js +350 -338
- package/lib/table/plugins/head-filter.css +130 -0
- package/lib/table/plugins/head-filter.variable.css +261 -1
- package/lib/table/plugins/head-sort.css +130 -0
- package/lib/table/plugins/head-sort.variable.css +261 -1
- package/lib/table/plugins/settings.css +130 -0
- package/lib/table/plugins/settings.variable.css +261 -1
- package/lib/table/table.css +319 -189
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.variable.css +580 -190
- package/lib/table-column/index.d.ts +150 -104
- package/lib/table-column/index.js +19 -18
- package/lib/tag/index.d.ts +142 -95
- package/lib/tag/index.js +19 -19
- package/lib/tag/tag.css +135 -5
- package/lib/tag/tag.variable.css +261 -1
- package/lib/tag-input/index.d.ts +540 -755
- package/lib/tag-input/index.js +58 -52
- package/lib/tag-input/tag-input.css +148 -18
- package/lib/tag-input/tag-input.d.ts +5 -5
- package/lib/tag-input/tag-input.variable.css +261 -1
- package/lib/time-picker/index.d.ts +386 -439
- package/lib/time-picker/time-picker.css +130 -0
- package/lib/time-picker/time-picker.variable.css +261 -1
- package/lib/timeline/index.d.ts +131 -64
- package/lib/timeline/index.js +6 -6
- package/lib/timeline/timeline.css +149 -19
- package/lib/timeline/timeline.variable.css +261 -1
- package/lib/transfer/index.d.ts +206 -191
- package/lib/transfer/transfer.css +149 -19
- package/lib/transfer/transfer.variable.css +261 -1
- package/lib/tree/index.d.ts +308 -350
- package/lib/tree/index.js +74 -71
- package/lib/tree/tree.css +140 -10
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +401 -11
- package/lib/tree/use-tree-init.d.ts +1 -1
- package/lib/upload/index.d.ts +273 -311
- package/lib/upload/index.js +264 -261
- package/lib/upload/upload.css +157 -27
- package/lib/upload/upload.d.ts +2 -2
- package/lib/upload/upload.variable.css +418 -28
- package/lib/virtual-render/index.d.ts +241 -333
- package/lib/virtual-render/index.js +29 -29
- package/lib/virtual-render/virtual-render.css +130 -0
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/lib/virtual-render/virtual-render.variable.css +391 -1
- package/package.json +1 -1
package/lib/loading/index.js
CHANGED
@@ -44,40 +44,40 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
|
|
44
44
|
;// CONCATENATED MODULE: external "vue"
|
45
45
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
46
46
|
var external_vue_y = x => () => x
|
47
|
-
const external_vue_namespaceObject = external_vue_x({ ["
|
47
|
+
const external_vue_namespaceObject = external_vue_x({ ["createApp"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createApp, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive });
|
48
48
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
49
|
-
function _typeof(
|
49
|
+
function _typeof(obj) {
|
50
50
|
"@babel/helpers - typeof";
|
51
51
|
|
52
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
53
|
-
return typeof
|
54
|
-
} : function (
|
55
|
-
return
|
56
|
-
}, _typeof(
|
52
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
53
|
+
return typeof obj;
|
54
|
+
} : function (obj) {
|
55
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
56
|
+
}, _typeof(obj);
|
57
57
|
}
|
58
58
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
59
59
|
|
60
|
-
function
|
61
|
-
if ("object"
|
62
|
-
var
|
63
|
-
if (
|
64
|
-
var
|
65
|
-
if ("object"
|
60
|
+
function _toPrimitive(input, hint) {
|
61
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
62
|
+
var prim = input[Symbol.toPrimitive];
|
63
|
+
if (prim !== undefined) {
|
64
|
+
var res = prim.call(input, hint || "default");
|
65
|
+
if (_typeof(res) !== "object") return res;
|
66
66
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
67
67
|
}
|
68
|
-
return ("string"
|
68
|
+
return (hint === "string" ? String : Number)(input);
|
69
69
|
}
|
70
70
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
71
71
|
|
72
72
|
|
73
|
-
function
|
74
|
-
var
|
75
|
-
return "symbol"
|
73
|
+
function _toPropertyKey(arg) {
|
74
|
+
var key = _toPrimitive(arg, "string");
|
75
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
76
76
|
}
|
77
77
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
78
78
|
|
79
79
|
function _defineProperty(obj, key, value) {
|
80
|
-
key =
|
80
|
+
key = _toPropertyKey(key);
|
81
81
|
if (key in obj) {
|
82
82
|
Object.defineProperty(obj, key, {
|
83
83
|
value: value,
|
@@ -96,9 +96,6 @@ var config_provider_y = x => () => x
|
|
96
96
|
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
97
97
|
;// CONCATENATED MODULE: ../../packages/loading/src/loading.tsx
|
98
98
|
|
99
|
-
|
100
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
101
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
102
99
|
/*
|
103
100
|
* Tencent is pleased to support the open source community by making
|
104
101
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -125,6 +122,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
125
122
|
* IN THE SOFTWARE.
|
126
123
|
*/
|
127
124
|
|
125
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
126
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
128
127
|
|
129
128
|
|
130
129
|
var BkLoadingMode;
|
@@ -168,7 +167,7 @@ var loadingTypes = {
|
|
168
167
|
zIndex: shared_namespaceObject.PropTypes.number.def(1),
|
169
168
|
isDirective: shared_namespaceObject.PropTypes.bool.def(false)
|
170
169
|
};
|
171
|
-
/* harmony default export */ const loading = (
|
170
|
+
/* harmony default export */ const loading = (defineComponent({
|
172
171
|
name: 'Loading',
|
173
172
|
props: loadingTypes,
|
174
173
|
setup: function setup(props, ctx) {
|
@@ -188,27 +187,29 @@ var loadingTypes = {
|
|
188
187
|
"class": "oval oval-".concat(i)
|
189
188
|
}, null);
|
190
189
|
})]);
|
191
|
-
var zIndexStyle =
|
190
|
+
var zIndexStyle = computed(function () {
|
192
191
|
return {
|
193
192
|
zIndex: props.zIndex
|
194
193
|
};
|
195
194
|
});
|
196
|
-
var maskStyle =
|
195
|
+
var maskStyle = computed(function () {
|
197
196
|
return _objectSpread({
|
198
197
|
opacity: props.opacity,
|
199
198
|
backgroundColor: props.color
|
200
199
|
}, zIndexStyle.value);
|
201
200
|
});
|
202
|
-
var loadingWrapperCls =
|
203
|
-
|
201
|
+
var loadingWrapperCls = computed(function () {
|
202
|
+
var _classes;
|
203
|
+
return (0,shared_namespaceObject.classes)((_classes = {}, _defineProperty(_classes, "".concat(resolveClassName('loading-wrapper')), props.loading), _defineProperty(_classes, "".concat(resolveClassName('nested-loading')), !!ctx.slots["default"]), _defineProperty(_classes, "".concat(resolveClassName('directive-loading')), props.isDirective), _classes));
|
204
204
|
});
|
205
|
-
var containerCls =
|
206
|
-
|
205
|
+
var containerCls = computed(function () {
|
206
|
+
var _classes2;
|
207
|
+
return (0,shared_namespaceObject.classes)((_classes2 = {}, _defineProperty(_classes2, "".concat(resolveClassName("loading-size-".concat(props.size))), !!props.size), _defineProperty(_classes2, "".concat(resolveClassName("loading-".concat(props.theme))), !!props.theme), _classes2), resolveClassName('loading-indicator'));
|
207
208
|
});
|
208
|
-
var hasTitle =
|
209
|
+
var hasTitle = computed(function () {
|
209
210
|
return !!props.title;
|
210
211
|
});
|
211
|
-
var indicator =
|
212
|
+
var indicator = computed(function () {
|
212
213
|
var isSpinMode = props.mode === BkLoadingMode.Spin;
|
213
214
|
if (typeof props.indicator === 'function') {
|
214
215
|
return (0,external_vue_namespaceObject.createVNode)(props.indicator, null, null);
|
@@ -330,8 +331,8 @@ var vBkloading = {
|
|
330
331
|
unmounted: function unmounted(el) {
|
331
332
|
var _instance$vm2, _instance$instance;
|
332
333
|
var instance = el[INSTANCE_KEY];
|
333
|
-
el === null || el === void 0
|
334
|
-
instance === null || instance === void 0 || (_instance$instance = instance.instance) === null || _instance$instance === void 0
|
334
|
+
el === null || el === void 0 ? void 0 : el.removeChild(instance === null || instance === void 0 || (_instance$vm2 = instance.vm) === null || _instance$vm2 === void 0 || (_instance$vm2 = _instance$vm2.$el) === null || _instance$vm2 === void 0 ? void 0 : _instance$vm2.parentNode);
|
335
|
+
instance === null || instance === void 0 || (_instance$instance = instance.instance) === null || _instance$instance === void 0 ? void 0 : _instance$instance.unmount();
|
335
336
|
el[INSTANCE_KEY] = null;
|
336
337
|
}
|
337
338
|
};
|
package/lib/loading/loading.css
CHANGED
@@ -1,3 +1,133 @@
|
|
1
|
+
:root {
|
2
|
+
--bk-prefix: bk;
|
3
|
+
--popover-max-height: 216px;
|
4
|
+
--primary-color: #3a84ff;
|
5
|
+
--success-color: #2dcb56;
|
6
|
+
--warning-color: #ff9c01;
|
7
|
+
--danger-color: #ea3636;
|
8
|
+
--default-color: #63656e;
|
9
|
+
--gray-color: #979ba5;
|
10
|
+
--light-gray: #c4c6cc;
|
11
|
+
--white-color: white;
|
12
|
+
--whitesmoke-color: #fafbfd;
|
13
|
+
--disable-color: #dcdee5;
|
14
|
+
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
16
|
+
--font-size-base: 12px;
|
17
|
+
--font-size-medium: 14px;
|
18
|
+
--font-size-large: 16px;
|
19
|
+
--line-height-base: 16px;
|
20
|
+
--line-height-medium: 16px;
|
21
|
+
--line-height-large: 18px;
|
22
|
+
--component-size-small: 26px;
|
23
|
+
--component-size-base: 32px;
|
24
|
+
--component-size-large: 40px;
|
25
|
+
--component-size-small-padding: 0 12px;
|
26
|
+
--component-size-base-padding: 0 14px;
|
27
|
+
--component-size-large-padding: 0 16px;
|
28
|
+
--border-width-base: 1px;
|
29
|
+
--border-style-base: solid;
|
30
|
+
--border-radius-base: 2px;
|
31
|
+
--border-style-color: var(--light-gray);
|
32
|
+
--input-disabled-bg: #fafbfd;
|
33
|
+
--input-disabled-border: var(--disable-color);
|
34
|
+
--input-height-base: var(--component-size-base);
|
35
|
+
--input-color: var(--default-color);
|
36
|
+
--input-bg: white;
|
37
|
+
--input-border-color: var(--light-gray);
|
38
|
+
--input-broder-radius: 3px;
|
39
|
+
--input-shadow-color: #a3c5fd;
|
40
|
+
--input-horizontal-padding: 8px;
|
41
|
+
--input-block-color: #f5f7fa;
|
42
|
+
--input-block-hover-color: #eaebf0;
|
43
|
+
--input-icon-size: var(--font-size-medium);
|
44
|
+
--input-maxlength-color: #979ba5;
|
45
|
+
--button-primary-hover-color: #5594fa;
|
46
|
+
--button-danger-hover-color: #ff5656;
|
47
|
+
--button-success-hover-color: #45e35f;
|
48
|
+
--button-warning-hover-color: #ffb848;
|
49
|
+
--button-default-hover-border-color: #979ba5;
|
50
|
+
--button-primary-active-color: #2c77f4;
|
51
|
+
--button-danger-active-color: #db2626;
|
52
|
+
--button-success-active-color: #1ab943;
|
53
|
+
--button-warning-active-color: #eb9000;
|
54
|
+
--button-selected-bg-color: #e1ecff;
|
55
|
+
--button-disabled-selected-bg-color: #f0f1f5;
|
56
|
+
--radio-font-color: #63656e;
|
57
|
+
--radio-active-color: #3a84ff;
|
58
|
+
--radio-hover-border-color: #979ba5;
|
59
|
+
--radio-disabled-border: #dcdee5;
|
60
|
+
--radio-disabled-font-color: #c4c6cc;
|
61
|
+
--radio-disabled-checked-bg: #a3c5fd;
|
62
|
+
--radio-button-checked-bg: #e1ecff;
|
63
|
+
--radio-button-disabled-checked-bg: #fafbfd;
|
64
|
+
--checkbox-disabled-checked-bg: #a3c5fd;
|
65
|
+
--fixed-navbar-background: #fff;
|
66
|
+
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
67
|
+
--switch-default-color: #fff;
|
68
|
+
--switch-grey-color: #c4c6cc;
|
69
|
+
--breadcrumb-black-color: #979ba5;
|
70
|
+
--breadcrumb-primary-hover-color: #0082ff;
|
71
|
+
--breadcrumb-fn-main-color: #63656e;
|
72
|
+
--link-default-hover-color: #979ba5;
|
73
|
+
--link-primary-hover-color: #699df4;
|
74
|
+
--link-success-hover-color: #45e35f;
|
75
|
+
--link-warning-hover-color: #ffb848;
|
76
|
+
--link-danger-hover-color: #ff5656;
|
77
|
+
--link-default-disabled-color: #dcdee5;
|
78
|
+
--link-primary-disabled-color: #a3c5fd;
|
79
|
+
--link-success-disabled-color: #94f5a4;
|
80
|
+
--link-warning-disabled-color: #ffd695;
|
81
|
+
--link-danger-disabled-color: #fd9c9c;
|
82
|
+
--message-color: var(--default-color);
|
83
|
+
--message-primary-bg-color: #f0f8ff;
|
84
|
+
--message-primary-border-color: #e1ecff;
|
85
|
+
--message-primary-shadow-color: #e1e8f4;
|
86
|
+
--message-warning-bg-color: #fff4e2;
|
87
|
+
--message-warning-border-color: #ffe8c3;
|
88
|
+
--message-warning-shadow-color: #ede6db;
|
89
|
+
--message-success-bg-color: #f2fff4;
|
90
|
+
--message-success-border-color: #dcffe2;
|
91
|
+
--message-success-shadow-color: #cef0d7;
|
92
|
+
--message-danger-bg-color: #ffeded;
|
93
|
+
--message-danger-border-color: #ffdddd;
|
94
|
+
--message-danger-shadow-color: #f6dada;
|
95
|
+
--slider-default-bg: #dcdee5;
|
96
|
+
--slider-disable-bar-bg: #979ba5;
|
97
|
+
--menu-bg-color: #182132;
|
98
|
+
--submenu-bg-color: #151d2c;
|
99
|
+
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
100
|
+
--menu-color: #96a2b9;
|
101
|
+
--menu-group-color: var(--default-color);
|
102
|
+
--menu-width: 260px;
|
103
|
+
--menu-collapse-width: 60px;
|
104
|
+
--menu-active-color: white;
|
105
|
+
--nav-header-bg-color: #182132;
|
106
|
+
--nav-bg-color: #182132;
|
107
|
+
--date-picker-disabled-bg: #fafbfd;
|
108
|
+
--date-picker-dropdown-mb: 4px;
|
109
|
+
--date-picker-dropdown-bg: #fff;
|
110
|
+
--table-bg-color: var(--white-color);
|
111
|
+
--table-border-color: #dcdee5;
|
112
|
+
--table-strip-color: #fafbfd;
|
113
|
+
--table-head-bg-color: #fafbfd;
|
114
|
+
--table-head-font-color: #313238;
|
115
|
+
--table-body-font-color: #63656e;
|
116
|
+
--table-row-hover-bg-color: #f5f7fa;
|
117
|
+
--table-row-active-bg-color: #f0f1f5;
|
118
|
+
--cascader-panel-border-color: #dcdee5;
|
119
|
+
--cascader-panel-hover: #f5f7fa;
|
120
|
+
--cascader-panel-active: #e1ecff;
|
121
|
+
--cascader-panel-disabled-bg: #fff;
|
122
|
+
--search-select-focus-border-color: var(--primary-color);
|
123
|
+
--search-select-focus-color: #3c96ff;
|
124
|
+
--search-select-font-color: var(--default-color);
|
125
|
+
--search-select-placeholder-color: var(--light-gray);
|
126
|
+
--search-select-message-color: var(--danger-color);
|
127
|
+
--search-select-menu-border-color: var(--disable-color);
|
128
|
+
--select-active-color: #e1ecff;
|
129
|
+
--select-hover-color: #f5f7fa;
|
130
|
+
}
|
1
131
|
@keyframes loading-scale-animate {
|
2
132
|
0% {
|
3
133
|
transform: scale(1);
|
@@ -114,7 +244,7 @@
|
|
114
244
|
position: absolute;
|
115
245
|
width: 6px;
|
116
246
|
height: 8px;
|
117
|
-
background-color:
|
247
|
+
background-color: var(--default-color);
|
118
248
|
border-radius: 8px;
|
119
249
|
animation-duration: 1.2s;
|
120
250
|
animation-iteration-count: infinite;
|
@@ -140,7 +270,7 @@
|
|
140
270
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot-2,
|
141
271
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot-3,
|
142
272
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-success .dot-4 {
|
143
|
-
background-color:
|
273
|
+
background-color: var(--success-color);
|
144
274
|
}
|
145
275
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .oval,
|
146
276
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot,
|
@@ -148,7 +278,7 @@
|
|
148
278
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot-2,
|
149
279
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot-3,
|
150
280
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-danger .dot-4 {
|
151
|
-
background-color:
|
281
|
+
background-color: var(--danger-color);
|
152
282
|
}
|
153
283
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .oval,
|
154
284
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot,
|
@@ -156,7 +286,7 @@
|
|
156
286
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot-2,
|
157
287
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot-3,
|
158
288
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-warning .dot-4 {
|
159
|
-
background-color:
|
289
|
+
background-color: var(--warning-color);
|
160
290
|
}
|
161
291
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .oval,
|
162
292
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot,
|
@@ -164,7 +294,7 @@
|
|
164
294
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot-2,
|
165
295
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot-3,
|
166
296
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-primary .dot-4 {
|
167
|
-
background-color:
|
297
|
+
background-color: var(--primary-color);
|
168
298
|
}
|
169
299
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .oval,
|
170
300
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot,
|
@@ -172,7 +302,7 @@
|
|
172
302
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot-2,
|
173
303
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot-3,
|
174
304
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-white .dot-4 {
|
175
|
-
background-color: white;
|
305
|
+
background-color: var(--white-color);
|
176
306
|
}
|
177
307
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .oval,
|
178
308
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot,
|
@@ -180,22 +310,22 @@
|
|
180
310
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot-2,
|
181
311
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot-3,
|
182
312
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-default .dot-4 {
|
183
|
-
background-color:
|
313
|
+
background-color: var(--light-gray);
|
184
314
|
}
|
185
315
|
.bk-loading-wrapper .bk-loading-indicator .dot-1 {
|
186
|
-
background-color:
|
316
|
+
background-color: var(--danger-color);
|
187
317
|
animation-delay: 0.1s;
|
188
318
|
}
|
189
319
|
.bk-loading-wrapper .bk-loading-indicator .dot-2 {
|
190
|
-
background-color:
|
320
|
+
background-color: var(--warning-color);
|
191
321
|
animation-delay: 0.25s;
|
192
322
|
}
|
193
323
|
.bk-loading-wrapper .bk-loading-indicator .dot-3 {
|
194
|
-
background-color:
|
324
|
+
background-color: var(--success-color);
|
195
325
|
animation-delay: 0.4s;
|
196
326
|
}
|
197
327
|
.bk-loading-wrapper .bk-loading-indicator .dot-4 {
|
198
|
-
background-color:
|
328
|
+
background-color: var(--primary-color);
|
199
329
|
animation-delay: 0.55s;
|
200
330
|
margin-right: 0px;
|
201
331
|
}
|
@@ -261,7 +391,7 @@
|
|
261
391
|
transform-origin: center 8px;
|
262
392
|
}
|
263
393
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-mini .bk-loading-title {
|
264
|
-
font-size:
|
394
|
+
font-size: var(--font-size-medium);
|
265
395
|
}
|
266
396
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .bk-spin-indicator {
|
267
397
|
height: 32px;
|
@@ -282,7 +412,7 @@
|
|
282
412
|
transform-origin: center 16px;
|
283
413
|
}
|
284
414
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-small .bk-loading-title {
|
285
|
-
font-size:
|
415
|
+
font-size: var(--font-size-base);
|
286
416
|
}
|
287
417
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .bk-spin-indicator {
|
288
418
|
height: 68px;
|
@@ -303,12 +433,12 @@
|
|
303
433
|
transform-origin: center 34px;
|
304
434
|
}
|
305
435
|
.bk-loading-wrapper .bk-loading-indicator.bk-loading-size-large .bk-loading-title {
|
306
|
-
font-size:
|
436
|
+
font-size: var(--font-size-medium);
|
307
437
|
}
|
308
438
|
.bk-loading-wrapper .bk-loading-indicator .bk-loading-title {
|
309
439
|
margin-top: 8px;
|
310
|
-
font-size:
|
440
|
+
font-size: var(--font-size-medium);
|
311
441
|
line-height: normal;
|
312
|
-
color:
|
442
|
+
color: var(--default-color);
|
313
443
|
text-align: center;
|
314
444
|
}
|
package/lib/loading/loading.d.ts
CHANGED
@@ -164,11 +164,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
164
164
|
};
|
165
165
|
}>>, {
|
166
166
|
title: string;
|
167
|
-
size: "" | "small" | "large" | "mini";
|
168
167
|
zIndex: number;
|
169
168
|
mode: "default" | "spin";
|
170
169
|
loading: boolean;
|
171
170
|
inline: boolean;
|
171
|
+
size: "" | "small" | "large" | "mini";
|
172
172
|
opacity: number;
|
173
173
|
color: string;
|
174
174
|
isDirective: boolean;
|