cy-element-ui 1.0.19 → 1.0.20

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cy-element-ui",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "基于ElementUI开发的组件",
5
5
  "main": "lib/element-ui.common.js",
6
6
  "browser": {
@@ -15,7 +15,8 @@
15
15
  :update-all="form.labelWidth === 'auto'">
16
16
 
17
17
  <label :for="labelFor" class="el-form-item__label a666" :style="labelStyle" v-if="label || $slots.label">
18
- <slot name="label">{{ label + form.labelSuffix }}</slot>
18
+ <template v-if="$slots.label"><slot name="label"></slot></template>
19
+ <span v-else>{{ label + form.labelSuffix }}</span>
19
20
  </label>
20
21
  </label-wrap>
21
22
  <div class="el-form-item__content" :style="contentStyle">
package/src/index.js CHANGED
@@ -217,7 +217,7 @@ if (typeof window !== 'undefined' && window.Vue) {
217
217
  }
218
218
 
219
219
  export default {
220
- version: '1.0.18',
220
+ version: '1.0.20',
221
221
  locale: locale.use,
222
222
  i18n: locale.i18n,
223
223
  install,