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