amis-model-design
Version:
amis模型设计器
30 lines (29 loc) • 747 B
TypeScript
import { BasePlugin } from '../../base/BasePlugin';
import { FieldItem, ModelItem } from '../../type';
export interface RelationFieldItem extends FieldItem {
type: 'relation';
/**
* 关系 id,用来指向关系配置
*/
relationId: string;
/**
* 关系上的 key 字段
*/
key: string;
/**
* 关系上的 name 字段
*/
name: string;
}
export declare class RelationPlugin extends BasePlugin {
static id: string;
registerFieldType(): {
type: string;
title: string;
disableManualCreate: boolean;
shortName: (field: FieldItem, model: ModelItem) => string;
searchable: boolean;
filterable: boolean;
sortable: boolean;
};
}