export-table-pulgin-csharp 1.0.19 → 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":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AAG1H,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAqOpE;AAED,qBAAa,YAAa,SAAQ,UAAU;IAC3C,IAAI,SAAW;IACf,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAOpC;AAED,eAAO,MAAM,aAAa,gBAEzB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AAG1H,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAuOpE;AAED,qBAAa,YAAa,SAAQ,UAAU;IAC3C,IAAI,SAAW;IACf,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAOpC;AAED,eAAO,MAAM,aAAa,gBAEzB,CAAA"}
package/dist/index.js CHANGED
@@ -148,6 +148,7 @@ function export_stuff(paras) {
148
148
  using System.Collections.Generic;
149
149
  using System.Linq;
150
150
 
151
+ namespace MEEC.ExportedConfigs{
151
152
  public class ${RowClass} {
152
153
 
153
154
  public static List<${RowClass}> Configs = new List<${RowClass}>()
@@ -182,7 +183,7 @@ ${(0, export_table_lib_1.foreach)(getDescripts(f), line => ` /// ${line}`)}
182
183
  public ${getFieldType(f)} ${convMemberName(f.name)};`)}
183
184
 
184
185
  ${(0, export_table_lib_1.cmm)( /**生成get字段 */)}
185
- #region get字段
186
+ #region get字段
186
187
  ${(0, export_table_lib_1.foreach)(fields, f => {
187
188
  if (f.nameOrigin != f.name) {
188
189
  return ` public ${getFieldType(f)} ${getTitle(f).replace(" ", "_")} => ${convMemberName(f.name)};`;
@@ -191,9 +192,9 @@ ${(0, export_table_lib_1.foreach)(fields, f => {
191
192
  return "";
192
193
  }
193
194
  })}
194
- #endregion
195
+ #endregion
195
196
 
196
- #region 生成fk.get/set
197
+ #region 生成fk.get/set
197
198
  ${(0, export_table_lib_1.foreach)(fields, f => `
198
199
  ${(0, export_table_lib_1.iff)(f.type == "fk", () => `
199
200
  ${(0, export_table_lib_1.iff)(getFkFieldType(f).toLowerCase() != "uid", () => `
@@ -247,7 +248,8 @@ ${(0, export_table_lib_1.iff)(f.type == "fk[]", () => `
247
248
  }
248
249
  `)}
249
250
  `)}
250
- #endregion 生成fk.get/set
251
+ #endregion 生成fk.get/set
252
+ }
251
253
  }
252
254
  `;
253
255
  return temp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -117,6 +117,7 @@ export function export_stuff(paras: HandleSheetParams): string | null {
117
117
  using System.Collections.Generic;
118
118
  using System.Linq;
119
119
 
120
+ namespace MEEC.ExportedConfigs{
120
121
  public class ${RowClass} {
121
122
 
122
123
  public static List<${RowClass}> Configs = new List<${RowClass}>()
@@ -160,7 +161,7 @@ ${foreach(getDescripts(f), line =>
160
161
  )}
161
162
 
162
163
  ${cmm(/**生成get字段 */)}
163
- #region get字段
164
+ #region get字段
164
165
  ${foreach(fields, f => {
165
166
  if (f.nameOrigin != f.name) {
166
167
  return ` public ${getFieldType(f)} ${getTitle(f).replace(" ", "_")} => ${convMemberName(f.name)};`
@@ -169,9 +170,9 @@ ${foreach(fields, f => {
169
170
  }
170
171
  }
171
172
  )}
172
- #endregion
173
+ #endregion
173
174
 
174
- #region 生成fk.get/set
175
+ #region 生成fk.get/set
175
176
  ${foreach(fields, f => `
176
177
  ${iff(f.type == "fk", () => `
177
178
  ${iff(getFkFieldType(f).toLowerCase() != "uid", () => `
@@ -225,7 +226,8 @@ ${iff(f.type == "fk[]", () => `
225
226
  }
226
227
  `)}
227
228
  `)}
228
- #endregion 生成fk.get/set
229
+ #endregion 生成fk.get/set
230
+ }
229
231
  }
230
232
  `
231
233