Commit 38ab08e0 authored by linhuandong's avatar linhuandong

描述支持html

parent 322033b5
......@@ -13,7 +13,10 @@
:is-auto-width="labelStyle && labelStyle.width === 'auto'"
:update-all="form.labelWidth === 'auto'">
<label :for="labelFor" class="el-form-item__label" :style="labelStyle" v-if="label || $slots.label">
<slot name="label">{{label + form.labelSuffix}}</slot>
<slot name="label">
<span v-html="label + form.labelSuffix">
</span>
</slot>
</label>
</label-wrap>
<div class="el-form-item__content" :style="contentStyle">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment