mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
docs: use warning to replace info for deprecated info (#53443)
This commit is contained in:
@@ -108,7 +108,7 @@ Common props ref:[Common props](/docs/react/common-props)
|
||||
### Collapse.Panel
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title=Deprecated}
|
||||
:::warning{title=Deprecated}
|
||||
When using version >= 5.6.0, we prefer to configuring the panel by `items`.
|
||||
:::
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ const items: CollapseProps['items'] = [
|
||||
### Collapse.Panel
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title=已废弃}
|
||||
:::warning{title=已废弃}
|
||||
版本 >= 5.6.0 时请使用 items 方式配置面板。
|
||||
:::
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ A Drawer is a panel that is typically overlaid on top of a page and slides in fr
|
||||
Common props ref:[Common props](/docs/react/common-props)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title=Note}
|
||||
:::warning{title=Note}
|
||||
v5 uses `rootClassName` & `rootStyle` to configure the outermost element style, instead of `className` & `style` from v4. This is done to align the API with Modal.
|
||||
:::
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ demo:
|
||||
通用属性参考:[通用属性](/docs/react/common-props)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title=注意}
|
||||
:::warning{title=注意}
|
||||
v5 使用 `rootClassName` 与 `rootStyle` 来配置最外层元素样式。原 v4 `className` 与 `style` 改至配置 Drawer 窗体样式以和 Modal 对齐。
|
||||
:::
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ When you need to mention someone or something.
|
||||
### Usage upgrade <Badge>5.1.0+</Badge>
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title="Upgrade Tip"}
|
||||
:::warning{title="Upgrade Tip"}
|
||||
After version 5.1.0, we provide a simpler usage `<Mentions options={[...]} />` with better performance and potential of writing simpler code style in your applications.
|
||||
Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 6.0.
|
||||
:::
|
||||
|
||||
@@ -17,7 +17,7 @@ demo:
|
||||
### 用法升级 <Badge>5.1.0+</Badge>
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title="升级提示"}
|
||||
:::warning{title="升级提示"}
|
||||
在 5.1.0 版本后,我们提供了 `<Mentions options={[...]} />` 的简写方式,有更好的性能和更方便的数据组织方式,开发者不再需要自行拼接 JSX。
|
||||
同时我们废弃了原先的写法,你还是可以在 5.x 继续使用,但会在控制台看到警告,并会在 6.0 后移除。
|
||||
:::
|
||||
|
||||
@@ -18,7 +18,7 @@ demo:
|
||||
### Usage upgrade <Badge>5.11.0+</Badge>
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title="Upgrade Tip"}
|
||||
:::warning{title="Upgrade Tip"}
|
||||
After version 5.11.0, we provide a simpler usage `<Select options={[...]} />` with better performance and potential of writing simpler code style in your applications.
|
||||
Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 6.0.
|
||||
:::
|
||||
|
||||
@@ -19,7 +19,7 @@ demo:
|
||||
### 用法升级 <Badge>5.11.0+</Badge>
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title="升级提示"}
|
||||
:::warning{title="升级提示"}
|
||||
在 5.11.0 版本后,我们提供了 `<Select options={[...]} />` 的简写方式,有更好的性能和更方便的数据组织方式,开发者不再需要自行拼接 JSX。
|
||||
同时我们废弃了原先的写法,你还是可以在 5.x 继续使用,但会在控制台看到警告,并会在 6.0 后移除。
|
||||
:::
|
||||
|
||||
@@ -15,7 +15,7 @@ demo:
|
||||
- When you need a timeline to make a visual connection.
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title="Upgrade Tip"}
|
||||
:::warning{title="Upgrade Tip"}
|
||||
After version 5.2.0, we provide a simpler usage `<Timeline items={[...]} />` with better performance and potential of writing simpler code style in your applications.
|
||||
Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 6.0.
|
||||
:::
|
||||
|
||||
@@ -16,7 +16,7 @@ demo:
|
||||
- 需要有一条时间轴进行视觉上的串联时。
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::info{title="升级提示"}
|
||||
:::warning{title="升级提示"}
|
||||
5.2.0 版本之后,我们提供了更简单的用法 `<Timeline items={[...]} />` 以获得更好的性能,使您能在应用中编写更简单的代码。
|
||||
与此同时,我们弃用了旧的用法,并且将在下一个 major 版本中删除它。
|
||||
:::
|
||||
|
||||
Reference in New Issue
Block a user