소스 검색

ts template

lrf 2 년 전
부모
커밋
2c79a52966
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/public/ts-template.js

+ 1 - 1
app/public/ts-template.js

@@ -23,7 +23,7 @@ const ModelContext = (data) => {
   // 处理字段
   for (const col of columns) {
     const { type, title } = col;
-    const prop = _.pick(col, ['required', 'index', 'zh', 'remark']);
+    const prop = _.pick(col, ['required', 'index', 'zh', 'remark', 'def']);
     const modelType = getModelType(type);
     fc.push(`  @prop(${JSON.stringify(prop)})`);
     fc.push(`  ${title}: ${modelType}`);