jsbox-cview 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +19 -0
- package/components/alert/input-alert.ts +73 -0
- package/components/alert/login-alert.ts +75 -0
- package/components/alert/plain-alert.ts +49 -0
- package/components/alert/uialert.ts +110 -0
- package/components/artificial-flowlayout.ts +321 -0
- package/components/base.ts +47 -0
- package/components/custom-navigation-bar.ts +570 -0
- package/components/dialogs/dialog-sheet.ts +87 -0
- package/components/dialogs/form-dialog.ts +23 -0
- package/components/dialogs/list-dialog.ts +87 -0
- package/components/dialogs/text-dialog.ts +34 -0
- package/components/dynamic-itemsize-matrix.ts +190 -0
- package/components/dynamic-preference-listview.ts +691 -0
- package/components/dynamic-rowheight-list.ts +62 -0
- package/components/enhanced-imageview.ts +128 -0
- package/components/image-pager.ts +177 -0
- package/components/page-control.ts +91 -0
- package/components/pageviewer-titlebar.ts +170 -0
- package/components/pageviewer.ts +124 -0
- package/components/rotating-view.ts +126 -0
- package/components/searchbar.ts +373 -0
- package/components/sheet.ts +113 -0
- package/components/single-views.ts +828 -0
- package/components/spinners/loading-double-rings.ts +121 -0
- package/components/spinners/loading-dual-ring.ts +90 -0
- package/components/spinners/loading-wedges.ts +112 -0
- package/components/spinners/spinner-androidstyle.ts +264 -0
- package/components/static-preference-listview.ts +991 -0
- package/components/symbol-button.ts +105 -0
- package/components/tabbar.ts +451 -0
- package/controller/base-controller.ts +216 -0
- package/controller/controller-router.ts +74 -0
- package/controller/pageviewer-controller.ts +86 -0
- package/controller/presented-page-controller.ts +57 -0
- package/controller/splitview-controller.ts +323 -0
- package/controller/tabbar-controller.ts +99 -0
- package/package.json +23 -0
- package/test.ts +0 -0
- package/tsconfig.json +121 -0
- package/utils/colors.ts +13 -0
- package/utils/cvid.ts +34 -0
- package/utils/l10n.ts +42 -0
- package/utils/path.ts +100 -0
- package/utils/rect.ts +67 -0
- package/utils/uitools.ts +117 -0
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # CView Base Controller
|
|
3
|
+
*
|
|
4
|
+
* Cview 控件尽量保持非侵入性和功能专注。而控制器负责控件之间的关联和数据更新。
|
|
5
|
+
* 另外,控制器可以实现一些常用的页面构建形式,比如底部Tab分页,左侧滑动分页,弹出式页面等。
|
|
6
|
+
*
|
|
7
|
+
* ## 属性
|
|
8
|
+
*
|
|
9
|
+
* - id?: string 可以指定 id,如不指定,会自动赋值全局唯一 id
|
|
10
|
+
* - 只写 bgcolor?: UIColor = $color("primarySurface") rootView 的 bgcolor
|
|
11
|
+
* - 只读 cviews: {}
|
|
12
|
+
* - 只读 rootView
|
|
13
|
+
* - 只读 status
|
|
14
|
+
* - created = 0 被创建,未被加载
|
|
15
|
+
* - loaded = 1 被加载,显示状态未知
|
|
16
|
+
* - appearing = 2 处于可显示状态
|
|
17
|
+
* - disappearing = 3 处于不显示状态
|
|
18
|
+
* - removed = 4 根视图被移除
|
|
19
|
+
*
|
|
20
|
+
* ## 事件
|
|
21
|
+
*
|
|
22
|
+
* 5 个生命周期节点:创建、加载、显示、隐藏、销毁。后面四个具有生命周期事件。
|
|
23
|
+
*
|
|
24
|
+
* 创建阶段没有对应事件,此阶段适合为 rootView 添加子 view,不能涉及对 UIView 的任何操作,因为此时 rootView 还未加载。
|
|
25
|
+
*
|
|
26
|
+
* 生命周期事件:
|
|
27
|
+
*
|
|
28
|
+
* 1. didLoad: controller => void 在 rootView 被加载之后执行
|
|
29
|
+
* - 可以在 rootView 的 ready 事件中自动执行,也可以手动执行加快速度
|
|
30
|
+
* - 也可以在这个节点为 rootView 添加子 view
|
|
31
|
+
* - 这个节点可以对 UIView 进行操作了
|
|
32
|
+
* - 可以向 Model 层请求初始数据
|
|
33
|
+
* 2. didAppear: controller => void 在 rootView 显现的时候执行
|
|
34
|
+
* - 向 Model 层请求刷新数据
|
|
35
|
+
* 3. didDisappear: controller => void 在 rootView 不可见的时候执行
|
|
36
|
+
* - 如果是持续执行的刷新行为,可以在此处转为暂停
|
|
37
|
+
* 4. didRemove: controller => void 在 rootView 被移除的时候执行
|
|
38
|
+
* - 应该在此节点释放自定义的 objc
|
|
39
|
+
* - 数据持久化
|
|
40
|
+
*
|
|
41
|
+
* ## 方法
|
|
42
|
+
*
|
|
43
|
+
* 加载方法:
|
|
44
|
+
*
|
|
45
|
+
* 1. uirender(props) 此方法只能使用一次,对应的 Controller 将成为顶级 Controller
|
|
46
|
+
* 2. uipush(props)
|
|
47
|
+
* 3. 直接让 rootView.definition 包含在其他 View 的 views 参数中
|
|
48
|
+
*
|
|
49
|
+
* 生命周期管理:
|
|
50
|
+
*
|
|
51
|
+
* 1. load() 会在 rootView 的 ready 事件中自动调用,也可以手动调用,以加速运行
|
|
52
|
+
* 2. appear()
|
|
53
|
+
* 3. disappear()
|
|
54
|
+
* 4. remove() 用来移除 Router 中的当前 Controller,**请注意此方法和 rootView 的移除无关**,如果通过 uirender 和 uipush,可以在销毁时自动执行 remove()
|
|
55
|
+
*
|
|
56
|
+
* ## 其他
|
|
57
|
+
*
|
|
58
|
+
* - rootView 可以直接通过 rootView.views 设置其_views 属性,其中元素可以为 view 定义也可以为 cview
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
import { Base } from '../components/base';
|
|
62
|
+
import { ContentView } from '../components/single-views';
|
|
63
|
+
import { cvid } from "../utils/cvid";
|
|
64
|
+
import { router } from "./controller-router";
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* status
|
|
68
|
+
* - created = 0 被创建,未被加载
|
|
69
|
+
* - loaded = 1 被加载,显示状态未知
|
|
70
|
+
* - appeared= 2 处于可显示状态
|
|
71
|
+
* - disappeared = 3 处于不显示状态
|
|
72
|
+
* - removed = 4 根视图被移除
|
|
73
|
+
* 其中只有 2 和 3 可以相互转化,其他不可以
|
|
74
|
+
*/
|
|
75
|
+
const controllerStatus = {
|
|
76
|
+
created: 0,
|
|
77
|
+
loaded: 1,
|
|
78
|
+
appeared: 2,
|
|
79
|
+
disappeared: 3,
|
|
80
|
+
removed: 4
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export class ControllerRootView extends ContentView {
|
|
84
|
+
constructor({
|
|
85
|
+
props,
|
|
86
|
+
layout,
|
|
87
|
+
events
|
|
88
|
+
}: {
|
|
89
|
+
props: { bgcolor: UIColor };
|
|
90
|
+
layout: (make: MASConstraintMaker, view: UIView) => void;
|
|
91
|
+
events: { ready: (sender: UIView) => void };
|
|
92
|
+
}) {
|
|
93
|
+
super({ props, layout, events });
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
set views(views: UiTypes.AllViewOptions[] | Base<any, any>[]) {
|
|
97
|
+
const _views: UiTypes.AllViewOptions[] = views.map(v => {
|
|
98
|
+
if (v instanceof Base) return v.definition;
|
|
99
|
+
return v;
|
|
100
|
+
})
|
|
101
|
+
this._views = _views;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface BaseControllerProps {
|
|
106
|
+
id?: string;
|
|
107
|
+
bgcolor?: UIColor;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface BaseControllerEvents {
|
|
111
|
+
didCreate?: (controller: BaseController) => void;
|
|
112
|
+
didLoad?: (controller: BaseController) => void;
|
|
113
|
+
didAppear?: (controller: BaseController) => void;
|
|
114
|
+
didDisappear?: (controller: BaseController) => void;
|
|
115
|
+
didRemove?: (controller: BaseController) => void;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export class BaseController {
|
|
119
|
+
protected _props: BaseControllerProps;
|
|
120
|
+
protected _events: BaseControllerEvents;
|
|
121
|
+
readonly id: string;
|
|
122
|
+
private _status: number;
|
|
123
|
+
cviews: {
|
|
124
|
+
[key: string]: Base<any, any>;
|
|
125
|
+
};
|
|
126
|
+
readonly rootView: ControllerRootView;
|
|
127
|
+
constructor({ props, layout = $layout.fill, events = {} }: {
|
|
128
|
+
props?: BaseControllerProps;
|
|
129
|
+
layout?: (make: MASConstraintMaker, view: UIView) => void;
|
|
130
|
+
events?: BaseControllerEvents;
|
|
131
|
+
} = {}) {
|
|
132
|
+
this._props = props || {};
|
|
133
|
+
this._events = events;
|
|
134
|
+
this.id = this._props.id || cvid.newId;
|
|
135
|
+
|
|
136
|
+
this._status = controllerStatus.created; // status使用额外的get来使其只读
|
|
137
|
+
this.rootView = new ControllerRootView({
|
|
138
|
+
props: {
|
|
139
|
+
bgcolor: this._props.bgcolor || $color("primarySurface")
|
|
140
|
+
},
|
|
141
|
+
layout,
|
|
142
|
+
events: {
|
|
143
|
+
ready: sender => this.load()
|
|
144
|
+
}
|
|
145
|
+
})
|
|
146
|
+
this.cviews = {};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
load() {
|
|
150
|
+
// 只有status为created才可以运行
|
|
151
|
+
if (this._status !== controllerStatus.created) return;
|
|
152
|
+
this._status = controllerStatus.loaded;
|
|
153
|
+
if (this._events.didLoad) this._events.didLoad(this);
|
|
154
|
+
router.add(this)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
appear() {
|
|
158
|
+
// 只有status为loaded或者disappeared,才可以运行
|
|
159
|
+
if (
|
|
160
|
+
this._status !== controllerStatus.loaded &&
|
|
161
|
+
this._status !== controllerStatus.disappeared
|
|
162
|
+
)
|
|
163
|
+
return;
|
|
164
|
+
if (this._events.didAppear) this._events.didAppear(this);
|
|
165
|
+
this._status = controllerStatus.appeared;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
disappear() {
|
|
169
|
+
// 只有status为loaded或者appeared,才可以运行
|
|
170
|
+
if (
|
|
171
|
+
this._status !== controllerStatus.loaded &&
|
|
172
|
+
this._status !== controllerStatus.appeared
|
|
173
|
+
)
|
|
174
|
+
return;
|
|
175
|
+
if (this._events.didDisappear) this._events.didDisappear(this);
|
|
176
|
+
this._status = controllerStatus.disappeared;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// 此方法不能用于移除rootView,其作用是将控制器从Router中移除,并触发didRemove事件
|
|
180
|
+
remove() {
|
|
181
|
+
// 如果已经移除,不可以再次运行
|
|
182
|
+
if (this._status === controllerStatus.removed) return;
|
|
183
|
+
if (this._events.didRemove) this._events.didRemove(this);
|
|
184
|
+
router.delete(this)
|
|
185
|
+
this._status = controllerStatus.removed;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
uirender(props: UiTypes.RootViewPrefs) {
|
|
189
|
+
router.root = this;
|
|
190
|
+
$ui.render({
|
|
191
|
+
props,
|
|
192
|
+
views: [this.rootView.definition],
|
|
193
|
+
events: {
|
|
194
|
+
appeared: () => this.appear(),
|
|
195
|
+
disappeared: () => this.disappear(),
|
|
196
|
+
dealloc: () => this.remove()
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
uipush(props: UiTypes.RootViewPrefs) {
|
|
202
|
+
$ui.push({
|
|
203
|
+
props,
|
|
204
|
+
views: [this.rootView.definition],
|
|
205
|
+
events: {
|
|
206
|
+
appeared: () => this.appear(),
|
|
207
|
+
disappeared: () => this.disappear(),
|
|
208
|
+
dealloc: () => this.remove()
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
get status() {
|
|
214
|
+
return this._status;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 控制器的路由器,用于管理控制器的集合和操作。
|
|
3
|
+
*
|
|
4
|
+
* ## 属性
|
|
5
|
+
* - `root`:根控制器。
|
|
6
|
+
* - `appeared`:状态为appeared的控制器列表。
|
|
7
|
+
* - `controllerSet`:控制器集合。
|
|
8
|
+
*
|
|
9
|
+
* ## 方法
|
|
10
|
+
* - `add(controller: BaseController)`:添加控制器到路由器中。
|
|
11
|
+
* - `delete(controller: BaseController)`:从路由器中删除控制器。
|
|
12
|
+
* - `get(id: string)`:根据控制器的ID获取控制器。
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
import { BaseController } from "./base-controller";
|
|
17
|
+
|
|
18
|
+
class Router {
|
|
19
|
+
private _set: Set<BaseController>;
|
|
20
|
+
root?: BaseController;
|
|
21
|
+
constructor() {
|
|
22
|
+
this._set = new Set();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 添加控制器到路由器中。
|
|
27
|
+
* @param controller 要添加的控制器。
|
|
28
|
+
*/
|
|
29
|
+
add(controller: BaseController) {
|
|
30
|
+
this._set.add(controller);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 从路由器中删除控制器。
|
|
35
|
+
* @param controller 要删除的控制器。
|
|
36
|
+
*/
|
|
37
|
+
delete(controller: BaseController) {
|
|
38
|
+
this._set.delete(controller);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 根据控制器的ID获取控制器。
|
|
43
|
+
* @param id 控制器的ID。
|
|
44
|
+
* @returns 匹配的控制器,如果找不到则返回undefined。
|
|
45
|
+
*/
|
|
46
|
+
get(id: string) {
|
|
47
|
+
for (const c of this._set) {
|
|
48
|
+
if (c.id === id) return c;
|
|
49
|
+
}
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* 获取状态为appeared的控制器集合。
|
|
55
|
+
* @returns 控制器集合。
|
|
56
|
+
*/
|
|
57
|
+
get appeared() {
|
|
58
|
+
const appearedControllers = [];
|
|
59
|
+
for (const c of this._set) {
|
|
60
|
+
if (c.status === 2) appearedControllers.push(c);
|
|
61
|
+
}
|
|
62
|
+
return appearedControllers;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 获取控制器集合。
|
|
67
|
+
* @returns 控制器集合。
|
|
68
|
+
*/
|
|
69
|
+
get controllerSet() {
|
|
70
|
+
return this._set;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export const router = new Router();
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* # CView PageViewer Controller
|
|
3
|
+
*
|
|
4
|
+
* 一个可以左右滑动翻页的控制器。
|
|
5
|
+
*
|
|
6
|
+
* Props:
|
|
7
|
+
*
|
|
8
|
+
* - items: { controller: Controller, title: string }[]
|
|
9
|
+
* - navBarProps: {} 可用于 navBar 的其他属性,不包括 title 和 titleView
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import { BaseController, BaseControllerProps, BaseControllerEvents, ControllerRootView } from "./base-controller";
|
|
13
|
+
import { PageViewer } from "../components/pageviewer";
|
|
14
|
+
import { PageViewerTitleBar } from "../components/pageviewer-titlebar";
|
|
15
|
+
import { CustomNavigationBar, NavigationBarProps } from "../components/custom-navigation-bar";
|
|
16
|
+
|
|
17
|
+
interface PageViewerControllerProps extends BaseControllerProps {
|
|
18
|
+
items: { controller: BaseController, title: string }[];
|
|
19
|
+
navBarProps?: NavigationBarProps;
|
|
20
|
+
index?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class PageViewerController extends BaseController {
|
|
24
|
+
protected _props: PageViewerControllerProps;
|
|
25
|
+
cviews: {
|
|
26
|
+
pageviewer: PageViewer;
|
|
27
|
+
titlebar: PageViewerTitleBar;
|
|
28
|
+
navbar: CustomNavigationBar;
|
|
29
|
+
}
|
|
30
|
+
constructor({ props, layout, events = {} }: {
|
|
31
|
+
props: PageViewerControllerProps;
|
|
32
|
+
layout?: (make: MASConstraintMaker, view: UIView) => void;
|
|
33
|
+
events?: BaseControllerEvents;
|
|
34
|
+
}) {
|
|
35
|
+
super({ props: {
|
|
36
|
+
id: props.id,
|
|
37
|
+
bgcolor: props.bgcolor
|
|
38
|
+
}, layout, events });
|
|
39
|
+
this._props = props;
|
|
40
|
+
this.cviews = {} as {
|
|
41
|
+
pageviewer: PageViewer;
|
|
42
|
+
titlebar: PageViewerTitleBar;
|
|
43
|
+
navbar: CustomNavigationBar;
|
|
44
|
+
};
|
|
45
|
+
this.cviews.pageviewer = new PageViewer({
|
|
46
|
+
props: {
|
|
47
|
+
page: this._props.index,
|
|
48
|
+
cviews: this._props.items.map(n => n.controller.rootView)
|
|
49
|
+
},
|
|
50
|
+
layout: (make, view) => {
|
|
51
|
+
make.left.right.bottom.inset(0)
|
|
52
|
+
make.top.equalTo(view.prev.bottom)
|
|
53
|
+
},
|
|
54
|
+
events: {
|
|
55
|
+
floatPageChanged: (cview, floatPage) => (this.cviews.titlebar.floatedIndex = floatPage)
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
this.cviews.titlebar = new PageViewerTitleBar({
|
|
59
|
+
props: {
|
|
60
|
+
items: this._props.items.map(n => n.title),
|
|
61
|
+
index: this._props.index
|
|
62
|
+
},
|
|
63
|
+
layout: $layout.fill,
|
|
64
|
+
events: {
|
|
65
|
+
changed: (cview, index) => this.cviews.pageviewer.scrollToPage(index)
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
this.cviews.navbar = new CustomNavigationBar({
|
|
69
|
+
props: {
|
|
70
|
+
...this._props.navBarProps,
|
|
71
|
+
titleView: this.cviews.titlebar
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
this.rootView.views = [this.cviews.navbar, this.cviews.pageviewer]
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
get index() {
|
|
78
|
+
return this._props.index || 0
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
set index(num) {
|
|
82
|
+
this.cviews.titlebar.index = num
|
|
83
|
+
this.cviews.pageviewer.page = num
|
|
84
|
+
this._props.index = num
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** # CView PresentedPageController
|
|
2
|
+
*
|
|
3
|
+
* ## Props
|
|
4
|
+
*
|
|
5
|
+
* - presentMode?: number = 1
|
|
6
|
+
* - animated?: boolean = true
|
|
7
|
+
* - interactiveDismissalDisabled?: boolean = false
|
|
8
|
+
* - bgcolor?: UIColor = $color("secondarySurface")
|
|
9
|
+
*
|
|
10
|
+
* ## 专用方法
|
|
11
|
+
*
|
|
12
|
+
* - present() 在 `sheet.present()` 之后会先后执行 `load()` 和 `appear()`
|
|
13
|
+
* - dismiss()
|
|
14
|
+
*
|
|
15
|
+
* ## 布局
|
|
16
|
+
* 此控制器的 layout 必定为 `$layout.fill`,无需自行设定
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
import { BaseController, BaseControllerProps, BaseControllerEvents, ControllerRootView } from "./base-controller";
|
|
20
|
+
import { Sheet } from "../components/sheet";
|
|
21
|
+
|
|
22
|
+
interface PresentedPageControllerProps extends BaseControllerProps {
|
|
23
|
+
presentMode?: number;
|
|
24
|
+
animated?: boolean;
|
|
25
|
+
interactiveDismissalDisabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export class PresentedPageController extends BaseController {
|
|
29
|
+
private _sheet: Sheet<ControllerRootView, UIView, UiTypes.ViewOptions>;
|
|
30
|
+
constructor({ props, layout, events }: {
|
|
31
|
+
props?: Partial<PresentedPageControllerProps>;
|
|
32
|
+
layout?: (make: MASConstraintMaker, view: UIView) => void;
|
|
33
|
+
events?: BaseControllerEvents;
|
|
34
|
+
} = {}) {
|
|
35
|
+
super({ props: {
|
|
36
|
+
id: props?.id
|
|
37
|
+
}, layout, events });
|
|
38
|
+
this._sheet = new Sheet<ControllerRootView, UIView, UiTypes.ViewOptions>({
|
|
39
|
+
presentMode: props?.presentMode || 1,
|
|
40
|
+
animated: props?.animated || true,
|
|
41
|
+
interactiveDismissalDisabled: props?.interactiveDismissalDisabled || false,
|
|
42
|
+
bgcolor: props?.bgcolor || $color("secondarySurface"),
|
|
43
|
+
cview: this.rootView,
|
|
44
|
+
dismissalHandler: () => this.remove()
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
present() {
|
|
49
|
+
if (this._sheet) this._sheet.present()
|
|
50
|
+
this.load()
|
|
51
|
+
this.appear()
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
dismiss() {
|
|
55
|
+
if (this._sheet) this._sheet.dismiss()
|
|
56
|
+
}
|
|
57
|
+
}
|