@airpower/web 1.7.1 → 1.7.2
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 +8 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -17429,7 +17429,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
17429
17429
|
setup(__props) {
|
|
17430
17430
|
const props = __props;
|
|
17431
17431
|
const key = props.column.key;
|
|
17432
|
-
const value = computed(() =>
|
|
17432
|
+
const value = computed(() => {
|
|
17433
|
+
if (props.column.formatter) {
|
|
17434
|
+
return props.column.formatter(props.data);
|
|
17435
|
+
}
|
|
17436
|
+
return (props.data[key] || "").toString() || props.column.emptyValue || "-";
|
|
17437
|
+
});
|
|
17433
17438
|
return (_ctx, _cache) => {
|
|
17434
17439
|
return openBlock(), createBlock(unref(ACopy), { content: value.value }, {
|
|
17435
17440
|
default: withCtx(() => [
|
|
@@ -18567,7 +18572,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18567
18572
|
item.prefixText ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(item.prefixText), 1)) : unref(getDictionary)(unref(EntityClass), item.key) ? (openBlock(), createBlock(unref(EnumColumn), {
|
|
18568
18573
|
key: 1,
|
|
18569
18574
|
column: item,
|
|
18570
|
-
data: scope
|
|
18575
|
+
data: getRowEntity(scope),
|
|
18571
18576
|
dictionary: unref(getDictionary)(unref(EntityClass), item.key)
|
|
18572
18577
|
}, null, 8, ["column", "data", "dictionary"])) : item.image ? (openBlock(), createBlock(unref(_sfc_main$k), {
|
|
18573
18578
|
key: 2,
|
|
@@ -18599,7 +18604,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18599
18604
|
}, null, 8, ["content", "type"])) : item.copy ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
18600
18605
|
key: 8,
|
|
18601
18606
|
column: item,
|
|
18602
|
-
data: scope
|
|
18607
|
+
data: getRowEntity(scope)
|
|
18603
18608
|
}, null, 8, ["column", "data"])) : (openBlock(), createElementBlock("div", {
|
|
18604
18609
|
key: 9,
|
|
18605
18610
|
class: normalizeClass([item.wrap ? "" : "nowrap", "a-table-column"])
|