Skip to content
New issue

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

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

Closed
ArrNNG opened this issue Nov 14, 2022 · 5 comments · Fixed by #7034
Closed

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

ArrNNG opened this issue Nov 14, 2022 · 5 comments · Fixed by #7034
Assignees
Labels
awaiting-release doc optimizing document style Bug or PR related to component's style

Comments

@ArrNNG
Copy link

ArrNNG commented Nov 14, 2022

实现场景:

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"
              }
            ]
          }
        ]
      }
    ]
  }
};
    
@github-actions github-actions bot added doc optimizing document style Bug or PR related to component's style labels Nov 14, 2022
@github-actions
Copy link

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

Please review the labels and make any necessary changes.

@ArrNNG ArrNNG changed the title formula 编辑器在SDK版本下,无法正常显示 InputFormula 公式编辑器在SDK版本下,无法正常显示 Nov 14, 2022
@xiaohe-53
Copy link

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

@YiRan96
Copy link

YiRan96 commented Apr 18, 2023

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

@ArrNNG
Copy link
Author

ArrNNG commented Apr 20, 2023

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

确实这样可以,感谢

@lengqingfeng
Copy link
Contributor

3.0 依然存在

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-release doc optimizing document style Bug or PR related to component's style
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants