@airpower/web 0.2.53 → 0.2.55

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/main.js CHANGED
@@ -15527,24 +15527,30 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
15527
15527
  DialogUtil.show(props.view, props.payload.copy());
15528
15528
  }
15529
15529
  }
15530
+ const payloadLabel = computed(() => {
15531
+ var _a;
15532
+ try {
15533
+ return ((_a = props.payload) == null ? void 0 : _a.getPayloadLabel()) || "-";
15534
+ } catch (e) {
15535
+ console.error("[IPayload] 请实现 IPayload 接口", props.payload);
15536
+ }
15537
+ return "-";
15538
+ });
15530
15539
  return (_ctx, _cache) => {
15531
15540
  return openBlock(), createBlock(unref(ElLink), {
15532
15541
  underline: false,
15533
15542
  class: "a-payload",
15534
15543
  onClick: _cache[0] || (_cache[0] = ($event) => show())
15535
15544
  }, {
15536
- default: withCtx(() => {
15537
- var _a;
15538
- return [
15539
- createTextVNode(toDisplayString(((_a = __props.payload) == null ? void 0 : _a.getPayloadLabel()) || "-"), 1)
15540
- ];
15541
- }),
15545
+ default: withCtx(() => [
15546
+ createTextVNode(toDisplayString(payloadLabel.value), 1)
15547
+ ]),
15542
15548
  _: 1
15543
15549
  });
15544
15550
  };
15545
15551
  }
15546
15552
  });
15547
- const APayload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-5bc31d32"]]);
15553
+ const APayload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-666c0245"]]);
15548
15554
  const _hoisted_1$6 = { class: "a-phone-call__content" };
15549
15555
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
15550
15556
  __name: "Call",
@@ -17955,6 +17961,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
17955
17961
  console.warn(getRowEntity(scope)[key]);
17956
17962
  return getRowEntity(scope)[key];
17957
17963
  }
17964
+ function getPayloadArray(scope, key) {
17965
+ const value = getValue(scope, key)[key];
17966
+ console.warn("payloadArray", value);
17967
+ return value;
17968
+ }
17958
17969
  function tableRowClassName({ row }) {
17959
17970
  if (props.disableRow && props.disableRow(row)) {
17960
17971
  return "disable-row";
@@ -18253,8 +18264,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
18253
18264
  key: 4,
18254
18265
  money: getValue(scope, item.key)
18255
18266
  }, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key: 5 }, [
18256
- createTextVNode(toDisplayString(item) + " " + toDisplayString(getValue(scope, item.key)) + " ", 1),
18257
- item.array ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [], 64)) : (openBlock(), createBlock(unref(APayload), {
18267
+ item.array ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18268
+ createTextVNode(toDisplayString(getPayloadArray(scope, item.key)), 1)
18269
+ ], 64)) : (openBlock(), createBlock(unref(APayload), {
18258
18270
  key: 1,
18259
18271
  payload: getValue(scope, item.key)
18260
18272
  }, null, 8, ["payload"]))
package/dist/web.css CHANGED
@@ -1172,7 +1172,7 @@ textarea {
1172
1172
  }
1173
1173
  ::v-deep(.a-dialog) .main {
1174
1174
  min-height: 200px !important;
1175
- }.a-payload[data-v-5bc31d32] {
1175
+ }.a-payload[data-v-666c0245] {
1176
1176
  overflow: hidden;
1177
1177
  text-overflow: ellipsis;
1178
1178
  white-space: normal;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "0.2.53",
4
+ "version": "0.2.55",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",