@zhongguo168a/yxeditor-common 0.0.90 → 0.0.91
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/dist/index.d.ts +0 -5
- package/dist/index.esm.js +52 -51
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1366,11 +1366,6 @@ declare class ViewDict extends Dictionary<string, ViewModel> {
|
|
|
1366
1366
|
closeExclusion(validFunc?: (existed: ViewModel) => boolean): ViewList;
|
|
1367
1367
|
listByRoutePath(path: string): ViewList;
|
|
1368
1368
|
listByTags(tags: string[]): ViewList;
|
|
1369
|
-
/**
|
|
1370
|
-
* 往上追踪,返回第一个包含 RouteComponent 的节点, 返回节点中的 RouteView
|
|
1371
|
-
* @param node
|
|
1372
|
-
*/
|
|
1373
|
-
tailNode(node: Node): ViewModel;
|
|
1374
1369
|
}
|
|
1375
1370
|
declare class RouteViewDict extends ViewDict {
|
|
1376
1371
|
constructor();
|
package/dist/index.esm.js
CHANGED
|
@@ -4067,42 +4067,6 @@ class RouteView extends EventDispatcher {
|
|
|
4067
4067
|
}
|
|
4068
4068
|
}
|
|
4069
4069
|
|
|
4070
|
-
/******************************************************************************
|
|
4071
|
-
Copyright (c) Microsoft Corporation.
|
|
4072
|
-
|
|
4073
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4074
|
-
purpose with or without fee is hereby granted.
|
|
4075
|
-
|
|
4076
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4077
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4078
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4079
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4080
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4081
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4082
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
4083
|
-
***************************************************************************** */
|
|
4084
|
-
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
function __decorate(decorators, target, key, desc) {
|
|
4088
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4089
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4090
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4091
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4092
|
-
}
|
|
4093
|
-
|
|
4094
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
4095
|
-
var e = new Error(message);
|
|
4096
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
4097
|
-
};
|
|
4098
|
-
|
|
4099
|
-
const { ccclass, property, menu } = _decorator;
|
|
4100
|
-
let ViewModelComponent = class ViewModelComponent extends Component {
|
|
4101
|
-
};
|
|
4102
|
-
ViewModelComponent = __decorate([
|
|
4103
|
-
ccclass('ViewModelComponent')
|
|
4104
|
-
], ViewModelComponent);
|
|
4105
|
-
|
|
4106
4070
|
class ViewList extends List {
|
|
4107
4071
|
}
|
|
4108
4072
|
/**
|
|
@@ -4150,21 +4114,6 @@ class ViewDict extends Dictionary {
|
|
|
4150
4114
|
});
|
|
4151
4115
|
return list;
|
|
4152
4116
|
}
|
|
4153
|
-
/**
|
|
4154
|
-
* 往上追踪,返回第一个包含 RouteComponent 的节点, 返回节点中的 RouteView
|
|
4155
|
-
* @param node
|
|
4156
|
-
*/
|
|
4157
|
-
tailNode(node) {
|
|
4158
|
-
let current = node;
|
|
4159
|
-
while (current != null) {
|
|
4160
|
-
let com = current.getComponent(ViewModelComponent);
|
|
4161
|
-
if (com) {
|
|
4162
|
-
return com.viewModel;
|
|
4163
|
-
}
|
|
4164
|
-
current = current.parent;
|
|
4165
|
-
}
|
|
4166
|
-
return null;
|
|
4167
|
-
}
|
|
4168
4117
|
}
|
|
4169
4118
|
class RouteViewDict extends ViewDict {
|
|
4170
4119
|
constructor() {
|
|
@@ -4225,6 +4174,58 @@ class ViewHistory extends RouteList {
|
|
|
4225
4174
|
}
|
|
4226
4175
|
const viewhistorys = new ViewHistory();
|
|
4227
4176
|
|
|
4177
|
+
/******************************************************************************
|
|
4178
|
+
Copyright (c) Microsoft Corporation.
|
|
4179
|
+
|
|
4180
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4181
|
+
purpose with or without fee is hereby granted.
|
|
4182
|
+
|
|
4183
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
4184
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
4185
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
4186
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
4187
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
4188
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
4189
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
4190
|
+
***************************************************************************** */
|
|
4191
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
4192
|
+
|
|
4193
|
+
|
|
4194
|
+
function __decorate(decorators, target, key, desc) {
|
|
4195
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4196
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4197
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
4198
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4201
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
4202
|
+
var e = new Error(message);
|
|
4203
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
4204
|
+
};
|
|
4205
|
+
|
|
4206
|
+
var ViewModelComponent_1;
|
|
4207
|
+
const { ccclass, property, menu } = _decorator;
|
|
4208
|
+
let ViewModelComponent = ViewModelComponent_1 = class ViewModelComponent extends Component {
|
|
4209
|
+
/**
|
|
4210
|
+
* 往上追踪,返回第一个包含 RouteComponent 的节点, 返回节点中的 RouteView
|
|
4211
|
+
* @param node
|
|
4212
|
+
*/
|
|
4213
|
+
static tailNode(node) {
|
|
4214
|
+
let current = node;
|
|
4215
|
+
while (current != null) {
|
|
4216
|
+
let com = current.getComponent(ViewModelComponent_1);
|
|
4217
|
+
if (com) {
|
|
4218
|
+
return com.viewModel;
|
|
4219
|
+
}
|
|
4220
|
+
current = current.parent;
|
|
4221
|
+
}
|
|
4222
|
+
return null;
|
|
4223
|
+
}
|
|
4224
|
+
};
|
|
4225
|
+
ViewModelComponent = ViewModelComponent_1 = __decorate([
|
|
4226
|
+
ccclass('ViewModelComponent')
|
|
4227
|
+
], ViewModelComponent);
|
|
4228
|
+
|
|
4228
4229
|
class ViewModel extends EventDispatcher {
|
|
4229
4230
|
/**
|
|
4230
4231
|
* 视图模型的名称
|