Skip to content

Commit

Permalink
fix(tabs): delete destroyOnHide attribute (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarmywang authored Sep 10, 2024
1 parent 4de50f4 commit 794bd41
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 52 deletions.
Binary file modified db/TDesign.db
Binary file not shown.
5 changes: 0 additions & 5 deletions packages/products/tdesign-miniprogram/src/tab-panel/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ const props: TdTabPanelProps = {
badgeProps: {
type: Object,
},
/** 【实现有误,暂不支持】选项卡内容隐藏时是否销毁 */
destroyOnHide: {
type: Boolean,
value: true,
},
/** 是否禁用当前选项卡 */
disabled: {
type: Boolean,
Expand Down
8 changes: 0 additions & 8 deletions packages/products/tdesign-miniprogram/src/tab-panel/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ export interface TdTabPanelProps {
type: ObjectConstructor;
value?: object;
};
/**
* 【实现有误,暂不支持】选项卡内容隐藏时是否销毁
* @default true
*/
destroyOnHide?: {
type: BooleanConstructor;
value?: boolean;
};
/**
* 是否禁用当前选项卡
* @default false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ name | params | description
change | `(value: TabValue, label: string)` | \-
click | `(value: TabValue, label: string)` | \-
scroll | `(scrollTop: number, isFixed: boolean)` | \-

### Tabs External Classes

className | Description
Expand All @@ -45,7 +46,6 @@ name | type | default | description | required
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
badge-props | Object | - | \- | N
destroy-on-hide | Boolean | true | \- | N
disabled | Boolean | false | \- | N
icon | String / Object | - | \- | N
label | String | - | \- | N
Expand Down
2 changes: 1 addition & 1 deletion packages/products/tdesign-miniprogram/src/tabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ default-value | String / Number | undefined | 激活的选项卡值。非受控
change | `(value: TabValue, label: string)` | 激活的选项卡发生变化时触发
click | `(value: TabValue, label: string)` | 点击选项卡时触发
scroll | `(scrollTop: number, isFixed: boolean)` | 页面滚动时触发

### Tabs External Classes

类名 | 描述
Expand All @@ -45,7 +46,6 @@ t-class-track | 滚动条样式类
style | Object | - | 样式 | N
custom-style | Object | - | 样式,一般用于开启虚拟化组件节点场景 | N
badge-props | Object | - | 透传至 Badge 组件 | N
destroy-on-hide | Boolean | true | 【实现有误,暂不支持】选项卡内容隐藏时是否销毁 | N
disabled | Boolean | false | 是否禁用当前选项卡 | N
icon | String / Object | - | `1.0.0-rc.1`。图标,传对象则透传至 Icon | N
label | String | - | 选项卡名称 | N
Expand Down
37 changes: 0 additions & 37 deletions packages/scripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -111271,43 +111271,6 @@
"Boolean"
]
},
{
"id": 1712917003,
"platform_framework": [
"64"
],
"component": "TabPanel",
"field_category": 1,
"field_name": "destroyOnHide",
"field_type": [
"4"
],
"field_default_value": "true",
"field_enum": "",
"field_desc_zh": "【实现有误,暂不支持】选项卡内容隐藏时是否销毁",
"field_desc_en": null,
"field_required": 0,
"event_input": "",
"create_time": "2024-04-12 10:16:43",
"update_time": "2024-04-12 10:16:43",
"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": [
"Boolean"
]
},
{
"id": 163,
"platform_framework": [
Expand Down

0 comments on commit 794bd41

Please sign in to comment.