File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import React from 'react'
22// import { Failure } from '@nutui/icons-react-taro'
33import { Cell , Tag } from '@nutui/nutui-react-taro'
44import Taro from '@tarojs/taro'
5- import { Icon } from '@tarojs/components'
65
76const 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 >
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import React, {
55 ReactNode ,
66} from 'react'
77import 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'
1010import 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 >
You can’t perform that action at this time.
0 commit comments