Class: view_base
index / view_base
Class: view_base
视图基类
Remarks
添加编辑器快捷操作
添加弹窗动画配置
独立展示配置
Hierarchy
↳
view_base
Table of contents
Properties
Accessors
Methods
Properties
config
▪ Static
config: global_config
Overrides
mk_life_cycle.config
Defined in
assets/@framework/module/mk_view_base.ts:117
show_alone_b
• show_alone_b: boolean
= false
Defined in
assets/@framework/module/mk_view_base.ts:137
animation_config
• animation_config: animation_config
Defined in
assets/@framework/module/mk_view_base.ts:144
data
• Optional
data: any
视图数据
Remarks
如果是 class 类型数据会在 close 后自动重置,根据 this._reset_data_b 控制
Defined in
assets/@framework/module/mk_view_base.ts:191
_reset_data_b
• Protected
_reset_data_b: boolean
= true
重置 data
Remarks
close 后重置 this.data,data 必须为 class 类型
Defined in
assets/@framework/module/mk_view_base.ts:216
_view_config
• Protected
_view_config: view_config
视图配置
Defined in
assets/@framework/module/mk_view_base.ts:218
Accessors
auto_mask_b
• get
auto_mask_b(): boolean
Returns
boolean
Defined in
assets/@framework/module/mk_view_base.ts:151
• set
auto_mask_b(value_b_
): void
Parameters
Name | Type |
---|---|
value_b_ | boolean |
Returns
void
Defined in
assets/@framework/module/mk_view_base.ts:155
auto_widget_b
• get
auto_widget_b(): boolean
Returns
boolean
Defined in
assets/@framework/module/mk_view_base.ts:164
• set
auto_widget_b(value_b_
): void
Parameters
Name | Type |
---|---|
value_b_ | boolean |
Returns
void
Defined in
assets/@framework/module/mk_view_base.ts:168
auto_block_input_b
• get
auto_block_input_b(): boolean
Returns
boolean
Defined in
assets/@framework/module/mk_view_base.ts:177
• set
auto_block_input_b(value_b_
): void
Parameters
Name | Type |
---|---|
value_b_ | boolean |
Returns
void
Defined in
assets/@framework/module/mk_view_base.ts:181
type_s
• get
type_s(): string
视图类型
Returns
string
Defined in
assets/@framework/module/mk_view_base.ts:194
config
• set
config(config_
): void
模块配置
Parameters
Name | Type |
---|---|
config_ | create_config |
Returns
void
Overrides
mk_life_cycle.config
Defined in
assets/@framework/module/mk_view_base.ts:199
Methods
onLoad
▸ Protected
onLoad(): void
Returns
void
Overrides
Defined in
assets/@framework/module/mk_view_base.ts:221
open
▸ Protected
open(): void
| Promise
<void
>
打开
Returns
void
| Promise
<void
>
Remarks
init 后执行,在此处执行无需 init_data 支持的模块初始化操作
Overrides
Defined in
assets/@framework/module/mk_view_base.ts:243
close
▸ close(config_?
): void
| Promise
<void
>
关闭
Parameters
Name | Type | Description |
---|---|---|
config_? | Omit <close_config <any >, "type" | "all_b" > | 关闭配置 |
Returns
void
| Promise
<void
>
Overrides
Defined in
assets/@framework/module/mk_view_base.ts:261
late_close
▸ Protected
Optional
late_close(): void
| Promise
<void
>
关闭后
Returns
void
| Promise
<void
>
Remarks
在子模块 close 和 late_close 后执行
Overrides
Defined in
assets/@framework/module/mk_view_base.ts:271
_init_editor
▸ Protected
_init_editor(): void
初始化编辑器
Returns
void
Overrides
mk_life_cycle._init_editor