<el-table
:data="ruleForm"
header-row-class-name="customcss"
size="small"
style="width: 100%">
<el-table-column
label="证件类型"
width="150">
<template slot="header" slot-scope="scope">
<span class="required">*</span>证件类型
</template>
<template slot-scope="{row,column}" >
<el-select
v-model="row.certType" clearable size="medium" :disabled="disabled">
<el-option
v-for="item in dictsAll['certType']"
:key="item.key"
:label="item.value"
:value="item.key">
</el-option>
</el-select>
</template>
</el-table-column>
</el-table>
<template slot="header" slot-scope="scope">
<span class="required">*</span>证件类型
</template>
.required{
color:red;
font-size:14px;
margin-right:3px;
}
表头必填用slot=“header” 给* 赋予样式
2万+

被折叠的 条评论
为什么被折叠?



