export-table-plugin-typescript 1.0.18 → 1.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ExportTS.d.ts","sourceRoot":"","sources":["../src/ExportTS.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAmF,MAAM,kBAAkB,CAAA;AAGnL,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAyOpE;AAED,qBAAa,cAAe,SAAQ,UAAU;IAC7C,IAAI,SAAe;IACnB,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAQpC"}
1
+ {"version":3,"file":"ExportTS.d.ts","sourceRoot":"","sources":["../src/ExportTS.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAmF,MAAM,kBAAkB,CAAA;AAGnL,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA8OpE;AAED,qBAAa,cAAe,SAAQ,UAAU;IAC7C,IAAI,SAAe;IACnB,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAQpC"}
package/dist/ExportTS.js CHANGED
@@ -227,9 +227,14 @@ export class ${ClassName} {
227
227
  public static readonly I = new ${ClassName}();
228
228
 
229
229
  readonly Configs: ${RowClass}[] = [];
230
+ get Head(){
231
+ return this.Configs[0]
232
+ }
230
233
 
231
234
  protected LoadDefaultConfigs() {
232
235
 
236
+ let configs = this.Configs
237
+
233
238
  let rowData:any[]=
234
239
  [
235
240
  ${(0, export_table_lib_1.foreach)(datas, d => `
@@ -257,7 +262,7 @@ export class ${ClassName} {
257
262
  `)}
258
263
 
259
264
  for(let r of tableData){
260
- ${name}s.push(r);
265
+ configs.push(r);
261
266
  ${(0, export_table_lib_1.iff)(mapfield, () => `
262
267
  (${mapName} as any)[r.${mapfield.name}] = r;
263
268
  `)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-plugin-typescript",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
package/src/ExportTS.ts CHANGED
@@ -191,9 +191,14 @@ export class ${ClassName} {
191
191
  public static readonly I = new ${ClassName}();
192
192
 
193
193
  readonly Configs: ${RowClass}[] = [];
194
+ get Head(){
195
+ return this.Configs[0]
196
+ }
194
197
 
195
198
  protected LoadDefaultConfigs() {
196
199
 
200
+ let configs = this.Configs
201
+
197
202
  let rowData:any[]=
198
203
  [
199
204
  ${foreach(datas, d => `
@@ -221,7 +226,7 @@ export class ${ClassName} {
221
226
  `)}
222
227
 
223
228
  for(let r of tableData){
224
- ${name}s.push(r);
229
+ configs.push(r);
225
230
  ${iff(mapfield, () => `
226
231
  (${mapName} as any)[r.${mapfield!.name}] = r;
227
232
  `)}