amis icon indicating copy to clipboard operation
amis copied to clipboard

语法问题

Open whitekyo opened this issue 6 years ago • 1 comments

{ "type": "button", "icon": "fa fa-times text-danger", "actionType": "ajax", "tooltip": "{$status == 1 ? '下线' : '上线'}", }

这里的tooltip,我想根据ajax的返回值是动态设置,如上我的写法错误,正确的写法该如何书写?

whitekyo avatar May 25 '20 10:05 whitekyo

${status|isEquals:1:'下线':'上线'}

参考:https://baidu.github.io/amis/docs/renderers/Tpl#tpl

RickCole21 avatar May 25 '20 11:05 RickCole21