Skip to content

Commit

Permalink
fix(cell): update Icon (#2716)
Browse files Browse the repository at this point in the history
* fix: update icons-react-taro version

* chore: update pnpm-lock.yaml

* fix: update Icon

* fix: update Icon

* fix: update Icon size
  • Loading branch information
irisSong authored Nov 9, 2024
1 parent 548139c commit beb9fcd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/packages/cell/demos/taro/demo3.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import React from 'react'
import { Cell } from '@nutui/nutui-react-taro'
import { View, Text } from '@tarojs/components'
import { User } from '@nutui/icons-react-taro'
import pxTransform from '@/utils/px-transform'

const Demo3 = () => {
return (
Expand All @@ -11,11 +13,11 @@ const Demo3 = () => {
display: 'flex',
alignItems: 'center',
flexDirection: 'row',
lineHeight: pxTransform(20),
}}
>
{/* <User /> */}
{/* <View style={{ marginLeft: 5 }}>我是标题</View> */}
<View>我是标题</View>
<User size={16} />
<View style={{ marginLeft: pxTransform(5) }}>我是标题</View>
</View>
}
description={
Expand All @@ -24,9 +26,12 @@ const Demo3 = () => {
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
fontSize: pxTransform(12),
color: '#505259',
}}
>
我是描述<Text style={{ color: 'red' }}>1</Text>
我是描述
<Text style={{ color: 'red', fontSize: pxTransform(12) }}>1</Text>
</View>
}
extra="描述文字"
Expand Down

0 comments on commit beb9fcd

Please sign in to comment.