Skip to content

Commit

Permalink
feat: dropdownItem visible
Browse files Browse the repository at this point in the history
  • Loading branch information
ccccpj authored and anlyyao committed Sep 7, 2023
1 parent 3d75924 commit c018807
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
Binary file modified db/TDesign.db
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ optionsColumns | String / Number | 1 | \- | N
optionsLayout | String | columns | `deprecated` | N
value | String / Number | undefined | `v-model` and `v-model:value` is supported。Typescript:`DropdownValue ` `type DropdownValue = string \| number;`[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/dropdown-menu/type.ts) | N
defaultValue | String / Number | undefined | uncontrolled property。Typescript:`DropdownValue ` `type DropdownValue = string \| number;`[see more ts definition](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/dropdown-menu/type.ts) | N
visible | Boolean | false | \- | N
onChange | Function | | Typescript:`(value: DropdownValue) => void`<br/> | N
onConfirm | Function | | Typescript:`(value: DropdownValue) => void`<br/> | N
onReset | Function | | Typescript:`(value: DropdownValue) => void`<br/> | N
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ optionsColumns | String / Number | 1 | 选项分栏(1-3) | N
optionsLayout | String | columns | 已废弃。选项排列;不再支持 tree 布局,可与 treeSelect 配合使用 | N
value | String / Number | undefined | 选中值。支持语法糖 `v-model``v-model:value`。TS 类型:`DropdownValue ` `type DropdownValue = string \| number;`[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/dropdown-menu/type.ts) | N
defaultValue | String / Number | undefined | 选中值。非受控属性。TS 类型:`DropdownValue ` `type DropdownValue = string \| number;`[详细类型定义](https://github.com/Tencent/tdesign-mobile-vue/tree/develop/src/dropdown-menu/type.ts) | N
visible | Boolean | false | 是否展示 | N
onChange | Function | | TS 类型:`(value: DropdownValue) => void`<br/>值改变时触发 | N
onConfirm | Function | | TS 类型:`(value: DropdownValue) => void`<br/>点击确认时触发 | N
onReset | Function | | TS 类型:`(value: DropdownValue) => void`<br/>点击重置时触发 | N
Expand Down
43 changes: 42 additions & 1 deletion packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -38670,6 +38670,47 @@
"Number"
]
},
{
"id": 3539,
"platform_framework": [
"8",
"16",
"32"
],
"component": "DropdownItem",
"field_category": 1,
"field_name": "visible",
"field_type": [
"4"
],
"field_default_value": "false",
"field_enum": "",
"field_desc_zh": "是否展示",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2023-05-30 05:35:54",
"update_time": "2023-05-30 05:35:54",
"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": [
"Vue(Mobile)",
"React(Mobile)",
"Angular(Mobile)"
],
"field_type_text": [
"Boolean"
]
},
{
"id": 2304,
"platform_framework": [
Expand Down Expand Up @@ -74885,7 +74926,7 @@
]
},
{
"id": 3539,
"id": 3540,
"platform_framework": [
"8",
"16",
Expand Down

0 comments on commit c018807

Please sign in to comment.