fix: 修复Tabs组件文档和Editor中mountOnEnter默认值改为true和renderer保持一致 (#9920)

Co-authored-by: jinye <jinye@baidu.com>
This commit is contained in:
lmaomaoz 2024-03-29 15:45:44 +08:00 committed by GitHub
parent d9472e6736
commit 6a3998a03b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -857,7 +857,7 @@ order: 68
| tabs[x].tip | `string` | | `3.2.0及以上版本支持` Tab 提示,当开启 `showTip` 时生效,作为 Tab 在 hover 时的提示显示,可不配置,如不设置,`tabs[x].title` 作为提示显示 |
| tabs[x].closable | `boolean` | false | 是否支持删除,优先级高于组件的 `closable` |
| tabs[x].disabled | `boolean` | false | 是否禁用 |
| mountOnEnter | `boolean` | false | 只有在点中 tab 的时候才渲染 |
| mountOnEnter | `boolean` | true | 只有在点中 tab 的时候才渲染 |
| unmountOnExit | `boolean` | false | 切换 tab 的时候销毁 |
| addable | `boolean` | false | 是否支持新增 |
| addBtnText | `string` | 增加 | 新增按钮文案 |

View File

@ -48,7 +48,8 @@ export class TabsPlugin extends BasePlugin {
title: '选项卡2',
body: []
}
]
],
mountOnEnter: true
};
previewSchema = {
...this.scaffold