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

+ 1 - 1
dist/FileUtil.js

@@ -134,7 +134,7 @@ 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);
+            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}`
+            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{`