Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions packages/amis/src/renderers/Tag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
* @file Tag
*/
import React from 'react';
import {autobind, createObject, Renderer, RendererProps} from 'amis-core';
import {
autobind,
createObject,
labelToString,
Renderer,
RendererProps
} from 'amis-core';
import {BaseSchema, SchemaClassName, SchemaIcon} from '../Schema';
import {getPropValue} from 'amis-core';
import {isPureVariable, resolveVariableAndFilter} from 'amis-core';
Expand Down Expand Up @@ -137,7 +143,7 @@ export class TagField extends React.Component<TagProps, object> {
style = {}
} = this.props;

const label = this.resolveLabel();
const label = labelToString(this.resolveLabel());

if (isPureVariable(icon)) {
icon = resolveVariableAndFilter(icon, data);
Expand Down
Loading