mirror of
https://github.com/motajs/template.git
synced 2026-11-11 13:34:31 +08:00
refactor: 怪物手册 UI 重构
This commit is contained in:
1 parent
376f36b43c
commit
6c6f7da76a
29 files changed
+2577
-930
No files matched your search
@@ -24,11 +24,14 @@ export type SetupComponentOptions<
|
||||
|
||||
export type UIComponent = DefineSetupFnComponent<any> | DefineComponent;
|
||||
|
||||
export interface IUIDefaultPropsBase<T extends UIComponent = UIComponent> {
|
||||
export interface IUIDefaultPropsBase<
|
||||
T extends UIComponent = UIComponent,
|
||||
PB extends IUIDefaultPropsBase<any> = IUIDefaultPropsBase<any, any>
|
||||
> {
|
||||
/** 当前打开的 UI 所属的控制器 */
|
||||
readonly controller: IUIController<this>;
|
||||
readonly controller: IUIController<PB>;
|
||||
/** 当前 UI 实例对象 */
|
||||
readonly instance: IUIInstance<T, this>;
|
||||
readonly instance: IUIInstance<T, PB>;
|
||||
}
|
||||
|
||||
export interface IGameUI<C extends UIComponent = UIComponent> {
|
||||
|
||||
Reference in new issue
Block a user