cy-element-ui 1.0.49 → 1.0.50

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 (98) hide show
  1. package/lib/alert.js +108 -108
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +359 -5198
  4. package/lib/avatar.js +4 -4
  5. package/lib/backtop.js +101 -192
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +108 -108
  8. package/lib/breadcrumb.js +94 -94
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +137 -1734
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +108 -452
  14. package/lib/carousel.js +105 -1256
  15. package/lib/cascader-panel.js +191 -3524
  16. package/lib/cascader.js +709 -8069
  17. package/lib/checkbox-button.js +119 -151
  18. package/lib/checkbox-group.js +15 -47
  19. package/lib/checkbox.js +15 -47
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +110 -815
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +835 -4712
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +4596 -10622
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +8 -63
  28. package/lib/dialog.js +22 -1200
  29. package/lib/divider.js +104 -104
  30. package/lib/drawer.js +105 -875
  31. package/lib/dropdown-item.js +96 -128
  32. package/lib/dropdown-menu.js +99 -2301
  33. package/lib/dropdown.js +54 -990
  34. package/lib/element-ui.common.js +29758 -47436
  35. package/lib/empty.js +99 -793
  36. package/lib/fileUpload.js +25 -2541
  37. package/lib/footer.js +77 -77
  38. package/lib/form-item.js +208 -3311
  39. package/lib/form.js +115 -129
  40. package/lib/header.js +77 -77
  41. package/lib/icon.js +67 -67
  42. package/lib/image.js +146 -1662
  43. package/lib/index.js +1 -1
  44. package/lib/infinite-scroll.js +26 -435
  45. package/lib/input-number.js +24 -1458
  46. package/lib/input.js +37 -509
  47. package/lib/link.js +4 -4
  48. package/lib/loading.js +149 -886
  49. package/lib/main.js +64 -64
  50. package/lib/menu-item-group.js +103 -103
  51. package/lib/menu-item.js +137 -3140
  52. package/lib/menu.js +123 -1058
  53. package/lib/message-box.js +179 -2734
  54. package/lib/message.js +118 -1196
  55. package/lib/notification.js +118 -1195
  56. package/lib/option-group.js +119 -151
  57. package/lib/option.js +16 -392
  58. package/lib/page-header.js +87 -781
  59. package/lib/pagination.js +642 -7743
  60. package/lib/popconfirm.js +219 -3606
  61. package/lib/popover.js +99 -2624
  62. package/lib/progress.js +4 -4
  63. package/lib/radio-button.js +119 -151
  64. package/lib/radio-group.js +119 -151
  65. package/lib/radio.js +15 -47
  66. package/lib/rate.js +113 -756
  67. package/lib/result.js +108 -108
  68. package/lib/row.js +2 -2
  69. package/lib/scrollbar.js +41 -1813
  70. package/lib/select.js +209 -5547
  71. package/lib/selectDisplayInput.js +4 -4
  72. package/lib/skeleton-item.js +108 -108
  73. package/lib/skeleton.js +108 -108
  74. package/lib/slider.js +815 -5053
  75. package/lib/spinner.js +100 -100
  76. package/lib/statistic.js +112 -9600
  77. package/lib/step.js +108 -108
  78. package/lib/steps.js +99 -514
  79. package/lib/subTitle.js +91 -91
  80. package/lib/submenu.js +76 -2397
  81. package/lib/switch.js +127 -582
  82. package/lib/tab-pane.js +108 -108
  83. package/lib/tabDialog.js +104 -1630
  84. package/lib/table-column.js +267 -1115
  85. package/lib/table.js +1289 -7121
  86. package/lib/tabs.js +113 -1615
  87. package/lib/tag.js +4 -4
  88. package/lib/time-picker.js +554 -6491
  89. package/lib/time-select.js +407 -6334
  90. package/lib/timeline-item.js +108 -108
  91. package/lib/timeline.js +4 -4
  92. package/lib/tooltip.js +44 -2688
  93. package/lib/transfer.js +146 -2238
  94. package/lib/tree.js +148 -1563
  95. package/lib/treeSelect.js +106 -3421
  96. package/lib/upload.js +31 -1198
  97. package/package.json +1 -1
  98. package/src/index.js +1 -1
package/lib/avatar.js CHANGED
@@ -82,12 +82,12 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 205);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 144);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 2:
90
+ /***/ 0:
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
@@ -192,7 +192,7 @@ function normalizeComponent(
192
192
 
193
193
  /***/ }),
194
194
 
195
- /***/ 205:
195
+ /***/ 144:
196
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
197
197
 
198
198
  "use strict";
@@ -326,7 +326,7 @@ __webpack_require__.r(__webpack_exports__);
326
326
  // CONCATENATED MODULE: ./packages/avatar/src/main.vue?vue&type=script&lang=js
327
327
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
328
328
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
329
- var componentNormalizer = __webpack_require__(2);
329
+ var componentNormalizer = __webpack_require__(0);
330
330
 
331
331
  // CONCATENATED MODULE: ./packages/avatar/src/main.vue
332
332
  var render, staticRenderFns
package/lib/backtop.js CHANGED
@@ -82,110 +82,117 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 192);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 128);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 17:
91
- /***/ (function(module, exports) {
92
-
93
- /* eslint-disable no-undefined,no-param-reassign,no-shadow */
94
-
95
- /**
96
- * Throttle execution of a function. Especially useful for rate limiting
97
- * execution of handlers on events like resize and scroll.
98
- *
99
- * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
100
- * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
101
- * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
102
- * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
103
- * the internal counter is reset)
104
- * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
105
- * to `callback` when the throttled-function is executed.
106
- * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
107
- * schedule `callback` to execute after `delay` ms.
108
- *
109
- * @return {Function} A new, throttled, function.
110
- */
111
- module.exports = function ( delay, noTrailing, callback, debounceMode ) {
112
-
113
- // After wrapper has stopped being called, this timeout ensures that
114
- // `callback` is executed at the proper times in `throttle` and `end`
115
- // debounce modes.
116
- var timeoutID;
117
-
118
- // Keep track of the last time `callback` was executed.
119
- var lastExec = 0;
120
-
121
- // `noTrailing` defaults to falsy.
122
- if ( typeof noTrailing !== 'boolean' ) {
123
- debounceMode = callback;
124
- callback = noTrailing;
125
- noTrailing = undefined;
126
- }
127
-
128
- // The `wrapper` function encapsulates all of the throttling / debouncing
129
- // functionality and when executed will limit the rate at which `callback`
130
- // is executed.
131
- function wrapper () {
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
132
92
 
133
- var self = this;
134
- var elapsed = Number(new Date()) - lastExec;
135
- var args = arguments;
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
136
96
 
137
- // Execute `callback` and update the `lastExec` timestamp.
138
- function exec () {
139
- lastExec = Number(new Date());
140
- callback.apply(self, args);
141
- }
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
142
100
 
143
- // If `debounceMode` is true (at begin) this is used to clear the flag
144
- // to allow future `callback` executions.
145
- function clear () {
146
- timeoutID = undefined;
147
- }
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
148
114
 
149
- if ( debounceMode && !timeoutID ) {
150
- // Since `wrapper` is being called for the first time and
151
- // `debounceMode` is true (at begin), execute `callback`.
152
- exec();
153
- }
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
154
121
 
155
- // Clear any existing timeout.
156
- if ( timeoutID ) {
157
- clearTimeout(timeoutID);
158
- }
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
159
126
 
160
- if ( debounceMode === undefined && elapsed > delay ) {
161
- // In throttle mode, if `delay` time has been exceeded, execute
162
- // `callback`.
163
- exec();
164
-
165
- } else if ( noTrailing !== true ) {
166
- // In trailing throttle mode, since `delay` time has not been
167
- // exceeded, schedule `callback` to execute `delay` ms after most
168
- // recent execution.
169
- //
170
- // If `debounceMode` is true (at begin), schedule `clear` to execute
171
- // after `delay` ms.
172
- //
173
- // If `debounceMode` is false (at end), schedule `callback` to
174
- // execute after `delay` ms.
175
- timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
176
- }
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
177
131
 
178
- }
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
179
167
 
180
- // Return the wrapper function.
181
- return wrapper;
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
182
185
 
183
- };
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
184
191
 
185
192
 
186
193
  /***/ }),
187
194
 
188
- /***/ 192:
195
+ /***/ 128:
189
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
190
197
 
191
198
  "use strict";
@@ -229,9 +236,9 @@ render._withStripped = true
229
236
 
230
237
  // CONCATENATED MODULE: ./packages/backtop/src/main.vue?vue&type=template&id=51b1362e
231
238
 
232
- // EXTERNAL MODULE: ./node_modules/throttle-debounce/throttle.js
233
- var throttle = __webpack_require__(17);
234
- var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle);
239
+ // EXTERNAL MODULE: external "throttle-debounce/throttle"
240
+ var throttle_ = __webpack_require__(25);
241
+ var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
235
242
 
236
243
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/backtop/src/main.vue?vue&type=script&lang=js
237
244
 
@@ -335,7 +342,7 @@ var easeInOutCubic = function easeInOutCubic(value) {
335
342
  // CONCATENATED MODULE: ./packages/backtop/src/main.vue?vue&type=script&lang=js
336
343
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
337
344
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
338
- var componentNormalizer = __webpack_require__(2);
345
+ var componentNormalizer = __webpack_require__(0);
339
346
 
340
347
  // CONCATENATED MODULE: ./packages/backtop/src/main.vue
341
348
 
@@ -369,108 +376,10 @@ main.install = function (Vue) {
369
376
 
370
377
  /***/ }),
371
378
 
372
- /***/ 2:
373
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
374
-
375
- "use strict";
376
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
377
- /* globals __VUE_SSR_CONTEXT__ */
378
-
379
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
380
- // This module is a runtime utility for cleaner component module output and will
381
- // be included in the final webpack user bundle.
382
-
383
- function normalizeComponent(
384
- scriptExports,
385
- render,
386
- staticRenderFns,
387
- functionalTemplate,
388
- injectStyles,
389
- scopeId,
390
- moduleIdentifier /* server only */,
391
- shadowMode /* vue-cli only */
392
- ) {
393
- // Vue.extend constructor export interop
394
- var options =
395
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
396
-
397
- // render functions
398
- if (render) {
399
- options.render = render
400
- options.staticRenderFns = staticRenderFns
401
- options._compiled = true
402
- }
403
-
404
- // functional template
405
- if (functionalTemplate) {
406
- options.functional = true
407
- }
408
-
409
- // scopedId
410
- if (scopeId) {
411
- options._scopeId = 'data-v-' + scopeId
412
- }
413
-
414
- var hook
415
- if (moduleIdentifier) {
416
- // server build
417
- hook = function (context) {
418
- // 2.3 injection
419
- context =
420
- context || // cached call
421
- (this.$vnode && this.$vnode.ssrContext) || // stateful
422
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
423
- // 2.2 with runInNewContext: true
424
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
425
- context = __VUE_SSR_CONTEXT__
426
- }
427
- // inject component styles
428
- if (injectStyles) {
429
- injectStyles.call(this, context)
430
- }
431
- // register component module identifier for async chunk inferrence
432
- if (context && context._registeredComponents) {
433
- context._registeredComponents.add(moduleIdentifier)
434
- }
435
- }
436
- // used by ssr in case component is cached and beforeCreate
437
- // never gets called
438
- options._ssrRegister = hook
439
- } else if (injectStyles) {
440
- hook = shadowMode
441
- ? function () {
442
- injectStyles.call(
443
- this,
444
- (options.functional ? this.parent : this).$root.$options.shadowRoot
445
- )
446
- }
447
- : injectStyles
448
- }
449
-
450
- if (hook) {
451
- if (options.functional) {
452
- // for template-only hot-reload because in that case the render fn doesn't
453
- // go through the normalizer
454
- options._injectStyles = hook
455
- // register for functional component in vue file
456
- var originalRender = options.render
457
- options.render = function renderWithStyleInjection(h, context) {
458
- hook.call(context)
459
- return originalRender(h, context)
460
- }
461
- } else {
462
- // inject component registration as beforeCreate hook
463
- var existing = options.beforeCreate
464
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
465
- }
466
- }
467
-
468
- return {
469
- exports: scriptExports,
470
- options: options
471
- }
472
- }
379
+ /***/ 25:
380
+ /***/ (function(module, exports) {
473
381
 
382
+ module.exports = require("throttle-debounce/throttle");
474
383
 
475
384
  /***/ })
476
385
 
package/lib/badge.js CHANGED
@@ -82,12 +82,117 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 175);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 110);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
- /***/ 175:
90
+ /***/ 0:
91
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
+
93
+ "use strict";
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
96
+
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
100
+
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
114
+
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
121
+
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
126
+
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
131
+
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
167
+
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
185
+
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
191
+
192
+
193
+ /***/ }),
194
+
195
+ /***/ 110:
91
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
197
 
93
198
  "use strict";
@@ -171,7 +276,7 @@ render._withStripped = true
171
276
  // CONCATENATED MODULE: ./packages/badge/src/main.vue?vue&type=script&lang=js
172
277
  /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
173
278
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
174
- var componentNormalizer = __webpack_require__(2);
279
+ var componentNormalizer = __webpack_require__(0);
175
280
 
176
281
  // CONCATENATED MODULE: ./packages/badge/src/main.vue
177
282
 
@@ -203,111 +308,6 @@ main.install = function (Vue) {
203
308
 
204
309
  /* harmony default export */ var badge = __webpack_exports__["default"] = (main);
205
310
 
206
- /***/ }),
207
-
208
- /***/ 2:
209
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
210
-
211
- "use strict";
212
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
213
- /* globals __VUE_SSR_CONTEXT__ */
214
-
215
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
216
- // This module is a runtime utility for cleaner component module output and will
217
- // be included in the final webpack user bundle.
218
-
219
- function normalizeComponent(
220
- scriptExports,
221
- render,
222
- staticRenderFns,
223
- functionalTemplate,
224
- injectStyles,
225
- scopeId,
226
- moduleIdentifier /* server only */,
227
- shadowMode /* vue-cli only */
228
- ) {
229
- // Vue.extend constructor export interop
230
- var options =
231
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
232
-
233
- // render functions
234
- if (render) {
235
- options.render = render
236
- options.staticRenderFns = staticRenderFns
237
- options._compiled = true
238
- }
239
-
240
- // functional template
241
- if (functionalTemplate) {
242
- options.functional = true
243
- }
244
-
245
- // scopedId
246
- if (scopeId) {
247
- options._scopeId = 'data-v-' + scopeId
248
- }
249
-
250
- var hook
251
- if (moduleIdentifier) {
252
- // server build
253
- hook = function (context) {
254
- // 2.3 injection
255
- context =
256
- context || // cached call
257
- (this.$vnode && this.$vnode.ssrContext) || // stateful
258
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
259
- // 2.2 with runInNewContext: true
260
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
261
- context = __VUE_SSR_CONTEXT__
262
- }
263
- // inject component styles
264
- if (injectStyles) {
265
- injectStyles.call(this, context)
266
- }
267
- // register component module identifier for async chunk inferrence
268
- if (context && context._registeredComponents) {
269
- context._registeredComponents.add(moduleIdentifier)
270
- }
271
- }
272
- // used by ssr in case component is cached and beforeCreate
273
- // never gets called
274
- options._ssrRegister = hook
275
- } else if (injectStyles) {
276
- hook = shadowMode
277
- ? function () {
278
- injectStyles.call(
279
- this,
280
- (options.functional ? this.parent : this).$root.$options.shadowRoot
281
- )
282
- }
283
- : injectStyles
284
- }
285
-
286
- if (hook) {
287
- if (options.functional) {
288
- // for template-only hot-reload because in that case the render fn doesn't
289
- // go through the normalizer
290
- options._injectStyles = hook
291
- // register for functional component in vue file
292
- var originalRender = options.render
293
- options.render = function renderWithStyleInjection(h, context) {
294
- hook.call(context)
295
- return originalRender(h, context)
296
- }
297
- } else {
298
- // inject component registration as beforeCreate hook
299
- var existing = options.beforeCreate
300
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
301
- }
302
- }
303
-
304
- return {
305
- exports: scriptExports,
306
- options: options
307
- }
308
- }
309
-
310
-
311
311
  /***/ })
312
312
 
313
313
  /******/ });