lanyunfei hai 6 meses
pai
achega
c0ea738244
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 2 1
      dist/FileUtil.js
  2. 1 1
      src/FileUtil.ts

+ 2 - 1
dist/FileUtil.js

@@ -134,7 +134,8 @@ var FileUtil = /** @class */ (function () {
             for (var i = 1; i < key.arrayNum; i++) {
                 arrStr += '[]';
             }
-            text += "\r\n\t".concat(key.name, ":").concat(key.type).concat(arrStr).concat(index < outPutData.headInfo.keys.length - 1 ? ',' : '', " //").concat(key.des.replace(/\s/g, ''));
+            if (key.outputclient)
+                text += "\r\n\t".concat(key.name, ":").concat(key.type).concat(arrStr).concat(index < outPutData.headInfo.keys.length - 1 ? ',' : '', " //").concat(key.des.replace(/\s/g, ''));
         });
         text += '\r\n}\r\n';
         text += "export let ".concat(outPutData.sheetname, ": { [key: string]: I").concat(outPutData.sheetname, " }=\r\n{");

+ 1 - 1
src/FileUtil.ts

@@ -130,7 +130,7 @@ export default class FileUtil {
             for (let i = 1; i < key.arrayNum; i++) {
                 arrStr += '[]'
             }
-            text += `\r\n\t${key.name}:${key.type}${arrStr}${index < outPutData.headInfo.keys.length - 1 ? ',' : ''} //${key.des.replace(/\s/g, '')}`
+            if (key.outputclient) text += `\r\n\t${key.name}:${key.type}${arrStr}${index < outPutData.headInfo.keys.length - 1 ? ',' : ''} //${key.des.replace(/\s/g, '')}`
         })
         text += '\r\n}\r\n'
         text += `export let ${outPutData.sheetname}: { [key: string]: I${outPutData.sheetname} }=\r\n{`