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