@@ -171,6 +171,8 @@ export const TagStyled = styled(Tag)`
171
171
}
172
172
` ;
173
173
174
+ let tagOptionsList : any [ ] = [ ] ;
175
+
174
176
const TagEdit = ( props : TagEditPropsType ) => {
175
177
const defaultTags = useContext ( TagsContext ) ;
176
178
const [ tags , setTags ] = useState ( ( ) => {
@@ -225,12 +227,12 @@ const TagEdit = (props: TagEditPropsType) => {
225
227
< CustomSelect . Option value = { value } key = { index } >
226
228
{ value . split ( "," ) [ 1 ] ? (
227
229
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" } } >
229
231
{ item }
230
232
</ Tag >
231
233
) )
232
234
) : (
233
- < Tag color = { getTagColor ( value , [ ] ) } key = { index } >
235
+ < Tag color = { getTagColor ( value , tagOptionsList ) } icon = { getTagIcon ( value , tagOptionsList ) } key = { index } >
234
236
{ value }
235
237
</ Tag >
236
238
) }
@@ -246,6 +248,7 @@ export const ColumnTagsComp = (function () {
246
248
childrenMap ,
247
249
( props , dispatch ) => {
248
250
const tagOptions = props . tagColors ;
251
+ tagOptionsList = props . tagColors ;
249
252
let value = props . changeValue ?? getBaseValue ( props , dispatch ) ;
250
253
value = typeof value === "string" && value . split ( "," ) [ 1 ] ? value . split ( "," ) : value ;
251
254
const tags = _ . isArray ( value ) ? value : [ value ] ;
0 commit comments