d2-crud icon indicating copy to clipboard operation
d2-crud copied to clipboard

rowHandle 如何在编辑时可以绑定对象的属性

Open neil88 opened this issue 5 years ago • 2 comments

:rowHandle="rowHandle" edit-title="修改" :edit-template="editTemplate"

比如数据对象是如下格式{"name":"james", "info":{"id":1, "address":"xxxxx"}} 在编辑的时候我想修改一栏地址 editTemplate: { name: { title: '名字', value: '' }, address: { title: '地址', value: '' } }

发现编辑是弹出的框中address拿不到对应的值,如何实现这个需求?

neil88 avatar Apr 24 '19 06:04 neil88

'info.address'

sunhaoxiang avatar Apr 24 '19 06:04 sunhaoxiang

'info.address'

试过无效 直接报错了 info.address: { title: '地址', value: '' }

neil88 avatar Apr 24 '19 08:04 neil88