Skip to content

editTemplate 配置问题:数据为对象的时候无法匹配 #81

@zuley

Description

@zuley

例如我有一个表格数据data, 格式如下。

{
  username: 'zuley',
  group: {
    id: 'xxx',
    name: '群组'
  }
}

此时列数据为

columns: {
  {
      title: '用户名',
      key: 'username'
  },
  {
      title: '群组',
      key: 'group.name'
  },
}

群组 group 为下拉选择,此时编辑表单就会有问题,必须使用自定义组件的方式去实现。无法通过简单的配置模板实现编辑。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions