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