@ebiz/designer-components 0.0.19-beta.2 → 0.0.19-beta.3

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/index.mjs CHANGED
@@ -123712,12 +123712,13 @@ const _Ct = /* @__PURE__ */ Pt(b1t, [["render", w1t], ["__scopeId", "data-v-491f
123712
123712
  return pe(
123713
123713
  i,
123714
123714
  (O) => {
123715
- p.value.treeRef && (c.value = O.map(p.value.treeRef.getItem).map((I) => {
123716
- var P;
123715
+ var I;
123716
+ (I = p.value) != null && I.treeRef && (c.value = (O.map(p.value.treeRef.getItem) ?? []).map((P) => {
123717
+ var L;
123717
123718
  return {
123718
- label: I == null ? void 0 : I.label,
123719
- type: ((P = I == null ? void 0 : I.data) == null ? void 0 : P.type) || I.type,
123720
- bindid: I == null ? void 0 : I.value
123719
+ label: P == null ? void 0 : P.label,
123720
+ type: ((L = P == null ? void 0 : P.data) == null ? void 0 : L.type) || (P == null ? void 0 : P.type),
123721
+ bindid: P == null ? void 0 : P.value
123721
123722
  };
123722
123723
  }));
123723
123724
  },
@@ -123743,7 +123744,7 @@ const _Ct = /* @__PURE__ */ Pt(b1t, [["render", w1t], ["__scopeId", "data-v-491f
123743
123744
  B("span", J1t, ee(P.label), 1),
123744
123745
  B("span", {
123745
123746
  class: "item-remove",
123746
- onClick: fe((F) => A(L), ["stop"])
123747
+ onClick: (F) => A(L)
123747
123748
  }, "×", 8, ewt)
123748
123749
  ]))), 128))
123749
123750
  ])) : q("", !0),
@@ -123759,6 +123760,8 @@ const _Ct = /* @__PURE__ */ Pt(b1t, [["render", w1t], ["__scopeId", "data-v-491f
123759
123760
  _: 1
123760
123761
  }),
123761
123762
  S(_1t, {
123763
+ attach: "body",
123764
+ zIndex: 1e4,
123762
123765
  visible: a.value,
123763
123766
  "onUpdate:visible": I[5] || (I[5] = (P) => a.value = P),
123764
123767
  header: "选择人员/部门",
@@ -123867,7 +123870,7 @@ const _Ct = /* @__PURE__ */ Pt(b1t, [["render", w1t], ["__scopeId", "data-v-491f
123867
123870
  }, 8, ["visible"])
123868
123871
  ]));
123869
123872
  }
123870
- }, GCt = /* @__PURE__ */ Pt(dwt, [["__scopeId", "data-v-3b5ea2d0"]]), qCt = {
123873
+ }, GCt = /* @__PURE__ */ Pt(dwt, [["__scopeId", "data-v-850f8600"]]), qCt = {
123871
123874
  __name: "EbizTimePicker",
123872
123875
  props: {
123873
123876
  // 选中值
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.0.19-beta.2",
3
+ "version": "0.0.19-beta.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -236,10 +236,10 @@ function removeItem(index) {
236
236
  watch(
237
237
  checkedNodes,
238
238
  (newValues) => {
239
- if (!organizationTree.value.treeRef) return
240
- selectPreview.value = newValues.map(organizationTree.value.treeRef.getItem).map((i) => ({
239
+ if (!organizationTree.value?.treeRef) return
240
+ selectPreview.value = (newValues.map(organizationTree.value.treeRef.getItem) ?? []).map((i) => ({
241
241
  label: i?.label,
242
- type: i?.data?.type || i.type,
242
+ type: i?.data?.type || i?.type,
243
243
  bindid: i?.value
244
244
  }))
245
245
  },