buil
This commit is contained in:
parent
a9f35badf6
commit
0b133e535a
|
|
@ -33,4 +33,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
|
|||
createOne: (name?: string) => Promise<void>;
|
||||
getDefaultArticle: (rows: EntityDict['articleMenu']['OpSchema'][]) => void;
|
||||
getSearchArticle: () => Promise<string[]>;
|
||||
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||
}>): JSX.Element | null;
|
||||
|
|
|
|||
|
|
@ -14,4 +14,4 @@ export default function Render(props: WebComponentProps<EntityDict, 'articleMenu
|
|||
searchArticle: (searchValue: string) => void;
|
||||
getArticleMenuIdByArticle: (articleId: string, type: string) => void;
|
||||
gotoSearchArticleAndArticleMenu: (articleMenuId: string, articleId: string) => void;
|
||||
}>): import("react/jsx-runtime").JSX.Element | null;
|
||||
}>): JSX.Element | null;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ function QrCode(props) {
|
|||
redirect_uri: redirectUri,
|
||||
style: style,
|
||||
href: href,
|
||||
state: state || '',
|
||||
state: state || ''
|
||||
};
|
||||
// @ts-ignore
|
||||
new WxLogin(params);
|
||||
|
|
|
|||
|
|
@ -8,4 +8,6 @@ export interface Schema extends EntityShape {
|
|||
name: String<32>;
|
||||
default: Boolean;
|
||||
remark: Text;
|
||||
entity?: String<32>;
|
||||
entityId?: String<64>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,6 +12,8 @@ var entityDesc = {
|
|||
name: '姓名',
|
||||
default: '是否默认',
|
||||
remark: '备注',
|
||||
entity: '对象实体',
|
||||
entityId: '对象实体Id'
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -17,4 +17,5 @@ export interface Schema extends EntityShape {
|
|||
sort?: Float<22, 10>;
|
||||
fileType?: String<128>;
|
||||
isBridge?: Boolean;
|
||||
uploaded: Boolean;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ var entityDesc = {
|
|||
sort: '排序',
|
||||
fileType: '文件类型',
|
||||
isBridge: '是否桥接访问',
|
||||
uploaded: '是否上传成功',
|
||||
},
|
||||
v: {
|
||||
origin: {
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ export declare type OpSchema = EntityShape & {
|
|||
name: String<32>;
|
||||
default: Boolean;
|
||||
remark: Text;
|
||||
entity?: String<32> | null;
|
||||
entityId?: String<64> | null;
|
||||
};
|
||||
export declare type OpAttr = keyof OpSchema;
|
||||
export declare type Schema = EntityShape & {
|
||||
|
|
@ -22,6 +24,8 @@ export declare type Schema = EntityShape & {
|
|||
name: String<32>;
|
||||
default: Boolean;
|
||||
remark: Text;
|
||||
entity?: String<32> | null;
|
||||
entityId?: String<64> | null;
|
||||
area: Area.Schema;
|
||||
} & {
|
||||
[A in ExpressionKey]?: any;
|
||||
|
|
@ -38,6 +42,8 @@ declare type AttrFilter = {
|
|||
name: Q_StringValue;
|
||||
default: Q_BooleanValue;
|
||||
remark: Q_StringValue;
|
||||
entity: Q_StringValue;
|
||||
entityId: Q_StringValue;
|
||||
};
|
||||
export declare type Filter = MakeFilter<AttrFilter & ExprOp<OpAttr | string>>;
|
||||
export declare type Projection = {
|
||||
|
|
@ -54,6 +60,8 @@ export declare type Projection = {
|
|||
name?: number;
|
||||
default?: number;
|
||||
remark?: number;
|
||||
entity?: number;
|
||||
entityId?: number;
|
||||
} & Partial<ExprOp<OpAttr | string>>;
|
||||
declare type AddressIdProjection = OneOf<{
|
||||
id: number;
|
||||
|
|
@ -83,6 +91,10 @@ export declare type SortAttr = {
|
|||
default: number;
|
||||
} | {
|
||||
remark: number;
|
||||
} | {
|
||||
entity: number;
|
||||
} | {
|
||||
entityId: number;
|
||||
} | {
|
||||
[k: string]: any;
|
||||
} | OneOf<ExprOp<OpAttr | string>>;
|
||||
|
|
@ -94,8 +106,12 @@ export declare type Sorter = SortNode[];
|
|||
export declare type SelectOperation<P extends Object = Projection> = OakSelection<"select", P, Filter, Sorter>;
|
||||
export declare type Selection<P extends Object = Projection> = SelectOperation<P>;
|
||||
export declare type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
|
||||
export declare type CreateOperationData = FormCreateData<Omit<OpSchema, "areaId">> & ({
|
||||
export declare type CreateOperationData = FormCreateData<Omit<OpSchema, "entity" | "entityId" | "areaId">> & ({
|
||||
areaId: ForeignKey<"area">;
|
||||
}) & ({
|
||||
entity?: string;
|
||||
entityId?: string;
|
||||
[K: string]: any;
|
||||
});
|
||||
export declare type CreateSingleOperation = OakOperation<"create", CreateOperationData>;
|
||||
export declare type CreateMultipleOperation = OakOperation<"create", Array<CreateOperationData>>;
|
||||
|
|
|
|||
|
|
@ -37,6 +37,18 @@ exports.desc = {
|
|||
remark: {
|
||||
notNull: true,
|
||||
type: "text"
|
||||
},
|
||||
entity: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 32
|
||||
}
|
||||
},
|
||||
entityId: {
|
||||
type: "varchar",
|
||||
params: {
|
||||
length: 64
|
||||
}
|
||||
}
|
||||
},
|
||||
actionType: "crud",
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
{ "name": "地址", "attr": { "detail": "详细地址", "area": "所在地区", "phone": "联系电话", "name": "姓名", "default": "是否默认", "remark": "备注" } }
|
||||
{ "name": "地址", "attr": { "detail": "详细地址", "area": "所在地区", "phone": "联系电话", "name": "姓名", "default": "是否默认", "remark": "备注", "entity": "对象实体", "entityId": "对象实体Id" } }
|
||||
|
|
|
|||
Loading…
Reference in New Issue