iov-design 2.15.59 → 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 (250) 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 +1638 -11132
  47. package/lib/link.js +33 -55
  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 +22 -21
  87. package/lib/theme-chalk/base.css +1 -1
  88. package/lib/theme-chalk/button.css +1 -1
  89. package/lib/theme-chalk/calendar.css +1 -1
  90. package/lib/theme-chalk/cascader-panel.css +1 -1
  91. package/lib/theme-chalk/cascader.css +1 -1
  92. package/lib/theme-chalk/dropdown.css +1 -1
  93. package/lib/theme-chalk/index.css +1 -1
  94. package/lib/theme-chalk/iovfont.css +1 -1
  95. package/lib/theme-chalk/link.css +1 -1
  96. package/lib/theme-chalk/message-box.css +1 -1
  97. package/lib/theme-chalk/pagination.css +1 -1
  98. package/lib/theme-chalk/radio.css +1 -1
  99. package/lib/theme-chalk/select.css +1 -1
  100. package/lib/theme-chalk/table-column.css +1 -1
  101. package/lib/theme-chalk/table.css +1 -1
  102. package/lib/theme-chalk/tabs.css +1 -1
  103. package/lib/theme-chalk/tag.css +1 -1
  104. package/lib/theme-chalk/transfer.css +1 -1
  105. package/lib/time-picker.js +58 -820
  106. package/lib/time-select.js +42 -303
  107. package/lib/timeline-item.js +29 -75
  108. package/lib/timeline.js +21 -20
  109. package/lib/tooltip.js +1 -0
  110. package/lib/transfer.js +36 -299
  111. package/lib/tree.js +54 -243
  112. package/lib/upload.js +86 -654
  113. package/lib/utils/clickoutside.js +7 -7
  114. package/lib/utils/vue-popper.js +7 -7
  115. package/package.json +154 -154
  116. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  117. package/packages/autocomplete/src/autocomplete.vue +285 -285
  118. package/packages/button/src/button.vue +90 -90
  119. package/packages/calendar/src/date-table.vue +200 -200
  120. package/packages/calendar/src/main.vue +280 -280
  121. package/packages/carousel/src/item.vue +138 -138
  122. package/packages/carousel/src/main.vue +315 -315
  123. package/packages/cascader/src/cascader.vue +776 -776
  124. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  125. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  126. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  127. package/packages/cascader-panel/src/node.js +166 -166
  128. package/packages/cascader-panel/src/store.js +58 -58
  129. package/packages/checkbox/src/checkbox-button.vue +199 -199
  130. package/packages/checkbox/src/checkbox-group.vue +49 -49
  131. package/packages/checkbox/src/checkbox.vue +225 -225
  132. package/packages/collapse/src/collapse-item.vue +114 -114
  133. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  134. package/packages/color-picker/src/main.vue +188 -188
  135. package/packages/date-picker/src/basic/date-table.vue +441 -441
  136. package/packages/date-picker/src/basic/month-table.vue +269 -269
  137. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  138. package/packages/date-picker/src/basic/year-table.vue +111 -111
  139. package/packages/date-picker/src/panel/date-range.vue +680 -680
  140. package/packages/date-picker/src/panel/date.vue +609 -609
  141. package/packages/date-picker/src/panel/month-range.vue +289 -289
  142. package/packages/date-picker/src/panel/time-range.vue +248 -248
  143. package/packages/date-picker/src/panel/time-select.vue +178 -178
  144. package/packages/date-picker/src/panel/time.vue +186 -186
  145. package/packages/date-picker/src/picker.vue +967 -967
  146. package/packages/descriptions/src/index.js +180 -180
  147. package/packages/dialog/src/component.vue +262 -262
  148. package/packages/drawer/src/main.vue +205 -205
  149. package/packages/dropdown/src/dropdown-item.vue +37 -37
  150. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  151. package/packages/dropdown/src/dropdown.vue +293 -293
  152. package/packages/empty/src/index.vue +70 -70
  153. package/packages/form/src/form-item.vue +324 -324
  154. package/packages/form/src/form.vue +182 -182
  155. package/packages/image/src/image-viewer.vue +330 -330
  156. package/packages/image/src/main.vue +249 -249
  157. package/packages/infinite-scroll/src/main.js +150 -150
  158. package/packages/input/src/input.vue +477 -477
  159. package/packages/input-number/src/input-number.vue +283 -283
  160. package/packages/link/src/main.vue +2 -0
  161. package/packages/loading/src/directive.js +133 -133
  162. package/packages/loading/src/index.js +106 -106
  163. package/packages/menu/src/menu-item.vue +112 -112
  164. package/packages/menu/src/menu.vue +325 -325
  165. package/packages/menu/src/submenu.vue +349 -349
  166. package/packages/message/src/main.js +91 -91
  167. package/packages/message-box/src/main.js +216 -216
  168. package/packages/message-box/src/main.vue +333 -333
  169. package/packages/notification/src/main.js +94 -94
  170. package/packages/page-header/src/main.vue +30 -30
  171. package/packages/pagination/src/pagination.js +390 -390
  172. package/packages/popconfirm/src/main.vue +104 -104
  173. package/packages/popover/src/main.vue +239 -239
  174. package/packages/radio/src/radio-button.vue +115 -115
  175. package/packages/radio/src/radio-group.vue +115 -115
  176. package/packages/radio/src/radio.vue +148 -148
  177. package/packages/rate/src/main.vue +348 -348
  178. package/packages/scrollbar/src/bar.js +92 -92
  179. package/packages/scrollbar/src/main.js +130 -130
  180. package/packages/select/src/option-group.vue +60 -60
  181. package/packages/select/src/option.vue +171 -171
  182. package/packages/select/src/select-dropdown.vue +74 -74
  183. package/packages/select/src/select.vue +979 -979
  184. package/packages/slider/src/button.vue +238 -238
  185. package/packages/slider/src/main.vue +427 -427
  186. package/packages/statistic/src/main.vue +204 -204
  187. package/packages/steps/src/steps.vue +68 -68
  188. package/packages/switch/src/component.vue +182 -182
  189. package/packages/table/src/config.js +153 -153
  190. package/packages/table/src/filter-panel.vue +194 -194
  191. package/packages/table/src/store/current.js +76 -76
  192. package/packages/table/src/store/helper.js +41 -41
  193. package/packages/table/src/store/index.js +147 -147
  194. package/packages/table/src/store/watcher.js +502 -502
  195. package/packages/table/src/table-body.js +469 -469
  196. package/packages/table/src/table-column.js +328 -328
  197. package/packages/table/src/table-header.js +571 -571
  198. package/packages/table/src/table-layout.js +249 -249
  199. package/packages/table/src/table-row.js +101 -101
  200. package/packages/table/src/table.vue +740 -740
  201. package/packages/table/src/util.js +273 -273
  202. package/packages/tabs/src/tab-bar.vue +57 -57
  203. package/packages/tabs/src/tab-nav.vue +294 -294
  204. package/packages/tabs/src/tabs.vue +201 -201
  205. package/packages/tag/src/tag.vue +1 -1
  206. package/packages/theme-chalk/src/button.scss +416 -416
  207. package/packages/theme-chalk/src/cascader.scss +252 -252
  208. package/packages/theme-chalk/src/checkbox.scss +419 -419
  209. package/packages/theme-chalk/src/common/var.scss +795 -816
  210. package/packages/theme-chalk/src/form.scss +201 -201
  211. package/packages/theme-chalk/src/input.scss +591 -591
  212. package/packages/theme-chalk/src/iovfont.scss +803 -784
  213. package/packages/theme-chalk/src/link.scss +36 -19
  214. package/packages/theme-chalk/src/message-box.scss +207 -207
  215. package/packages/theme-chalk/src/mixins/_button.scss +136 -136
  216. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  217. package/packages/theme-chalk/src/radio-button.scss +115 -115
  218. package/packages/theme-chalk/src/radio.scss +1 -0
  219. package/packages/theme-chalk/src/select.scss +270 -270
  220. package/packages/theme-chalk/src/table.scss +1 -2
  221. package/packages/theme-chalk/src/tabs.scss +755 -750
  222. package/packages/theme-chalk/src/tag.scss +4 -4
  223. package/packages/theme-chalk/src/upload.scss +568 -568
  224. package/packages/tooltip/src/main.js +242 -242
  225. package/packages/transfer/src/main.vue +231 -231
  226. package/packages/transfer/src/transfer-panel.vue +251 -251
  227. package/packages/tree/src/model/node.js +484 -484
  228. package/packages/tree/src/tree-node.vue +279 -279
  229. package/packages/tree/src/tree.vue +496 -496
  230. package/packages/upload/src/index.vue +420 -420
  231. package/packages/upload/src/upload-file.vue +98 -98
  232. package/packages/upload/src/upload-list.vue +115 -115
  233. package/packages/upload/src/upload-picture.vue +98 -98
  234. package/packages/upload/src/upload.vue +231 -231
  235. package/packages/upload/src/utils.js +31 -31
  236. package/src/directives/repeat-click.js +26 -26
  237. package/src/index.js +259 -259
  238. package/src/locale/format.js +46 -46
  239. package/src/locale/index.js +48 -48
  240. package/src/locale/lang/lo-LA.js +126 -126
  241. package/src/mixins/locale.js +9 -9
  242. package/src/mixins/migrating.js +54 -54
  243. package/src/transitions/collapse-transition.js +77 -77
  244. package/src/utils/clickoutside.js +76 -76
  245. package/src/utils/date-util.js +282 -282
  246. package/src/utils/popup/index.js +218 -218
  247. package/src/utils/popup/popup-manager.js +194 -194
  248. package/src/utils/util.js +245 -245
  249. package/src/utils/vdom.js +5 -5
  250. package/src/utils/vue-popper.js +198 -198
@@ -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
 
@@ -200,36 +203,21 @@ module.exports = require("iov-design/lib/mixins/emitter");
200
203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
201
204
 
202
205
  "use strict";
206
+ // ESM COMPAT FLAG
203
207
  __webpack_require__.r(__webpack_exports__);
204
208
 
205
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-group.vue?vue&type=template&id=818a704c&
206
- var render = function() {
207
- var _vm = this
208
- var _h = _vm.$createElement
209
- var _c = _vm._self._c || _h
210
- return _c(
211
- _vm._elTag,
212
- {
213
- tag: "component",
214
- staticClass: "el-radio-group",
215
- attrs: { role: "radiogroup" },
216
- on: { keydown: _vm.handleKeydown }
217
- },
218
- [_vm._t("default")],
219
- 2
220
- )
221
- }
209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-group.vue?vue&type=template&id=58075e2c
210
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm._elTag,{tag:"component",staticClass:"el-radio-group",attrs:{"role":"radiogroup"},on:{"keydown":_vm.handleKeydown}},[_vm._t("default")],2)}
222
211
  var staticRenderFns = []
223
212
  render._withStripped = true
224
213
 
225
-
226
- // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue?vue&type=template&id=818a704c&
214
+ // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue?vue&type=template&id=58075e2c
227
215
 
228
216
  // EXTERNAL MODULE: external "iov-design/lib/mixins/emitter"
229
217
  var emitter_ = __webpack_require__(4);
230
218
  var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
231
219
 
232
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-group.vue?vue&type=script&lang=js&
220
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio-group.vue?vue&type=script&lang=js
233
221
  //
234
222
  //
235
223
  //
@@ -249,7 +237,7 @@ var keyCode = Object.freeze({
249
237
  RIGHT: 39,
250
238
  DOWN: 40
251
239
  });
252
- /* harmony default export */ var radio_groupvue_type_script_lang_js_ = ({
240
+ /* harmony default export */ var radio_groupvue_type_script_lang_js = ({
253
241
  name: 'ElRadioGroup',
254
242
 
255
243
  componentName: 'ElRadioGroup',
@@ -349,8 +337,8 @@ var keyCode = Object.freeze({
349
337
  }
350
338
  }
351
339
  });
352
- // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue?vue&type=script&lang=js&
353
- /* harmony default export */ var src_radio_groupvue_type_script_lang_js_ = (radio_groupvue_type_script_lang_js_);
340
+ // CONCATENATED MODULE: ./packages/radio/src/radio-group.vue?vue&type=script&lang=js
341
+ /* harmony default export */ var src_radio_groupvue_type_script_lang_js = (radio_groupvue_type_script_lang_js);
354
342
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
355
343
  var componentNormalizer = __webpack_require__(0);
356
344
 
@@ -363,7 +351,7 @@ var componentNormalizer = __webpack_require__(0);
363
351
  /* normalize component */
364
352
 
365
353
  var component = Object(componentNormalizer["a" /* default */])(
366
- src_radio_groupvue_type_script_lang_js_,
354
+ src_radio_groupvue_type_script_lang_js,
367
355
  render,
368
356
  staticRenderFns,
369
357
  false,
@@ -373,9 +361,6 @@ var component = Object(componentNormalizer["a" /* default */])(
373
361
 
374
362
  )
375
363
 
376
- /* hot reload */
377
- if (false) { var api; }
378
- component.options.__file = "packages/radio/src/radio-group.vue"
379
364
  /* harmony default export */ var radio_group = (component.exports);
380
365
  // CONCATENATED MODULE: ./packages/radio-group/index.js
381
366
 
package/lib/radio.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
 
@@ -200,149 +203,33 @@ module.exports = require("iov-design/lib/mixins/emitter");
200
203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
201
204
 
202
205
  "use strict";
206
+ // ESM COMPAT FLAG
203
207
  __webpack_require__.r(__webpack_exports__);
204
208
 
205
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=template&id=69cd6268&
206
- var render = function() {
207
- var _vm = this
208
- var _h = _vm.$createElement
209
- var _c = _vm._self._c || _h
210
- return _c(
211
- "label",
212
- {
213
- staticClass: "el-radio",
214
- class: [
215
- _vm.radioSize ? "el-radio--" + _vm.radioSize : "",
216
- { "is-disabled": _vm.isDisabled },
217
- { "is-focus": _vm.focus },
218
- { "is-bordered": _vm.border },
219
- { "is-button": _vm.button || _vm.groupButton },
220
- { "is-checked": _vm.model === _vm.label },
221
- { "is-card": _vm.card },
222
- { "is-card-radio": _vm.card && _vm.radio }
223
- ],
224
- attrs: {
225
- role: "radio",
226
- "aria-checked": _vm.model === _vm.label,
227
- "aria-disabled": _vm.isDisabled,
228
- tabindex: _vm.tabIndex
229
- },
230
- on: {
231
- keydown: function($event) {
232
- if (
233
- !("button" in $event) &&
234
- _vm._k($event.keyCode, "space", 32, $event.key, [" ", "Spacebar"])
235
- ) {
236
- return null
237
- }
238
- $event.stopPropagation()
239
- $event.preventDefault()
240
- _vm.model = _vm.isDisabled ? _vm.model : _vm.label
241
- }
242
- }
243
- },
244
- [
245
- _c(
246
- "span",
247
- {
248
- staticClass: "el-radio__input",
249
- class: {
250
- "is-disabled": _vm.isDisabled,
251
- "is-checked": _vm.model === _vm.label
252
- },
253
- style: {
254
- display:
255
- _vm.border ||
256
- _vm.button ||
257
- _vm.groupButton ||
258
- (_vm.card && !_vm.radio)
259
- ? "none"
260
- : ""
261
- }
262
- },
263
- [
264
- _c("span", { staticClass: "el-radio__inner" }),
265
- _c("input", {
266
- directives: [
267
- {
268
- name: "model",
269
- rawName: "v-model",
270
- value: _vm.model,
271
- expression: "model"
272
- }
273
- ],
274
- ref: "radio",
275
- staticClass: "el-radio__original",
276
- attrs: {
277
- type: "radio",
278
- "aria-hidden": "true",
279
- name: _vm.name,
280
- disabled: _vm.isDisabled,
281
- tabindex: "-1",
282
- autocomplete: "off"
283
- },
284
- domProps: {
285
- value: _vm.label,
286
- checked: _vm._q(_vm.model, _vm.label)
287
- },
288
- on: {
289
- focus: function($event) {
290
- _vm.focus = true
291
- },
292
- blur: function($event) {
293
- _vm.focus = false
294
- },
295
- change: [
296
- function($event) {
297
- _vm.model = _vm.label
298
- },
299
- _vm.handleChange
300
- ]
301
- }
302
- })
303
- ]
304
- ),
305
- _c(
306
- "span",
307
- {
308
- staticClass: "el-radio__label",
309
- on: {
310
- keydown: function($event) {
311
- $event.stopPropagation()
312
- }
313
- }
314
- },
315
- [
316
- _c(
317
- "span",
318
- { staticClass: "el-radio__name" },
319
- [
320
- _vm._t("default"),
321
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
322
- ],
323
- 2
324
- ),
325
- _vm.desc
326
- ? _c("p", { staticClass: "el-radio__desc" }, [
327
- _vm._v(_vm._s(_vm.desc))
328
- ])
329
- : _vm._e()
330
- ]
331
- )
332
- ]
333
- )
334
- }
209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=template&id=f22b2710
210
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:"el-radio",class:[
211
+ _vm.radioSize ? 'el-radio--' + _vm.radioSize : '',
212
+ { 'is-disabled': _vm.isDisabled },
213
+ { 'is-focus': _vm.focus },
214
+ { 'is-bordered': _vm.border },
215
+ { 'is-button': _vm.button || _vm.groupButton },
216
+ { 'is-checked': _vm.model === _vm.label },
217
+ { 'is-card': _vm.card},
218
+ { 'is-card-radio': _vm.card && _vm.radio}
219
+ ],attrs:{"role":"radio","aria-checked":_vm.model === _vm.label,"aria-disabled":_vm.isDisabled,"tabindex":_vm.tabIndex},on:{"keydown":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"space",32,$event.key,[" ","Spacebar"])){ return null; }$event.stopPropagation();$event.preventDefault();_vm.model = _vm.isDisabled ? _vm.model : _vm.label}}},[_c('span',{staticClass:"el-radio__input",class:{
220
+ 'is-disabled': _vm.isDisabled,
221
+ 'is-checked': _vm.model === _vm.label
222
+ },style:({display: _vm.border || _vm.button || _vm.groupButton || _vm.card && !_vm.radio ? 'none' : ''})},[_c('span',{staticClass:"el-radio__inner"}),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.model),expression:"model"}],ref:"radio",staticClass:"el-radio__original",attrs:{"type":"radio","aria-hidden":"true","name":_vm.name,"disabled":_vm.isDisabled,"tabindex":"-1","autocomplete":"off"},domProps:{"value":_vm.label,"checked":_vm._q(_vm.model,_vm.label)},on:{"focus":function($event){_vm.focus = true},"blur":function($event){_vm.focus = false},"change":[function($event){_vm.model=_vm.label},_vm.handleChange]}})]),_c('span',{staticClass:"el-radio__label",on:{"keydown":function($event){$event.stopPropagation();}}},[_c('span',{staticClass:"el-radio__name"},[_vm._t("default"),(!_vm.$slots.default)?[_vm._v(_vm._s(_vm.label))]:_vm._e()],2),(_vm.desc)?_c('p',{staticClass:"el-radio__desc"},[_vm._v(_vm._s(_vm.desc))]):_vm._e()])])}
335
223
  var staticRenderFns = []
336
224
  render._withStripped = true
337
225
 
338
-
339
- // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=template&id=69cd6268&
226
+ // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=template&id=f22b2710
340
227
 
341
228
  // EXTERNAL MODULE: external "iov-design/lib/mixins/emitter"
342
229
  var emitter_ = __webpack_require__(4);
343
230
  var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
344
231
 
345
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=script&lang=js&
232
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/radio/src/radio.vue?vue&type=script&lang=js
346
233
  //
347
234
  //
348
235
  //
@@ -398,7 +285,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
398
285
 
399
286
 
400
287
 
401
- /* harmony default export */ var radiovue_type_script_lang_js_ = ({
288
+ /* harmony default export */ var radiovue_type_script_lang_js = ({
402
289
  name: 'ElRadio',
403
290
 
404
291
  mixins: [emitter_default.a],
@@ -490,8 +377,8 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
490
377
  }
491
378
  }
492
379
  });
493
- // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=script&lang=js&
494
- /* harmony default export */ var src_radiovue_type_script_lang_js_ = (radiovue_type_script_lang_js_);
380
+ // CONCATENATED MODULE: ./packages/radio/src/radio.vue?vue&type=script&lang=js
381
+ /* harmony default export */ var src_radiovue_type_script_lang_js = (radiovue_type_script_lang_js);
495
382
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
496
383
  var componentNormalizer = __webpack_require__(0);
497
384
 
@@ -504,7 +391,7 @@ var componentNormalizer = __webpack_require__(0);
504
391
  /* normalize component */
505
392
 
506
393
  var component = Object(componentNormalizer["a" /* default */])(
507
- src_radiovue_type_script_lang_js_,
394
+ src_radiovue_type_script_lang_js,
508
395
  render,
509
396
  staticRenderFns,
510
397
  false,
@@ -514,9 +401,6 @@ var component = Object(componentNormalizer["a" /* default */])(
514
401
 
515
402
  )
516
403
 
517
- /* hot reload */
518
- if (false) { var api; }
519
- component.options.__file = "packages/radio/src/radio.vue"
520
404
  /* harmony default export */ var src_radio = (component.exports);
521
405
  // CONCATENATED MODULE: ./packages/radio/index.js
522
406
 
package/lib/rate.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,85 +217,15 @@ module.exports = require("iov-design/lib/utils/dom");
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
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=template&id=ada57782&
220
- var render = function() {
221
- var _vm = this
222
- var _h = _vm.$createElement
223
- var _c = _vm._self._c || _h
224
- return _c(
225
- "div",
226
- {
227
- staticClass: "el-rate",
228
- attrs: {
229
- role: "slider",
230
- "aria-valuenow": _vm.currentValue,
231
- "aria-valuetext": _vm.text,
232
- "aria-valuemin": "0",
233
- "aria-valuemax": _vm.max,
234
- tabindex: "0"
235
- },
236
- on: { keydown: _vm.handleKey }
237
- },
238
- [
239
- _vm._l(_vm.max, function(item, key) {
240
- return _c(
241
- "span",
242
- {
243
- key: key,
244
- staticClass: "el-rate__item",
245
- style: { cursor: _vm.rateDisabled ? "auto" : "pointer" },
246
- on: {
247
- mousemove: function($event) {
248
- _vm.setCurrentValue(item, $event)
249
- },
250
- mouseleave: _vm.resetCurrentValue,
251
- click: function($event) {
252
- _vm.selectValue(item)
253
- }
254
- }
255
- },
256
- [
257
- _c(
258
- "i",
259
- {
260
- staticClass: "el-rate__icon",
261
- class: [
262
- _vm.classes[item - 1],
263
- { hover: _vm.hoverIndex === item }
264
- ],
265
- style: _vm.getIconStyle(item)
266
- },
267
- [
268
- _vm.showDecimalIcon(item)
269
- ? _c("i", {
270
- staticClass: "el-rate__decimal",
271
- class: _vm.decimalIconClass,
272
- style: _vm.decimalStyle
273
- })
274
- : _vm._e()
275
- ]
276
- )
277
- ]
278
- )
279
- }),
280
- _vm.showText || _vm.showScore
281
- ? _c(
282
- "span",
283
- { staticClass: "el-rate__text", style: { color: _vm.textColor } },
284
- [_vm._v(_vm._s(_vm.text))]
285
- )
286
- : _vm._e()
287
- ],
288
- 2
289
- )
290
- }
223
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=template&id=733d738f
224
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"el-rate",attrs:{"role":"slider","aria-valuenow":_vm.currentValue,"aria-valuetext":_vm.text,"aria-valuemin":"0","aria-valuemax":_vm.max,"tabindex":"0"},on:{"keydown":_vm.handleKey}},[_vm._l((_vm.max),function(item,key){return _c('span',{key:key,staticClass:"el-rate__item",style:({ cursor: _vm.rateDisabled ? 'auto' : 'pointer' }),on:{"mousemove":function($event){_vm.setCurrentValue(item, $event)},"mouseleave":_vm.resetCurrentValue,"click":function($event){_vm.selectValue(item)}}},[_c('i',{staticClass:"el-rate__icon",class:[_vm.classes[item - 1], { 'hover': _vm.hoverIndex === item }],style:(_vm.getIconStyle(item))},[(_vm.showDecimalIcon(item))?_c('i',{staticClass:"el-rate__decimal",class:_vm.decimalIconClass,style:(_vm.decimalStyle)}):_vm._e()])])}),(_vm.showText || _vm.showScore)?_c('span',{staticClass:"el-rate__text",style:({ color: _vm.textColor })},[_vm._v(_vm._s(_vm.text))]):_vm._e()],2)}
291
225
  var staticRenderFns = []
292
226
  render._withStripped = true
293
227
 
294
-
295
- // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=template&id=ada57782&
228
+ // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=template&id=733d738f
296
229
 
297
230
  // EXTERNAL MODULE: external "iov-design/lib/utils/dom"
298
231
  var dom_ = __webpack_require__(2);
@@ -304,7 +237,7 @@ var types_ = __webpack_require__(17);
304
237
  var migrating_ = __webpack_require__(11);
305
238
  var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
306
239
 
307
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=script&lang=js&
240
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/rate/src/main.vue?vue&type=script&lang=js
308
241
  //
309
242
  //
310
243
  //
@@ -344,7 +277,7 @@ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
344
277
 
345
278
 
346
279
 
347
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
280
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
348
281
  name: 'ElRate',
349
282
 
350
283
  mixins: [migrating_default.a],
@@ -626,8 +559,8 @@ var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
626
559
  }
627
560
  }
628
561
  });
629
- // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=script&lang=js&
630
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
562
+ // CONCATENATED MODULE: ./packages/rate/src/main.vue?vue&type=script&lang=js
563
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
631
564
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
632
565
  var componentNormalizer = __webpack_require__(0);
633
566
 
@@ -640,7 +573,7 @@ var componentNormalizer = __webpack_require__(0);
640
573
  /* normalize component */
641
574
 
642
575
  var component = Object(componentNormalizer["a" /* default */])(
643
- src_mainvue_type_script_lang_js_,
576
+ src_mainvue_type_script_lang_js,
644
577
  render,
645
578
  staticRenderFns,
646
579
  false,
@@ -650,9 +583,6 @@ var component = Object(componentNormalizer["a" /* default */])(
650
583
 
651
584
  )
652
585
 
653
- /* hot reload */
654
- if (false) { var api; }
655
- component.options.__file = "packages/rate/src/main.vue"
656
586
  /* harmony default export */ var main = (component.exports);
657
587
  // CONCATENATED MODULE: ./packages/rate/index.js
658
588