@wevu/compiler 7.3.0 → 7.4.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/dist/index.d.mts +7 -0
- package/dist/index.mjs +7 -7
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -134,6 +134,7 @@ export declare function createRuntimeBindingManifest(manifest: WevuBindingManife
|
|
|
134
134
|
//#region src/constants.d.ts
|
|
135
135
|
export declare const WE_VU_PAGE_HOOK_TO_FEATURE: {
|
|
136
136
|
readonly onPageScroll: "enableOnPageScroll";
|
|
137
|
+
readonly usePageScrollRestoration: "enableOnPageScroll";
|
|
137
138
|
readonly onPullDownRefresh: "enableOnPullDownRefresh";
|
|
138
139
|
readonly onReachBottom: "enableOnReachBottom";
|
|
139
140
|
readonly onRouteDone: "enableOnRouteDone";
|
|
@@ -180,6 +181,8 @@ export declare const WE_VU_RUNTIME_MODULE_IDS: readonly ["wevu", "wevu/internal-
|
|
|
180
181
|
* 判断模块 ID 是否为 wevu 运行时入口。
|
|
181
182
|
*/
|
|
182
183
|
export declare function isWevuRuntimeModuleId(moduleId: string): boolean;
|
|
184
|
+
/** 页面特性可由独立 router 入口的适配器启用,但该入口不提供组件工厂。 */
|
|
185
|
+
export declare function isWevuPageFeatureModuleId(moduleId: string): boolean;
|
|
183
186
|
/**
|
|
184
187
|
* wevu 运行时 API 名称映射。
|
|
185
188
|
*/
|
|
@@ -2122,6 +2125,10 @@ interface TemplateCompileOptions {
|
|
|
2122
2125
|
objectLiteralBindMode?: ObjectLiteralBindMode;
|
|
2123
2126
|
mustacheInterpolation?: MustacheInterpolationMode;
|
|
2124
2127
|
formatWxml?: boolean;
|
|
2128
|
+
/**
|
|
2129
|
+
* 保留模板注释,供最终产物阶段统一处理;默认移除。
|
|
2130
|
+
*/
|
|
2131
|
+
preserveComments?: boolean;
|
|
2125
2132
|
runtimeBindingManifest?: WevuRuntimeBindingManifestMode;
|
|
2126
2133
|
wxsExtension?: string;
|
|
2127
2134
|
classStyleWxsSrc?: string;
|