amis editor 表单JSON会自动添加,提交按钮

inkz8wg9  于 4个月前  发布在  其他
关注(0)|答案(3)|浏览(49)
描述问题:

回显json schema 数据时,编辑器会自动添加提交按钮。

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

如何复现(请务必完整填写下面内容):
  1. 你是如何使用 amis 的?
    sdknpm其他 ...
  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
  3. 粘贴有问题的完整 amis schema 代码:
{
  "type": "page",
  "id": "managePage",
  "body": [
    {
      "type": "crud",
      "name": "managePageCRUD",
      "id": "managePageCRUD",
      "primaryField": "ID",
      "perPage": 20,
      "keepItemSelectionOnPageChange": true,
      "maxKeepItemSelectionLength": 20,
      "orderBy": "id",
      "orderDir": "desc",
      "filter": {
        "id": "filter",
        "title": "条件搜索",
        "submitText": "",
        "body": [
          {
            "type": "input-text",
            "name": "keywords",
            "placeholder": "通过关键字搜索",
            "clearable": true,
            "addOn": {
              "label": "搜索",
              "type": "submit",
              "id": "u:7dae6df2f68a"
            },
            "size": "md",
            "id": "u:f7429b0a116f"
          }
        ],
        "feat": "Insert"
      },
      "bulkActions": [
        {
        }
      ],
      "filterTogglable": true,
      "headerToolbar": [
        "reload",
        "filter-toggler",
        "bulkActions",
        {
          "type": "tpl",
          "id": "datacount_tpl",
          "tpl": "当前有 ${count} 条数据。",
          "className": "v-middle"
        },
        {
          "type": "columns-toggler",
          "align": "right"
        },
        {
          "type": "pagination",
          "align": "right"
        }
      ],
      "footerToolbar": [
        "statistics",
        "switch-per-page",
        "pagination",
        "load-more"
      ],
      "columns": [
      ],
      "labelTpl": "${TrueName}"
    }
  ],
  "toolbar": [
  ],
  "regions": [
    "body",
    "toolbar",
    "header"
  ]
}
  1. 操作步骤

1sbrub3j

1sbrub3j1#

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

Please review the labels and make any necessary changes.

wnvonmuf

wnvonmuf2#

这里其实是为了Form底部操作区可以点击编辑,如果不需要底部操作区,可以设置 actions: []

w3nuxt5m

w3nuxt5m3#

这里其实是为了Form底部操作区可以点击编辑,如果不需要底部操作区,可以设置 actions: []

但这个现在在已有的json中,一回显数据到编辑器中就回自动添加,且有些地方是未知的

相关问题