mirror of https://github.com/certd/certd
parent
2ea0c48853
commit
2277c87908
|
@ -108,9 +108,11 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||
editable: {
|
||||
mode: "cell",
|
||||
exclusive: true,
|
||||
exclusiveEffect: "cancel",
|
||||
//排他式激活效果,将其他行的编辑状态触发保存
|
||||
exclusiveEffect: "save",
|
||||
async updateCell(opts) {
|
||||
const { row, key, value } = opts;
|
||||
//如果是添加,需要返回{[rowKey]:xxx},比如:{id:2}
|
||||
return await api.UpdateCell(row.id, key, value);
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue