@byteluck-fe/runtime-desktop-controls 7.0.0-beta.95 → 7.0.0-beta.97

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.
@@ -72834,32 +72834,35 @@ const K7e = /* @__PURE__ */ je(Q7e, [["__scopeId", "data-v-4ff06e2b"]]), X7e = /
72834
72834
  },
72835
72835
  emits: ["onGetList", "onDelRow"],
72836
72836
  setup(e) {
72837
- const t = e, n = D(() => t.width && t.width - 18), a = D(() => t.instance.type.includes("column")), o = Ei(t.instanceProps), { options: r, initValue: i } = aT({
72837
+ const t = e, n = D(() => t.width && t.width - 18), a = D(() => t.instance.type.includes("column")), o = Ei(t.instanceProps), { options: r, initValue: i, getDisplayValue: l } = aT({
72838
72838
  ...t,
72839
72839
  instanceProps: o
72840
- }), { getCacheDisplayValue: l } = Tn(t.instance), c = D(() => {
72841
- const d = l(t.value);
72842
- return d.length > 0 ? d.map((p) => (((p?.dept_name_path || p?.display_value)?.split(
72843
- "@"
72844
- )).join("/").slice(0, t.displayLevel), p?.display_value ?? p?.department_name)) : [];
72845
- }), u = D(
72846
- () => s(c).length ? s(c) : s(r)?.length ? s(r) : t.readList
72840
+ }), { getCacheDisplayValue: c } = Tn(t.instance), u = D(() => {
72841
+ const p = c(t.value);
72842
+ return p.length > 0 ? p.map((f) => {
72843
+ if (typeof f == "string")
72844
+ return f;
72845
+ const h = f;
72846
+ return h.display_value ?? h.department_name ?? h.org_unit_name ?? h.org_name ?? h.label ?? "";
72847
+ }) : (s(r)?.length || Array.isArray(t.value) && t.value.length && l(t.value), []);
72848
+ }), d = D(
72849
+ () => s(u).length ? s(u) : s(r)?.length ? s(r) : t.readList
72847
72850
  );
72848
72851
  return De(
72849
72852
  () => t.value,
72850
- (d) => {
72853
+ (p) => {
72851
72854
  i();
72852
72855
  },
72853
72856
  { deep: !0 }
72854
- ), (d, p) => (e.rowIndex !== void 0 || a.value) && e.pageStatus !== 5 ? (x(), ne(rh, ht({ key: 0 }, d.$attrs, {
72857
+ ), (p, f) => (e.rowIndex !== void 0 || a.value) && e.pageStatus !== 5 ? (x(), ne(rh, ht({ key: 0 }, p.$attrs, {
72855
72858
  instance: e.instance,
72856
- "list-total": u.value,
72859
+ "list-total": d.value,
72857
72860
  "row-index": e.rowIndex,
72858
72861
  label: "display_value",
72859
72862
  width: n.value
72860
- }), null, 16, ["instance", "list-total", "row-index", "width"])) : (x(), ne(Dl, ht({ key: 1 }, d.$attrs, {
72863
+ }), null, 16, ["instance", "list-total", "row-index", "width"])) : (x(), ne(Dl, ht({ key: 1 }, p.$attrs, {
72861
72864
  label: "display_value",
72862
- "read-list": u.value
72865
+ "read-list": d.value
72863
72866
  }), null, 16, ["read-list"]));
72864
72867
  }
72865
72868
  }), e9e = {
@@ -72963,8 +72966,9 @@ const K7e = /* @__PURE__ */ je(Q7e, [["__scopeId", "data-v-4ff06e2b"]]), X7e = /
72963
72966
  "page-status": s(I),
72964
72967
  "get-departments-by-ids": s(R),
72965
72968
  width: ee.width,
72969
+ "instance-props": s(N),
72966
72970
  "is-org-select": ""
72967
- }, null, 40, ["read-list", "name", "instance", "value", "row-index", "page-status", "get-departments-by-ids", "width"]))
72971
+ }, null, 40, ["read-list", "name", "instance", "value", "row-index", "page-status", "get-departments-by-ids", "width", "instance-props"]))
72968
72972
  ]),
72969
72973
  _: 1
72970
72974
  }, 8, ["control", "name", "show-type", "instance-props"])),
@@ -72991,7 +72995,7 @@ const K7e = /* @__PURE__ */ je(Q7e, [["__scopeId", "data-v-4ff06e2b"]]), X7e = /
72991
72995
  ], 64));
72992
72996
  }
72993
72997
  });
72994
- const n9e = /* @__PURE__ */ je(t9e, [["__scopeId", "data-v-9cf4c594"]]), a9e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
72998
+ const n9e = /* @__PURE__ */ je(t9e, [["__scopeId", "data-v-d3fa1e9e"]]), a9e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
72995
72999
  __proto__: null,
72996
73000
  RokOrganizationSelection: n9e
72997
73001
  }, Symbol.toStringTag, { value: "Module" })), o9e = {