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