@zenweb/template 5.4.0 → 5.4.1
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 -1
- package/dist/index.js +1 -1
- package/dist/render.js +3 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './global';
|
|
|
5
5
|
export default function setup(option: TemplateSetupOption): SetupFunction;
|
|
6
6
|
declare module '@zenweb/core' {
|
|
7
7
|
interface Context {
|
|
8
|
-
templateOption?: TemplateOption;
|
|
8
|
+
templateOption?: TemplateOption | false;
|
|
9
9
|
/**
|
|
10
10
|
* 启用并设置模版渲染
|
|
11
11
|
* - 不传参数: 启用
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ __exportStar(require("./types"), exports);
|
|
|
21
21
|
__exportStar(require("./global"), exports);
|
|
22
22
|
function contextTemplate(template_or_option) {
|
|
23
23
|
if (template_or_option === false) {
|
|
24
|
-
this.templateOption =
|
|
24
|
+
this.templateOption = false;
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
if (!this.templateOption) {
|
package/dist/render.js
CHANGED