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

InputText输入框的前缀和后缀,在表单静态展示时不显示 #11757

Open
ArrNNG opened this issue Mar 19, 2025 · 0 comments
Open

Comments

@ArrNNG
Copy link

ArrNNG commented Mar 19, 2025

描述问题:

InputText 输入框 的 前缀和后缀,在表单静态展示时不显示;希望在表单静态展示下也能显示前缀和后缀,
类似于InputNumber 数字输入框的前缀和后缀

截图或视频:

Image Image

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

  1. 粘贴有问题的完整 amis schema 代码:
{
  "type": "page",
  "body": {
    "type": "form",
    "static":true,
    "api": "/amis/api/mock2/form/saveForm",
    "data": {
      "unit": "MB"
    },
    "body": [
      {
        "name": "text",
        "type": "input-text",
        "label": "text",
        "prefix": "¥",
        "suffix": "RMB"
      },
      {
        "name": "prefix",
        "type": "input-text",
        "label": "text",
        "prefix": "¥"
      },
      {
        "name": "suffix",
        "type": "input-text",
        "label": "text",
        "suffix": "${unit}"
      }
    ]
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant