Skip to content

Commit

Permalink
feat(Cascader): placeholder attr of the miniprogram only has string type
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Feb 7, 2024
1 parent d97763c commit 4f9abfe
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 6 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name | type | default | description | required
close-btn | Boolean / Slot | true | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
keys | Object | - | Typescript:`KeysType`[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
options | Array | [] | Typescript:`Array<CascaderOption>` | N
placeholder | String / Slot | 选择选项 | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
placeholder | String | 选择选项 | \- | N
sub-titles | Array | [] | Typescript:`Array<string>` | N
theme | String | step | options: step/tab | N
title | String / Slot | - | [see more ts definition](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
close-btn | Boolean / Slot | true | 关闭按钮。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
keys | Object | - | 用来定义 value / label 在 `options` 中对应的字段别名。TS 类型:`KeysType`[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
options | Array | [] | 可选项数据源。TS 类型:`Array<CascaderOption>` | N
placeholder | String / Slot | 选择选项 | 未选中时的提示文案[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
placeholder | String | 选择选项 | 未选中时的提示文案 | N
sub-titles | Array | [] | 每级展示的次标题。TS 类型:`Array<string>` | N
theme | String | step | 展示风格。可选项:step/tab | N
title | String / Slot | - | 标题。[通用类型定义](https://github.com/Tencent/tdesign-miniprogram/blob/develop/src/common/common.ts) | N
Expand Down
43 changes: 39 additions & 4 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -18427,8 +18427,7 @@
"platform_framework": [
"8",
"16",
"32",
"64"
"32"
],
"component": "Cascader",
"field_category": 1,
Expand Down Expand Up @@ -18459,14 +18458,50 @@
"platform_framework_text": [
"Vue(Mobile)",
"React(Mobile)",
"Angular(Mobile)",
"Miniprogram"
"Angular(Mobile)"
],
"field_type_text": [
"String",
"TNode"
]
},
{
"id": 1707287481,
"platform_framework": [
"64"
],
"component": "Cascader",
"field_category": 1,
"field_name": "placeholder",
"field_type": [
"1"
],
"field_default_value": "选择选项",
"field_enum": "",
"field_desc_zh": "未选中时的提示文案",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2024-02-07 06:31:21",
"update_time": "2024-02-07 06:31:21",
"event_output": null,
"custom_field_type": null,
"syntactic_sugar": null,
"readonly": 1,
"html_attribute": 0,
"trigger_elements": "",
"deprecated": 0,
"version": "",
"test_description": null,
"support_default_value": 0,
"field_category_text": "Props",
"platform_framework_text": [
"Miniprogram"
],
"field_type_text": [
"String"
]
},
{
"id": 398,
"platform_framework": [
Expand Down

0 comments on commit 4f9abfe

Please sign in to comment.