mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-14 09:37:11 +08:00
添加CCViewVM兼容老项目
This commit is contained in:
14
assets/module/common/CCViewVM.ts
Normal file
14
assets/module/common/CCViewVM.ts
Normal 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 功能
|
||||
}
|
||||
9
assets/module/common/CCViewVM.ts.meta
Normal file
9
assets/module/common/CCViewVM.ts.meta
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "c16b4914-d03b-40c7-8e6d-7817777881c6",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -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": [
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user