本文主要是介绍v-html处理formatter数据换行问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<el-table-column class="more-time-td" prop="memberValidityTime" label="充电起始时间" align="center" min-width="180"><template slot-scope="scope"><div class="style-overflow text-style" v-html="startTimeTurn_formatter(scope.row.startTime)"></div><div class="style-overflow text-style" v-html="endTiemTurn_formatter(scope.row.endTime)"></div></template></el-table-column>
v-html="startTimeTurn_formatter(scope.row.startTime)"
/**起始时间转换 */startTimeTurn_formatter(startTime){if(startTime){return timestampToTime(startTime);}els
这篇关于v-html处理formatter数据换行问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!