|
@@ -130,7 +130,11 @@ var FileUtil = /** @class */ (function () {
|
|
|
var jsobj = outPutData.jsobj;
|
|
|
text += "export interface I".concat(outPutData.sheetname, " {");
|
|
|
outPutData.headInfo.keys.forEach(function (key, index) {
|
|
|
- text += "\r\n\t".concat(key.name, ":").concat(key.type).concat(index < outPutData.headInfo.keys.length - 1 ? ',' : '', " //").concat(key.des);
|
|
|
+ var arrStr = '';
|
|
|
+ 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}\r\n';
|
|
|
text += "export let ".concat(outPutData.sheetname, ": { [key: string]: I").concat(outPutData.sheetname, " }=\r\n{");
|