Filters usage of table in elementui

2021-10-14 11:36作者:admin来源:未知>次阅读

Elementui table filters data filtering usage

During the project several days ago, The elementui table is used. The problem encountered at that time was to pass the status code returned from the background, Render it into text data according to judgment. Because I just took over the code, You can see the filters attribute, Feeling can be achieved with it. Finally found, In fact, filters are used for filtering, Let's learn this knowledge with you.


在这里插入图片描述 * what needs attention here is, If setting: filter multiple is false, He will automatically generate \

Next is our filtering method: Filter method 在这里插入图片描述 在这里插入图片描述 * value: filter criteria, row: row, as shown, Code means: Return the tag tag=% of this row 26#61;% 26#61; Filter by item

When you have the screening conditions and methods, Are you about to screen, Then start to filter the event filter change * you need to set the column key * this method is bound to 在这里插入图片描述 on the table El table, for example: 在这里插入图片描述 Finally, there is the formatter, By rewriting 在这里插入图片描述 在这里插入图片描述 the content, all the above code screenshots are not related, They are all cut separately for a certain point. Therefore, the method names are different, It's normal.



Powered by 世界滤芯新闻网 @2018 RSS地图 HTML地图

Copyright 365建站 © 2008-2021 华绿环保 版权所有