Skip to content

Commit 3316fc9

Browse files
committed
fix: update rate usage
1 parent 18a06ee commit 3316fc9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import React from 'react'
2-
// import { ConfigProvider, Cell, Rate, Button } from '@nutui/nutui-react-taro'
3-
import { ConfigProvider, Cell, Button } from '@nutui/nutui-react-taro'
4-
// import { harmonyAndRn } from '@/utils/platform-taro'
5-
// todo rate icon
2+
import { ConfigProvider, Cell, Button, Rate } from '@nutui/nutui-react-taro'
3+
64
const Demo1 = () => {
75
return (
86
<>
97
<ConfigProvider>
108
<Cell.Group>
11-
{/* <Cell>{harmonyAndRn() ? null : <Rate defaultValue={3} />}</Cell> */}
9+
<Cell>
10+
<Rate defaultValue={3} />
11+
</Cell>
1212
<Cell>
1313
<Button type="primary" block>
1414
提交

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import React from 'react'
2-
import { ConfigProvider, Cell, Button } from '@nutui/nutui-react-taro'
3-
// import { ConfigProvider, Cell, Rate, Button } from '@nutui/nutui-react-taro'
4-
// import { harmonyAndRn } from '@/utils/platform-taro'
2+
import { ConfigProvider, Cell, Button, Rate } from '@nutui/nutui-react-taro'
53

64
const Demo2 = () => {
75
const darkTheme = {
@@ -13,7 +11,9 @@ const Demo2 = () => {
1311
<>
1412
<ConfigProvider theme={darkTheme}>
1513
<Cell.Group>
16-
{/* <Cell>{harmonyAndRn() ? null : <Rate defaultValue={3} />}</Cell> */}
14+
<Cell>
15+
<Rate defaultValue={3} />
16+
</Cell>
1717
<Cell>
1818
<Button type="primary" block>
1919
提交

0 commit comments

Comments
 (0)