mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
feat(client): add hidden option to interface (#4279)
This commit is contained in:
parent
68a0c96fd0
commit
e67fe2038f
@ -22,6 +22,7 @@ export const getOptions = (
|
|||||||
...group,
|
...group,
|
||||||
key: groupName,
|
key: groupName,
|
||||||
children: Object.keys(fieldInterfaces[groupName] || {})
|
children: Object.keys(fieldInterfaces[groupName] || {})
|
||||||
|
.filter((type) => !fieldInterfaces[groupName][type].hidden)
|
||||||
.map((type) => {
|
.map((type) => {
|
||||||
const field = fieldInterfaces[groupName][type];
|
const field = fieldInterfaces[groupName][type];
|
||||||
return {
|
return {
|
||||||
|
@ -53,4 +53,5 @@ export abstract class CollectionFieldInterface {
|
|||||||
validateSchema?(fieldSchema: ISchema): Record<string, ISchema>;
|
validateSchema?(fieldSchema: ISchema): Record<string, ISchema>;
|
||||||
usePathOptions?(field: CollectionFieldOptions): any;
|
usePathOptions?(field: CollectionFieldOptions): any;
|
||||||
schemaInitialize?(schema: ISchema, data: any): void;
|
schemaInitialize?(schema: ISchema, data: any): void;
|
||||||
|
hidden?: boolean;
|
||||||
}
|
}
|
||||||
|
@ -30,4 +30,5 @@ export class ExpressionFieldInterface extends CollectionFieldInterface {
|
|||||||
properties = {
|
properties = {
|
||||||
...defaultProps,
|
...defaultProps,
|
||||||
};
|
};
|
||||||
|
hidden = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user