template的方法
HTML
属性:suffix
<el-form-item label="降水调整" prop="">
<el-input class="custom-input" v-model="form.rainAlign">
<template #suffix>
%
</template>
</el-input>
</el-form-item>
属性:suffix
<el-form-item label="降水调整" prop="">
<el-input class="custom-input" v-model="form.rainAlign">
<template #suffix>
%
</template>
</el-input>
</el-form-item>
图片
HTML
<el-form-item label="降水调整" prop="">
<el-input class="custom-input" v-model="form.rainAlign">
<template #append>
%
</template>
</el-input>
</el-form-item>
<el-form-item label="降水调整" prop="">
<el-input class="custom-input" v-model="form.rainAlign">
<template #append>
%
</template>
</el-input>
</el-form-item>
图片:
js
<el-table-column prop="mc" label="名称" align="center" >
<template #default="scope">
<span>{{scope.row.mc}}</span>
</template>
</el-table-column>
<el-table-column prop="mc" label="名称" align="center" >
<template #default="scope">
<span>{{scope.row.mc}}</span>
</template>
</el-table-column>