@@ -171,6 +171,8 @@ export const TagStyled = styled(Tag)`
171171 }
172172` ;
173173
174+ let tagOptionsList : any [ ] = [ ] ;
175+
174176const TagEdit = ( props : TagEditPropsType ) => {
175177 const defaultTags = useContext ( TagsContext ) ;
176178 const [ tags , setTags ] = useState ( ( ) => {
@@ -225,12 +227,12 @@ const TagEdit = (props: TagEditPropsType) => {
225227 < CustomSelect . Option value = { value } key = { index } >
226228 { value . split ( "," ) [ 1 ] ? (
227229 value . split ( "," ) . map ( ( item , i ) => (
228- < Tag color = { getTagColor ( item , [ ] ) } key = { i } style = { { marginRight : "8px" } } >
230+ < Tag color = { getTagColor ( item , tagOptionsList ) } icon = { getTagIcon ( item , tagOptionsList ) } key = { i } style = { { marginRight : "8px" } } >
229231 { item }
230232 </ Tag >
231233 ) )
232234 ) : (
233- < Tag color = { getTagColor ( value , [ ] ) } key = { index } >
235+ < Tag color = { getTagColor ( value , tagOptionsList ) } icon = { getTagIcon ( value , tagOptionsList ) } key = { index } >
234236 { value }
235237 </ Tag >
236238 ) }
@@ -246,6 +248,7 @@ export const ColumnTagsComp = (function () {
246248 childrenMap ,
247249 ( props , dispatch ) => {
248250 const tagOptions = props . tagColors ;
251+ tagOptionsList = props . tagColors ;
249252 let value = props . changeValue ?? getBaseValue ( props , dispatch ) ;
250253 value = typeof value === "string" && value . split ( "," ) [ 1 ] ? value . split ( "," ) : value ;
251254 const tags = _ . isArray ( value ) ? value : [ value ] ;
0 commit comments