From 1129b5f458017073c7e69553588cffd204a9e3dd Mon Sep 17 00:00:00 2001 From: walon Date: Mon, 3 May 2021 22:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E5=A4=8D=E3=80=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=94=9F=E6=88=90typescript=20const=E7=B1=BB=E6=9C=AA?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Luban.Job.Common/Source/Utils/RenderUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Luban.Job.Common/Source/Utils/RenderUtil.cs b/src/Luban.Job.Common/Source/Utils/RenderUtil.cs index 58efc2b..57843e6 100644 --- a/src/Luban.Job.Common/Source/Utils/RenderUtil.cs +++ b/src/Luban.Job.Common/Source/Utils/RenderUtil.cs @@ -190,14 +190,14 @@ enum class {{name}} var template = t_tsConstRender ??= Template.Parse(@" -{{typescript_namespace_begin}} +{{x.typescript_namespace_begin}} export class {{x.name}} { {{~ for item in x.items ~}} static {{item.name}} = {{ts_const_value item.ctype item.value}}; {{~end~}} } -{{typescript_namespace_end}} +{{x.typescript_namespace_end}} "); var result = template.Render(ctx);