form-custom-test 3.0.149 → 3.0.151

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.
package/dist/render.es.js CHANGED
@@ -3073,6 +3073,16 @@ function buildDefaultFormJson() {
3073
3073
  formConfig: deepClone(getDefaultFormConfig())
3074
3074
  };
3075
3075
  }
3076
+ function formatAmount(value2, fractionDigits = 6) {
3077
+ if (value2 === null || value2 === void 0 || value2 === "") {
3078
+ return "";
3079
+ }
3080
+ const num = Number(value2);
3081
+ if (Number.isNaN(num)) {
3082
+ return String(value2);
3083
+ }
3084
+ return num.toFixed(fractionDigits).replace(/\.?0+$/, "");
3085
+ }
3076
3086
  const getRegExp = function(validatorName2) {
3077
3087
  const commonRegExp = {
3078
3088
  number: "/^[-]?\\d+(\\.\\d+)?$/",
@@ -26290,13 +26300,13 @@ function registerIcon(app) {
26290
26300
  if (typeof window !== "undefined") {
26291
26301
  let loadSvg = function() {
26292
26302
  var body = document.body;
26293
- var svgDom = document.getElementById("__svg__icons__dom__1779155904177__");
26303
+ var svgDom = document.getElementById("__svg__icons__dom__1779156464942__");
26294
26304
  if (!svgDom) {
26295
26305
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26296
26306
  svgDom.style.position = "absolute";
26297
26307
  svgDom.style.width = "0";
26298
26308
  svgDom.style.height = "0";
26299
- svgDom.id = "__svg__icons__dom__1779155904177__";
26309
+ svgDom.id = "__svg__icons__dom__1779156464942__";
26300
26310
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26301
26311
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26302
26312
  }
@@ -61980,6 +61990,7 @@ const _sfc_main$6 = {
61980
61990
  };
61981
61991
  },
61982
61992
  methods: {
61993
+ formatAmount,
61983
61994
  handleClose() {
61984
61995
  this.form = {
61985
61996
  assetCode: "",
@@ -62037,6 +62048,15 @@ const _sfc_main$6 = {
62037
62048
  });
62038
62049
  return obj;
62039
62050
  });
62051
+ if (records == null ? void 0 : records.length) {
62052
+ console.log("[assetDialog] pageList \u91D1\u989D\u5B57\u6BB5(\u63A5\u53E3\u539F\u59CB\u503C):", records.slice(0, 5).map((r) => ({
62053
+ assetCode: r.assetCode,
62054
+ originalValue: r.originalValue,
62055
+ originalValueType: typeof r.originalValue,
62056
+ netValue: r.netValue,
62057
+ netValueType: typeof r.netValue
62058
+ })));
62059
+ }
62040
62060
  this.total = total;
62041
62061
  this.currentPage = current;
62042
62062
  });
@@ -62343,7 +62363,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
62343
62363
  width: "120"
62344
62364
  }, {
62345
62365
  default: withCtx(({ row }) => [
62346
- createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
62366
+ createTextVNode(toDisplayString(row.originalValue), 1)
62347
62367
  ]),
62348
62368
  _: 1
62349
62369
  }),
@@ -62353,7 +62373,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
62353
62373
  width: "120"
62354
62374
  }, {
62355
62375
  default: withCtx(({ row }) => [
62356
- createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
62376
+ createTextVNode(toDisplayString(row.netValue), 1)
62357
62377
  ]),
62358
62378
  _: 1
62359
62379
  })
@@ -62437,7 +62457,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
62437
62457
  _: 1
62438
62458
  }, 8, ["modelValue", "onClose"]);
62439
62459
  }
62440
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-0603b722"]]);
62460
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-066e1fe6"]]);
62441
62461
  var index_vue_vue_type_style_index_0_lang$1 = "";
62442
62462
  const _sfc_main$5 = {
62443
62463
  name: "asset-select-widget",
@@ -63042,6 +63062,7 @@ const _sfc_main$3 = {
63042
63062
  this.unregisterFromRefList();
63043
63063
  },
63044
63064
  methods: {
63065
+ formatAmount,
63045
63066
  handleShowIsUpdate() {
63046
63067
  return !(this.field.options.disabled || !this.field.options.clickRow);
63047
63068
  },
@@ -63194,7 +63215,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
63194
63215
  label: "\u539F\u503C"
63195
63216
  }, {
63196
63217
  default: withCtx(({ row }) => [
63197
- createTextVNode(toDisplayString(String(row.originalValue)), 1)
63218
+ createTextVNode(toDisplayString(row.originalValue), 1)
63198
63219
  ]),
63199
63220
  _: 1
63200
63221
  }),
@@ -63203,7 +63224,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
63203
63224
  label: "\u51C0\u503C"
63204
63225
  }, {
63205
63226
  default: withCtx(({ row }) => [
63206
- createTextVNode(toDisplayString(String(row.netValue)), 1)
63227
+ createTextVNode(toDisplayString(row.netValue), 1)
63207
63228
  ]),
63208
63229
  _: 1
63209
63230
  }),