From 3761eddb4b67e5ec7bf53854346959bb62203d33 Mon Sep 17 00:00:00 2001 From: viruscamp Date: Mon, 5 Apr 2021 10:37:04 +0800 Subject: [PATCH] feat: add event update:filterDropdownVisible for Table.Column (#3893) It's same as event filterDropdownVisibleChange, but can be used with prop as ':filterDropdownVisible.sync="filterDropdownVisible"' for short. It's the base of other props in Table.Column to add event update:prop to use ':prop.sync' shorthand. Next events for other props will be update:filteredValue and update:sortDirections. --- antdv-demo/docs/table/demo/template.md | 51 +++++++++++++++++++++++++- antdv-demo/docs/table/index.en-US.md | 4 +- antdv-demo/docs/table/index.zh-CN.md | 4 +- components/table/index.jsx | 20 +++++++++- 4 files changed, 72 insertions(+), 7 deletions(-) diff --git a/antdv-demo/docs/table/demo/template.md b/antdv-demo/docs/table/demo/template.md index f139e83f5..b3668a69c 100644 --- a/antdv-demo/docs/table/demo/template.md +++ b/antdv-demo/docs/table/demo/template.md @@ -1,12 +1,16 @@ #### template 风格的 API 使用 template 风格的 API +“Last Name” 列展示了列筛选在 template 风格 API 中的通常用法。 +“Tags” 列展示了自定义列筛选以及“双向绑定”的 filterDropdownVisible 属性,其内部使用了事件 update:filterDropdownVisible。 > 这个只是一个描述 `columns` 的语法糖,所以你不能用其他组件去包裹 `Column` 和 `ColumnGroup`。 #### template style API Using template style API +The "Last Name" column shows the normal usage of column filter using template style API. +The "Tags" column shows a customized column search, and also the "two-way binding" of prop filterDropdownVisible, which use event update:filterDropdownVisible. > Since this is just a syntax sugar for the prop `columns`, so that you can't compose `Column` and `ColumnGroup` with other Components. @@ -18,11 +22,41 @@ Using template style API First Name - + - + +