Skip to content

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

@ArrNNG

Description

@ArrNNG

描述问题:

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}"
      }
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions