mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:55:50 +00: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,
|
||||
key: groupName,
|
||||
children: Object.keys(fieldInterfaces[groupName] || {})
|
||||
.filter((type) => !fieldInterfaces[groupName][type].hidden)
|
||||
.map((type) => {
|
||||
const field = fieldInterfaces[groupName][type];
|
||||
return {
|
||||
|
@ -53,4 +53,5 @@ export abstract class CollectionFieldInterface {
|
||||
validateSchema?(fieldSchema: ISchema): Record<string, ISchema>;
|
||||
usePathOptions?(field: CollectionFieldOptions): any;
|
||||
schemaInitialize?(schema: ISchema, data: any): void;
|
||||
hidden?: boolean;
|
||||
}
|
||||
|
@ -30,4 +30,5 @@ export class ExpressionFieldInterface extends CollectionFieldInterface {
|
||||
properties = {
|
||||
...defaultProps,
|
||||
};
|
||||
hidden = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user