baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
17.22k stars 2.5k forks source link

bug: crud 列里面有 quickEdit mode: 'inline', name 为 a[0].bb 数组时候 导致switch 按钮不受控。 #9421

Open lengqingfeng opened 9 months ago

lengqingfeng commented 9 months ago

描述问题:

crud 列里面有 quickEdit mode: 'inline', 导致switch 按钮不受控。

截图或视频:

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

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

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

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

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

      {
        type: 'crud',
        name: 'table',
        source: '${crud}',
        label: '头部固定',
        affixHeader: true,
        columns: [
          {
            name: 'a[0].aa',
            label: 'AA',
            quickEdit: {
              mode: 'inline',
              type: 'switch',
              onText: '开启',
              reload: 'none',
              offText: '关闭',
              id: 'u:56a387805c4c',
              falseValue: 0,
              trueValue: 1
            }
          },
          {
            name: 'a[0].bb',
            label: 'AA',
            quickEdit: {
              mode: 'inline',
              type: 'switch',
              onText: '开启',
              reload: 'none',
              offText: '关闭',
              id: 'u:56a387805c4c',
              falseValue: 0,
              trueValue: 1
            }
          }
        ]
      }
  4. 操作步骤 请简单描述一下复现的操作步骤...

github-actions[bot] commented 9 months ago

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

Please review the labels and make any necessary changes.