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