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
过滤器已经不推荐使用,推荐使用表达式,但没有办法自定义公式,还是要自定义过滤器实现。
https://baidu.github.io/amis/zh-CN/docs/concepts/expression#%E5%85%AC%E5%BC%8F
期望支持自定义公式。比如
import { registerFunction } from 'amis' registerFunction('CUSTOM_SUM', (a, b, fn) => { return fn(a) + fn(b) } { tpl: "CUSTOM_SUM(1,2, item => item * -1)" }
The text was updated successfully, but these errors were encountered:
👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
Sorry, something went wrong.
amis/packages/amis-formula/src/index.ts
Line 28 in 8ac45be
import { registerFunction } from 'amis-formula'
allenve
No branches or pull requests
是否关联于某个问题吗:
过滤器已经不推荐使用,推荐使用表达式,但没有办法自定义公式,还是要自定义过滤器实现。
https://baidu.github.io/amis/zh-CN/docs/concepts/expression#%E5%85%AC%E5%BC%8F
预期的解决方案:
期望支持自定义公式。比如
其他可接受方案:
任何附加信息:
The text was updated successfully, but these errors were encountered: