element-ui table動態數據處理

//xxx.vue
            </el-table-column>
<el-table-column
prop="username"
label="所屬商務" width="80">
</el-table-column>
<el-table-column
prop=""
label="最後跟進時間">
<span
:class="scope.row.tip?'redfont':''"//設置樣式
slot-scope="scope">
{{scope.row.visittime | timeFormat}} //數據過濾
</span>
</el-table-column>
           

         //main.js 全局註冊所有過濾器           
            import * as filters from '@/common/filters/filters'
            Object.keys(filters).forEach(key=>{
            Vue.filter(key,filters[key]);
            })



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章