添加CCViewVM兼容老项目

This commit is contained in:
dgflash
2026-01-22 22:07:01 +08:00
parent b51ec298f7
commit 99c85e32e0
4 changed files with 37 additions and 10 deletions

View File

@@ -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<T extends CCEntity> extends CCView<T> {
protected mvvm = true; // 启用 MVVM 功能
}

View File

@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "c16b4914-d03b-40c7-8e6d-7817777881c6",
"files": [],
"subMetas": {},
"userData": {}
}

View File

@@ -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": [

View File

@@ -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",