通过filter 过滤出搜索信息

/**
* @description 根据模板名称搜索模板
*/
private search() {
const SEARCH_TEMPLET = toArray(this.ALL_TEMPLET)
.filter((templet: any) => templet.title.includes(this.searchValue));
this.tableData = SEARCH_TEMPLET;
}
posted @ 2018-12-19 11:18  前端小厨-美食博主  阅读(421)  评论(0编辑  收藏  举报