网上搜到的都是加样式,经过一番调试,直接把内容放到span里也能达到效果,具体原理没时间深究,先用用再说。注:el-descriptions其他属性自行补上。
<el-descriptions>
<el-descriptions-item>
<template slot="label">label</template>
<span>{{content}}</span>
</el-descriptions-item>
</el-descriptions>