zzz-pc-view 0.0.2 → 0.0.4

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.
@@ -233,6 +233,15 @@ type RawRouteComponent = RouteComponent | Lazy<RouteComponent>;
233
233
  * @typedef {Record<string, RawRouteComponent>} PageViewMap
234
234
  */
235
235
  type PageViewMap = Record<string, RawRouteComponent>;
236
+ /**
237
+ * 根据传入的页面视图映射和可选的路径忽略正则表达式,生成一个新的页面视图映射。
238
+ * 该函数会遍历原始的页面视图映射,对每个键进行处理,去除路径中的忽略部分,并提取页面视图的名称。
239
+ * 最终返回一个新的页面视图映射,其中键是处理后的页面视图名称,值是对应的页面创建函数。
240
+ * @param {PageViewMap} pageViewMap - 原始的页面视图映射,键是路径,值是页面创建函数。
241
+ * @param {RegExp} [pageViewPathIgnore] - 可选的正则表达式,用于忽略路径中的某些部分。
242
+ * @returns {PageViewMap} - 处理后的页面视图映射。
243
+ */
244
+ export declare const getPageViewMap: (pageViewMap: PageViewMap, pageViewPathIgnore?: RegExp) => PageViewMap;
236
245
  /**
237
246
  * 定义一个类型别名 `ZNavWithoutButton`,它是 `ZNav` 类型中排除 `ZNavButton` 类型后的结果。
238
247
  * 这个类型别名用于表示不包含按钮的导航项,通常用于构建导航树或处理导航项的层级结构。