@baosight/er4j 0.0.26 → 0.0.27

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.
@@ -27109,7 +27109,7 @@ var y;
27109
27109
  * @returns 驼峰命名
27110
27110
  */
27111
27111
  static camelCase(r) {
27112
- return r.toLowerCase().replace(/_([a-z])/g, (i, n) => n.toUpperCase()).replace(/^([a-z])/, (i, n) => n.toLowerCase()) || "";
27112
+ return /^[a-z]+([A-Z][a-z]*)*$/.test(r) ? r : r.toLowerCase().replace(/_([a-z])/g, (i, n) => n.toUpperCase()).replace(/^([a-z])/, (i, n) => n.toLowerCase()) || "";
27113
27113
  }
27114
27114
  /**
27115
27115
  * 验证是否为有效的正则表达式
@@ -31291,9 +31291,9 @@ var y;
31291
31291
  */
31292
31292
  setDropDownBindOptions(r, i, n) {
31293
31293
  var de, pe;
31294
- const s = t.toString(i.DISPLAY_COLS).toUpperCase();
31294
+ const s = t.toString(i.DISPLAY_COLS);
31295
31295
  let c = t.toString(i.DISPLAY_CAPTIONS).trim(), h = !1;
31296
- const p = t.toString(i.VALUE_MEMBER).toUpperCase(), C = t.toString(i.DISPLAY_MEMBER).toUpperCase(), m = t.toNumber(i.VALUE_POSITION), S = t.toNumber(i.DISPLAY_POSITION), D = [], L = e.Core.$t("ERX.CodeColumn") || "代码", X = e.Core.$t("ERX.DescriptionColumn") || "描述";
31296
+ const p = t.toString(i.VALUE_MEMBER), C = t.toString(i.DISPLAY_MEMBER), m = t.toNumber(i.VALUE_POSITION), S = t.toNumber(i.DISPLAY_POSITION), D = [], L = e.Core.$t("ERX.CodeColumn") || "代码", X = e.Core.$t("ERX.DescriptionColumn") || "描述";
31297
31297
  c.startsWith("$t(") && c.endsWith(")") && (c = c.substring(3, c.length - 1), h = !0);
31298
31298
  let R = "CODE";
31299
31299
  p.trim().length > 0 && (R = p.trim());
@@ -31350,7 +31350,7 @@ var y;
31350
31350
  if (n instanceof Array && n.length > 0 ? s.push(...n) : e.Core.toString(n).length > 0 && s.push(e.Core.toString(n)), r && r.length > 0 && i.length > 0 && s.length > 0) {
31351
31351
  const c = i.indexOf(" like ") >= 0 ? "like" : i.indexOf(" <> ") >= 0 ? "<>" : "=", h = i.split(c);
31352
31352
  if (h.length === 2) {
31353
- const p = h[0].trim().toUpperCase(), C = h[1].trim().toUpperCase(), m = [];
31353
+ const p = h[0].trim(), C = h[1].trim(), m = [];
31354
31354
  return r.forEach((S) => {
31355
31355
  const D = e.Core.toString(S[p]).trim();
31356
31356
  if (D.length > 0) {