Skip to content

Commit 3c66eb1

Browse files
committed
fix(TextArea): 增加disabled样式,调整autosize demo,删除无用样式
1 parent 0e34d43 commit 3c66eb1

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React from 'react'
22
// import { Failure } from '@nutui/icons-react-taro'
33
import { Cell, Tag } from '@nutui/nutui-react-taro'
44
import Taro from '@tarojs/taro'
5-
import { Icon } from '@tarojs/components'
65

76
const Demo2 = () => {
87
return (
@@ -33,7 +32,7 @@ const Demo2 = () => {
3332
onClose={() => Taro.showToast({ title: 'Tag closed' })}
3433
type="primary"
3534
>
36-
标签0
35+
标签
3736
</Tag>
3837
}
3938
/>
@@ -43,8 +42,8 @@ const Demo2 = () => {
4342
<Tag
4443
closeable
4544
// TODO: icon 适配
46-
// closeIcon="C"
47-
closeIcon={<Icon type="search" color="red" />}
45+
closeIcon="C"
46+
// closeIcon={<Failure size={8} />}
4847
onClose={() => Taro.showToast({ title: 'Tag closed' })}
4948
type="primary"
5049
>

src/packages/tag/tag.taro.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React, {
55
ReactNode,
66
} from 'react'
77
import type { MouseEvent } from 'react'
8-
import { View, ITouchEvent, Text, Icon } from '@tarojs/components'
8+
import { View, ITouchEvent, Text } from '@tarojs/components'
99
// import { Close } from '@nutui/icons-react-taro'
1010
import classNames from 'classnames'
1111

@@ -147,8 +147,7 @@ export const Tag: FunctionComponent<Partial<TagProps>> = (props) => {
147147
}}
148148
className={`${classPrefix}-custom-icon`}
149149
>
150-
-
151-
<Icon type="search" color="red" />-
150+
X
152151
</Text>
153152
)}
154153
</View>

0 commit comments

Comments
 (0)