iov-design 2.15.60 → 2.15.61

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 (234) hide show
  1. package/README.md +148 -148
  2. package/lib/alert.js +24 -105
  3. package/lib/aside.js +24 -34
  4. package/lib/autocomplete.js +36 -240
  5. package/lib/avatar.js +21 -20
  6. package/lib/backtop.js +27 -52
  7. package/lib/badge.js +30 -58
  8. package/lib/breadcrumb-item.js +24 -53
  9. package/lib/breadcrumb.js +24 -37
  10. package/lib/button-group.js +24 -29
  11. package/lib/button.js +38 -60
  12. package/lib/calendar.js +29 -146
  13. package/lib/card.js +24 -51
  14. package/lib/carousel-item.js +30 -68
  15. package/lib/carousel.js +27 -159
  16. package/lib/cascader-panel.js +41 -64
  17. package/lib/cascader.js +37 -470
  18. package/lib/checkbox-button.js +28 -164
  19. package/lib/checkbox-group.js +24 -37
  20. package/lib/checkbox.js +35 -189
  21. package/lib/col.js +1 -0
  22. package/lib/collapse-item.js +27 -125
  23. package/lib/collapse.js +24 -37
  24. package/lib/color-picker.js +104 -424
  25. package/lib/container.js +24 -34
  26. package/lib/date-picker.js +126 -1981
  27. package/lib/descriptions-item.js +1 -0
  28. package/lib/descriptions.js +1 -0
  29. package/lib/dialog.js +24 -137
  30. package/lib/divider.js +29 -64
  31. package/lib/drawer.js +24 -139
  32. package/lib/dropdown-item.js +27 -45
  33. package/lib/dropdown-menu.js +24 -51
  34. package/lib/dropdown.js +21 -20
  35. package/lib/empty.js +24 -61
  36. package/lib/footer.js +24 -34
  37. package/lib/form-item.js +42 -128
  38. package/lib/form.js +27 -40
  39. package/lib/header.js +24 -34
  40. package/lib/icon.js +24 -29
  41. package/lib/image.js +36 -220
  42. package/lib/index.js +1 -1
  43. package/lib/infinite-scroll.js +1 -0
  44. package/lib/input-number.js +30 -163
  45. package/lib/input.js +42 -274
  46. package/lib/iov-design.common.js +1635 -11132
  47. package/lib/link.js +31 -56
  48. package/lib/loading.js +24 -77
  49. package/lib/locale/format.js +10 -10
  50. package/lib/main.js +24 -29
  51. package/lib/menu-item-group.js +24 -40
  52. package/lib/menu-item.js +27 -83
  53. package/lib/menu.js +21 -20
  54. package/lib/message-box.js +24 -321
  55. package/lib/message.js +30 -82
  56. package/lib/mixins/migrating.js +20 -20
  57. package/lib/notification.js +24 -109
  58. package/lib/option-group.js +24 -50
  59. package/lib/option.js +27 -76
  60. package/lib/page-header.js +24 -56
  61. package/lib/pagination.js +24 -97
  62. package/lib/popconfirm.js +24 -97
  63. package/lib/popover.js +24 -89
  64. package/lib/progress.js +30 -133
  65. package/lib/radio-button.js +29 -111
  66. package/lib/radio-group.js +24 -39
  67. package/lib/radio.js +36 -152
  68. package/lib/rate.js +24 -94
  69. package/lib/result.js +72 -187
  70. package/lib/row.js +1 -0
  71. package/lib/scrollbar.js +1 -0
  72. package/lib/select.js +48 -637
  73. package/lib/skeleton-item.js +36 -68
  74. package/lib/skeleton.js +28 -70
  75. package/lib/slider.js +36 -267
  76. package/lib/spinner.js +24 -51
  77. package/lib/statistic.js +24 -76
  78. package/lib/step.js +29 -118
  79. package/lib/steps.js +27 -40
  80. package/lib/submenu.js +21 -20
  81. package/lib/switch.js +24 -130
  82. package/lib/tab-pane.js +24 -52
  83. package/lib/table-column.js +1 -0
  84. package/lib/table.js +93 -633
  85. package/lib/tabs.js +34 -49
  86. package/lib/tag.js +21 -20
  87. package/lib/theme-chalk/button.css +1 -1
  88. package/lib/theme-chalk/calendar.css +1 -1
  89. package/lib/theme-chalk/dropdown.css +1 -1
  90. package/lib/theme-chalk/index.css +1 -1
  91. package/lib/theme-chalk/link.css +1 -1
  92. package/lib/theme-chalk/message-box.css +1 -1
  93. package/lib/theme-chalk/transfer.css +1 -1
  94. package/lib/time-picker.js +58 -820
  95. package/lib/time-select.js +42 -303
  96. package/lib/timeline-item.js +29 -75
  97. package/lib/timeline.js +21 -20
  98. package/lib/tooltip.js +1 -0
  99. package/lib/transfer.js +36 -299
  100. package/lib/tree.js +54 -243
  101. package/lib/upload.js +86 -654
  102. package/lib/utils/clickoutside.js +7 -7
  103. package/lib/utils/vue-popper.js +7 -7
  104. package/package.json +154 -154
  105. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  106. package/packages/autocomplete/src/autocomplete.vue +285 -285
  107. package/packages/button/src/button.vue +90 -90
  108. package/packages/calendar/src/date-table.vue +200 -200
  109. package/packages/calendar/src/main.vue +280 -280
  110. package/packages/carousel/src/item.vue +138 -138
  111. package/packages/carousel/src/main.vue +315 -315
  112. package/packages/cascader/src/cascader.vue +776 -776
  113. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  114. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  115. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  116. package/packages/cascader-panel/src/node.js +166 -166
  117. package/packages/cascader-panel/src/store.js +58 -58
  118. package/packages/checkbox/src/checkbox-button.vue +199 -199
  119. package/packages/checkbox/src/checkbox-group.vue +49 -49
  120. package/packages/checkbox/src/checkbox.vue +225 -225
  121. package/packages/collapse/src/collapse-item.vue +114 -114
  122. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  123. package/packages/color-picker/src/main.vue +188 -188
  124. package/packages/date-picker/src/basic/date-table.vue +441 -441
  125. package/packages/date-picker/src/basic/month-table.vue +269 -269
  126. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  127. package/packages/date-picker/src/basic/year-table.vue +111 -111
  128. package/packages/date-picker/src/panel/date-range.vue +680 -680
  129. package/packages/date-picker/src/panel/date.vue +609 -609
  130. package/packages/date-picker/src/panel/month-range.vue +289 -289
  131. package/packages/date-picker/src/panel/time-range.vue +248 -248
  132. package/packages/date-picker/src/panel/time-select.vue +178 -178
  133. package/packages/date-picker/src/panel/time.vue +186 -186
  134. package/packages/date-picker/src/picker.vue +967 -967
  135. package/packages/descriptions/src/index.js +180 -180
  136. package/packages/dialog/src/component.vue +262 -262
  137. package/packages/drawer/src/main.vue +205 -205
  138. package/packages/dropdown/src/dropdown-item.vue +37 -37
  139. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  140. package/packages/dropdown/src/dropdown.vue +293 -293
  141. package/packages/empty/src/index.vue +70 -70
  142. package/packages/form/src/form-item.vue +324 -324
  143. package/packages/form/src/form.vue +182 -182
  144. package/packages/image/src/image-viewer.vue +330 -330
  145. package/packages/image/src/main.vue +249 -249
  146. package/packages/infinite-scroll/src/main.js +150 -150
  147. package/packages/input/src/input.vue +477 -477
  148. package/packages/input-number/src/input-number.vue +283 -283
  149. package/packages/loading/src/directive.js +133 -133
  150. package/packages/loading/src/index.js +106 -106
  151. package/packages/menu/src/menu-item.vue +112 -112
  152. package/packages/menu/src/menu.vue +325 -325
  153. package/packages/menu/src/submenu.vue +349 -349
  154. package/packages/message/src/main.js +91 -91
  155. package/packages/message-box/src/main.js +216 -216
  156. package/packages/message-box/src/main.vue +333 -333
  157. package/packages/notification/src/main.js +94 -94
  158. package/packages/page-header/src/main.vue +30 -30
  159. package/packages/pagination/src/pagination.js +390 -390
  160. package/packages/popconfirm/src/main.vue +104 -104
  161. package/packages/popover/src/main.vue +239 -239
  162. package/packages/radio/src/radio-button.vue +115 -115
  163. package/packages/radio/src/radio-group.vue +115 -115
  164. package/packages/radio/src/radio.vue +148 -148
  165. package/packages/rate/src/main.vue +348 -348
  166. package/packages/scrollbar/src/bar.js +92 -92
  167. package/packages/scrollbar/src/main.js +130 -130
  168. package/packages/select/src/option-group.vue +60 -60
  169. package/packages/select/src/option.vue +171 -171
  170. package/packages/select/src/select-dropdown.vue +74 -74
  171. package/packages/select/src/select.vue +979 -979
  172. package/packages/slider/src/button.vue +238 -238
  173. package/packages/slider/src/main.vue +427 -427
  174. package/packages/statistic/src/main.vue +204 -204
  175. package/packages/steps/src/steps.vue +68 -68
  176. package/packages/switch/src/component.vue +182 -182
  177. package/packages/table/src/config.js +153 -153
  178. package/packages/table/src/filter-panel.vue +194 -194
  179. package/packages/table/src/store/current.js +76 -76
  180. package/packages/table/src/store/helper.js +41 -41
  181. package/packages/table/src/store/index.js +147 -147
  182. package/packages/table/src/store/watcher.js +502 -502
  183. package/packages/table/src/table-body.js +469 -469
  184. package/packages/table/src/table-column.js +328 -328
  185. package/packages/table/src/table-header.js +571 -571
  186. package/packages/table/src/table-layout.js +249 -249
  187. package/packages/table/src/table-row.js +101 -101
  188. package/packages/table/src/table.vue +740 -740
  189. package/packages/table/src/util.js +273 -273
  190. package/packages/tabs/src/tab-bar.vue +57 -57
  191. package/packages/tabs/src/tab-nav.vue +294 -294
  192. package/packages/tabs/src/tabs.vue +201 -201
  193. package/packages/theme-chalk/src/button.scss +416 -416
  194. package/packages/theme-chalk/src/cascader.scss +252 -252
  195. package/packages/theme-chalk/src/checkbox.scss +419 -419
  196. package/packages/theme-chalk/src/common/var.scss +795 -795
  197. package/packages/theme-chalk/src/form.scss +201 -201
  198. package/packages/theme-chalk/src/input.scss +591 -591
  199. package/packages/theme-chalk/src/iovfont.scss +803 -803
  200. package/packages/theme-chalk/src/link.scss +8 -8
  201. package/packages/theme-chalk/src/message-box.scss +207 -207
  202. package/packages/theme-chalk/src/mixins/_button.scss +136 -136
  203. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  204. package/packages/theme-chalk/src/radio-button.scss +115 -115
  205. package/packages/theme-chalk/src/select.scss +270 -270
  206. package/packages/theme-chalk/src/tabs.scss +755 -755
  207. package/packages/theme-chalk/src/upload.scss +568 -568
  208. package/packages/tooltip/src/main.js +242 -242
  209. package/packages/transfer/src/main.vue +231 -231
  210. package/packages/transfer/src/transfer-panel.vue +251 -251
  211. package/packages/tree/src/model/node.js +484 -484
  212. package/packages/tree/src/tree-node.vue +279 -279
  213. package/packages/tree/src/tree.vue +496 -496
  214. package/packages/upload/src/index.vue +420 -420
  215. package/packages/upload/src/upload-file.vue +98 -98
  216. package/packages/upload/src/upload-list.vue +115 -115
  217. package/packages/upload/src/upload-picture.vue +98 -98
  218. package/packages/upload/src/upload.vue +231 -231
  219. package/packages/upload/src/utils.js +31 -31
  220. package/src/directives/repeat-click.js +26 -26
  221. package/src/index.js +259 -259
  222. package/src/locale/format.js +46 -46
  223. package/src/locale/index.js +48 -48
  224. package/src/locale/lang/lo-LA.js +126 -126
  225. package/src/mixins/locale.js +9 -9
  226. package/src/mixins/migrating.js +54 -54
  227. package/src/transitions/collapse-transition.js +77 -77
  228. package/src/utils/clickoutside.js +76 -76
  229. package/src/utils/date-util.js +282 -282
  230. package/src/utils/popup/index.js +218 -218
  231. package/src/utils/popup/popup-manager.js +194 -194
  232. package/src/utils/util.js +245 -245
  233. package/src/utils/vdom.js +5 -5
  234. package/src/utils/vue-popper.js +198 -198
package/lib/link.js CHANGED
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -193,49 +196,24 @@ function normalizeComponent (
193
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
194
197
 
195
198
  "use strict";
199
+ // ESM COMPAT FLAG
196
200
  __webpack_require__.r(__webpack_exports__);
197
201
 
198
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=template&id=01cf3b65&
199
- var render = function() {
200
- var _vm = this
201
- var _h = _vm.$createElement
202
- var _c = _vm._self._c || _h
203
- return _c(
204
- "a",
205
- _vm._b(
206
- {
207
- class: [
208
- "el-link",
209
- _vm.type ? "el-link--" + _vm.type : "",
210
- _vm.size ? "el-link--" + _vm.size : "",
211
- _vm.text ? "is-text" : "",
212
- _vm.disabled && "is-disabled",
213
- _vm.underline && !_vm.disabled && "is-underline"
214
- ],
215
- attrs: { href: _vm.disabled ? null : _vm.href },
216
- on: { click: _vm.handleClick }
217
- },
218
- "a",
219
- _vm.$attrs,
220
- false
221
- ),
222
- [
223
- _vm.icon ? _c("i", { class: _vm.icon }) : _vm._e(),
224
- _vm.$slots.default
225
- ? _c("span", { staticClass: "el-link--inner" }, [_vm._t("default")], 2)
226
- : _vm._e(),
227
- _vm.$slots.icon ? [_vm.$slots.icon ? _vm._t("icon") : _vm._e()] : _vm._e()
228
- ],
229
- 2
230
- )
231
- }
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=template&id=045cfb36
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',_vm._b({class:[
204
+ 'el-link',
205
+ _vm.type ? ("el-link--" + _vm.type) : '',
206
+ _vm.size ? ("el-link--" + _vm.size) : '',
207
+ _vm.text ? "is-text" : '',
208
+ _vm.disabled && 'is-disabled',
209
+ _vm.underline && !_vm.disabled && 'is-underline'
210
+ ],attrs:{"href":_vm.disabled ? null : _vm.href},on:{"click":_vm.handleClick}},'a',_vm.$attrs,false),[(_vm.icon)?_c('i',{class:_vm.icon}):_vm._e(),(_vm.$slots.default)?_c('span',{staticClass:"el-link--inner"},[_vm._t("default")],2):_vm._e(),(_vm.$slots.icon)?[(_vm.$slots.icon)?_vm._t("icon"):_vm._e()]:_vm._e()],2)}
232
211
  var staticRenderFns = []
233
212
  render._withStripped = true
234
213
 
214
+ // CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=template&id=045cfb36
235
215
 
236
- // CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=template&id=01cf3b65&
237
-
238
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=script&lang=js&
216
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/link/src/main.vue?vue&type=script&lang=js
239
217
  //
240
218
  //
241
219
  //
@@ -263,7 +241,7 @@ render._withStripped = true
263
241
  //
264
242
 
265
243
 
266
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
244
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
267
245
  name: 'ElLink',
268
246
 
269
247
  props: {
@@ -295,8 +273,8 @@ render._withStripped = true
295
273
  }
296
274
  }
297
275
  });
298
- // CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=script&lang=js&
299
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
276
+ // CONCATENATED MODULE: ./packages/link/src/main.vue?vue&type=script&lang=js
277
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
300
278
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
301
279
  var componentNormalizer = __webpack_require__(0);
302
280
 
@@ -309,7 +287,7 @@ var componentNormalizer = __webpack_require__(0);
309
287
  /* normalize component */
310
288
 
311
289
  var component = Object(componentNormalizer["a" /* default */])(
312
- src_mainvue_type_script_lang_js_,
290
+ src_mainvue_type_script_lang_js,
313
291
  render,
314
292
  staticRenderFns,
315
293
  false,
@@ -319,9 +297,6 @@ var component = Object(componentNormalizer["a" /* default */])(
319
297
 
320
298
  )
321
299
 
322
- /* hot reload */
323
- if (false) { var api; }
324
- component.options.__file = "packages/link/src/main.vue"
325
300
  /* harmony default export */ var main = (component.exports);
326
301
  // CONCATENATED MODULE: ./packages/link/index.js
327
302
 
package/lib/loading.js CHANGED
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -214,74 +217,21 @@ module.exports = require("iov-design/lib/utils/after-leave");
214
217
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
215
218
 
216
219
  "use strict";
220
+ // ESM COMPAT FLAG
217
221
  __webpack_require__.r(__webpack_exports__);
218
222
 
219
223
  // EXTERNAL MODULE: external "vue"
220
224
  var external_vue_ = __webpack_require__(8);
221
225
  var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
222
226
 
223
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=template&id=eee0a7ac&
224
- var render = function() {
225
- var _vm = this
226
- var _h = _vm.$createElement
227
- var _c = _vm._self._c || _h
228
- return _c(
229
- "transition",
230
- {
231
- attrs: { name: "el-loading-fade" },
232
- on: { "after-leave": _vm.handleAfterLeave }
233
- },
234
- [
235
- _c(
236
- "div",
237
- {
238
- directives: [
239
- {
240
- name: "show",
241
- rawName: "v-show",
242
- value: _vm.visible,
243
- expression: "visible"
244
- }
245
- ],
246
- staticClass: "el-loading-mask",
247
- class: [_vm.customClass, { "is-fullscreen": _vm.fullscreen }],
248
- style: { backgroundColor: _vm.background || "" }
249
- },
250
- [
251
- _c("div", { staticClass: "el-loading-spinner" }, [
252
- !_vm.spinner
253
- ? _c(
254
- "svg",
255
- {
256
- staticClass: "circular",
257
- attrs: { viewBox: "25 25 50 50" }
258
- },
259
- [
260
- _c("circle", {
261
- staticClass: "path",
262
- attrs: { cx: "50", cy: "50", r: "20", fill: "none" }
263
- })
264
- ]
265
- )
266
- : _c("i", { class: _vm.spinner }),
267
- _vm.text
268
- ? _c("p", { staticClass: "el-loading-text" }, [
269
- _vm._v(_vm._s(_vm.text))
270
- ])
271
- : _vm._e()
272
- ])
273
- ]
274
- )
275
- ]
276
- )
277
- }
227
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=template&id=6f1c619c
228
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"el-loading-fade"},on:{"after-leave":_vm.handleAfterLeave}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"el-loading-mask",class:[_vm.customClass, { 'is-fullscreen': _vm.fullscreen }],style:({ backgroundColor: _vm.background || '' })},[_c('div',{staticClass:"el-loading-spinner"},[(!_vm.spinner)?_c('svg',{staticClass:"circular",attrs:{"viewBox":"25 25 50 50"}},[_c('circle',{staticClass:"path",attrs:{"cx":"50","cy":"50","r":"20","fill":"none"}})]):_c('i',{class:_vm.spinner}),(_vm.text)?_c('p',{staticClass:"el-loading-text"},[_vm._v(_vm._s(_vm.text))]):_vm._e()])])])}
278
229
  var staticRenderFns = []
279
230
  render._withStripped = true
280
231
 
232
+ // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=template&id=6f1c619c
281
233
 
282
- // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=template&id=eee0a7ac&
283
-
284
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=script&lang=js&
234
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=script&lang=js
285
235
  //
286
236
  //
287
237
  //
@@ -301,7 +251,7 @@ render._withStripped = true
301
251
  //
302
252
  //
303
253
 
304
- /* harmony default export */ var loadingvue_type_script_lang_js_ = ({
254
+ /* harmony default export */ var loadingvue_type_script_lang_js = ({
305
255
  data: function data() {
306
256
  return {
307
257
  text: null,
@@ -323,8 +273,8 @@ render._withStripped = true
323
273
  }
324
274
  }
325
275
  });
326
- // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=script&lang=js&
327
- /* harmony default export */ var src_loadingvue_type_script_lang_js_ = (loadingvue_type_script_lang_js_);
276
+ // CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=script&lang=js
277
+ /* harmony default export */ var src_loadingvue_type_script_lang_js = (loadingvue_type_script_lang_js);
328
278
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
329
279
  var componentNormalizer = __webpack_require__(0);
330
280
 
@@ -337,7 +287,7 @@ var componentNormalizer = __webpack_require__(0);
337
287
  /* normalize component */
338
288
 
339
289
  var component = Object(componentNormalizer["a" /* default */])(
340
- src_loadingvue_type_script_lang_js_,
290
+ src_loadingvue_type_script_lang_js,
341
291
  render,
342
292
  staticRenderFns,
343
293
  false,
@@ -347,9 +297,6 @@ var component = Object(componentNormalizer["a" /* default */])(
347
297
 
348
298
  )
349
299
 
350
- /* hot reload */
351
- if (false) { var api; }
352
- component.options.__file = "packages/loading/src/loading.vue"
353
300
  /* harmony default export */ var loading = (component.exports);
354
301
  // EXTERNAL MODULE: external "iov-design/lib/utils/dom"
355
302
  var dom_ = __webpack_require__(2);
@@ -6,12 +6,12 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
6
6
 
7
7
  exports.default = function (Vue) {
8
8
 
9
- /**
10
- * template
11
- *
12
- * @param {String} string
13
- * @param {Array} ...args
14
- * @return {String}
9
+ /**
10
+ * template
11
+ *
12
+ * @param {String} string
13
+ * @param {Array} ...args
14
+ * @return {String}
15
15
  */
16
16
 
17
17
  function template(string) {
@@ -49,8 +49,8 @@ exports.default = function (Vue) {
49
49
  var _util = require('iov-design/lib/utils/util');
50
50
 
51
51
  var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
52
- /**
53
- * String format template
54
- * - Inspired:
55
- * https://github.com/Matt-Esch/string-template/index.js
52
+ /**
53
+ * String format template
54
+ * - Inspired:
55
+ * https://github.com/Matt-Esch/string-template/index.js
56
56
  */
package/lib/main.js CHANGED
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -193,22 +196,17 @@ function normalizeComponent (
193
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
194
197
 
195
198
  "use strict";
199
+ // ESM COMPAT FLAG
196
200
  __webpack_require__.r(__webpack_exports__);
197
201
 
198
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=2a3a7406&
199
- var render = function() {
200
- var _vm = this
201
- var _h = _vm.$createElement
202
- var _c = _vm._self._c || _h
203
- return _c("main", { staticClass: "el-main" }, [_vm._t("default")], 2)
204
- }
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=863d0b22
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('main',{staticClass:"el-main"},[_vm._t("default")],2)}
205
204
  var staticRenderFns = []
206
205
  render._withStripped = true
207
206
 
207
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=863d0b22
208
208
 
209
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=2a3a7406&
210
-
211
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
209
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js
212
210
  //
213
211
  //
214
212
  //
@@ -216,12 +214,12 @@ render._withStripped = true
216
214
  //
217
215
  //
218
216
 
219
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
217
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
220
218
  name: 'ElMain',
221
219
  componentName: 'ElMain'
222
220
  });
223
- // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=script&lang=js&
224
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
221
+ // CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=script&lang=js
222
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
225
223
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
226
224
  var componentNormalizer = __webpack_require__(0);
227
225
 
@@ -234,7 +232,7 @@ var componentNormalizer = __webpack_require__(0);
234
232
  /* normalize component */
235
233
 
236
234
  var component = Object(componentNormalizer["a" /* default */])(
237
- src_mainvue_type_script_lang_js_,
235
+ src_mainvue_type_script_lang_js,
238
236
  render,
239
237
  staticRenderFns,
240
238
  false,
@@ -244,9 +242,6 @@ var component = Object(componentNormalizer["a" /* default */])(
244
242
 
245
243
  )
246
244
 
247
- /* hot reload */
248
- if (false) { var api; }
249
- component.options.__file = "packages/main/src/main.vue"
250
245
  /* harmony default export */ var main = (component.exports);
251
246
  // CONCATENATED MODULE: ./packages/main/index.js
252
247
 
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -193,33 +196,17 @@ function normalizeComponent (
193
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
194
197
 
195
198
  "use strict";
199
+ // ESM COMPAT FLAG
196
200
  __webpack_require__.r(__webpack_exports__);
197
201
 
198
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=template&id=543b7bdc&
199
- var render = function() {
200
- var _vm = this
201
- var _h = _vm.$createElement
202
- var _c = _vm._self._c || _h
203
- return _c("li", { staticClass: "el-menu-item-group" }, [
204
- _c(
205
- "div",
206
- {
207
- staticClass: "el-menu-item-group__title",
208
- style: { paddingLeft: _vm.levelPadding + "px" }
209
- },
210
- [!_vm.$slots.title ? [_vm._v(_vm._s(_vm.title))] : _vm._t("title")],
211
- 2
212
- ),
213
- _c("ul", [_vm._t("default")], 2)
214
- ])
215
- }
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=template&id=116706aa
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"el-menu-item-group"},[_c('div',{staticClass:"el-menu-item-group__title",style:({paddingLeft: _vm.levelPadding + 'px'})},[(!_vm.$slots.title)?[_vm._v(_vm._s(_vm.title))]:_vm._t("title")],2),_c('ul',[_vm._t("default")],2)])}
216
204
  var staticRenderFns = []
217
205
  render._withStripped = true
218
206
 
207
+ // CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=template&id=116706aa
219
208
 
220
- // CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=template&id=543b7bdc&
221
-
222
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js&
209
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js
223
210
  //
224
211
  //
225
212
  //
@@ -232,7 +219,7 @@ render._withStripped = true
232
219
  //
233
220
  //
234
221
 
235
- /* harmony default export */ var menu_item_groupvue_type_script_lang_js_ = ({
222
+ /* harmony default export */ var menu_item_groupvue_type_script_lang_js = ({
236
223
  name: 'ElMenuItemGroup',
237
224
 
238
225
  componentName: 'ElMenuItemGroup',
@@ -264,8 +251,8 @@ render._withStripped = true
264
251
  }
265
252
  }
266
253
  });
267
- // CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js&
268
- /* harmony default export */ var src_menu_item_groupvue_type_script_lang_js_ = (menu_item_groupvue_type_script_lang_js_);
254
+ // CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js
255
+ /* harmony default export */ var src_menu_item_groupvue_type_script_lang_js = (menu_item_groupvue_type_script_lang_js);
269
256
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
270
257
  var componentNormalizer = __webpack_require__(0);
271
258
 
@@ -278,7 +265,7 @@ var componentNormalizer = __webpack_require__(0);
278
265
  /* normalize component */
279
266
 
280
267
  var component = Object(componentNormalizer["a" /* default */])(
281
- src_menu_item_groupvue_type_script_lang_js_,
268
+ src_menu_item_groupvue_type_script_lang_js,
282
269
  render,
283
270
  staticRenderFns,
284
271
  false,
@@ -288,9 +275,6 @@ var component = Object(componentNormalizer["a" /* default */])(
288
275
 
289
276
  )
290
277
 
291
- /* hot reload */
292
- if (false) { var api; }
293
- component.options.__file = "packages/menu/src/menu-item-group.vue"
294
278
  /* harmony default export */ var menu_item_group = (component.exports);
295
279
  // CONCATENATED MODULE: ./packages/menu-item-group/index.js
296
280