Skip to content

Commit 2dfd07f

Browse files
committed
fix(configprovider): 调整demo展示
1 parent 6c7e0eb commit 2dfd07f

File tree

9 files changed

+18
-66
lines changed

9 files changed

+18
-66
lines changed

src/packages/configprovider/demos/h5/demo1.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { ConfigProvider, Cell, Rate, Button } from '@nutui/nutui-react'
33

4-
const Demo1 = () => {
4+
const Demo = () => {
55
const darkTheme = {
66
nutuiColorPrimaryIcon: 'green',
77
nutuiColorPrimaryStop1: 'green',
@@ -37,4 +37,4 @@ const Demo1 = () => {
3737
)
3838
}
3939

40-
export default Demo1
40+
export default Demo

src/packages/configprovider/demos/h5/demo2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import { ConfigProvider, TextArea, Cell } from '@nutui/nutui-react'
33
import enUS from '@nutui/nutui-react/dist/es/locale/en-US'
44

5-
const Demo3 = () => {
5+
const Demo = () => {
66
return (
77
<>
88
<ConfigProvider>
@@ -19,4 +19,4 @@ const Demo3 = () => {
1919
)
2020
}
2121

22-
export default Demo3
22+
export default Demo

src/packages/configprovider/demos/h5/demo3.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react'
22
import { ConfigProvider, Cell } from '@nutui/nutui-react'
33

4-
const Demo5 = () => {
4+
const Demo = () => {
55
return (
66
<>
77
<ConfigProvider direction="rtl">
@@ -19,4 +19,4 @@ const Demo5 = () => {
1919
)
2020
}
2121

22-
export default Demo5
22+
export default Demo

src/packages/configprovider/demos/taro/demo2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import { ConfigProvider, TextArea, Cell } from '@nutui/nutui-react-taro'
33
import enUS from '@nutui/nutui-react-taro/dist/es/locales/en-US'
44

5-
const Demo3 = () => {
5+
const Demo = () => {
66
return (
77
<>
88
<ConfigProvider>
@@ -19,4 +19,4 @@ const Demo3 = () => {
1919
)
2020
}
2121

22-
export default Demo3
22+
export default Demo

src/packages/configprovider/demos/taro/demo3.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import { View, Text } from '@tarojs/components'
33
import { ConfigProvider, Cell, pxTransform } from '@nutui/nutui-react-taro'
44

5-
const Demo5 = () => {
5+
const Demo = () => {
66
return (
77
<>
88
<ConfigProvider direction="rtl">
@@ -24,4 +24,4 @@ const Demo5 = () => {
2424
)
2525
}
2626

27-
export default Demo5
27+
export default Demo

src/packages/configprovider/doc.en-US.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ The ConfigProvider component provides the ability to override CSS variables, and
4343

4444
:::
4545

46-
:::demo
47-
48-
<CodeBlock src='h5/demo2.tsx'></CodeBlock>
49-
50-
:::
51-
5246
#### CSS variables
5347

5448
NutUI-React supports the following CSS variables:
@@ -93,21 +87,15 @@ NutUI-React provides a ConfigProvider component for global configuration of inte
9387

9488
:::demo
9589

96-
<CodeBlock src='h5/demo3.tsx'></CodeBlock>
97-
98-
:::
99-
100-
:::demo
101-
102-
<CodeBlock src='h5/demo4.tsx'></CodeBlock>
90+
<CodeBlock src='h5/demo2.tsx'></CodeBlock>
10391

10492
:::
10593

10694
### RTL
10795

10896
:::demo
10997

110-
<CodeBlock src='h5/demo5.tsx'></CodeBlock>
98+
<CodeBlock src='h5/demo3.tsx'></CodeBlock>
11199

112100
:::
113101

src/packages/configprovider/doc.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ ConfigProvider 组件提供了覆盖 CSS 变量的能力,你需要在根节点
4343

4444
:::
4545

46-
:::demo
47-
48-
<CodeBlock src='h5/demo2.tsx'></CodeBlock>
49-
50-
:::
51-
5246
#### CSS 变量
5347

5448
NutUI-React 支持的 CSS 变量如下:
@@ -93,21 +87,15 @@ NutUI-React 提供了 ConfigProvider 组件用于全局配置国际化文案。
9387

9488
:::demo
9589

96-
<CodeBlock src='h5/demo3.tsx'></CodeBlock>
97-
98-
:::
99-
100-
:::demo
101-
102-
<CodeBlock src='h5/demo4.tsx'></CodeBlock>
90+
<CodeBlock src='h5/demo2.tsx'></CodeBlock>
10391

10492
:::
10593

10694
### RTL
10795

10896
:::demo
10997

110-
<CodeBlock src='h5/demo5.tsx'></CodeBlock>
98+
<CodeBlock src='h5/demo3.tsx'></CodeBlock>
11199

112100
:::
113101

src/packages/configprovider/doc.taro.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ ConfigProvider 组件提供了覆盖 CSS 变量的能力,你需要在根节点
4343

4444
:::
4545

46-
:::demo
47-
48-
<CodeBlock src='taro/demo2.tsx'></CodeBlock>
49-
50-
:::
51-
5246
#### CSS 变量
5347

5448
NutUI-React 支持的 CSS 变量如下:
@@ -93,21 +87,15 @@ NutUI-React 提供了 ConfigProvider 组件用于全局配置国际化文案。
9387

9488
:::demo
9589

96-
<CodeBlock src='taro/demo3.tsx'></CodeBlock>
97-
98-
:::
99-
100-
:::demo
101-
102-
<CodeBlock src='taro/demo4.tsx'></CodeBlock>
90+
<CodeBlock src='taro/demo2.tsx'></CodeBlock>
10391

10492
:::
10593

10694
### RTL
10795

10896
:::demo
10997

110-
<CodeBlock src='taro/demo5.tsx'></CodeBlock>
98+
<CodeBlock src='taro/demo3.tsx'></CodeBlock>
11199

112100
:::
113101

src/packages/configprovider/doc.zh-TW.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ ConfigProvider 元件提供了覆蓋 CSS 變數的能力,你需要在根節點
4343

4444
:::
4545

46-
:::demo
47-
48-
<CodeBlock src='taro/demo2.tsx'></CodeBlock>
49-
50-
:::
51-
5246
#### CSS 變數
5347

5448
NutUI-React 支援的 CSS 變數如下:
@@ -93,21 +87,15 @@ NutUI-React 提供了 ConfigProvider 元件用於全域配置國際化文案。
9387

9488
:::demo
9589

96-
<CodeBlock src='h5/demo3.tsx'></CodeBlock>
97-
98-
:::
99-
100-
:::demo
101-
102-
<CodeBlock src='taro/demo4.tsx'></CodeBlock>
90+
<CodeBlock src='h5/demo2.tsx'></CodeBlock>
10391

10492
:::
10593

10694
### RTL
10795

10896
:::demo
10997

110-
<CodeBlock src='h5/demo5.tsx'></CodeBlock>
98+
<CodeBlock src='h5/demo3.tsx'></CodeBlock>
11199

112100
:::
113101

0 commit comments

Comments
 (0)