Browse Source
docs: update tag (#42303)
* Update index.zh-CN.md to document tagRender
* fix: fix lint
* docs: update tag
pull/42323/head
lijianan
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
components/cascader/index.zh-CN.md
-
components/color-picker/index.zh-CN.md
|
|
@ -56,7 +56,7 @@ demo: |
|
|
|
| defaultValue | 默认的选中项 | string\[] \| number\[] | \[] | | |
|
|
|
| disabled | 禁用 | boolean | false | | |
|
|
|
| displayRender | 选择后展示的渲染函数 | (label, selectedOptions) => ReactNode | label => label.join(`/`) | `multiple`: 4.18.0 | |
|
|
|
| tagRender | 自定义 tag 内容 render,仅在多选时生效 | ({ label: string, onClose: function, value: string }) => ReactNode | - | | |
|
|
|
| tagRender | 自定义 tag 内容 render,仅在多选时生效 | ({ label: string, onClose: function, value: string }) => ReactNode | - | | |
|
|
|
| popupClassName | 自定义浮层类名 | string | - | 4.23.0 | |
|
|
|
| dropdownRender | 自定义下拉框内容 | (menus: ReactNode) => ReactNode | - | 4.4.0 | |
|
|
|
| expandIcon | 自定义次级菜单展开图标 | ReactNode | - | 4.4.0 | |
|
|
|
|
|
@ -4,7 +4,7 @@ subtitle: 颜色选择器 |
|
|
|
title: ColorPicker |
|
|
|
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*PpY4RYNM8UcAAAAAAAAAAAAADrJ8AQ/original |
|
|
|
coverDark: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*EHL-QYJofZsAAAAAAAAAAAAADrJ8AQ/original |
|
|
|
tag: 新 |
|
|
|
tag: New |
|
|
|
demo: |
|
|
|
cols: 2 |
|
|
|
group: |
|
|
|