mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:48:55 +08:00
parent
b05b7daaf9
commit
ab0f15bec5
@ -70,7 +70,11 @@ export const Column = types
|
|||||||
get isPrimary() {
|
get isPrimary() {
|
||||||
const table = getParent(self, 2) as any;
|
const table = getParent(self, 2) as any;
|
||||||
|
|
||||||
return table.filteredColumns[0]?.id === self.id;
|
return (
|
||||||
|
table.filteredColumns.find(
|
||||||
|
(column: any) => !column.type.startsWith('__')
|
||||||
|
)?.id === self.id
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.actions(self => ({
|
.actions(self => ({
|
||||||
|
Loading…
Reference in New Issue
Block a user