InputFormula 公式编辑器在SDK版本下,无法正常显示
实现场景:
SDK 版本下,使用 input-formula 组件
存在的问题:
InputFormula 公式编辑器在SDK版本下,无法正常显示
点击 f(x) 按钮后

当前方案:
SDK 版本:2.4.0 代码来源:
快速开始中的 hello.html
当前方案的完整 amis schema 代码...
{
"type": "page",
"body": {
"type": "form",
"debug": true,
"body": [
{
"type": "input-formula",
"name": "formula",
"label": "公式",
"evalMode": true,
"value": "SUM(1 , 2)",
"variables": [
{
"label": "表单字段",
"children": [
{
"label": "文章名",
"value": "name",
"tag": "文本"
},
{
"label": "作者",
"value": "author",
"tag": "文本"
},
{
"label": "售价",
"value": "price",
"tag": "数字"
},
{
"label": "出版时间",
"value": "time",
"tag": "时间"
},
{
"label": "版本号",
"value": "version",
"tag": "数字"
},
{
"label": "出版社",
"value": "publisher",
"tag": "文本"
}
]
},
{
"label": "流程字段",
"children": [
{
"label": "联系电话",
"value": "telphone"
},
{
"label": "地址",
"value": "addr"
}
]
}
]
}
]
}
};
👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
SDK 2.6.0版本中依然存在此问题。
你好,我也是看的官方示例,在sdk2.9.0中也同样出现这个问题。但是神奇的是,我通过npm i amis 后,从node_modules/amis中引入lib/themes/cxd.css后,竟然就可以了!!! 然后我刚刚发现通过下载releases的方式,引入sdk下的cxd.css也是无法正常显示。
你好,我也是看的官方示例,在sdk2.9.0中也同样出现这个问题。但是神奇的是,我通过npm i amis 后,从node_modules/amis中引入lib/themes/cxd.css后,竟然就可以了!!! 然后我刚刚发现通过下载releases的方式,引入sdk下的cxd.css也是无法正常显示。
确实这样可以,感谢
3.0 依然存在