我想根據(jù)關(guān)鍵字過濾,比如row.fundName == 'xxx',然后只顯示條件匹配的row。用filter怎么用?模板格式如下:<tbody>
<tr v-for="(row, index) in rows | filterId">
<td>{{ row.id }}</td>
<td>{{ row.fundCode }}</td>
<td>{{ row.fundName }}</td>
<td>{{ row.fundType }}</td>
<td>{{ row.netAssetValue }}</td>
<td>{{ row.daHighsAndLows }}</td>
<td><a href="#">詳情配置</a></td>
</tr></tbody>
Vue2.0 table怎么過濾?
幕布斯7119047
2018-09-14 11:09:36