We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
比如某个 table 中的某个字段叫 diff (意思是昨天的收入和今天的对比),类似股票的涨跌幅一样
fields: { diff: { type: 'text', label: '收入对比', // 【这里是否有类似 render 的功能】 // 【fieldValue 涨跌幅的数值】 render(rowData, fileldValue, field) { return fieldValue > 0 ? <span style="color: red;">+{{ fieldValue}}</span> : <span style="color: green;">-{{fieldValue}}</span> : } } }
The text was updated successfully, but these errors were encountered:
fields: { diff: { type: 'html', label: '收入对比', // 【这里是否有类似 render 的功能】 // 【fieldValue 涨跌幅的数值】 view(fileldValue, field) { return fieldValue > 0 ? <span style="color: red;">+{{ fieldValue}}</span> : <span style="color: green;">-{{fieldValue}}</span> : } } }
Sorry, something went wrong.
@EdwardQ 那等 <ams-field-html-view> 这个组件上线了之后,我再来关闭 issue 吧,感谢!
<ams-field-html-view>
No branches or pull requests
比如某个 table 中的某个字段叫 diff (意思是昨天的收入和今天的对比),类似股票的涨跌幅一样
The text was updated successfully, but these errors were encountered: