@nocobase/plugin-file-manager
Version:
Provides files storage services with files collection template and attachment field.
77 lines (76 loc) • 2.17 kB
TypeScript
/**
* This file is part of the NocoBase (R) project.
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
* Authors: NocoBase Team.
*
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
* For more information, please refer to: https://www.nocobase.com/agreement.
*/
import { CollectionFieldInterface } from '@nocobase/client-v2';
export declare class AttachmentFieldInterface extends CollectionFieldInterface {
name: string;
type: string;
group: string;
title: string;
isAssociation: boolean;
creatable: boolean;
default: {
interface: string;
type: string;
target: string;
uiSchema: {
type: string;
'x-component': string;
'x-use-component-props': string;
};
};
availableTypes: string[];
configure: {
items: ({
name: string;
title: string;
component: "Select";
required: boolean;
defaultValue: string;
schema: {
enum: string;
};
hidden?: undefined;
componentProps?: undefined;
} | {
name: string;
defaultValue: string;
hidden: boolean;
title?: undefined;
component?: undefined;
required?: undefined;
schema?: undefined;
componentProps?: undefined;
} | {
name: string;
title: string;
component: "Input";
componentProps: {
placeholder: string;
};
required?: undefined;
defaultValue?: undefined;
schema?: undefined;
hidden?: undefined;
} | {
name: string;
title: string;
component: "Checkbox";
defaultValue: boolean;
required?: undefined;
schema?: undefined;
hidden?: undefined;
componentProps?: undefined;
})[];
};
filterable: {
nested: boolean;
children: any[];
};
initialize(values: Record<string, unknown>): void;
}