@zhongguo168a/yxeditor-common 0.0.25 → 0.0.26
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 +1 -0
- package/dist/index.esm.js +9 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1144,6 +1144,7 @@ declare class PageRepo extends PageList {
|
|
|
1144
1144
|
getHistory(): Route[];
|
|
1145
1145
|
back(): void;
|
|
1146
1146
|
getByRoute(route: Route): Page;
|
|
1147
|
+
listByRoutePath(path: string): PageList;
|
|
1147
1148
|
listByTags(tags: string[]): PageList;
|
|
1148
1149
|
getLayerMain(): PageLayer;
|
|
1149
1150
|
/**
|
package/dist/index.esm.js
CHANGED
|
@@ -3839,6 +3839,15 @@ class PageRepo extends PageList {
|
|
|
3839
3839
|
getByRoute(route) {
|
|
3840
3840
|
return this._indexRoute[route.key];
|
|
3841
3841
|
}
|
|
3842
|
+
listByRoutePath(path) {
|
|
3843
|
+
let list = new PageList();
|
|
3844
|
+
this.forEach((index, item) => {
|
|
3845
|
+
if (item.controller.route.path == path) {
|
|
3846
|
+
list.push(item);
|
|
3847
|
+
}
|
|
3848
|
+
});
|
|
3849
|
+
return list;
|
|
3850
|
+
}
|
|
3842
3851
|
listByTags(tags) {
|
|
3843
3852
|
let list = new PageList();
|
|
3844
3853
|
this.forEach((index, item) => {
|