amis icon indicating copy to clipboard operation
amis copied to clipboard

InputFormula 公式编辑器在SDK版本下,无法正常显示

Open ArrNNG opened this issue 4 years ago • 5 comments

实现场景:

SDK 版本下,使用 input-formula 组件

存在的问题:

InputFormula 公式编辑器在SDK版本下,无法正常显示 image 点击 f(x) 按钮后 image

当前方案:

SDK 版本:2.4.0 代码来源:

快速开始中的 hello.html

InputFormula 公式编辑器 基本用法

当前方案的完整 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"
              }
            ]
          }
        ]
      }
    ]
  }
};
    

ArrNNG avatar Nov 14 '22 07:11 ArrNNG

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

github-actions[bot] avatar Nov 14 '22 07:11 github-actions[bot]

SDK 2.6.0版本中依然存在此问题。

xiaohe-53 avatar Jan 31 '23 00:01 xiaohe-53

你好,我也是看的官方示例,在sdk2.9.0中也同样出现这个问题。但是神奇的是,我通过npm i amis 后,从node_modules/amis中引入lib/themes/cxd.css后,竟然就可以了!!! 然后我刚刚发现通过下载releases的方式,引入sdk下的cxd.css也是无法正常显示。

YiRan96 avatar Apr 18 '23 06:04 YiRan96

你好,我也是看的官方示例,在sdk2.9.0中也同样出现这个问题。但是神奇的是,我通过npm i amis 后,从node_modules/amis中引入lib/themes/cxd.css后,竟然就可以了!!! 然后我刚刚发现通过下载releases的方式,引入sdk下的cxd.css也是无法正常显示。

确实这样可以,感谢

ArrNNG avatar Apr 20 '23 04:04 ArrNNG

3.0 依然存在

lengqingfeng avatar May 18 '23 08:05 lengqingfeng