mirror of
https://github.com/certd/certd.git
synced 2026-07-15 18:27:33 +08:00
🔱: [client] sync upgrade with 6 commits [trident-sync]
build: publish success fix: 修复多级表头时列设置的问题 https://github.com/fast-crud/fast-crud/issues/175 chore: 1 fix: 修复element示例中远程搜索下拉框label不显示的bug https://github.com/fast-crud/fast-crud/issues/422 fix: 修复独立使用对话框 openDialog方法await无返回值的bug
This commit is contained in:
@@ -160,6 +160,26 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
||||
width: 300,
|
||||
valueChange({ value, getComponentRef }) {
|
||||
console.log("value changed:", value, getComponentRef("radio"));
|
||||
},
|
||||
editable: {
|
||||
async updateCell(opts) {
|
||||
const { row, key, value } = opts;
|
||||
//如果是添加,需要返回{[rowKey]:xxx},比如:{id:2}
|
||||
await api.UpdateCell(row.id, key, value);
|
||||
//同时修改 updateCellLink
|
||||
await api.UpdateCell(row.id, "updateCellLink", value);
|
||||
//修改联动本地列
|
||||
row.updateCellLink = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
updateCellLink: {
|
||||
title: "状态联动",
|
||||
type: "text",
|
||||
column: {
|
||||
editable: {
|
||||
disabled: true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user