先干掉编译中的错误

This commit is contained in:
Xu Chang 2022-11-22 13:32:16 +08:00
parent d3b8805112
commit 227c07a345
4 changed files with 25 additions and 2 deletions

9
lib/types/RuntimeCxt.d.ts vendored Normal file
View File

@ -0,0 +1,9 @@
import { CommonAspectDict } from "oak-common-aspect";
import { AspectDict as GeneralAspectDict } from "../aspects/AspectDict";
import { BackendRuntimeContext } from "../context/BackendRuntimeContext";
import { FrontendRuntimeContext } from "../context/FrontendRuntimeContext";
import { EntityDict } from "../general-app-domain";
export declare type BRC = BackendRuntimeContext<EntityDict>;
export declare type FrcAspectDict = GeneralAspectDict<EntityDict, BRC> & CommonAspectDict<EntityDict, BRC>;
export declare type FRC = FrontendRuntimeContext<EntityDict, BRC, FrcAspectDict>;
export declare type RuntimeCxt = FRC | BRC;

2
lib/types/RuntimeCxt.js Normal file
View File

@ -0,0 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

View File

@ -139,7 +139,8 @@ export default function render(this: any) {
width="60%"
onOk={async () => {
// todo
await this.execute(
this.createItem();
/* await this.execute(
{
action: 'create',
data: {
@ -147,7 +148,7 @@ export default function render(this: any) {
},
},
// '$system/list-system/upsert'
);
); */
this.setState({
open: false,
});

11
src/types/RuntimeCxt.ts Normal file
View File

@ -0,0 +1,11 @@
import { CommonAspectDict } from "oak-common-aspect";
import { AspectDict as GeneralAspectDict } from "../aspects/AspectDict";
import { BackendRuntimeContext } from "../context/BackendRuntimeContext";
import { FrontendRuntimeContext } from "../context/FrontendRuntimeContext";
import { EntityDict } from "../general-app-domain";
export type BRC = BackendRuntimeContext<EntityDict>;
export type FrcAspectDict = GeneralAspectDict<EntityDict, BRC> & CommonAspectDict<EntityDict, BRC>;
export type FRC = FrontendRuntimeContext<EntityDict, BRC, FrcAspectDict>;
export type RuntimeCxt = FRC | BRC;