Skip to content

Commit

Permalink
docs(ConfigProvider): add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna authored and tao1991123 committed Jan 9, 2019
1 parent 1bc40fe commit a004afd
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/config-provider/demo/basic.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 基本

- order: 0
- order: 1

最简单的用法,展示 ConfigProvider 是如何工作的。

:::lang=en-us
# Basic

- order: 0
- order: 1

The simplest usage, demo how ConfigProvider works.
:::
Expand Down
4 changes: 2 additions & 2 deletions docs/config-provider/demo/components.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 支持国际化的组件

- order: 1
- order: 2

展示目前 Next 组件中支持国际化的组件。

:::lang=en-us
# Components that support internationalization

- order: 1
- order: 2

Show the components that support internationalization in the current Next components.
:::
Expand Down
4 changes: 2 additions & 2 deletions docs/config-provider/demo/locale.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 国际化

- order: 3
- order: 0

展示如何配合 ConfigProvider 实现具有国际化能力的组件。

:::lang=en-us
# Internationalization

- order: 3
- order: 0

Demo how to use ConfigProvider to implement components with international capabilities.
:::
Expand Down
4 changes: 2 additions & 2 deletions docs/config-provider/demo/rtl.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 组件的RTL

- order: 2
- order: 4

组件RTL样式展示(目前部分支持)

:::lang=en-us
# Components with rtl

- order: 2
- order: 4

Show components with RTL(Partial supported currently).
:::
Expand Down
2 changes: 2 additions & 0 deletions docs/config-provider/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@

优先级顺序为: 组件自身 locale > 最近 ConfigProvider 的 locale > 更远父级 ConfigProvider 的 locale

(注: 由于`Dialog.show()` `Message.show()` 等函数式方法的特殊性,他们的将默认读取页面上的root context。当页面上有多个包含`<ConfigProvider/>``ReactDOM.render()`方法调用时,由第一个渲染的决定root context)

```js
import { ConfigProvider, DatePicker } from '@alifd/next';

Expand Down

0 comments on commit a004afd

Please sign in to comment.