elemnt的Table 表格使用注意事项
生活随笔
收集整理的這篇文章主要介紹了
elemnt的Table 表格使用注意事项
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
elemnt的Table 表格使用注意事項(xiàng)
1、修改數(shù)據(jù)
ps:此時(shí)的scope.row是一個(gè)對(duì)象,若直接修改會(huì)導(dǎo)致頁(yè)面上的數(shù)據(jù)同時(shí)修改,建議使用 JSON.parse(JSON.stringify(data))對(duì)數(shù)據(jù)處理之后再進(jìn)行處理,
2、對(duì)使用formatter格式化表格中的內(nèi)容時(shí)
建議使用此類方法,可以確保傳入數(shù)據(jù)正確,不用后臺(tái)再進(jìn)行處理
<el-table-column align="center" label="日期" min-width="10%"><template slot-scope="scope"><span>{{filterDate(scope.row.updateTime)}}</span></template> </el-table-column>總結(jié)
以上是生活随笔為你收集整理的elemnt的Table 表格使用注意事项的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Android编译libjpeg-tur
- 下一篇: 史上最好记的神经网络结构速记表(上)