跳至主要內容

Class: view_base

muzzik大约 2 分钟

index / view_base

Class: view_base

视图基类

Remarks

  • 添加编辑器快捷操作

  • 添加弹窗动画配置

  • 独立展示配置

Hierarchy

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:117open in new window


show_alone_b

show_alone_b: boolean = false

Defined in

assets/@framework/module/mk_view_base.ts:137open in new window


animation_config

animation_config: animation_config

Defined in

assets/@framework/module/mk_view_base.ts:144open in new window


data

Optional data: any

视图数据

Remarks

如果是 class 类型数据会在 close 后自动重置,根据 this._reset_data_b 控制

Defined in

assets/@framework/module/mk_view_base.ts:191open in new window


_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:216open in new window


_view_config

Protected _view_config: view_config

视图配置

Defined in

assets/@framework/module/mk_view_base.ts:218open in new window

Accessors

auto_mask_b

get auto_mask_b(): boolean

Returns

boolean

Defined in

assets/@framework/module/mk_view_base.ts:151open in new window

set auto_mask_b(value_b_): void

Parameters

NameType
value_b_boolean

Returns

void

Defined in

assets/@framework/module/mk_view_base.ts:155open in new window


auto_widget_b

get auto_widget_b(): boolean

Returns

boolean

Defined in

assets/@framework/module/mk_view_base.ts:164open in new window

set auto_widget_b(value_b_): void

Parameters

NameType
value_b_boolean

Returns

void

Defined in

assets/@framework/module/mk_view_base.ts:168open in new window


auto_block_input_b

get auto_block_input_b(): boolean

Returns

boolean

Defined in

assets/@framework/module/mk_view_base.ts:177open in new window

set auto_block_input_b(value_b_): void

Parameters

NameType
value_b_boolean

Returns

void

Defined in

assets/@framework/module/mk_view_base.ts:181open in new window


type_s

get type_s(): string

视图类型

Returns

string

Defined in

assets/@framework/module/mk_view_base.ts:194open in new window


config

set config(config_): void

模块配置

Parameters

NameType
config_create_config

Returns

void

Overrides

mk_life_cycle.config

Defined in

assets/@framework/module/mk_view_base.ts:199open in new window

Methods

onLoad

Protected onLoad(): void

Returns

void

Overrides

life_cycle.onLoad

Defined in

assets/@framework/module/mk_view_base.ts:221open in new window


open

Protected open(): void | Promise<void>

打开

Returns

void | Promise<void>

Remarks

init 后执行,在此处执行无需 init_data 支持的模块初始化操作

Overrides

life_cycle.open

Defined in

assets/@framework/module/mk_view_base.ts:243open in new window


close

close(config_?): void | Promise<void>

关闭

Parameters

NameTypeDescription
config_?Omit<close_config<any>, "type" | "all_b">关闭配置

Returns

void | Promise<void>

Overrides

life_cycle.close

Defined in

assets/@framework/module/mk_view_base.ts:261open in new window


late_close

Protected Optional late_close(): void | Promise<void>

关闭后

Returns

void | Promise<void>

Remarks

在子模块 close 和 late_close 后执行

Overrides

life_cycle.late_close

Defined in

assets/@framework/module/mk_view_base.ts:271open in new window


_init_editor

Protected _init_editor(): void

初始化编辑器

Returns

void

Overrides

mk_life_cycle._init_editor

Defined in

assets/@framework/module/mk_view_base.ts:293open in new window

📣 觉得很赞?分享给你的朋友吧!