-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: accept deprecated layout mix in ProSettings for tsc #9599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,13 +11,14 @@ export type RenderSetting = { | |||||
| export type PureSettings = { | ||||||
| /** | ||||||
| * @name layout 的布局方式 | ||||||
| * @type 'side' | 'top' | ||||||
| * @type 'side' | 'top' | 'mix' | ||||||
| * | ||||||
| * @example 顶部菜单 layout="top" | ||||||
| * @example 侧边菜单 layout="side" | ||||||
| * @example 顶栏一级菜单 + 侧栏子菜单:layout="side" 且 `splitMenus`,或用 `headerMenuRender` 自定义顶栏菜单 | ||||||
| * @deprecated `layout="mix"` 仍会被接受,运行时按 `side` 处理,见 ProLayout 内注释 | ||||||
|
||||||
| * @deprecated `layout="mix"` 仍会被接受,运行时按 `side` 处理,见 ProLayout 内注释 | |
| * 注意:`layout="mix"` 已废弃,但仍会被接受,运行时按 `side` 处理,见 ProLayout 内注释 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the
@deprecatedtag on thelayoutproperty will cause IDEs to mark the entire property as deprecated (e.g., with a strikethrough), even when using valid values like'side'or'top'. Since only the'mix'value is deprecated, it is better to include this information in the description text instead of using the@deprecatedtag on the property itself.