Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

input-image组件宽高比率(aspectRatio)配置有误,小数会强制改成整数(amis-editor配置) #11121

Open
xukeke520 opened this issue Oct 28, 2024 · 0 comments

Comments

@xukeke520
Copy link
Contributor

描述问题:

input-image组件宽高比率(aspectRatio)配置有误,小数会强制给改成整数

截图或视频:

image
image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    sdk

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.8.0

  3. 粘贴有问题的完整 amis schema 代码:

{
  "type": "page",
  "body": {
    "type": "form",
    "api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm",
    "body": [
      {
        "type": "input-image",
        "name": "image",
        "label": "限制只能上传jpg图片",
        "limit": {
          "aspectRatio": 2
        },
        "accept": ".jpg",
        "receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
      }
    ]
  }
}
  1. 操作步骤
    amis-editor-demo可复现
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant