Commit 867eca350e5e0be222ff158e0e403b0622949ec1
1 parent
4eae353d
FormItem add slot label
FormItem add slot label
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/form/form-item.vue
1 | 1 | <template> |
2 | 2 | <div :class="classes"> |
3 | - <label :class="[prefixCls + '-label']" :style="labelStyles" v-if="label">{{ label }}</label> | |
3 | + <label :class="[prefixCls + '-label']" :style="labelStyles" v-if="label"><slot name="label">{{ label }}</slot></label> | |
4 | 4 | <div :class="[prefixCls + '-content']" :style="contentStyles"> |
5 | 5 | <slot></slot> |
6 | 6 | <div transition="fade" :class="[prefixCls + '-error-tip']" v-if="validateState === 'error' && showMessage && form.showMessage">{{ validateMessage }}</div> | ... | ... |