django-vue-admin/web/src/components/many-to-many
李强 9e10d1841f 功能变化: 通用components 更新 2022-11-24 00:37:59 +08:00
..
README.md 新功能: 2022-06-09 17:37:39 +08:00
index.js 新功能: 2022-06-09 17:37:39 +08:00
index.vue 功能变化: 通用components 更新 2022-11-24 00:37:59 +08:00

README.md

多对多表格显示配置说明

本组件用于多对多返回数据使用,例如:角色信息

role_info = [
    {"id":1,"name":"普通用户"},
    {"id":2,"name":"管理员"}
]

#crud的配置
component: {
name: 'manyToMany',
valueBinding: 'role_info',
children: 'name'
}

crud.js

 {
        component: {
          name: 'manyToMany',
          valueBinding: 'role_name',
          children: 'name'
        }
 }

配置说明

Name Description Type Required Default
name 字段所使用的组件 String true manyToMany
valueBinding row中的key String true -
children 数组中的key String true name