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/submenu.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,6 +196,7 @@ 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
202
  // EXTERNAL MODULE: external "iov-design/lib/transitions/collapse-transition"
@@ -210,7 +214,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
210
214
  var vue_popper_ = __webpack_require__(5);
211
215
  var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
212
216
 
213
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/submenu.vue?vue&type=script&lang=js&
217
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/submenu.vue?vue&type=script&lang=js
214
218
 
215
219
 
216
220
 
@@ -233,7 +237,7 @@ var poperMixins = {
233
237
  deactivated: vue_popper_default.a.deactivated
234
238
  };
235
239
 
236
- /* harmony default export */ var submenuvue_type_script_lang_js_ = ({
240
+ /* harmony default export */ var submenuvue_type_script_lang_js = ({
237
241
  name: 'ElSubmenu',
238
242
 
239
243
  componentName: 'ElSubmenu',
@@ -588,8 +592,8 @@ var poperMixins = {
588
592
  );
589
593
  }
590
594
  });
591
- // CONCATENATED MODULE: ./packages/menu/src/submenu.vue?vue&type=script&lang=js&
592
- /* harmony default export */ var src_submenuvue_type_script_lang_js_ = (submenuvue_type_script_lang_js_);
595
+ // CONCATENATED MODULE: ./packages/menu/src/submenu.vue?vue&type=script&lang=js
596
+ /* harmony default export */ var src_submenuvue_type_script_lang_js = (submenuvue_type_script_lang_js);
593
597
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
594
598
  var componentNormalizer = __webpack_require__(0);
595
599
 
@@ -602,7 +606,7 @@ var render, staticRenderFns
602
606
  /* normalize component */
603
607
 
604
608
  var component = Object(componentNormalizer["a" /* default */])(
605
- src_submenuvue_type_script_lang_js_,
609
+ src_submenuvue_type_script_lang_js,
606
610
  render,
607
611
  staticRenderFns,
608
612
  false,
@@ -612,9 +616,6 @@ var component = Object(componentNormalizer["a" /* default */])(
612
616
 
613
617
  )
614
618
 
615
- /* hot reload */
616
- if (false) { var api; }
617
- component.options.__file = "packages/menu/src/submenu.vue"
618
619
  /* harmony default export */ var submenu = (component.exports);
619
620
  // CONCATENATED MODULE: ./packages/submenu/index.js
620
621
 
package/lib/switch.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,121 +196,15 @@ 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/switch/src/component.vue?vue&type=template&id=2dcd8fbb&
199
- var render = function() {
200
- var _vm = this
201
- var _h = _vm.$createElement
202
- var _c = _vm._self._c || _h
203
- return _c(
204
- "div",
205
- {
206
- staticClass: "el-switch",
207
- class: [
208
- _vm.size ? "el-switch--" + _vm.size : "",
209
- _vm.type ? "el-switch--" + _vm.type : "",
210
- { "is-disabled": _vm.switchDisabled },
211
- { "is-checked": _vm.checked }
212
- ],
213
- attrs: {
214
- role: "switch",
215
- "aria-checked": _vm.checked,
216
- "aria-disabled": _vm.switchDisabled
217
- },
218
- on: {
219
- click: function($event) {
220
- $event.preventDefault()
221
- return _vm.switchValue($event)
222
- }
223
- }
224
- },
225
- [
226
- _c("input", {
227
- ref: "input",
228
- staticClass: "el-switch__input",
229
- attrs: {
230
- type: "checkbox",
231
- id: _vm.id,
232
- name: _vm.name,
233
- "true-value": _vm.activeValue,
234
- "false-value": _vm.inactiveValue,
235
- disabled: _vm.switchDisabled
236
- },
237
- on: {
238
- change: _vm.handleChange,
239
- keydown: function($event) {
240
- if (
241
- !("button" in $event) &&
242
- _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
243
- ) {
244
- return null
245
- }
246
- return _vm.switchValue($event)
247
- }
248
- }
249
- }),
250
- _vm.inactiveIconClass || _vm.inactiveText
251
- ? _c(
252
- "span",
253
- {
254
- class: [
255
- "el-switch__label",
256
- "el-switch__label--left",
257
- _vm.inactiveIconClass ? "el-switch__label--left-icon" : "",
258
- _vm.inactiveText ? "el-switch__label--left-text" : "",
259
- !_vm.checked ? "is-active" : ""
260
- ]
261
- },
262
- [
263
- _vm.inactiveIconClass
264
- ? _c("i", { class: [_vm.inactiveIconClass] })
265
- : _vm._e(),
266
- !_vm.inactiveIconClass && _vm.inactiveText
267
- ? _c("span", { attrs: { "aria-hidden": _vm.checked } }, [
268
- _vm._v(_vm._s(_vm.inactiveText))
269
- ])
270
- : _vm._e()
271
- ]
272
- )
273
- : _vm._e(),
274
- _c("span", {
275
- ref: "core",
276
- staticClass: "el-switch__core",
277
- style: { width: _vm.coreWidth > 0 ? _vm.coreWidth + "px" : "" }
278
- }),
279
- _vm.activeIconClass || _vm.activeText
280
- ? _c(
281
- "span",
282
- {
283
- class: [
284
- "el-switch__label",
285
- "el-switch__label--right",
286
- _vm.activeIconClass ? "el-switch__label--right-icon" : "",
287
- _vm.activeText ? "el-switch__label--right-text" : "",
288
- _vm.checked ? "is-active" : ""
289
- ]
290
- },
291
- [
292
- _vm.activeIconClass
293
- ? _c("i", { class: [_vm.activeIconClass] })
294
- : _vm._e(),
295
- !_vm.activeIconClass && _vm.activeText
296
- ? _c("span", { attrs: { "aria-hidden": !_vm.checked } }, [
297
- _vm._v(_vm._s(_vm.activeText))
298
- ])
299
- : _vm._e()
300
- ]
301
- )
302
- : _vm._e()
303
- ]
304
- )
305
- }
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/switch/src/component.vue?vue&type=template&id=041a9162
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-switch",class:[ _vm.size ? 'el-switch--' + _vm.size : '', _vm.type ? 'el-switch--' + _vm.type : '', {'is-disabled': _vm.switchDisabled}, {'is-checked': _vm.checked} ],attrs:{"role":"switch","aria-checked":_vm.checked,"aria-disabled":_vm.switchDisabled},on:{"click":function($event){$event.preventDefault();return _vm.switchValue($event)}}},[_c('input',{ref:"input",staticClass:"el-switch__input",attrs:{"type":"checkbox","id":_vm.id,"name":_vm.name,"true-value":_vm.activeValue,"false-value":_vm.inactiveValue,"disabled":_vm.switchDisabled},on:{"change":_vm.handleChange,"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.switchValue($event)}}}),(_vm.inactiveIconClass || _vm.inactiveText)?_c('span',{class:['el-switch__label', 'el-switch__label--left', _vm.inactiveIconClass ? 'el-switch__label--left-icon' : '', _vm.inactiveText ? 'el-switch__label--left-text' : '', !_vm.checked ? 'is-active' : '']},[(_vm.inactiveIconClass)?_c('i',{class:[_vm.inactiveIconClass]}):_vm._e(),(!_vm.inactiveIconClass && _vm.inactiveText)?_c('span',{attrs:{"aria-hidden":_vm.checked}},[_vm._v(_vm._s(_vm.inactiveText))]):_vm._e()]):_vm._e(),_c('span',{ref:"core",staticClass:"el-switch__core",style:({ 'width': _vm.coreWidth > 0 ? _vm.coreWidth + 'px' : '' })}),(_vm.activeIconClass || _vm.activeText)?_c('span',{class:['el-switch__label', 'el-switch__label--right', _vm.activeIconClass ? 'el-switch__label--right-icon' : '', _vm.activeText ? 'el-switch__label--right-text' : '', _vm.checked ? 'is-active' : '']},[(_vm.activeIconClass)?_c('i',{class:[_vm.activeIconClass]}):_vm._e(),(!_vm.activeIconClass && _vm.activeText)?_c('span',{attrs:{"aria-hidden":!_vm.checked}},[_vm._v(_vm._s(_vm.activeText))]):_vm._e()]):_vm._e()])}
306
204
  var staticRenderFns = []
307
205
  render._withStripped = true
308
206
 
309
-
310
- // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=template&id=2dcd8fbb&
207
+ // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=template&id=041a9162
311
208
 
312
209
  // EXTERNAL MODULE: external "iov-design/lib/mixins/emitter"
313
210
  var emitter_ = __webpack_require__(4);
@@ -321,7 +218,7 @@ var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
321
218
  var migrating_ = __webpack_require__(11);
322
219
  var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
323
220
 
324
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/switch/src/component.vue?vue&type=script&lang=js&
221
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/switch/src/component.vue?vue&type=script&lang=js
325
222
  //
326
223
  //
327
224
  //
@@ -364,7 +261,7 @@ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
364
261
 
365
262
 
366
263
 
367
- /* harmony default export */ var componentvue_type_script_lang_js_ = ({
264
+ /* harmony default export */ var componentvue_type_script_lang_js = ({
368
265
  name: 'ElSwitch',
369
266
  mixins: [focus_default()('input'), migrating_default.a, emitter_default.a],
370
267
  inject: {
@@ -506,8 +403,8 @@ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
506
403
  this.$refs.input.checked = this.checked;
507
404
  }
508
405
  });
509
- // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=script&lang=js&
510
- /* harmony default export */ var src_componentvue_type_script_lang_js_ = (componentvue_type_script_lang_js_);
406
+ // CONCATENATED MODULE: ./packages/switch/src/component.vue?vue&type=script&lang=js
407
+ /* harmony default export */ var src_componentvue_type_script_lang_js = (componentvue_type_script_lang_js);
511
408
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
512
409
  var componentNormalizer = __webpack_require__(0);
513
410
 
@@ -520,7 +417,7 @@ var componentNormalizer = __webpack_require__(0);
520
417
  /* normalize component */
521
418
 
522
419
  var component = Object(componentNormalizer["a" /* default */])(
523
- src_componentvue_type_script_lang_js_,
420
+ src_componentvue_type_script_lang_js,
524
421
  render,
525
422
  staticRenderFns,
526
423
  false,
@@ -530,9 +427,6 @@ var component = Object(componentNormalizer["a" /* default */])(
530
427
 
531
428
  )
532
429
 
533
- /* hot reload */
534
- if (false) { var api; }
535
- component.options.__file = "packages/switch/src/component.vue"
536
430
  /* harmony default export */ var src_component = (component.exports);
537
431
  // CONCATENATED MODULE: ./packages/switch/index.js
538
432
 
package/lib/tab-pane.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,45 +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/tabs/src/tab-pane.vue?vue&type=template&id=9145a070&
199
- var render = function() {
200
- var _vm = this
201
- var _h = _vm.$createElement
202
- var _c = _vm._self._c || _h
203
- return !_vm.lazy || _vm.loaded || _vm.active
204
- ? _c(
205
- "div",
206
- {
207
- directives: [
208
- {
209
- name: "show",
210
- rawName: "v-show",
211
- value: _vm.active,
212
- expression: "active"
213
- }
214
- ],
215
- staticClass: "el-tab-pane",
216
- attrs: {
217
- role: "tabpanel",
218
- "aria-hidden": !_vm.active,
219
- id: "pane-" + _vm.paneName,
220
- "aria-labelledby": "tab-" + _vm.paneName
221
- }
222
- },
223
- [_vm._t("default")],
224
- 2
225
- )
226
- : _vm._e()
227
- }
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-pane.vue?vue&type=template&id=141dd724
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return ((!_vm.lazy || _vm.loaded) || _vm.active)?_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.active),expression:"active"}],staticClass:"el-tab-pane",attrs:{"role":"tabpanel","aria-hidden":!_vm.active,"id":("pane-" + _vm.paneName),"aria-labelledby":("tab-" + _vm.paneName)}},[_vm._t("default")],2):_vm._e()}
228
204
  var staticRenderFns = []
229
205
  render._withStripped = true
230
206
 
207
+ // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue?vue&type=template&id=141dd724
231
208
 
232
- // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue?vue&type=template&id=9145a070&
233
-
234
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-pane.vue?vue&type=script&lang=js&
209
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tabs/src/tab-pane.vue?vue&type=script&lang=js
235
210
  //
236
211
  //
237
212
  //
@@ -246,7 +221,7 @@ render._withStripped = true
246
221
  //
247
222
  //
248
223
 
249
- /* harmony default export */ var tab_panevue_type_script_lang_js_ = ({
224
+ /* harmony default export */ var tab_panevue_type_script_lang_js = ({
250
225
  name: 'ElTabPane',
251
226
 
252
227
  componentName: 'ElTabPane',
@@ -288,8 +263,8 @@ render._withStripped = true
288
263
  this.$parent.$emit('tab-nav-update');
289
264
  }
290
265
  });
291
- // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue?vue&type=script&lang=js&
292
- /* harmony default export */ var src_tab_panevue_type_script_lang_js_ = (tab_panevue_type_script_lang_js_);
266
+ // CONCATENATED MODULE: ./packages/tabs/src/tab-pane.vue?vue&type=script&lang=js
267
+ /* harmony default export */ var src_tab_panevue_type_script_lang_js = (tab_panevue_type_script_lang_js);
293
268
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
294
269
  var componentNormalizer = __webpack_require__(0);
295
270
 
@@ -302,7 +277,7 @@ var componentNormalizer = __webpack_require__(0);
302
277
  /* normalize component */
303
278
 
304
279
  var component = Object(componentNormalizer["a" /* default */])(
305
- src_tab_panevue_type_script_lang_js_,
280
+ src_tab_panevue_type_script_lang_js,
306
281
  render,
307
282
  staticRenderFns,
308
283
  false,
@@ -312,9 +287,6 @@ var component = Object(componentNormalizer["a" /* default */])(
312
287
 
313
288
  )
314
289
 
315
- /* hot reload */
316
- if (false) { var api; }
317
- component.options.__file = "packages/tabs/src/tab-pane.vue"
318
290
  /* harmony default export */ var tab_pane = (component.exports);
319
291
  // CONCATENATED MODULE: ./packages/tab-pane/index.js
320
292
 
@@ -91,6 +91,7 @@ module.exports =
91
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
92
 
93
93
  "use strict";
94
+ // ESM COMPAT FLAG
94
95
  __webpack_require__.r(__webpack_exports__);
95
96
 
96
97
  // EXTERNAL MODULE: external "iov-design/lib/utils/util"