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
@@ -1,782 +1,782 @@
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-navigation-menu-item',
9
- inject: {
10
- rootMenu: 'rootMenu',
11
- parentMenu: {
12
- default: null
13
- },
14
- rootNavigation: {
15
- default: null
16
- }
7
+ var script = {
8
+ name: 'bk-navigation-menu-item',
9
+ inject: {
10
+ rootMenu: 'rootMenu',
11
+ parentMenu: {
12
+ default: null
17
13
  },
18
- provide: function provide() {
19
- return {
20
- parentMenu: this
21
- };
14
+ rootNavigation: {
15
+ default: null
16
+ }
17
+ },
18
+ provide: function provide() {
19
+ return {
20
+ parentMenu: this
21
+ };
22
+ },
23
+ props: {
24
+ id: {
25
+ type: [String, Number],
26
+ required: true
22
27
  },
23
- props: {
24
- id: {
25
- type: [String, Number],
26
- required: true
27
- },
28
- disabled: Boolean,
29
- icon: {
30
- type: [String, Object, Array],
31
- validator: function validator(v) {
32
- return v.length;
33
- }
34
- },
35
- hasChild: Boolean,
36
- group: Boolean,
37
- title: Boolean
28
+ disabled: Boolean,
29
+ icon: {
30
+ type: [String, Object, Array],
31
+ validator: function validator(v) {
32
+ return v.length;
33
+ }
38
34
  },
39
- data: function data() {
40
- return {
41
- collapse: false,
42
- menuActive: false,
43
- mouseover: false
44
- };
35
+ hasChild: Boolean,
36
+ group: Boolean,
37
+ title: Boolean
38
+ },
39
+ data: function data() {
40
+ return {
41
+ collapse: false,
42
+ menuActive: false,
43
+ mouseover: false
44
+ };
45
+ },
46
+ computed: {
47
+ isActive: function isActive() {
48
+ return this.id === this.rootMenu.activeId;
45
49
  },
46
- computed: {
47
- isActive: function isActive() {
48
- return this.id === this.rootMenu.activeId;
49
- },
50
- activeBgColor: function activeBgColor() {
51
- if (this.isActive) {
52
- return this.rootMenu.defItemActiveBgColor;
53
- } else if (!this.parentMenu) {
54
- if (this.mouseover) {
55
- return this.rootMenu.defItemHoverBgColor;
56
- } else if (this.parentMenu && this.parentMenu.collapse || this.collapse) {
57
- return this.defSubMenuOpenBgColor;
58
- }
59
- }
60
- return '';
61
- },
62
- activeColor: function activeColor() {
63
- if (this.isActive) {
64
- return this.rootMenu.defItemActiveColor;
65
- } else if (this.mouseover) {
66
- return this.rootMenu.defItemHoverColor;
67
- }
68
- return this.rootMenu.defItemDefaultColor;
69
- },
70
- activeIconColor: function activeIconColor() {
71
- if (this.isActive) {
72
- return this.rootMenu.defItemActiveIconColor;
73
- } else if (this.mouseover) {
74
- return this.rootMenu.defItemHoverIconColor;
75
- }
76
- return this.rootMenu.defItemDefaultIconColor;
77
- },
78
- activeChildIconColor: function activeChildIconColor() {
79
- if (this.isActive) {
80
- return this.rootMenu.defItemChildIconActiveColor;
81
- } else if (this.mouseover) {
82
- return this.rootMenu.defItemChildIconHoverColor;
83
- }
84
- return this.rootMenu.defItemChildIconDefaultColor;
85
- },
86
- collapseBgColor: function collapseBgColor() {
87
- return this.parentMenu && this.parentMenu.collapse || this.collapse ? this.rootMenu.defSubMenuOpenBgColor : this.rootMenu.defItemDefaultBgColor;
88
- },
89
- menuActiveBgColor: function menuActiveBgColor() {
90
- if (this.rootMenu.navigationType && !this.parentMenu && this.menuActive) {
91
- return this.rootMenu.defItemActiveBgColor;
92
- } else if (this.rootMenu.navigationType && this.collapse) {
93
- return this.rootMenu.defSubMenuOpenBgColor;
94
- } else if (this.rootMenu.navigationType && this.mouseover) {
50
+ activeBgColor: function activeBgColor() {
51
+ if (this.isActive) {
52
+ return this.rootMenu.defItemActiveBgColor;
53
+ } else if (!this.parentMenu) {
54
+ if (this.mouseover) {
95
55
  return this.rootMenu.defItemHoverBgColor;
56
+ } else if (this.parentMenu && this.parentMenu.collapse || this.collapse) {
57
+ return this.defSubMenuOpenBgColor;
96
58
  }
97
- return this.rootMenu.defItemDefaultBgColor;
98
- },
99
- menuActiveColor: function menuActiveColor() {
100
- if (!this.parentMenu && this.menuActive) {
101
- return this.rootMenu.defItemActiveColor;
102
- } else if (this.mouseover && !this.collapse) {
103
- return this.rootMenu.defItemHoverColor;
104
- }
105
- return this.rootMenu.defItemDefaultColor;
106
- },
107
- menuActiveIconColor: function menuActiveIconColor() {
108
- if (!this.parentMenu && this.menuActive) {
109
- return this.rootMenu.defItemActiveIconColor;
110
- } else if (this.mouseover && !this.collapse) {
111
- return this.rootMenu.defItemHoverIconColor;
112
- }
113
- return this.rootMenu.defItemDefaultIconColor;
114
59
  }
60
+ return '';
115
61
  },
116
- watch: {
117
- 'rootMenu.activeId': {
118
- handler: 'handlerActiveChange'
62
+ activeColor: function activeColor() {
63
+ if (this.isActive) {
64
+ return this.rootMenu.defItemActiveColor;
65
+ } else if (this.mouseover) {
66
+ return this.rootMenu.defItemHoverColor;
119
67
  }
68
+ return this.rootMenu.defItemDefaultColor;
120
69
  },
121
- created: function created() {
122
- if (this.isActive && this.parentMenu) {
123
- if (this.rootMenu.uniqueOpened) {
124
- this.parentMenu.collapse = this.rootNavigation ? this.rootNavigation.defaultOpen : true;
125
- this.parentMenu.menuActive = this.rootNavigation ? !this.rootNavigation.defaultOpen : false;
126
- } else {
127
- this.parentMenu.collapse = !!this.rootNavigation;
128
- this.parentMenu.menuActive = false;
129
- }
130
- this.rootMenu.handleSetItem(this);
131
- this.rootMenu.handleSetSubMenu(this.parentMenu);
70
+ activeIconColor: function activeIconColor() {
71
+ if (this.isActive) {
72
+ return this.rootMenu.defItemActiveIconColor;
73
+ } else if (this.mouseover) {
74
+ return this.rootMenu.defItemHoverIconColor;
132
75
  }
76
+ return this.rootMenu.defItemDefaultIconColor;
133
77
  },
134
- methods: {
135
- handleMouseHover: function handleMouseHover(mouseover) {
136
- this.mouseover = mouseover;
137
- },
138
- handlerActiveChange: function handlerActiveChange(newVal, oldVal) {
139
- if (this.parentMenu && this.rootMenu) {
140
- if (this.id === oldVal && this.rootMenu.uniqueOpened) {
141
- if (this.rootMenu.parentId) {
142
- if (this.rootMenu.toggleActive) {
143
- this.parentMenu.collapse = this.rootMenu.parentId === this.parentMenu.id || !this.rootMenu.uniqueOpened;
144
- } else {
145
- this.parentMenu.collapse = !this.rootNavigation && this.rootMenu.uniqueOpened && this.rootMenu.parentId === this.parentMenu.id;
146
- }
147
- }
148
- this.parentMenu.menuActive = false;
149
- } else if (this.id === newVal) {
150
- if (this.rootMenu.uniqueOpened) {
151
- this.parentMenu.collapse = this.rootNavigation ? this.rootMenu.toggleActive : true;
152
- this.parentMenu.menuActive = this.rootNavigation && !this.rootMenu.toggleActive;
78
+ activeChildIconColor: function activeChildIconColor() {
79
+ if (this.isActive) {
80
+ return this.rootMenu.defItemChildIconActiveColor;
81
+ } else if (this.mouseover) {
82
+ return this.rootMenu.defItemChildIconHoverColor;
83
+ }
84
+ return this.rootMenu.defItemChildIconDefaultColor;
85
+ },
86
+ collapseBgColor: function collapseBgColor() {
87
+ return this.parentMenu && this.parentMenu.collapse || this.collapse ? this.rootMenu.defSubMenuOpenBgColor : this.rootMenu.defItemDefaultBgColor;
88
+ },
89
+ menuActiveBgColor: function menuActiveBgColor() {
90
+ if (this.rootMenu.navigationType && !this.parentMenu && this.menuActive) {
91
+ return this.rootMenu.defItemActiveBgColor;
92
+ } else if (this.rootMenu.navigationType && this.collapse) {
93
+ return this.rootMenu.defSubMenuOpenBgColor;
94
+ } else if (this.rootMenu.navigationType && this.mouseover) {
95
+ return this.rootMenu.defItemHoverBgColor;
96
+ }
97
+ return this.rootMenu.defItemDefaultBgColor;
98
+ },
99
+ menuActiveColor: function menuActiveColor() {
100
+ if (!this.parentMenu && this.menuActive) {
101
+ return this.rootMenu.defItemActiveColor;
102
+ } else if (this.mouseover && !this.collapse) {
103
+ return this.rootMenu.defItemHoverColor;
104
+ }
105
+ return this.rootMenu.defItemDefaultColor;
106
+ },
107
+ menuActiveIconColor: function menuActiveIconColor() {
108
+ if (!this.parentMenu && this.menuActive) {
109
+ return this.rootMenu.defItemActiveIconColor;
110
+ } else if (this.mouseover && !this.collapse) {
111
+ return this.rootMenu.defItemHoverIconColor;
112
+ }
113
+ return this.rootMenu.defItemDefaultIconColor;
114
+ }
115
+ },
116
+ watch: {
117
+ 'rootMenu.activeId': {
118
+ handler: 'handlerActiveChange'
119
+ }
120
+ },
121
+ created: function created() {
122
+ if (this.isActive && this.parentMenu) {
123
+ if (this.rootMenu.uniqueOpened) {
124
+ this.parentMenu.collapse = this.rootNavigation ? this.rootNavigation.defaultOpen : true;
125
+ this.parentMenu.menuActive = this.rootNavigation ? !this.rootNavigation.defaultOpen : false;
126
+ } else {
127
+ this.parentMenu.collapse = !!this.rootNavigation;
128
+ this.parentMenu.menuActive = false;
129
+ }
130
+ this.rootMenu.handleSetItem(this);
131
+ this.rootMenu.handleSetSubMenu(this.parentMenu);
132
+ }
133
+ },
134
+ methods: {
135
+ handleMouseHover: function handleMouseHover(mouseover) {
136
+ this.mouseover = mouseover;
137
+ },
138
+ handlerActiveChange: function handlerActiveChange(newVal, oldVal) {
139
+ if (this.parentMenu && this.rootMenu) {
140
+ if (this.id === oldVal && this.rootMenu.uniqueOpened) {
141
+ if (this.rootMenu.parentId) {
142
+ if (this.rootMenu.toggleActive) {
143
+ this.parentMenu.collapse = this.rootMenu.parentId === this.parentMenu.id || !this.rootMenu.uniqueOpened;
153
144
  } else {
154
- this.parentMenu.collapse = true;
155
- this.parentMenu.menuActive = false;
145
+ this.parentMenu.collapse = !this.rootNavigation && this.rootMenu.uniqueOpened && this.rootMenu.parentId === this.parentMenu.id;
156
146
  }
157
- this.rootMenu.handleSetItem(this);
158
- this.rootMenu.handleSetSubMenu(this.parentMenu);
159
147
  }
160
- }
161
- },
162
- handleClick: function handleClick(e) {
163
- if (this.disabled || this.title) {
164
- e.preventDefault();
165
- return;
166
- } else if (e.metaKey || e.ctrlKey) {
167
- return;
168
- }
169
- e.preventDefault();
170
- this.rootMenu.$emit('item-click', this);
171
- this.$emit('click', this.id);
172
- },
173
- handleSbmenuClick: function handleSbmenuClick() {
174
- if (!this.disabled) {
175
- if (this.collapse) {
176
- this.handleClose();
148
+ this.parentMenu.menuActive = false;
149
+ } else if (this.id === newVal) {
150
+ if (this.rootMenu.uniqueOpened) {
151
+ this.parentMenu.collapse = this.rootNavigation ? this.rootMenu.toggleActive : true;
152
+ this.parentMenu.menuActive = this.rootNavigation && !this.rootMenu.toggleActive;
177
153
  } else {
178
- this.handleOpen();
154
+ this.parentMenu.collapse = true;
155
+ this.parentMenu.menuActive = false;
179
156
  }
180
- this.rootMenu.$emit('sub-menu-click', this);
181
- this.$emit('sub-menu-click', this.id);
157
+ this.rootMenu.handleSetItem(this);
158
+ this.rootMenu.handleSetSubMenu(this.parentMenu);
182
159
  }
183
- },
184
- handleClose: function handleClose() {
185
- this.collapse = false;
186
- this.$emit('close', this.id);
187
- },
188
- handleOpen: function handleOpen() {
189
- this.collapse = true;
190
- this.$emit('open', this.id);
191
- },
192
- beforeEnter: function beforeEnter(el) {
193
- el.classList.add('collapse-transition');
194
- el.style.background = this.collapseBgColor;
195
- el.style.marginTop = '-4px';
196
- el.style.height = '0';
197
- },
198
- enter: function enter(el, done) {
199
- el.dataset.oldOverflow = el.style.overflow;
200
- if (el.scrollHeight !== 0) {
201
- el.style.height = el.scrollHeight + 'px';
160
+ }
161
+ },
162
+ handleClick: function handleClick(e) {
163
+ if (this.disabled || this.title) {
164
+ e.preventDefault();
165
+ return;
166
+ } else if (e.metaKey || e.ctrlKey) {
167
+ return;
168
+ }
169
+ e.preventDefault();
170
+ this.rootMenu.$emit('item-click', this);
171
+ this.$emit('click', this.id);
172
+ },
173
+ handleSbmenuClick: function handleSbmenuClick() {
174
+ if (!this.disabled) {
175
+ if (this.collapse) {
176
+ this.handleClose();
202
177
  } else {
203
- el.style.height = '';
178
+ this.handleOpen();
204
179
  }
205
- el.style.overflow = 'hidden';
206
- },
207
- afterEnter: function afterEnter(el) {
208
- el.classList.remove('collapse-transition');
209
- el.style.height = '';
210
- el.style.overflow = el.dataset.oldOverflow;
211
- },
212
- beforeLeave: function beforeLeave(el) {
213
- el.dataset.oldOverflow = el.style.overflow;
180
+ this.rootMenu.$emit('sub-menu-click', this);
181
+ this.$emit('sub-menu-click', this.id);
182
+ }
183
+ },
184
+ handleClose: function handleClose() {
185
+ this.collapse = false;
186
+ this.$emit('close', this.id);
187
+ },
188
+ handleOpen: function handleOpen() {
189
+ this.collapse = true;
190
+ this.$emit('open', this.id);
191
+ },
192
+ beforeEnter: function beforeEnter(el) {
193
+ el.classList.add('collapse-transition');
194
+ el.style.background = this.collapseBgColor;
195
+ el.style.marginTop = '-4px';
196
+ el.style.height = '0';
197
+ },
198
+ enter: function enter(el, done) {
199
+ el.dataset.oldOverflow = el.style.overflow;
200
+ if (el.scrollHeight !== 0) {
214
201
  el.style.height = el.scrollHeight + 'px';
215
- el.style.overflow = 'hidden';
216
- },
217
- leave: function leave(el, done) {
218
- if (el.scrollHeight !== 0) {
219
- el.classList.add('collapse-transition');
220
- el.style.height = 0;
221
- }
222
- },
223
- afterLeave: function afterLeave(el) {
224
- el.classList.remove('collapse-transition');
202
+ } else {
225
203
  el.style.height = '';
226
- el.style.overflow = el.dataset.oldOverflow;
227
204
  }
228
- }
229
- };
230
-
231
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
232
- , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
233
- if (typeof shadowMode !== 'boolean') {
234
- createInjectorSSR = createInjector;
235
- createInjector = shadowMode;
236
- shadowMode = false;
237
- }
238
- var options = typeof script === 'function' ? script.options : script;
239
- if (template && template.render) {
240
- options.render = template.render;
241
- options.staticRenderFns = template.staticRenderFns;
242
- options._compiled = true;
243
- if (isFunctionalTemplate) {
244
- options.functional = true;
205
+ el.style.overflow = 'hidden';
206
+ },
207
+ afterEnter: function afterEnter(el) {
208
+ el.classList.remove('collapse-transition');
209
+ el.style.height = '';
210
+ el.style.overflow = el.dataset.oldOverflow;
211
+ },
212
+ beforeLeave: function beforeLeave(el) {
213
+ el.dataset.oldOverflow = el.style.overflow;
214
+ el.style.height = el.scrollHeight + 'px';
215
+ el.style.overflow = 'hidden';
216
+ },
217
+ leave: function leave(el, done) {
218
+ if (el.scrollHeight !== 0) {
219
+ el.classList.add('collapse-transition');
220
+ el.style.height = 0;
245
221
  }
222
+ },
223
+ afterLeave: function afterLeave(el) {
224
+ el.classList.remove('collapse-transition');
225
+ el.style.height = '';
226
+ el.style.overflow = el.dataset.oldOverflow;
246
227
  }
247
- if (scopeId) {
248
- options._scopeId = scopeId;
249
- }
250
- var hook;
251
- if (moduleIdentifier) {
252
- hook = function hook(context) {
253
- context = context ||
254
- this.$vnode && this.$vnode.ssrContext ||
255
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
256
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
257
- context = __VUE_SSR_CONTEXT__;
258
- }
259
- if (style) {
260
- style.call(this, createInjectorSSR(context));
261
- }
262
- if (context && context._registeredComponents) {
263
- context._registeredComponents.add(moduleIdentifier);
264
- }
265
- };
266
- options._ssrRegister = hook;
267
- } else if (style) {
268
- hook = shadowMode ? function () {
269
- style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
270
- } : function (context) {
271
- style.call(this, createInjector(context));
272
- };
228
+ }
229
+ };
230
+
231
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
232
+ , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
233
+ if (typeof shadowMode !== 'boolean') {
234
+ createInjectorSSR = createInjector;
235
+ createInjector = shadowMode;
236
+ shadowMode = false;
237
+ }
238
+ var options = typeof script === 'function' ? script.options : script;
239
+ if (template && template.render) {
240
+ options.render = template.render;
241
+ options.staticRenderFns = template.staticRenderFns;
242
+ options._compiled = true;
243
+ if (isFunctionalTemplate) {
244
+ options.functional = true;
273
245
  }
274
- if (hook) {
275
- if (options.functional) {
276
- var originalRender = options.render;
277
- options.render = function renderWithStyleInjection(h, context) {
278
- hook.call(context);
279
- return originalRender(h, context);
280
- };
281
- } else {
282
- var existing = options.beforeCreate;
283
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
246
+ }
247
+ if (scopeId) {
248
+ options._scopeId = scopeId;
249
+ }
250
+ var hook;
251
+ if (moduleIdentifier) {
252
+ hook = function hook(context) {
253
+ context = context ||
254
+ this.$vnode && this.$vnode.ssrContext ||
255
+ this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
256
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
257
+ context = __VUE_SSR_CONTEXT__;
258
+ }
259
+ if (style) {
260
+ style.call(this, createInjectorSSR(context));
261
+ }
262
+ if (context && context._registeredComponents) {
263
+ context._registeredComponents.add(moduleIdentifier);
284
264
  }
265
+ };
266
+ options._ssrRegister = hook;
267
+ } else if (style) {
268
+ hook = shadowMode ? function () {
269
+ style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
270
+ } : function (context) {
271
+ style.call(this, createInjector(context));
272
+ };
273
+ }
274
+ if (hook) {
275
+ if (options.functional) {
276
+ var originalRender = options.render;
277
+ options.render = function renderWithStyleInjection(h, context) {
278
+ hook.call(context);
279
+ return originalRender(h, context);
280
+ };
281
+ } else {
282
+ var existing = options.beforeCreate;
283
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
285
284
  }
286
- return script;
287
285
  }
288
- var normalizeComponent_1 = normalizeComponent;
289
-
290
- /* script */
291
- var __vue_script__ = script;
292
- /* template */
286
+ return script;
287
+ }
288
+ var normalizeComponent_1 = normalizeComponent;
293
289
 
294
- var __vue_render__ = function __vue_render__() {
295
- var _vm = this;
290
+ /* script */
291
+ var __vue_script__ = script;
292
+ /* template */
296
293
 
297
- var _h = _vm.$createElement;
294
+ var __vue_render__ = function __vue_render__() {
295
+ var _vm = this;
298
296
 
299
- var _c = _vm._self._c || _h;
300
-
301
- return _vm.hasChild ? _c('div', {
302
- staticClass: "navigation-sbmenu",
303
- class: {
304
- 'is-disabled': _vm.disabled
305
- },
306
- attrs: {
307
- "disabled": _vm.disabled,
308
- "group": _vm.group
309
- }
310
- }, [_c('div', {
311
- staticClass: "navigation-sbmenu-title",
312
- style: {
313
- background: _vm.menuActiveBgColor
314
- },
315
- on: {
316
- "mouseover": function mouseover($event) {
317
- if ($event.target !== $event.currentTarget) {
318
- return null;
319
- }
297
+ var _h = _vm.$createElement;
320
298
 
321
- _vm.handleMouseHover(!_vm.disabled);
322
- },
323
- "mouseleave": function mouseleave($event) {
324
- if ($event.target !== $event.currentTarget) {
325
- return null;
326
- }
299
+ var _c = _vm._self._c || _h;
327
300
 
328
- _vm.handleMouseHover(false);
329
- },
330
- "click": function click($event) {
331
- $event.stopPropagation();
332
- $event.preventDefault();
333
- return _vm.handleSbmenuClick($event);
301
+ return _vm.hasChild ? _c('div', {
302
+ staticClass: "navigation-sbmenu",
303
+ class: {
304
+ 'is-disabled': _vm.disabled
305
+ },
306
+ attrs: {
307
+ "disabled": _vm.disabled,
308
+ "group": _vm.group
309
+ }
310
+ }, [_c('div', {
311
+ staticClass: "navigation-sbmenu-title",
312
+ style: {
313
+ background: _vm.menuActiveBgColor
314
+ },
315
+ on: {
316
+ "mouseover": function mouseover($event) {
317
+ if ($event.target !== $event.currentTarget) {
318
+ return null;
334
319
  }
335
- }
336
- }, [_vm.icon ? _c('span', {
337
- staticClass: "bk-icon navigation-sbmenu-title-icon",
338
- class: _vm.icon,
339
- style: {
340
- color: _vm.menuActiveIconColor
341
- }
342
- }) : _vm._e(), _c('span', {
343
- staticClass: "navigation-sbmenu-title-content",
344
- style: {
345
- color: _vm.menuActiveColor
346
- }
347
- }, [_vm._t("default")], 2), _c('span', {
348
- staticClass: "navigation-sbmenu-title-arrow",
349
- style: {
350
- transform: _vm.collapse ? 'rotate(90deg)' : 'rotate(0deg)',
351
- color: _vm.menuActiveColor
352
- }
353
- }, [_c('svg', {
354
- staticClass: "bk-icon",
355
- staticStyle: {
356
- "width": "1em",
357
- "height": "1em",
358
- "vertical-align": "middle",
359
- "fill": "currentColor",
360
- "overflow": "hidden"
320
+
321
+ _vm.handleMouseHover(!_vm.disabled);
361
322
  },
362
- attrs: {
363
- "viewBox": "0 0 16 16",
364
- "version": "1.1",
365
- "xmlns": "http://www.w3.org/2000/svg"
366
- }
367
- }, [_c('path', {
368
- attrs: {
369
- "d": "M6.19 13.44l-1.13-1.13 4.13-4.12-4.13-4.13 1.13-1.12 5.25 5.25-5.25 5.25z"
370
- }
371
- })])])]), _c('transition', {
372
- attrs: {
373
- "css": false
323
+ "mouseleave": function mouseleave($event) {
324
+ if ($event.target !== $event.currentTarget) {
325
+ return null;
326
+ }
327
+
328
+ _vm.handleMouseHover(false);
374
329
  },
375
- on: {
376
- "before-enter": _vm.beforeEnter,
377
- "enter": _vm.enter,
378
- "after-enter": _vm.afterEnter,
379
- "before-leave": _vm.beforeLeave,
380
- "leave": _vm.leave,
381
- "after-leave": _vm.afterLeave
330
+ "click": function click($event) {
331
+ $event.stopPropagation();
332
+ $event.preventDefault();
333
+ return _vm.handleSbmenuClick($event);
382
334
  }
383
- }, [_c('div', {
384
- directives: [{
385
- name: "show",
386
- rawName: "v-show",
387
- value: _vm.collapse,
388
- expression: "collapse"
389
- }],
390
- staticClass: "navigation-sbmenu-content"
391
- }, [_vm._t("child")], 2)])], 1) : _c('a', {
392
- staticClass: "navigation-menu-item",
393
- class: {
394
- 'is-disabled': _vm.disabled,
395
- 'group-theme': _vm.rootMenu.navigationType !== 'left-right'
396
- },
397
- style: {
398
- background: _vm.activeBgColor,
399
- color: _vm.activeColor
400
- },
401
- attrs: {
402
- "group": _vm.group,
403
- "disabled": _vm.disabled
404
- },
405
- on: {
406
- "click": function click($event) {
407
- $event.stopPropagation();
408
-
409
- _vm.handleClick($event);
410
- },
411
- "mouseover": function mouseover($event) {
412
- if ($event.target !== $event.currentTarget) {
413
- return null;
414
- }
415
-
416
- !_vm.title && _vm.handleMouseHover(!_vm.disabled);
417
- },
418
- "mouseleave": function mouseleave($event) {
419
- if ($event.target !== $event.currentTarget) {
420
- return null;
421
- }
335
+ }
336
+ }, [_vm.icon ? _c('span', {
337
+ staticClass: "bk-icon navigation-sbmenu-title-icon",
338
+ class: _vm.icon,
339
+ style: {
340
+ color: _vm.menuActiveIconColor
341
+ }
342
+ }) : _vm._e(), _c('span', {
343
+ staticClass: "navigation-sbmenu-title-content",
344
+ style: {
345
+ color: _vm.menuActiveColor
346
+ }
347
+ }, [_vm._t("default")], 2), _c('span', {
348
+ staticClass: "navigation-sbmenu-title-arrow",
349
+ style: {
350
+ transform: _vm.collapse ? 'rotate(90deg)' : 'rotate(0deg)',
351
+ color: _vm.menuActiveColor
352
+ }
353
+ }, [_c('svg', {
354
+ staticClass: "bk-icon",
355
+ staticStyle: {
356
+ "width": "1em",
357
+ "height": "1em",
358
+ "vertical-align": "middle",
359
+ "fill": "currentColor",
360
+ "overflow": "hidden"
361
+ },
362
+ attrs: {
363
+ "viewBox": "0 0 16 16",
364
+ "version": "1.1",
365
+ "xmlns": "http://www.w3.org/2000/svg"
366
+ }
367
+ }, [_c('path', {
368
+ attrs: {
369
+ "d": "M6.19 13.44l-1.13-1.13 4.13-4.12-4.13-4.13 1.13-1.12 5.25 5.25-5.25 5.25z"
370
+ }
371
+ })])])]), _c('transition', {
372
+ attrs: {
373
+ "css": false
374
+ },
375
+ on: {
376
+ "before-enter": _vm.beforeEnter,
377
+ "enter": _vm.enter,
378
+ "after-enter": _vm.afterEnter,
379
+ "before-leave": _vm.beforeLeave,
380
+ "leave": _vm.leave,
381
+ "after-leave": _vm.afterLeave
382
+ }
383
+ }, [_c('div', {
384
+ directives: [{
385
+ name: "show",
386
+ rawName: "v-show",
387
+ value: _vm.collapse,
388
+ expression: "collapse"
389
+ }],
390
+ staticClass: "navigation-sbmenu-content"
391
+ }, [_vm._t("child")], 2)])], 1) : _c('a', {
392
+ staticClass: "navigation-menu-item",
393
+ class: {
394
+ 'is-disabled': _vm.disabled,
395
+ 'group-theme': _vm.rootMenu.navigationType !== 'left-right'
396
+ },
397
+ style: {
398
+ background: _vm.activeBgColor,
399
+ color: _vm.activeColor
400
+ },
401
+ attrs: {
402
+ "group": _vm.group,
403
+ "disabled": _vm.disabled
404
+ },
405
+ on: {
406
+ "click": function click($event) {
407
+ $event.stopPropagation();
422
408
 
423
- _vm.handleMouseHover(false);
409
+ _vm.handleClick($event);
410
+ },
411
+ "mouseover": function mouseover($event) {
412
+ if ($event.target !== $event.currentTarget) {
413
+ return null;
424
414
  }
425
- }
426
- }, [_vm.icon ? _c('span', {
427
- staticClass: "bk-icon navigation-menu-item-icon",
428
- class: _vm.icon,
429
- style: {
430
- color: _vm.activeIconColor
431
- }
432
- }) : _vm.parentMenu && _vm.parentMenu.hasChild ? _c('span', {
433
- staticClass: "navigation-menu-item-default"
434
- }, [_c('i', {
435
- staticClass: "navigation-menu-item-default-icon",
436
- style: {
437
- backgroundColor: _vm.activeChildIconColor
438
- }
439
- })]) : _vm._e(), _c('span', {
440
- staticClass: "navigation-menu-item-name",
441
- style: {
442
- color: _vm.activeColor
443
- }
444
- }, [_vm._t("default")], 2)]);
445
- };
446
-
447
- var __vue_staticRenderFns__ = [];
448
- /* style */
449
-
450
- var __vue_inject_styles__ = undefined;
451
- /* scoped */
452
-
453
- var __vue_scope_id__ = undefined;
454
- /* module identifier */
455
-
456
- var __vue_module_identifier__ = undefined;
457
- /* functional template */
458
-
459
- var __vue_is_functional_template__ = false;
460
- /* style inject */
461
-
462
- /* style inject SSR */
463
-
464
- /* style inject shadow dom */
465
-
466
- var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
467
- render: __vue_render__,
468
- staticRenderFns: __vue_staticRenderFns__
469
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
470
-
471
- var _defined = function (it) {
472
- if (it == undefined) throw TypeError("Can't call method on " + it);
473
- return it;
474
- };
475
-
476
- var _toObject = function (it) {
477
- return Object(_defined(it));
478
- };
479
-
480
- var hasOwnProperty = {}.hasOwnProperty;
481
- var _has = function (it, key) {
482
- return hasOwnProperty.call(it, key);
483
- };
484
415
 
485
- var toString = {}.toString;
486
- var _cof = function (it) {
487
- return toString.call(it).slice(8, -1);
488
- };
489
-
490
- var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
491
- return _cof(it) == 'String' ? it.split('') : Object(it);
492
- };
493
-
494
- var _toIobject = function (it) {
495
- return _iobject(_defined(it));
496
- };
497
-
498
- var ceil = Math.ceil;
499
- var floor = Math.floor;
500
- var _toInteger = function (it) {
501
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
502
- };
503
-
504
- var min = Math.min;
505
- var _toLength = function (it) {
506
- return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0;
507
- };
508
-
509
- var max = Math.max;
510
- var min$1 = Math.min;
511
- var _toAbsoluteIndex = function (index, length) {
512
- index = _toInteger(index);
513
- return index < 0 ? max(index + length, 0) : min$1(index, length);
514
- };
515
-
516
- var _arrayIncludes = function (IS_INCLUDES) {
517
- return function ($this, el, fromIndex) {
518
- var O = _toIobject($this);
519
- var length = _toLength(O.length);
520
- var index = _toAbsoluteIndex(fromIndex, length);
521
- var value;
522
- if (IS_INCLUDES && el != el) while (length > index) {
523
- value = O[index++];
524
- if (value != value) return true;
525
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
526
- if (O[index] === el) return IS_INCLUDES || index || 0;
527
- } return !IS_INCLUDES && -1;
528
- };
529
- };
530
-
531
- function createCommonjsModule(fn, module) {
532
- return module = { exports: {} }, fn(module, module.exports), module.exports;
533
- }
534
-
535
- var _core = createCommonjsModule(function (module) {
536
- var core = module.exports = { version: '2.6.12' };
537
- if (typeof __e == 'number') __e = core;
538
- });
539
- var _core_1 = _core.version;
540
-
541
- var _global = createCommonjsModule(function (module) {
542
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
543
- ? window : typeof self != 'undefined' && self.Math == Math ? self
544
- : Function('return this')();
545
- if (typeof __g == 'number') __g = global;
546
- });
547
-
548
- var _shared = createCommonjsModule(function (module) {
549
- var SHARED = '__core-js_shared__';
550
- var store = _global[SHARED] || (_global[SHARED] = {});
551
- (module.exports = function (key, value) {
552
- return store[key] || (store[key] = value !== undefined ? value : {});
553
- })('versions', []).push({
554
- version: _core.version,
555
- mode: 'pure' ,
556
- copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
557
- });
558
- });
559
-
560
- var id = 0;
561
- var px = Math.random();
562
- var _uid = function (key) {
563
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
564
- };
565
-
566
- var shared = _shared('keys');
567
- var _sharedKey = function (key) {
568
- return shared[key] || (shared[key] = _uid(key));
569
- };
416
+ !_vm.title && _vm.handleMouseHover(!_vm.disabled);
417
+ },
418
+ "mouseleave": function mouseleave($event) {
419
+ if ($event.target !== $event.currentTarget) {
420
+ return null;
421
+ }
570
422
 
571
- var arrayIndexOf = _arrayIncludes(false);
572
- var IE_PROTO = _sharedKey('IE_PROTO');
573
- var _objectKeysInternal = function (object, names) {
574
- var O = _toIobject(object);
575
- var i = 0;
576
- var result = [];
577
- var key;
578
- for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
579
- while (names.length > i) if (_has(O, key = names[i++])) {
580
- ~arrayIndexOf(result, key) || result.push(key);
423
+ _vm.handleMouseHover(false);
424
+ }
581
425
  }
582
- return result;
583
- };
584
-
585
- var _enumBugKeys = (
586
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
587
- ).split(',');
588
-
589
- var _objectKeys = Object.keys || function keys(O) {
590
- return _objectKeysInternal(O, _enumBugKeys);
591
- };
592
-
593
- var _aFunction = function (it) {
594
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
595
- return it;
596
- };
597
-
598
- var _ctx = function (fn, that, length) {
599
- _aFunction(fn);
600
- if (that === undefined) return fn;
601
- switch (length) {
602
- case 1: return function (a) {
603
- return fn.call(that, a);
604
- };
605
- case 2: return function (a, b) {
606
- return fn.call(that, a, b);
607
- };
608
- case 3: return function (a, b, c) {
609
- return fn.call(that, a, b, c);
610
- };
426
+ }, [_vm.icon ? _c('span', {
427
+ staticClass: "bk-icon navigation-menu-item-icon",
428
+ class: _vm.icon,
429
+ style: {
430
+ color: _vm.activeIconColor
611
431
  }
612
- return function () {
613
- return fn.apply(that, arguments);
614
- };
615
- };
616
-
617
- var _isObject = function (it) {
618
- return typeof it === 'object' ? it !== null : typeof it === 'function';
619
- };
620
-
621
- var _anObject = function (it) {
622
- if (!_isObject(it)) throw TypeError(it + ' is not an object!');
623
- return it;
624
- };
625
-
626
- var _fails = function (exec) {
627
- try {
628
- return !!exec();
629
- } catch (e) {
630
- return true;
432
+ }) : _vm.parentMenu && _vm.parentMenu.hasChild ? _c('span', {
433
+ staticClass: "navigation-menu-item-default"
434
+ }, [_c('i', {
435
+ staticClass: "navigation-menu-item-default-icon",
436
+ style: {
437
+ backgroundColor: _vm.activeChildIconColor
631
438
  }
439
+ })]) : _vm._e(), _c('span', {
440
+ staticClass: "navigation-menu-item-name",
441
+ style: {
442
+ color: _vm.activeColor
443
+ }
444
+ }, [_vm._t("default")], 2)]);
445
+ };
446
+
447
+ var __vue_staticRenderFns__ = [];
448
+ /* style */
449
+
450
+ var __vue_inject_styles__ = undefined;
451
+ /* scoped */
452
+
453
+ var __vue_scope_id__ = undefined;
454
+ /* module identifier */
455
+
456
+ var __vue_module_identifier__ = undefined;
457
+ /* functional template */
458
+
459
+ var __vue_is_functional_template__ = false;
460
+ /* style inject */
461
+
462
+ /* style inject SSR */
463
+
464
+ /* style inject shadow dom */
465
+
466
+ var __vue_component__ = /*#__PURE__*/normalizeComponent_1({
467
+ render: __vue_render__,
468
+ staticRenderFns: __vue_staticRenderFns__
469
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
470
+
471
+ var _defined = function (it) {
472
+ if (it == undefined) throw TypeError("Can't call method on " + it);
473
+ return it;
474
+ };
475
+
476
+ var _toObject = function (it) {
477
+ return Object(_defined(it));
478
+ };
479
+
480
+ var hasOwnProperty = {}.hasOwnProperty;
481
+ var _has = function (it, key) {
482
+ return hasOwnProperty.call(it, key);
483
+ };
484
+
485
+ var toString = {}.toString;
486
+ var _cof = function (it) {
487
+ return toString.call(it).slice(8, -1);
488
+ };
489
+
490
+ var _iobject = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
491
+ return _cof(it) == 'String' ? it.split('') : Object(it);
492
+ };
493
+
494
+ var _toIobject = function (it) {
495
+ return _iobject(_defined(it));
496
+ };
497
+
498
+ var ceil = Math.ceil;
499
+ var floor = Math.floor;
500
+ var _toInteger = function (it) {
501
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
502
+ };
503
+
504
+ var min = Math.min;
505
+ var _toLength = function (it) {
506
+ return it > 0 ? min(_toInteger(it), 0x1fffffffffffff) : 0;
507
+ };
508
+
509
+ var max = Math.max;
510
+ var min$1 = Math.min;
511
+ var _toAbsoluteIndex = function (index, length) {
512
+ index = _toInteger(index);
513
+ return index < 0 ? max(index + length, 0) : min$1(index, length);
514
+ };
515
+
516
+ var _arrayIncludes = function (IS_INCLUDES) {
517
+ return function ($this, el, fromIndex) {
518
+ var O = _toIobject($this);
519
+ var length = _toLength(O.length);
520
+ var index = _toAbsoluteIndex(fromIndex, length);
521
+ var value;
522
+ if (IS_INCLUDES && el != el) while (length > index) {
523
+ value = O[index++];
524
+ if (value != value) return true;
525
+ } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
526
+ if (O[index] === el) return IS_INCLUDES || index || 0;
527
+ } return !IS_INCLUDES && -1;
632
528
  };
633
-
634
- var _descriptors = !_fails(function () {
635
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
636
- });
637
-
638
- var document = _global.document;
639
- var is = _isObject(document) && _isObject(document.createElement);
640
- var _domCreate = function (it) {
641
- return is ? document.createElement(it) : {};
642
- };
643
-
644
- var _ie8DomDefine = !_descriptors && !_fails(function () {
645
- return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
646
- });
647
-
648
- var _toPrimitive = function (it, S) {
649
- if (!_isObject(it)) return it;
650
- var fn, val;
651
- if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
652
- if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
653
- if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
654
- throw TypeError("Can't convert object to primitive value");
655
- };
656
-
657
- var dP = Object.defineProperty;
658
- var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
659
- _anObject(O);
660
- P = _toPrimitive(P, true);
661
- _anObject(Attributes);
662
- if (_ie8DomDefine) try {
663
- return dP(O, P, Attributes);
664
- } catch (e) { }
665
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
666
- if ('value' in Attributes) O[P] = Attributes.value;
667
- return O;
668
- };
669
- var _objectDp = {
670
- f: f
671
- };
672
-
673
- var _propertyDesc = function (bitmap, value) {
674
- return {
675
- enumerable: !(bitmap & 1),
676
- configurable: !(bitmap & 2),
677
- writable: !(bitmap & 4),
678
- value: value
529
+ };
530
+
531
+ function createCommonjsModule(fn, module) {
532
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
533
+ }
534
+
535
+ var _core = createCommonjsModule(function (module) {
536
+ var core = module.exports = { version: '2.6.12' };
537
+ if (typeof __e == 'number') __e = core;
538
+ });
539
+ var _core_1 = _core.version;
540
+
541
+ var _global = createCommonjsModule(function (module) {
542
+ var global = module.exports = typeof window != 'undefined' && window.Math == Math
543
+ ? window : typeof self != 'undefined' && self.Math == Math ? self
544
+ : Function('return this')();
545
+ if (typeof __g == 'number') __g = global;
546
+ });
547
+
548
+ var _shared = createCommonjsModule(function (module) {
549
+ var SHARED = '__core-js_shared__';
550
+ var store = _global[SHARED] || (_global[SHARED] = {});
551
+ (module.exports = function (key, value) {
552
+ return store[key] || (store[key] = value !== undefined ? value : {});
553
+ })('versions', []).push({
554
+ version: _core.version,
555
+ mode: 'pure' ,
556
+ copyright: 2020 Denis Pushkarev (zloirock.ru)'
557
+ });
558
+ });
559
+
560
+ var id = 0;
561
+ var px = Math.random();
562
+ var _uid = function (key) {
563
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
564
+ };
565
+
566
+ var shared = _shared('keys');
567
+ var _sharedKey = function (key) {
568
+ return shared[key] || (shared[key] = _uid(key));
569
+ };
570
+
571
+ var arrayIndexOf = _arrayIncludes(false);
572
+ var IE_PROTO = _sharedKey('IE_PROTO');
573
+ var _objectKeysInternal = function (object, names) {
574
+ var O = _toIobject(object);
575
+ var i = 0;
576
+ var result = [];
577
+ var key;
578
+ for (key in O) if (key != IE_PROTO) _has(O, key) && result.push(key);
579
+ while (names.length > i) if (_has(O, key = names[i++])) {
580
+ ~arrayIndexOf(result, key) || result.push(key);
581
+ }
582
+ return result;
583
+ };
584
+
585
+ var _enumBugKeys = (
586
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
587
+ ).split(',');
588
+
589
+ var _objectKeys = Object.keys || function keys(O) {
590
+ return _objectKeysInternal(O, _enumBugKeys);
591
+ };
592
+
593
+ var _aFunction = function (it) {
594
+ if (typeof it != 'function') throw TypeError(it + ' is not a function!');
595
+ return it;
596
+ };
597
+
598
+ var _ctx = function (fn, that, length) {
599
+ _aFunction(fn);
600
+ if (that === undefined) return fn;
601
+ switch (length) {
602
+ case 1: return function (a) {
603
+ return fn.call(that, a);
604
+ };
605
+ case 2: return function (a, b) {
606
+ return fn.call(that, a, b);
607
+ };
608
+ case 3: return function (a, b, c) {
609
+ return fn.call(that, a, b, c);
679
610
  };
611
+ }
612
+ return function () {
613
+ return fn.apply(that, arguments);
680
614
  };
681
-
682
- var _hide = _descriptors ? function (object, key, value) {
683
- return _objectDp.f(object, key, _propertyDesc(1, value));
684
- } : function (object, key, value) {
685
- object[key] = value;
686
- return object;
615
+ };
616
+
617
+ var _isObject = function (it) {
618
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
619
+ };
620
+
621
+ var _anObject = function (it) {
622
+ if (!_isObject(it)) throw TypeError(it + ' is not an object!');
623
+ return it;
624
+ };
625
+
626
+ var _fails = function (exec) {
627
+ try {
628
+ return !!exec();
629
+ } catch (e) {
630
+ return true;
631
+ }
632
+ };
633
+
634
+ var _descriptors = !_fails(function () {
635
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
636
+ });
637
+
638
+ var document = _global.document;
639
+ var is = _isObject(document) && _isObject(document.createElement);
640
+ var _domCreate = function (it) {
641
+ return is ? document.createElement(it) : {};
642
+ };
643
+
644
+ var _ie8DomDefine = !_descriptors && !_fails(function () {
645
+ return Object.defineProperty(_domCreate('div'), 'a', { get: function () { return 7; } }).a != 7;
646
+ });
647
+
648
+ var _toPrimitive = function (it, S) {
649
+ if (!_isObject(it)) return it;
650
+ var fn, val;
651
+ if (S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
652
+ if (typeof (fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) return val;
653
+ if (!S && typeof (fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) return val;
654
+ throw TypeError("Can't convert object to primitive value");
655
+ };
656
+
657
+ var dP = Object.defineProperty;
658
+ var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
659
+ _anObject(O);
660
+ P = _toPrimitive(P, true);
661
+ _anObject(Attributes);
662
+ if (_ie8DomDefine) try {
663
+ return dP(O, P, Attributes);
664
+ } catch (e) { }
665
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
666
+ if ('value' in Attributes) O[P] = Attributes.value;
667
+ return O;
668
+ };
669
+ var _objectDp = {
670
+ f: f
671
+ };
672
+
673
+ var _propertyDesc = function (bitmap, value) {
674
+ return {
675
+ enumerable: !(bitmap & 1),
676
+ configurable: !(bitmap & 2),
677
+ writable: !(bitmap & 4),
678
+ value: value
687
679
  };
688
-
689
- var PROTOTYPE = 'prototype';
690
- var $export = function (type, name, source) {
691
- var IS_FORCED = type & $export.F;
692
- var IS_GLOBAL = type & $export.G;
693
- var IS_STATIC = type & $export.S;
694
- var IS_PROTO = type & $export.P;
695
- var IS_BIND = type & $export.B;
696
- var IS_WRAP = type & $export.W;
697
- var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
698
- var expProto = exports[PROTOTYPE];
699
- var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE];
700
- var key, own, out;
701
- if (IS_GLOBAL) source = name;
702
- for (key in source) {
703
- own = !IS_FORCED && target && target[key] !== undefined;
704
- if (own && _has(exports, key)) continue;
705
- out = own ? target[key] : source[key];
706
- exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
707
- : IS_BIND && own ? _ctx(out, _global)
708
- : IS_WRAP && target[key] == out ? (function (C) {
709
- var F = function (a, b, c) {
710
- if (this instanceof C) {
711
- switch (arguments.length) {
712
- case 0: return new C();
713
- case 1: return new C(a);
714
- case 2: return new C(a, b);
715
- } return new C(a, b, c);
716
- } return C.apply(this, arguments);
717
- };
718
- F[PROTOTYPE] = C[PROTOTYPE];
719
- return F;
720
- })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
721
- if (IS_PROTO) {
722
- (exports.virtual || (exports.virtual = {}))[key] = out;
723
- if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out);
724
- }
680
+ };
681
+
682
+ var _hide = _descriptors ? function (object, key, value) {
683
+ return _objectDp.f(object, key, _propertyDesc(1, value));
684
+ } : function (object, key, value) {
685
+ object[key] = value;
686
+ return object;
687
+ };
688
+
689
+ var PROTOTYPE = 'prototype';
690
+ var $export = function (type, name, source) {
691
+ var IS_FORCED = type & $export.F;
692
+ var IS_GLOBAL = type & $export.G;
693
+ var IS_STATIC = type & $export.S;
694
+ var IS_PROTO = type & $export.P;
695
+ var IS_BIND = type & $export.B;
696
+ var IS_WRAP = type & $export.W;
697
+ var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
698
+ var expProto = exports[PROTOTYPE];
699
+ var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] : (_global[name] || {})[PROTOTYPE];
700
+ var key, own, out;
701
+ if (IS_GLOBAL) source = name;
702
+ for (key in source) {
703
+ own = !IS_FORCED && target && target[key] !== undefined;
704
+ if (own && _has(exports, key)) continue;
705
+ out = own ? target[key] : source[key];
706
+ exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
707
+ : IS_BIND && own ? _ctx(out, _global)
708
+ : IS_WRAP && target[key] == out ? (function (C) {
709
+ var F = function (a, b, c) {
710
+ if (this instanceof C) {
711
+ switch (arguments.length) {
712
+ case 0: return new C();
713
+ case 1: return new C(a);
714
+ case 2: return new C(a, b);
715
+ } return new C(a, b, c);
716
+ } return C.apply(this, arguments);
717
+ };
718
+ F[PROTOTYPE] = C[PROTOTYPE];
719
+ return F;
720
+ })(out) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
721
+ if (IS_PROTO) {
722
+ (exports.virtual || (exports.virtual = {}))[key] = out;
723
+ if (type & $export.R && expProto && !expProto[key]) _hide(expProto, key, out);
725
724
  }
725
+ }
726
+ };
727
+ $export.F = 1;
728
+ $export.G = 2;
729
+ $export.S = 4;
730
+ $export.P = 8;
731
+ $export.B = 16;
732
+ $export.W = 32;
733
+ $export.U = 64;
734
+ $export.R = 128;
735
+ var _export = $export;
736
+
737
+ var _objectSap = function (KEY, exec) {
738
+ var fn = (_core.Object || {})[KEY] || Object[KEY];
739
+ var exp = {};
740
+ exp[KEY] = exec(fn);
741
+ _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
742
+ };
743
+
744
+ _objectSap('keys', function () {
745
+ return function keys(it) {
746
+ return _objectKeys(_toObject(it));
726
747
  };
727
- $export.F = 1;
728
- $export.G = 2;
729
- $export.S = 4;
730
- $export.P = 8;
731
- $export.B = 16;
732
- $export.W = 32;
733
- $export.U = 64;
734
- $export.R = 128;
735
- var _export = $export;
736
-
737
- var _objectSap = function (KEY, exec) {
738
- var fn = (_core.Object || {})[KEY] || Object[KEY];
739
- var exp = {};
740
- exp[KEY] = exec(fn);
741
- _export(_export.S + _export.F * _fails(function () { fn(1); }), 'Object', exp);
742
- };
743
-
744
- _objectSap('keys', function () {
745
- return function keys(it) {
746
- return _objectKeys(_toObject(it));
747
- };
748
- });
749
-
750
- var keys = _core.Object.keys;
751
-
752
- var keys$1 = keys;
753
-
754
- function setInstaller (component, afterInstall) {
755
- component.install = function (Vue) {
756
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
757
- var props = component.props || {};
758
- keys$1(options).forEach(function (key) {
759
- if (props.hasOwnProperty(key)) {
760
- if (typeof props[key] === 'function' || props[key] instanceof Array) {
761
- props[key] = {
762
- type: props[key],
763
- default: options[key]
764
- };
765
- } else {
766
- props[key].default = options[key];
767
- }
748
+ });
749
+
750
+ var keys = _core.Object.keys;
751
+
752
+ var keys$1 = keys;
753
+
754
+ function setInstaller (component, afterInstall) {
755
+ component.install = function (Vue) {
756
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
757
+ var props = component.props || {};
758
+ keys$1(options).forEach(function (key) {
759
+ if (props.hasOwnProperty(key)) {
760
+ if (typeof props[key] === 'function' || props[key] instanceof Array) {
761
+ props[key] = {
762
+ type: props[key],
763
+ default: options[key]
764
+ };
765
+ } else {
766
+ props[key].default = options[key];
768
767
  }
769
- });
770
- component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
771
- Vue.component(component.name, component);
772
- typeof afterInstall === 'function' && afterInstall(Vue, options);
773
- };
774
- }
768
+ }
769
+ });
770
+ component.name = options.namespace ? component.name.replace('bk', options.namespace) : component.name;
771
+ Vue.component(component.name, component);
772
+ typeof afterInstall === 'function' && afterInstall(Vue, options);
773
+ };
774
+ }
775
775
 
776
- setInstaller(__vue_component__);
776
+ setInstaller(__vue_component__);
777
777
 
778
- exports.default = __vue_component__;
778
+ exports.default = __vue_component__;
779
779
 
780
- Object.defineProperty(exports, '__esModule', { value: true });
780
+ Object.defineProperty(exports, '__esModule', { value: true });
781
781
 
782
782
  }));