Vue——element ui 的table無法使用全局過濾器


<el-table-column
          prop="createdate"
          :formatter="dateFormat"		//這個過濾器只能使用局部過濾器
          label="日期"
          sortable
          width="180">
        </el-table-column>

如果要使用全局過濾器

<el-table-column
label="更新日期"
sortable
    >
    <!--需要在行內部自定義查插槽使用全局過濾器-->
    <template slot-scope="scope">
        <p>{{scope.row.up_date|dateFormat}}</p>		
	</template>
</el-table-column>


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM