diff --git a/assets/module/common/CCViewVM.ts b/assets/module/common/CCViewVM.ts new file mode 100644 index 0000000..35d4c9d --- /dev/null +++ b/assets/module/common/CCViewVM.ts @@ -0,0 +1,14 @@ +/* + * @Author: dgflash + * @Date: 2021-11-11 19:05:32 + * @LastEditors: dgflash + * @LastEditTime: 2022-09-06 17:20:51 + */ + +import type { CCEntity } from './CCEntity'; +import { CCView } from './CCView'; + +/** 兼容老版本 */ +export abstract class CCViewVM extends CCView { + protected mvvm = true; // 启用 MVVM 功能 +} \ No newline at end of file diff --git a/assets/module/common/CCViewVM.ts.meta b/assets/module/common/CCViewVM.ts.meta new file mode 100644 index 0000000..f9e4258 --- /dev/null +++ b/assets/module/common/CCViewVM.ts.meta @@ -0,0 +1,9 @@ +{ + "ver": "4.0.24", + "importer": "typescript", + "imported": true, + "uuid": "c16b4914-d03b-40c7-8e6d-7817777881c6", + "files": [], + "subMetas": {}, + "userData": {} +} diff --git a/tsconfig.doc.json b/tsconfig.doc.json index f16a193..1df469e 100644 --- a/tsconfig.doc.json +++ b/tsconfig.doc.json @@ -4,10 +4,10 @@ "outDir": "./dist-doc", "rootDir": "./", "types": [ - "./temp/declarations/cc.custom-macro", - "./temp/declarations/cc", - "./temp/declarations/jsb", - "./temp/declarations/cc.env" + "../../temp/declarations/cc.custom-macro", + "../../temp/declarations/cc", + "../../temp/declarations/jsb", + "../../temp/declarations/cc.env" ] }, "include": [ diff --git a/tsconfig.json b/tsconfig.json index af618d9..d39c151 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,7 @@ "outDir": "./dist", "rootDir": "./", "strict": true, + "strictNullChecks": false, "moduleResolution": "node", "esModuleInterop": true, "skipLibCheck": true, @@ -12,17 +13,20 @@ "resolveJsonModule": true, "experimentalDecorators": true, "isolatedModules": true, + "baseUrl": "./", + "paths": { + "db://oops-framework/*": ["./assets/*"] + }, "types": [ - "./temp/declarations/cc.custom-macro", - "./temp/declarations/cc", - "./temp/declarations/jsb", - "./temp/declarations/cc.env" + "../../temp/declarations/cc.custom-macro", + "../../temp/declarations/cc", + "../../temp/declarations/jsb", + "../../temp/declarations/cc.env" ] }, "include": [ "assets/**/*", - "src/**/*", - "typedoc.ts" + "src/**/*" ], "exclude": [ "node_modules",