Skip to content

Commit 0e57d48

Browse files
authored
合并拉取请求 #3062
* fix(cell): 优化自定义右侧区域demo展示
1 parent a349525 commit 0e57d48

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/packages/cell/demos/h5/demo4.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import React from 'react'
22
import { Cell, Switch } from '@nutui/nutui-react'
33

44
const App = () => {
5-
return <Cell title="Switch" extra={<Switch defaultChecked />} />
5+
return (
6+
<Cell title="Switch" align="center" extra={<Switch defaultChecked />} />
7+
)
68
}
79
export default App

src/packages/cell/demos/taro/demo4.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Cell, Switch } from '@nutui/nutui-react-taro'
44
const App = () => {
55
return (
66
<Cell.Group>
7-
<Cell title="Switch" extra={<Switch defaultChecked />} />
7+
<Cell title="Switch" align="center" extra={<Switch defaultChecked />} />
88
</Cell.Group>
99
)
1010
}

0 commit comments

Comments
 (0)