bk-magic-vue 2.4.0 → 2.4.1

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.
Files changed (84) hide show
  1. package/dist/bk-magic-vue.css +113 -24
  2. package/dist/bk-magic-vue.js +1091 -839
  3. package/dist/bk-magic-vue.min.css +1 -1
  4. package/dist/bk-magic-vue.min.css.gz +0 -0
  5. package/dist/bk-magic-vue.min.css.map +1 -1
  6. package/dist/bk-magic-vue.min.js +1 -1
  7. package/dist/bk-magic-vue.min.js.gz +0 -0
  8. package/dist/bk-magic-vue.min.js.map +1 -1
  9. package/lib/alert.js +472 -472
  10. package/lib/back-top.js +1 -1
  11. package/lib/big-tree.js +3 -3
  12. package/lib/breadcrumb-item.js +426 -426
  13. package/lib/breadcrumb.js +438 -438
  14. package/lib/button.js +509 -509
  15. package/lib/cascade.js +36 -2
  16. package/lib/checkbox-group.js +16 -9
  17. package/lib/checkbox.js +9 -1
  18. package/lib/container.js +454 -454
  19. package/lib/date-picker.js +5 -8
  20. package/lib/dialog.js +8 -9
  21. package/lib/directives/clickoutside.js +61 -61
  22. package/lib/directives/copy.js +51 -51
  23. package/lib/divider.js +446 -446
  24. package/lib/dropdown-menu.js +1747 -1747
  25. package/lib/form-item.js +1 -1
  26. package/lib/image-viewer.js +67 -2
  27. package/lib/image.js +73 -3
  28. package/lib/info-box.js +8 -9
  29. package/lib/link.js +430 -430
  30. package/lib/locale/lang/en-US.js +153 -143
  31. package/lib/locale/lang/zh-CN.js +151 -143
  32. package/lib/message.js +1 -1
  33. package/lib/mixins/emitter.js +18 -18
  34. package/lib/navigation-menu-group.js +412 -412
  35. package/lib/navigation-menu-item.js +722 -722
  36. package/lib/navigation.js +668 -668
  37. package/lib/notify.js +1 -1
  38. package/lib/option-group.js +9 -1
  39. package/lib/option.js +1 -1
  40. package/lib/pagination.js +13 -13
  41. package/lib/process.js +233 -51
  42. package/lib/progress.js +499 -499
  43. package/lib/radio-button.js +541 -541
  44. package/lib/radio.js +555 -555
  45. package/lib/rate.js +607 -607
  46. package/lib/round-progress.js +502 -502
  47. package/lib/search-select.js +5 -5
  48. package/lib/select.js +6 -6
  49. package/lib/sideslider.js +1 -1
  50. package/lib/slider.js +5 -5
  51. package/lib/spin.js +500 -500
  52. package/lib/star.js +496 -496
  53. package/lib/steps.js +3 -3
  54. package/lib/switcher.js +538 -538
  55. package/lib/tab-panel.js +456 -456
  56. package/lib/table-setting-content.js +35 -20
  57. package/lib/table.js +764 -575
  58. package/lib/tag.js +459 -459
  59. package/lib/time-picker.js +2 -2
  60. package/lib/transfer.js +6 -6
  61. package/lib/ui/bk-magic-vue.css +113 -24
  62. package/lib/ui/bk-magic-vue.min.css +1 -1
  63. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  64. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  65. package/lib/ui/image-viewer.css +38 -17
  66. package/lib/ui/image-viewer.min.css +1 -1
  67. package/lib/ui/image-viewer.min.css.map +1 -1
  68. package/lib/ui/process.css +76 -0
  69. package/lib/ui/process.min.css +1 -1
  70. package/lib/ui/process.min.css.map +1 -1
  71. package/lib/ui/slider.css +4 -2
  72. package/lib/ui/slider.min.css +1 -1
  73. package/lib/ui/slider.min.css.map +1 -1
  74. package/lib/ui/spin.css +5 -1
  75. package/lib/ui/spin.min.css +1 -1
  76. package/lib/ui/spin.min.css.map +1 -1
  77. package/lib/ui/table.css +16 -5
  78. package/lib/ui/table.min.css +1 -1
  79. package/lib/ui/table.min.css.map +1 -1
  80. package/lib/upload.js +2 -2
  81. package/lib/version-detail.js +9 -10
  82. package/lib/virtual-scroll.js +805 -805
  83. package/lib/zoom-image.js +502 -502
  84. package/package.json +1 -1
package/lib/spin.js CHANGED
@@ -1,536 +1,536 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = global || self, factory(global.library = {}));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
+ typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
+ (global = global || self, factory(global.library = {}));
5
5
  }(this, function (exports) { 'use strict';
6
6
 
7
- var script = {
8
- name: 'bk-spin',
9
- props: {
10
- theme: {
11
- type: String,
12
- default: 'primary',
13
- validator: function validator(value) {
14
- if (!['primary', 'warning', 'success', 'danger', 'info'].includes(value)) {
15
- console.error("theme property is not valid: '".concat(value, "'"));
16
- return false;
17
- }
18
- return true;
7
+ var script = {
8
+ name: 'bk-spin',
9
+ props: {
10
+ theme: {
11
+ type: String,
12
+ default: 'primary',
13
+ validator: function validator(value) {
14
+ if (!['primary', 'warning', 'success', 'danger', 'info'].includes(value)) {
15
+ console.error("theme property is not valid: '".concat(value, "'"));
16
+ return false;
19
17
  }
20
- },
21
- size: {
22
- type: String,
23
- default: 'small',
24
- validator: function validator(value) {
25
- if (!['large', 'normal', 'small', 'mini'].includes(value)) {
26
- console.error("size property is not valid: '".concat(value, "'"));
27
- return false;
28
- }
29
- return true;
30
- }
31
- },
32
- icon: {
33
- type: String,
34
- default: ''
35
- },
36
- extCls: {
37
- type: String,
38
- default: ''
39
- },
40
- placement: {
41
- type: String,
42
- default: 'bottom',
43
- validator: function validator(value) {
44
- if (!['bottom', 'right'].includes(value)) {
45
- console.error("placement property is not valid: '".concat(value, "'"));
46
- return false;
47
- }
48
- return true;
18
+ return true;
19
+ }
20
+ },
21
+ size: {
22
+ type: String,
23
+ default: 'small',
24
+ validator: function validator(value) {
25
+ if (!['large', 'normal', 'small', 'mini'].includes(value)) {
26
+ console.error("size property is not valid: '".concat(value, "'"));
27
+ return false;
49
28
  }
50
- },
51
- spinning: {
52
- type: Boolean,
53
- default: true
29
+ return true;
54
30
  }
55
31
  },
56
- data: function data() {
57
- return {};
32
+ icon: {
33
+ type: String,
34
+ default: ''
58
35
  },
59
- computed: {
60
- dotClass: function dotClass() {
61
- var dotClass = ["bk-spin-rotation", "bk-spin-rotation-".concat(this.size), "bk-spin-rotation-".concat(this.theme)];
62
- !this.spinning && dotClass.push("bk-spin-rotation-".concat(this.theme, "-wait"));
63
- this.placement === 'right' && dotClass.push("bk-spin-rotation-flex");
64
- this.placement === 'bottom' && dotClass.push("bk-spin-rotation-margin");
65
- return dotClass;
66
- },
67
- slotTypeClass: function slotTypeClass() {
68
- var slotType = ["rotate"];
69
- this.$slots.default && this.placement === 'right' && slotType.push("slots-".concat(this.placement, "-rotate"));
70
- return slotType;
71
- },
72
- iconClass: function iconClass() {
73
- var iconClass = ["bk-spin-icon", "bk-spin-icon-".concat(this.size), "bk-spin-icon-".concat(this.theme)];
74
- !this.spinning && iconClass.push("bk-spin-icon-wait");
75
- this.placement === 'right' && iconClass.push("bk-display-flex");
76
- return iconClass;
77
- },
78
- slotClass: function slotClass() {
79
- var slotClass = ["bk-spin-title", "bk-spin-title-".concat(this.placement)];
80
- this.placement === 'right' && slotClass.push("bk-spin-title-".concat(this.size), "bk-display-flex");
81
- return slotClass;
82
- }
83
- }
84
- };
85
-
86
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
87
- , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
88
- if (typeof shadowMode !== 'boolean') {
89
- createInjectorSSR = createInjector;
90
- createInjector = shadowMode;
91
- shadowMode = false;
92
- }
93
- var options = typeof script === 'function' ? script.options : script;
94
- if (template && template.render) {
95
- options.render = template.render;
96
- options.staticRenderFns = template.staticRenderFns;
97
- options._compiled = true;
98
- if (isFunctionalTemplate) {
99
- options.functional = true;
36
+ extCls: {
37
+ type: String,
38
+ default: ''
39
+ },
40
+ placement: {
41
+ type: String,
42
+ default: 'bottom',
43
+ validator: function validator(value) {
44
+ if (!['bottom', 'right'].includes(value)) {
45
+ console.error("placement property is not valid: '".concat(value, "'"));
46
+ return false;
47
+ }
48
+ return true;
100
49
  }
50
+ },
51
+ spinning: {
52
+ type: Boolean,
53
+ default: true
101
54
  }
102
- if (scopeId) {
103
- options._scopeId = scopeId;
104
- }
105
- var hook;
106
- if (moduleIdentifier) {
107
- hook = function hook(context) {
108
- context = context ||
109
- this.$vnode && this.$vnode.ssrContext ||
110
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
111
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
112
- context = __VUE_SSR_CONTEXT__;
113
- }
114
- if (style) {
115
- style.call(this, createInjectorSSR(context));
116
- }
117
- if (context && context._registeredComponents) {
118
- context._registeredComponents.add(moduleIdentifier);
119
- }
120
- };
121
- options._ssrRegister = hook;
122
- } else if (style) {
123
- hook = shadowMode ? function () {
124
- style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
125
- } : function (context) {
126
- style.call(this, createInjector(context));
127
- };
55
+ },
56
+ data: function data() {
57
+ return {};
58
+ },
59
+ computed: {
60
+ dotClass: function dotClass() {
61
+ var dotClass = ["bk-spin-rotation", "bk-spin-rotation-".concat(this.size), "bk-spin-rotation-".concat(this.theme)];
62
+ !this.spinning && dotClass.push("bk-spin-rotation-".concat(this.theme, "-wait"));
63
+ this.placement === 'right' && dotClass.push("bk-spin-rotation-flex");
64
+ this.placement === 'bottom' && dotClass.push("bk-spin-rotation-margin");
65
+ return dotClass;
66
+ },
67
+ slotTypeClass: function slotTypeClass() {
68
+ var slotType = ["rotate"];
69
+ this.$slots.default && this.placement === 'right' && slotType.push("slots-".concat(this.placement, "-rotate"));
70
+ return slotType;
71
+ },
72
+ iconClass: function iconClass() {
73
+ var iconClass = ["bk-spin-icon", "bk-spin-icon-".concat(this.size), "bk-spin-icon-".concat(this.theme)];
74
+ !this.spinning && iconClass.push("bk-spin-icon-wait");
75
+ this.placement === 'right' && iconClass.push("bk-display-flex");
76
+ return iconClass;
77
+ },
78
+ slotClass: function slotClass() {
79
+ var slotClass = ["bk-spin-title", "bk-spin-title-".concat(this.placement)];
80
+ this.placement === 'right' && slotClass.push("bk-spin-title-".concat(this.size), "bk-display-flex");
81
+ return slotClass;
128
82
  }
129
- if (hook) {
130
- if (options.functional) {
131
- var originalRender = options.render;
132
- options.render = function renderWithStyleInjection(h, context) {
133
- hook.call(context);
134
- return originalRender(h, context);
135
- };
136
- } else {
137
- var existing = options.beforeCreate;
138
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
139
- }
83
+ }
84
+ };
85
+
86
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
87
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
88
+ if (typeof shadowMode !== 'boolean') {
89
+ createInjectorSSR = createInjector;
90
+ createInjector = shadowMode;
91
+ shadowMode = false;
92
+ }
93
+ var options = typeof script === 'function' ? script.options : script;
94
+ if (template && template.render) {
95
+ options.render = template.render;
96
+ options.staticRenderFns = template.staticRenderFns;
97
+ options._compiled = true;
98
+ if (isFunctionalTemplate) {
99
+ options.functional = true;
140
100
  }
141
- return script;
142
101
  }
143
- var normalizeComponent_1 = normalizeComponent;
144
-
145
- /* script */
146
- var __vue_script__ = script;
147
- /* template */
148
-
149
- var __vue_render__ = function __vue_render__() {
150
- var _vm = this;
151
-
152
- var _h = _vm.$createElement;
153
-
154
- var _c = _vm._self._c || _h;
155
-
156
- return _c('transition', {
157
- attrs: {
158
- "name": "fade"
102
+ if (scopeId) {
103
+ options._scopeId = scopeId;
104
+ }
105
+ var hook;
106
+ if (moduleIdentifier) {
107
+ hook = function hook(context) {
108
+ context = context ||
109
+ this.$vnode && this.$vnode.ssrContext ||
110
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
111
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
112
+ context = __VUE_SSR_CONTEXT__;
159
113
  }
160
- }, [_c('div', {
161
- class: ['bk-spin', _vm.extCls]
162
- }, [_c('div', {
163
- style: {
164
- display: _vm.placement === 'right' ? 'flex' : ''
114
+ if (style) {
115
+ style.call(this, createInjectorSSR(context));
116
+ }
117
+ if (context && context._registeredComponents) {
118
+ context._registeredComponents.add(moduleIdentifier);
165
119
  }
166
- }, [!_vm.icon ? _c('div', {
167
- class: [_vm.dotClass]
168
- }, [_c('div', {
169
- staticClass: "rotate1",
170
- class: _vm.slotTypeClass
171
- }), _c('div', {
172
- staticClass: "rotate2",
173
- class: _vm.slotTypeClass
174
- }), _c('div', {
175
- staticClass: "rotate3",
176
- class: _vm.slotTypeClass
177
- }), _c('div', {
178
- staticClass: "rotate4",
179
- class: _vm.slotTypeClass
180
- }), _c('div', {
181
- staticClass: "rotate5",
182
- class: _vm.slotTypeClass
183
- }), _c('div', {
184
- staticClass: "rotate6",
185
- class: _vm.slotTypeClass
186
- }), _c('div', {
187
- staticClass: "rotate7",
188
- class: _vm.slotTypeClass
189
- }), _c('div', {
190
- staticClass: "rotate8",
191
- class: _vm.slotTypeClass
192
- })]) : _vm._e(), _vm.icon ? _c('div', {
193
- class: [_vm.iconClass]
194
- }, [_c('i', {
195
- class: ['bk-icon', 'icon-' + _vm.icon]
196
- })]) : _vm._e(), _vm.$slots.default ? _c('div', {
197
- class: [_vm.slotClass]
198
- }, [_vm._t("default")], 2) : _vm._e()])])]);
199
- };
200
-
201
- var __vue_staticRenderFns__ = [];
202
- /* style */
203
-
204
- var __vue_inject_styles__ = undefined;
205
- /* scoped */
206
-
207
- var __vue_scope_id__ = undefined;
208
- /* module identifier */
209
-
210
- var __vue_module_identifier__ = undefined;
211
- /* functional template */
212
-
213
- var __vue_is_functional_template__ = false;
214
- /* style inject */
215
-
216
- /* style inject SSR */
217
-
218
- /* style inject shadow dom */
219
-
220
- var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
221
- render: __vue_render__,
222
- staticRenderFns: __vue_staticRenderFns__
223
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
224
-
225
- var _defined = function (it) {
226
- if (it == undefined) throw TypeError("Can't call method on " + it);
227
- return it;
228
- };
229
-
230
- var _toObject = function (it) {
231
- return Object(_defined(it));
232
- };
233
-
234
- var hasOwnProperty = {}.hasOwnProperty;
235
- var _has = function (it, key) {
236
- return hasOwnProperty.call(it, key);
237
- };
238
-
239
- var toString = {}.toString;
240
- var _cof = function (it) {
241
- return toString.call(it).slice(8, -1);
242
- };
243
-
244
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
245
- return _cof(it) == 'String' ? it.split('') : Object(it);
246
- };
247
-
248
- var _toIobject = function (it) {
249
- return _iobject(_defined(it));
250
- };
251
-
252
- var ceil = Math.ceil;
253
- var floor = Math.floor;
254
- var _toInteger = function (it) {
255
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
256
- };
257
-
258
- var min = Math.min;
259
- var _toLength = function (it) {
260
- return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0;
261
- };
262
-
263
- var max = Math.max;
264
- var min$1 = Math.min;
265
- var _toAbsoluteIndex = function (index, length) {
266
- index = _toInteger(index);
267
- return index < 0 ? max(index + length, 0) : min$1(index, length);
268
- };
269
-
270
- var _arrayIncludes = function (IS_INCLUDES) {
271
- return function ($this, el, fromIndex) {
272
- var O = _toIobject($this);
273
- var length = _toLength(O.length);
274
- var index = _toAbsoluteIndex(fromIndex, length);
275
- var value;
276
- if (IS_INCLUDES && el != el) while (length > index) {
277
- value = O[index++];
278
- if (value != value) return true;
279
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
280
- if (O[index] === el) return IS_INCLUDES || index || 0;
281
- } return !IS_INCLUDES && -1;
282
120
  };
283
- };
284
-
285
- function createCommonjsModule(fn, module) {
286
- return module = { exports: {} }, fn(module, module.exports), module.exports;
121
+ options._ssrRegister = hook;
122
+ } else if (style) {
123
+ hook = shadowMode ? function () {
124
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
125
+ } : function (context) {
126
+ style.call(this, createInjector(context));
127
+ };
287
128
  }
288
-
289
- var _core = createCommonjsModule(function (module) {
290
- var core = module.exports = { version: '2.6.12' };
291
- if (typeof __e == 'number') __e = core;
292
- });
293
- var _core_1 = _core.version;
294
-
295
- var _global = createCommonjsModule(function (module) {
296
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
297
- ? window : typeof self != 'undefined' && self.Math == Math ? self
298
- : Function('return this')();
299
- if (typeof __g == 'number') __g = global;
300
- });
301
-
302
- var _shared = createCommonjsModule(function (module) {
303
- var SHARED = '__core-js_shared__';
304
- var store = _global[SHARED] || (_global[SHARED] = {});
305
- (module.exports = function (key, value) {
306
- return store[key] || (store[key] = value !== undefined ? value : {});
307
- })('versions', []).push({
308
- version: _core.version,
309
- mode: 'pure' ,
310
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
311
- });
312
- });
313
-
314
- var id = 0;
315
- var px = Math.random();
316
- var _uid = function (key) {
317
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
318
- };
319
-
320
- var shared = _shared('keys');
321
- var _sharedKey = function (key) {
322
- return shared[key] || (shared[key] = _uid(key));
323
- };
324
-
325
- var arrayIndexOf = _arrayIncludes(false);
326
- var IE_PROTO = _sharedKey('IE_PROTO');
327
- var _objectKeysInternal = function (object, names) {
328
- var O = _toIobject(object);
329
- var i = 0;
330
- var result = [];
331
- var key;
332
- for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
333
- while (names.length > i) if (_has(O, key = names[i++])) {
334
- ~arrayIndexOf(result, key) || result.push(key);
335
- }
336
- return result;
337
- };
338
-
339
- var _enumBugKeys = (
340
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
341
- ).split(',');
342
-
343
- var _objectKeys = Object.keys || function keys(O) {
344
- return _objectKeysInternal(O, _enumBugKeys);
345
- };
346
-
347
- var _aFunction = function (it) {
348
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
349
- return it;
350
- };
351
-
352
- var _ctx = function (fn, that, length) {
353
- _aFunction(fn);
354
- if (that === undefined) return fn;
355
- switch (length) {
356
- case 1: return function (a) {
357
- return fn.call(that, a);
358
- };
359
- case 2: return function (a, b) {
360
- return fn.call(that, a, b);
361
- };
362
- case 3: return function (a, b, c) {
363
- return fn.call(that, a, b, c);
129
+ if (hook) {
130
+ if (options.functional) {
131
+ var originalRender = options.render;
132
+ options.render = function renderWithStyleInjection(h, context) {
133
+ hook.call(context);
134
+ return originalRender(h, context);
364
135
  };
136
+ } else {
137
+ var existing = options.beforeCreate;
138
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
365
139
  }
366
- return function () {
367
- return fn.apply(that, arguments);
368
- };
369
- };
370
-
371
- var _isObject = function (it) {
372
- return typeof it === 'object' ? it !== null : typeof it === 'function';
373
- };
374
-
375
- var _anObject = function (it) {
376
- if (!_isObject(it)) throw TypeError(it + ' is not an object!');
377
- return it;
378
- };
140
+ }
141
+ return script;
142
+ }
143
+ var normalizeComponent_1 = normalizeComponent;
379
144
 
380
- var _fails = function (exec) {
381
- try {
382
- return !!exec();
383
- } catch (e) {
384
- return true;
385
- }
386
- };
145
+ /* script */
146
+ var __vue_script__ = script;
147
+ /* template */
387
148
 
388
- var _descriptors = !_fails(function () {
389
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
390
- });
149
+ var __vue_render__ = function __vue_render__() {
150
+ var _vm = this;
391
151
 
392
- var document = _global.document;
393
- var is = _isObject(document) && _isObject(document.createElement);
394
- var _domCreate = function (it) {
395
- return is ? document.createElement(it) : {};
396
- };
152
+ var _h = _vm.$createElement;
397
153
 
398
- var _ie8DomDefine = !_descriptors && !_fails(function () {
399
- return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
400
- });
401
-
402
- var _toPrimitive = function (it, S) {
403
- if (!_isObject(it)) return it;
404
- var fn, val;
405
- if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
406
- if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
407
- if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
408
- throw TypeError("Can't convert object to primitive value");
409
- };
154
+ var _c = _vm._self._c || _h;
410
155
 
411
- var dP = Object.defineProperty;
412
- var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
413
- _anObject(O);
414
- P = _toPrimitive(P, true);
415
- _anObject(Attributes);
416
- if (_ie8DomDefine) try {
417
- return dP(O, P, Attributes);
418
- } catch (e) { }
419
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
420
- if ('value' in Attributes) O[P] = Attributes.value;
421
- return O;
422
- };
423
- var _objectDp = {
424
- f: f
156
+ return _c('transition', {
157
+ attrs: {
158
+ "name": "fade"
159
+ }
160
+ }, [_c('div', {
161
+ class: ['bk-spin', _vm.extCls]
162
+ }, [_c('div', {
163
+ style: {
164
+ display: _vm.placement === 'right' ? 'flex' : ''
165
+ }
166
+ }, [!_vm.icon ? _c('div', {
167
+ class: [_vm.dotClass]
168
+ }, [_c('div', {
169
+ staticClass: "rotate1",
170
+ class: _vm.slotTypeClass
171
+ }), _c('div', {
172
+ staticClass: "rotate2",
173
+ class: _vm.slotTypeClass
174
+ }), _c('div', {
175
+ staticClass: "rotate3",
176
+ class: _vm.slotTypeClass
177
+ }), _c('div', {
178
+ staticClass: "rotate4",
179
+ class: _vm.slotTypeClass
180
+ }), _c('div', {
181
+ staticClass: "rotate5",
182
+ class: _vm.slotTypeClass
183
+ }), _c('div', {
184
+ staticClass: "rotate6",
185
+ class: _vm.slotTypeClass
186
+ }), _c('div', {
187
+ staticClass: "rotate7",
188
+ class: _vm.slotTypeClass
189
+ }), _c('div', {
190
+ staticClass: "rotate8",
191
+ class: _vm.slotTypeClass
192
+ })]) : _vm._e(), _vm.icon ? _c('div', {
193
+ class: [_vm.iconClass]
194
+ }, [_c('i', {
195
+ class: ['bk-icon', 'icon-' + _vm.icon]
196
+ })]) : _vm._e(), _vm.$slots.default ? _c('div', {
197
+ class: [_vm.slotClass]
198
+ }, [_vm._t("default")], 2) : _vm._e()])])]);
199
+ };
200
+
201
+ var __vue_staticRenderFns__ = [];
202
+ /* style */
203
+
204
+ var __vue_inject_styles__ = undefined;
205
+ /* scoped */
206
+
207
+ var __vue_scope_id__ = undefined;
208
+ /* module identifier */
209
+
210
+ var __vue_module_identifier__ = undefined;
211
+ /* functional template */
212
+
213
+ var __vue_is_functional_template__ = false;
214
+ /* style inject */
215
+
216
+ /* style inject SSR */
217
+
218
+ /* style inject shadow dom */
219
+
220
+ var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
221
+ render: __vue_render__,
222
+ staticRenderFns: __vue_staticRenderFns__
223
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
224
+
225
+ var _defined = function (it) {
226
+ if (it == undefined) throw TypeError("Can't call method on " + it);
227
+ return it;
228
+ };
229
+
230
+ var _toObject = function (it) {
231
+ return Object(_defined(it));
232
+ };
233
+
234
+ var hasOwnProperty = {}.hasOwnProperty;
235
+ var _has = function (it, key) {
236
+ return hasOwnProperty.call(it, key);
237
+ };
238
+
239
+ var toString = {}.toString;
240
+ var _cof = function (it) {
241
+ return toString.call(it).slice(8, -1);
242
+ };
243
+
244
+ var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
245
+ return _cof(it) == 'String' ? it.split('') : Object(it);
246
+ };
247
+
248
+ var _toIobject = function (it) {
249
+ return _iobject(_defined(it));
250
+ };
251
+
252
+ var ceil = Math.ceil;
253
+ var floor = Math.floor;
254
+ var _toInteger = function (it) {
255
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
256
+ };
257
+
258
+ var min = Math.min;
259
+ var _toLength = function (it) {
260
+ return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0;
261
+ };
262
+
263
+ var max = Math.max;
264
+ var min$1 = Math.min;
265
+ var _toAbsoluteIndex = function (index, length) {
266
+ index = _toInteger(index);
267
+ return index < 0 ? max(index + length, 0) : min$1(index, length);
268
+ };
269
+
270
+ var _arrayIncludes = function (IS_INCLUDES) {
271
+ return function ($this, el, fromIndex) {
272
+ var O = _toIobject($this);
273
+ var length = _toLength(O.length);
274
+ var index = _toAbsoluteIndex(fromIndex, length);
275
+ var value;
276
+ if (IS_INCLUDES && el != el) while (length > index) {
277
+ value = O[index++];
278
+ if (value != value) return true;
279
+ } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
280
+ if (O[index] === el) return IS_INCLUDES || index || 0;
281
+ } return !IS_INCLUDES && -1;
425
282
  };
426
-
427
- var _propertyDesc = function (bitmap, value) {
428
- return {
429
- enumerable: !(bitmap & 1),
430
- configurable: !(bitmap & 2),
431
- writable: !(bitmap & 4),
432
- value: value
283
+ };
284
+
285
+ function createCommonjsModule(fn, module) {
286
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
287
+ }
288
+
289
+ var _core = createCommonjsModule(function (module) {
290
+ var core = module.exports = { version: '2.6.12' };
291
+ if (typeof __e == 'number') __e = core;
292
+ });
293
+ var _core_1 = _core.version;
294
+
295
+ var _global = createCommonjsModule(function (module) {
296
+ var global = module.exports = typeof window != 'undefined' && window.Math == Math
297
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
298
+ : Function('return this')();
299
+ if (typeof __g == 'number') __g = global;
300
+ });
301
+
302
+ var _shared = createCommonjsModule(function (module) {
303
+ var SHARED = '__core-js_shared__';
304
+ var store = _global[SHARED] || (_global[SHARED] = {});
305
+ (module.exports = function (key, value) {
306
+ return store[key] || (store[key] = value !== undefined ? value : {});
307
+ })('versions', []).push({
308
+ version: _core.version,
309
+ mode: 'pure' ,
310
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
311
+ });
312
+ });
313
+
314
+ var id = 0;
315
+ var px = Math.random();
316
+ var _uid = function (key) {
317
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
318
+ };
319
+
320
+ var shared = _shared('keys');
321
+ var _sharedKey = function (key) {
322
+ return shared[key] || (shared[key] = _uid(key));
323
+ };
324
+
325
+ var arrayIndexOf = _arrayIncludes(false);
326
+ var IE_PROTO = _sharedKey('IE_PROTO');
327
+ var _objectKeysInternal = function (object, names) {
328
+ var O = _toIobject(object);
329
+ var i = 0;
330
+ var result = [];
331
+ var key;
332
+ for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
333
+ while (names.length > i) if (_has(O, key = names[i++])) {
334
+ ~arrayIndexOf(result, key) || result.push(key);
335
+ }
336
+ return result;
337
+ };
338
+
339
+ var _enumBugKeys = (
340
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
341
+ ).split(',');
342
+
343
+ var _objectKeys = Object.keys || function keys(O) {
344
+ return _objectKeysInternal(O, _enumBugKeys);
345
+ };
346
+
347
+ var _aFunction = function (it) {
348
+ if (typeof it != 'function') throw TypeError(it + ' is not a function!');
349
+ return it;
350
+ };
351
+
352
+ var _ctx = function (fn, that, length) {
353
+ _aFunction(fn);
354
+ if (that === undefined) return fn;
355
+ switch (length) {
356
+ case 1: return function (a) {
357
+ return fn.call(that, a);
433
358
  };
359
+ case 2: return function (a, b) {
360
+ return fn.call(that, a, b);
361
+ };
362
+ case 3: return function (a, b, c) {
363
+ return fn.call(that, a, b, c);
364
+ };
365
+ }
366
+ return function () {
367
+ return fn.apply(that, arguments);
434
368
  };
435
-
436
- var _hide = _descriptors ? function (object, key, value) {
437
- return _objectDp.f(object, key, _propertyDesc(1, value));
438
- } : function (object, key, value) {
439
- object[key] = value;
440
- return object;
369
+ };
370
+
371
+ var _isObject = function (it) {
372
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
373
+ };
374
+
375
+ var _anObject = function (it) {
376
+ if (!_isObject(it)) throw TypeError(it + ' is not an object!');
377
+ return it;
378
+ };
379
+
380
+ var _fails = function (exec) {
381
+ try {
382
+ return !!exec();
383
+ } catch (e) {
384
+ return true;
385
+ }
386
+ };
387
+
388
+ var _descriptors = !_fails(function () {
389
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
390
+ });
391
+
392
+ var document = _global.document;
393
+ var is = _isObject(document) && _isObject(document.createElement);
394
+ var _domCreate = function (it) {
395
+ return is ? document.createElement(it) : {};
396
+ };
397
+
398
+ var _ie8DomDefine = !_descriptors && !_fails(function () {
399
+ return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
400
+ });
401
+
402
+ var _toPrimitive = function (it, S) {
403
+ if (!_isObject(it)) return it;
404
+ var fn, val;
405
+ if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
406
+ if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
407
+ if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
408
+ throw TypeError("Can't convert object to primitive value");
409
+ };
410
+
411
+ var dP = Object.defineProperty;
412
+ var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
413
+ _anObject(O);
414
+ P = _toPrimitive(P, true);
415
+ _anObject(Attributes);
416
+ if (_ie8DomDefine) try {
417
+ return dP(O, P, Attributes);
418
+ } catch (e) { }
419
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
420
+ if ('value' in Attributes) O[P] = Attributes.value;
421
+ return O;
422
+ };
423
+ var _objectDp = {
424
+ f: f
425
+ };
426
+
427
+ var _propertyDesc = function (bitmap, value) {
428
+ return {
429
+ enumerable: !(bitmap & 1),
430
+ configurable: !(bitmap & 2),
431
+ writable: !(bitmap & 4),
432
+ value: value
441
433
  };
442
-
443
- var PROTOTYPE = 'prototype';
444
- var $export = function (type, name, source) {
445
- var IS_FORCED = type & $export.F;
446
- var IS_GLOBAL = type & $export.G;
447
- var IS_STATIC = type & $export.S;
448
- var IS_PROTO = type & $export.P;
449
- var IS_BIND = type & $export.B;
450
- var IS_WRAP = type & $export.W;
451
- var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
452
- var expProto = exports[PROTOTYPE];
453
- var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE];
454
- var key, own, out;
455
- if (IS_GLOBAL) source = name;
456
- for (key in source) {
457
- own = !IS_FORCED && target && target[key] !== undefined;
458
- if (own && _has(exports, key)) continue;
459
- out = own ? target[key] : source[key];
460
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
461
- : IS_BIND && own ? _ctx(out, _global)
462
- : IS_WRAP && target[key] == out ? (function (C) {
463
- var F = function (a, b, c) {
464
- if (this instanceof C) {
465
- switch (arguments.length) {
466
- case 0: return new C();
467
- case 1: return new C(a);
468
- case 2: return new C(a, b);
469
- } return new C(a, b, c);
470
- } return C.apply(this, arguments);
471
- };
472
- F[PROTOTYPE] = C[PROTOTYPE];
473
- return F;
474
- })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
475
- if (IS_PROTO) {
476
- (exports.virtual || (exports.virtual = {}))[key] = out;
477
- if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out);
478
- }
434
+ };
435
+
436
+ var _hide = _descriptors ? function (object, key, value) {
437
+ return _objectDp.f(object, key, _propertyDesc(1, value));
438
+ } : function (object, key, value) {
439
+ object[key] = value;
440
+ return object;
441
+ };
442
+
443
+ var PROTOTYPE = 'prototype';
444
+ var $export = function (type, name, source) {
445
+ var IS_FORCED = type & $export.F;
446
+ var IS_GLOBAL = type & $export.G;
447
+ var IS_STATIC = type & $export.S;
448
+ var IS_PROTO = type & $export.P;
449
+ var IS_BIND = type & $export.B;
450
+ var IS_WRAP = type & $export.W;
451
+ var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
452
+ var expProto = exports[PROTOTYPE];
453
+ var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE];
454
+ var key, own, out;
455
+ if (IS_GLOBAL) source = name;
456
+ for (key in source) {
457
+ own = !IS_FORCED && target && target[key] !== undefined;
458
+ if (own && _has(exports, key)) continue;
459
+ out = own ? target[key] : source[key];
460
+ exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
461
+ : IS_BIND && own ? _ctx(out, _global)
462
+ : IS_WRAP && target[key] == out ? (function (C) {
463
+ var F = function (a, b, c) {
464
+ if (this instanceof C) {
465
+ switch (arguments.length) {
466
+ case 0: return new C();
467
+ case 1: return new C(a);
468
+ case 2: return new C(a, b);
469
+ } return new C(a, b, c);
470
+ } return C.apply(this, arguments);
471
+ };
472
+ F[PROTOTYPE] = C[PROTOTYPE];
473
+ return F;
474
+ })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
475
+ if (IS_PROTO) {
476
+ (exports.virtual || (exports.virtual = {}))[key] = out;
477
+ if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out);
479
478
  }
479
+ }
480
+ };
481
+ $export.F = 1;
482
+ $export.G = 2;
483
+ $export.S = 4;
484
+ $export.P = 8;
485
+ $export.B = 16;
486
+ $export.W = 32;
487
+ $export.U = 64;
488
+ $export.R = 128;
489
+ var _export = $export;
490
+
491
+ var _objectSap = function (KEY, exec) {
492
+ var fn = (_core.Object || {})[KEY] || Object[KEY];
493
+ var exp = {};
494
+ exp[KEY] = exec(fn);
495
+ _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
496
+ };
497
+
498
+ _objectSap('keys', function () {
499
+ return function keys(it) {
500
+ return _objectKeys(_toObject(it));
480
501
  };
481
- $export.F = 1;
482
- $export.G = 2;
483
- $export.S = 4;
484
- $export.P = 8;
485
- $export.B = 16;
486
- $export.W = 32;
487
- $export.U = 64;
488
- $export.R = 128;
489
- var _export = $export;
490
-
491
- var _objectSap = function (KEY, exec) {
492
- var fn = (_core.Object || {})[KEY] || Object[KEY];
493
- var exp = {};
494
- exp[KEY] = exec(fn);
495
- _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
496
- };
497
-
498
- _objectSap('keys', function () {
499
- return function keys(it) {
500
- return _objectKeys(_toObject(it));
501
- };
502
- });
503
-
504
- var keys = _core.Object.keys;
505
-
506
- var keys$1 = keys;
507
-
508
- function setInstaller (component, afterInstall) {
509
- component.install = function (Vue) {
510
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
511
- var props = component.props || {};
512
- keys$1(options).forEach(function (key) {
513
- if (props.hasOwnProperty(key)) {
514
- if (typeof props[key] === 'function' || props[key] instanceof Array) {
515
- props[key] = {
516
- type: props[key],
517
- default: options[key]
518
- };
519
- } else {
520
- props[key].default = options[key];
521
- }
502
+ });
503
+
504
+ var keys = _core.Object.keys;
505
+
506
+ var keys$1 = keys;
507
+
508
+ function setInstaller (component, afterInstall) {
509
+ component.install = function (Vue) {
510
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
511
+ var props = component.props || {};
512
+ keys$1(options).forEach(function (key) {
513
+ if (props.hasOwnProperty(key)) {
514
+ if (typeof props[key] === 'function' || props[key] instanceof Array) {
515
+ props[key] = {
516
+ type: props[key],
517
+ default: options[key]
518
+ };
519
+ } else {
520
+ props[key].default = options[key];
522
521
  }
523
- });
524
- component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
525
- Vue.component(component.name, component);
526
- typeof afterInstall === 'function' && afterInstall(Vue, options);
527
- };
528
- }
522
+ }
523
+ });
524
+ component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
525
+ Vue.component(component.name, component);
526
+ typeof afterInstall === 'function' && afterInstall(Vue, options);
527
+ };
528
+ }
529
529
 
530
- setInstaller(__vue_component__);
530
+ setInstaller(__vue_component__);
531
531
 
532
- exports.default = __vue_component__;
532
+ exports.default = __vue_component__;
533
533
 
534
- Object.defineProperty(exports, '__esModule', { value: true });
534
+ Object.defineProperty(exports, '__esModule', { value: true });
535
535
 
536
536
  }));