x-prop-tree 0.8.17 → 0.8.18

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.
@@ -1,15 +1,16 @@
1
1
  import { t as e } from "./rolldown-runtime.onx11qnb.js";
2
2
  //#region src/i18n/locales/en/index.ts
3
3
  var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-prop-tree": {
4
- adapt: "Adapt",
5
- comp: "Comp",
6
4
  copy: "Copy",
7
5
  jsonEditor: "JSON Editor",
8
- no: "No",
6
+ noAdaptSlot: "No Adapt Slot",
7
+ noComp: "No Comp",
8
+ noSlot: "No Slot",
9
9
  paste: "Paste",
10
10
  reset: "Reset",
11
- select: "Select",
12
- slot: "Slot"
11
+ selectAdaptSlot: "Select Adapt Slot",
12
+ selectComp: "Select Comp",
13
+ selectSlot: "Select Slot"
13
14
  } };
14
15
  //#endregion
15
16
  export { t };
@@ -1,15 +1,16 @@
1
1
  import { t as e } from "./rolldown-runtime.onx11qnb.js";
2
2
  //#region src/i18n/locales/zhHans/index.ts
3
3
  var t = /* @__PURE__ */ e({ default: () => n }), n = { "x-prop-tree": {
4
- adapt: "适配",
5
- comp: "组件",
6
4
  copy: "复制",
7
5
  jsonEditor: "JSON编辑器",
8
- no: "没有",
6
+ noAdaptSlot: "没有适配插槽",
7
+ noComp: "没有组件",
8
+ noSlot: "没有插槽",
9
9
  paste: "黏贴",
10
10
  reset: "重置",
11
- select: "选择",
12
- slot: "插槽"
11
+ selectAdaptSlot: "选择适配插槽",
12
+ selectComp: "选择组件",
13
+ selectSlot: "选择插槽"
13
14
  } };
14
15
  //#endregion
15
16
  export { t };
package/dist/index.js CHANGED
@@ -782,7 +782,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
782
782
  },
783
783
  emits: ["update:modelValue", "update:open"],
784
784
  setup(e) {
785
- let { nameList: t } = V(), r = N(e, "modelValue"), a = N(e, "open"), s = ft(), d = (e) => {
785
+ let { t } = G(), r = N(e, "modelValue"), a = N(e, "open"), s = ft(), d = (e) => {
786
786
  let t = i(s, e);
787
787
  t && n(s, e, !t.collapse);
788
788
  }, f = (e) => {
@@ -805,11 +805,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
805
805
  id: e.id,
806
806
  title: e.name,
807
807
  onXClick: f
808
- }, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(t)([
809
- "x-prop-tree.no",
810
- "x-prop-tree.adapt",
811
- "x-prop-tree.slot"
812
- ])), 1));
808
+ }, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", At, A(j(t)("x-prop-tree.noAdaptSlot")), 1));
813
809
  }
814
810
  }), Mt = { class: "text-body-large" }, Nt = /* @__PURE__ */ m({
815
811
  __name: "index",
@@ -828,91 +824,87 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
828
824
  }),
829
825
  emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
830
826
  setup(e, { emit: t }) {
831
- let { t: n } = G(), r = be(), { sysBarAvail: a, nameList: o } = V(), { backgroundColor1: u } = B(), m = N(e, "modelValue"), h = t, g = ft(), v = s(() => {
827
+ let { t: n } = G(), r = be(), { sysBarAvail: a } = V(), { backgroundColor1: o } = B(), u = N(e, "modelValue"), m = t, h = ft(), g = s(() => {
832
828
  let e = "100%";
833
829
  return r.mdAndUp.value && (e = "400px"), {
834
- background: u.value,
830
+ background: o.value,
835
831
  width: e,
836
832
  height: "100%"
837
833
  };
838
- }), x = s(() => {
834
+ }), v = s(() => {
839
835
  let e = 48;
840
836
  return a.value && (e += 24), {
841
837
  position: "relative",
842
838
  height: `calc(100% - ${e}px)`
843
839
  };
844
- }), S = s(() => ({ height: "60px" })), T = s(() => {
845
- if (!m.value) return n("x-runtime-lib.notSet");
846
- let e = i(g, m.value);
840
+ }), x = s(() => ({ height: "60px" })), S = s(() => {
841
+ if (!u.value) return n("x-runtime-lib.notSet");
842
+ let e = i(h, u.value);
847
843
  return e ? e.name : n("x-runtime-lib.slotNotAvail");
848
- }), { open: E } = H(`propTreeAdaptSlotSelectDlg${M()}`);
844
+ }), { open: T } = H(`propTreeAdaptSlotSelectDlg${M()}`);
849
845
  return C(() => {
850
- E.value = !1;
851
- }), (t, n) => {
852
- let r = O("v-btn"), i = O("v-sheet"), s = O("v-dialog");
846
+ T.value = !1;
847
+ }), (t, r) => {
848
+ let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
853
849
  return w(), c(s, {
854
- modelValue: j(E),
855
- "onUpdate:modelValue": n[6] ||= (e) => _(E) ? E.value = e : null,
850
+ modelValue: j(T),
851
+ "onUpdate:modelValue": r[6] ||= (e) => _(T) ? T.value = e : null,
856
852
  fullscreen: "",
857
853
  "no-click-animation": "",
858
854
  persistent: "",
859
855
  transition: "scroll-x-reverse-transition",
860
- onKeydown: n[7] ||= ne(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
856
+ onKeydown: r[7] ||= ne(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
861
857
  }, {
862
- activator: I(({ props: t }) => [p(r, y(t, {
858
+ activator: I(({ props: t }) => [p(i, y(t, {
863
859
  block: "",
864
860
  density: "comfortable",
865
861
  readonly: e.readonly
866
862
  }), {
867
- default: I(() => [f(A(T.value), 1)]),
863
+ default: I(() => [f(A(S.value), 1)]),
868
864
  _: 1
869
- }, 16, ["readonly"]), e.hasDelete ? (w(), c(r, {
865
+ }, 16, ["readonly"]), e.hasDelete ? (w(), c(i, {
870
866
  key: 0,
871
867
  class: "mx-2",
872
868
  density: "compact",
873
869
  icon: "mdi-minus",
874
870
  variant: "text",
875
- onClick: n[0] ||= R((e) => h("delete"), ["stop"])
871
+ onClick: r[0] ||= R((e) => m("delete"), ["stop"])
876
872
  })) : l("", !0)]),
877
873
  default: I(() => [d("div", {
878
874
  class: "w-100 h-100 d-flex flex-row-reverse",
879
- onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
880
- onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
875
+ onClick: r[4] ||= R((e) => T.value = !1, ["self"]),
876
+ onContextmenu: r[5] ||= R((e) => T.value = !1, ["self", "prevent"])
881
877
  }, [d("div", {
882
878
  class: "elevation-2",
883
- style: b(v.value)
879
+ style: b(g.value)
884
880
  }, [
885
- j(a) ? (w(), c(i, {
881
+ j(a) ? (w(), c(o, {
886
882
  key: 0,
887
883
  color: "transparent",
888
884
  height: 24
889
885
  })) : l("", !0),
890
- p(i, {
886
+ p(o, {
891
887
  class: "d-flex align-center px-3",
892
888
  color: "transparent",
893
889
  height: 48
894
890
  }, {
895
- default: I(() => [p(r, {
891
+ default: I(() => [p(i, {
896
892
  density: "comfortable",
897
893
  icon: "mdi-close",
898
894
  variant: "text",
899
- onClick: n[1] ||= (e) => E.value = !1
900
- }), d("span", Mt, A(j(o)([
901
- "x-prop-tree.select",
902
- "x-prop-tree.adapt",
903
- "x-prop-tree.slot"
904
- ])), 1)]),
895
+ onClick: r[1] ||= (e) => T.value = !1
896
+ }), d("span", Mt, A(j(n)("x-prop-tree.selectAdaptSlot")), 1)]),
905
897
  _: 1
906
898
  }),
907
899
  d("div", {
908
900
  class: "overflow-y-auto",
909
- style: b(x.value)
901
+ style: b(v.value)
910
902
  }, [p(jt, {
911
- modelValue: m.value,
912
- "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
913
- open: j(E),
914
- "onUpdate:open": n[3] ||= (e) => _(E) ? E.value = e : null
915
- }, null, 8, ["modelValue", "open"]), d("div", { style: b(S.value) }, null, 4)], 4)
903
+ modelValue: u.value,
904
+ "onUpdate:modelValue": r[2] ||= (e) => u.value = e,
905
+ open: j(T),
906
+ "onUpdate:open": r[3] ||= (e) => _(T) ? T.value = e : null
907
+ }, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
916
908
  ], 4)], 32)]),
917
909
  _: 1
918
910
  }, 8, ["modelValue"]);
@@ -993,7 +985,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
993
985
  },
994
986
  emits: ["update:modelValue", "update:open"],
995
987
  setup(e) {
996
- let { nameList: t } = V(), r = N(e, "modelValue"), a = N(e, "open"), s = ct(), d = (e) => {
988
+ let { t } = G(), r = N(e, "modelValue"), a = N(e, "open"), s = ct(), d = (e) => {
997
989
  let t = i(s, e);
998
990
  t && n(s, e, !t.collapse);
999
991
  }, f = (e) => {
@@ -1016,7 +1008,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1016
1008
  id: e.id,
1017
1009
  title: e.name,
1018
1010
  onXClick: f
1019
- }, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Bt, A(j(t)(["x-prop-tree.no", "x-prop-tree.comp"])), 1));
1011
+ }, null, 8, ["id", "title"])) : l("", !0)], 64))), 128))])) : (w(), u("div", Bt, A(j(t)("x-prop-tree.noComp")), 1));
1020
1012
  }
1021
1013
  }), Ht = { class: "text-body-large" }, Ut = /* @__PURE__ */ m({
1022
1014
  __name: "index",
@@ -1035,87 +1027,87 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1035
1027
  }),
1036
1028
  emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1037
1029
  setup(e, { emit: t }) {
1038
- let { t: n } = G(), r = be(), { sysBarAvail: a, nameList: o } = V(), { backgroundColor1: u } = B(), m = N(e, "modelValue"), h = t, g = ct(), v = s(() => {
1030
+ let { t: n } = G(), r = be(), { sysBarAvail: a } = V(), { backgroundColor1: o } = B(), u = N(e, "modelValue"), m = t, h = ct(), g = s(() => {
1039
1031
  let e = "100%";
1040
1032
  return r.mdAndUp.value && (e = "400px"), {
1041
- background: u.value,
1033
+ background: o.value,
1042
1034
  width: e,
1043
1035
  height: "100%"
1044
1036
  };
1045
- }), x = s(() => {
1037
+ }), v = s(() => {
1046
1038
  let e = 48;
1047
1039
  return a.value && (e += 24), {
1048
1040
  position: "relative",
1049
1041
  height: `calc(100% - ${e}px)`
1050
1042
  };
1051
- }), S = s(() => ({ height: "60px" })), T = s(() => {
1052
- if (!m.value) return n("x-runtime-lib.notSet");
1053
- let e = i(g, m.value);
1043
+ }), x = s(() => ({ height: "60px" })), S = s(() => {
1044
+ if (!u.value) return n("x-runtime-lib.notSet");
1045
+ let e = i(h, u.value);
1054
1046
  return e ? e.name : n("x-runtime-lib.compNotAvail");
1055
- }), { open: E } = H(`propTreeCompSelectDlg${M()}`);
1047
+ }), { open: T } = H(`propTreeCompSelectDlg${M()}`);
1056
1048
  return C(() => {
1057
- E.value = !1;
1058
- }), (t, n) => {
1059
- let r = O("v-btn"), i = O("v-sheet"), s = O("v-dialog");
1049
+ T.value = !1;
1050
+ }), (t, r) => {
1051
+ let i = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
1060
1052
  return w(), c(s, {
1061
- modelValue: j(E),
1062
- "onUpdate:modelValue": n[6] ||= (e) => _(E) ? E.value = e : null,
1053
+ modelValue: j(T),
1054
+ "onUpdate:modelValue": r[6] ||= (e) => _(T) ? T.value = e : null,
1063
1055
  fullscreen: "",
1064
1056
  "no-click-animation": "",
1065
1057
  persistent: "",
1066
1058
  transition: "scroll-x-reverse-transition",
1067
- onKeydown: n[7] ||= ne(R((e) => E.value = !1, ["stop", "prevent"]), ["esc"])
1059
+ onKeydown: r[7] ||= ne(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
1068
1060
  }, {
1069
- activator: I(({ props: t }) => [p(r, y(t, {
1061
+ activator: I(({ props: t }) => [p(i, y(t, {
1070
1062
  block: "",
1071
1063
  density: "comfortable",
1072
1064
  readonly: e.readonly
1073
1065
  }), {
1074
- default: I(() => [f(A(T.value), 1)]),
1066
+ default: I(() => [f(A(S.value), 1)]),
1075
1067
  _: 1
1076
- }, 16, ["readonly"]), e.hasDelete ? (w(), c(r, {
1068
+ }, 16, ["readonly"]), e.hasDelete ? (w(), c(i, {
1077
1069
  key: 0,
1078
1070
  class: "mx-2",
1079
1071
  density: "compact",
1080
1072
  icon: "mdi-minus",
1081
1073
  variant: "text",
1082
- onClick: n[0] ||= R((e) => h("delete"), ["stop"])
1074
+ onClick: r[0] ||= R((e) => m("delete"), ["stop"])
1083
1075
  })) : l("", !0)]),
1084
1076
  default: I(() => [d("div", {
1085
1077
  class: "w-100 h-100 d-flex flex-row-reverse",
1086
- onClick: n[4] ||= R((e) => E.value = !1, ["self"]),
1087
- onContextmenu: n[5] ||= R((e) => E.value = !1, ["self", "prevent"])
1078
+ onClick: r[4] ||= R((e) => T.value = !1, ["self"]),
1079
+ onContextmenu: r[5] ||= R((e) => T.value = !1, ["self", "prevent"])
1088
1080
  }, [d("div", {
1089
1081
  class: "elevation-2",
1090
- style: b(v.value)
1082
+ style: b(g.value)
1091
1083
  }, [
1092
- j(a) ? (w(), c(i, {
1084
+ j(a) ? (w(), c(o, {
1093
1085
  key: 0,
1094
1086
  color: "transparent",
1095
1087
  height: 24
1096
1088
  })) : l("", !0),
1097
- p(i, {
1089
+ p(o, {
1098
1090
  class: "d-flex align-center px-3",
1099
1091
  color: "transparent",
1100
1092
  height: 48
1101
1093
  }, {
1102
- default: I(() => [p(r, {
1094
+ default: I(() => [p(i, {
1103
1095
  density: "comfortable",
1104
1096
  icon: "mdi-close",
1105
1097
  variant: "text",
1106
- onClick: n[1] ||= (e) => E.value = !1
1107
- }), d("span", Ht, A(j(o)(["x-prop-tree.select", "x-prop-tree.comp"])), 1)]),
1098
+ onClick: r[1] ||= (e) => T.value = !1
1099
+ }), d("span", Ht, A(j(n)("x-prop-tree.selectComp")), 1)]),
1108
1100
  _: 1
1109
1101
  }),
1110
1102
  d("div", {
1111
1103
  class: "overflow-y-auto",
1112
- style: b(x.value)
1104
+ style: b(v.value)
1113
1105
  }, [p(Vt, {
1114
- modelValue: m.value,
1115
- "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
1116
- open: j(E),
1117
- "onUpdate:open": n[3] ||= (e) => _(E) ? E.value = e : null
1118
- }, null, 8, ["modelValue", "open"]), d("div", { style: b(S.value) }, null, 4)], 4)
1106
+ modelValue: u.value,
1107
+ "onUpdate:modelValue": r[2] ||= (e) => u.value = e,
1108
+ open: j(T),
1109
+ "onUpdate:open": r[3] ||= (e) => _(T) ? T.value = e : null
1110
+ }, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
1119
1111
  ], 4)], 32)]),
1120
1112
  _: 1
1121
1113
  }, 8, ["modelValue"]);
@@ -1811,7 +1803,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1811
1803
  },
1812
1804
  emits: ["update:modelValue", "update:open"],
1813
1805
  setup(e) {
1814
- let { nameList: t } = V(), n = N(e, "modelValue"), r = N(e, "open"), i = ut(), a = (e) => {
1806
+ let { t } = G(), n = N(e, "modelValue"), r = N(e, "open"), i = ut(), a = (e) => {
1815
1807
  n.value = e, r.value = !1;
1816
1808
  };
1817
1809
  return (e, n) => j(i).length > 0 ? (w(), u("div", un, [(w(!0), u(o, null, D(j(i), (e) => (w(), c(ln, {
@@ -1819,7 +1811,7 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1819
1811
  id: e.id,
1820
1812
  title: e.name,
1821
1813
  onXClick: a
1822
- }, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", dn, A(j(t)(["x-prop-tree.no", "x-prop-tree.slot"])), 1));
1814
+ }, null, 8, ["id", "title"]))), 128))])) : (w(), u("div", dn, A(j(t)("x-prop-tree.noSlot")), 1));
1823
1815
  }
1824
1816
  }), pn = { class: "text-body-large" }, mn = /* @__PURE__ */ m({
1825
1817
  __name: "index",
@@ -1838,87 +1830,87 @@ var wt = { class: "text-label-large ml-1" }, Tt = { class: "text-body-small text
1838
1830
  }),
1839
1831
  emits: /* @__PURE__ */ v(["delete"], ["update:modelValue"]),
1840
1832
  setup(e, { emit: t }) {
1841
- let { t: n } = G(), r = be(), { sysBarAvail: i, nameList: a } = V(), { backgroundColor1: o } = B(), u = N(e, "modelValue"), m = t, h = ut(), g = s(() => {
1833
+ let { t: n } = G(), r = be(), { sysBarAvail: i } = V(), { backgroundColor1: a } = B(), o = N(e, "modelValue"), u = t, m = ut(), h = s(() => {
1842
1834
  let e = "100%";
1843
1835
  return r.mdAndUp.value && (e = "400px"), {
1844
- background: o.value,
1836
+ background: a.value,
1845
1837
  width: e,
1846
1838
  height: "100%"
1847
1839
  };
1848
- }), v = s(() => {
1840
+ }), g = s(() => {
1849
1841
  let e = 48;
1850
1842
  return i.value && (e += 24), {
1851
1843
  position: "relative",
1852
1844
  height: `calc(100% - ${e}px)`
1853
1845
  };
1854
- }), x = s(() => ({ height: "60px" })), S = s(() => {
1855
- if (!u.value) return n("x-runtime-lib.notSet");
1856
- let e = h.value.find((e) => e.id === u.value);
1846
+ }), v = s(() => ({ height: "60px" })), x = s(() => {
1847
+ if (!o.value) return n("x-runtime-lib.notSet");
1848
+ let e = m.value.find((e) => e.id === o.value);
1857
1849
  return e ? e.name : n("x-runtime-lib.slotNotAvail");
1858
- }), { open: T } = H(`propTreeSlotSelectDlg${M()}`);
1850
+ }), { open: S } = H(`propTreeSlotSelectDlg${M()}`);
1859
1851
  return C(() => {
1860
- T.value = !1;
1861
- }), (t, n) => {
1862
- let r = O("v-btn"), o = O("v-sheet"), s = O("v-dialog");
1863
- return w(), c(s, {
1864
- modelValue: j(T),
1865
- "onUpdate:modelValue": n[6] ||= (e) => _(T) ? T.value = e : null,
1852
+ S.value = !1;
1853
+ }), (t, r) => {
1854
+ let a = O("v-btn"), s = O("v-sheet"), m = O("v-dialog");
1855
+ return w(), c(m, {
1856
+ modelValue: j(S),
1857
+ "onUpdate:modelValue": r[6] ||= (e) => _(S) ? S.value = e : null,
1866
1858
  fullscreen: "",
1867
1859
  "no-click-animation": "",
1868
1860
  persistent: "",
1869
1861
  transition: "scroll-x-reverse-transition",
1870
- onKeydown: n[7] ||= ne(R((e) => T.value = !1, ["stop", "prevent"]), ["esc"])
1862
+ onKeydown: r[7] ||= ne(R((e) => S.value = !1, ["stop", "prevent"]), ["esc"])
1871
1863
  }, {
1872
- activator: I(({ props: t }) => [p(r, y(t, {
1864
+ activator: I(({ props: t }) => [p(a, y(t, {
1873
1865
  block: "",
1874
1866
  density: "comfortable",
1875
1867
  readonly: e.readonly
1876
1868
  }), {
1877
- default: I(() => [f(A(S.value), 1)]),
1869
+ default: I(() => [f(A(x.value), 1)]),
1878
1870
  _: 1
1879
- }, 16, ["readonly"]), e.hasDelete ? (w(), c(r, {
1871
+ }, 16, ["readonly"]), e.hasDelete ? (w(), c(a, {
1880
1872
  key: 0,
1881
1873
  class: "mx-2",
1882
1874
  density: "compact",
1883
1875
  icon: "mdi-minus",
1884
1876
  variant: "text",
1885
- onClick: n[0] ||= R((e) => m("delete"), ["stop"])
1877
+ onClick: r[0] ||= R((e) => u("delete"), ["stop"])
1886
1878
  })) : l("", !0)]),
1887
1879
  default: I(() => [d("div", {
1888
1880
  class: "w-100 h-100 d-flex flex-row-reverse",
1889
- onClick: n[4] ||= R((e) => T.value = !1, ["self"]),
1890
- onContextmenu: n[5] ||= R((e) => T.value = !1, ["self", "prevent"])
1881
+ onClick: r[4] ||= R((e) => S.value = !1, ["self"]),
1882
+ onContextmenu: r[5] ||= R((e) => S.value = !1, ["self", "prevent"])
1891
1883
  }, [d("div", {
1892
1884
  class: "elevation-2",
1893
- style: b(g.value)
1885
+ style: b(h.value)
1894
1886
  }, [
1895
- j(i) ? (w(), c(o, {
1887
+ j(i) ? (w(), c(s, {
1896
1888
  key: 0,
1897
1889
  color: "transparent",
1898
1890
  height: 24
1899
1891
  })) : l("", !0),
1900
- p(o, {
1892
+ p(s, {
1901
1893
  class: "d-flex align-center px-3",
1902
1894
  color: "transparent",
1903
1895
  height: 48
1904
1896
  }, {
1905
- default: I(() => [p(r, {
1897
+ default: I(() => [p(a, {
1906
1898
  density: "comfortable",
1907
1899
  icon: "mdi-close",
1908
1900
  variant: "text",
1909
- onClick: n[1] ||= (e) => T.value = !1
1910
- }), d("span", pn, A(j(a)(["x-prop-tree.select", "x-prop-tree.slot"])), 1)]),
1901
+ onClick: r[1] ||= (e) => S.value = !1
1902
+ }), d("span", pn, A(j(n)("x-prop-tree.selectSlot")), 1)]),
1911
1903
  _: 1
1912
1904
  }),
1913
1905
  d("div", {
1914
1906
  class: "overflow-y-auto",
1915
- style: b(v.value)
1907
+ style: b(g.value)
1916
1908
  }, [p(fn, {
1917
- modelValue: u.value,
1918
- "onUpdate:modelValue": n[2] ||= (e) => u.value = e,
1919
- open: j(T),
1920
- "onUpdate:open": n[3] ||= (e) => _(T) ? T.value = e : null
1921
- }, null, 8, ["modelValue", "open"]), d("div", { style: b(x.value) }, null, 4)], 4)
1909
+ modelValue: o.value,
1910
+ "onUpdate:modelValue": r[2] ||= (e) => o.value = e,
1911
+ open: j(S),
1912
+ "onUpdate:open": r[3] ||= (e) => _(S) ? S.value = e : null
1913
+ }, null, 8, ["modelValue", "open"]), d("div", { style: b(v.value) }, null, 4)], 4)
1922
1914
  ], 4)], 32)]),
1923
1915
  _: 1
1924
1916
  }, 8, ["modelValue"]);
@@ -2500,8 +2492,8 @@ var $ = "20px", Nn = /* @__PURE__ */ m({
2500
2492
  //#region src/i18n/index.ts
2501
2493
  async function Ln(e) {
2502
2494
  return (await In(/* @__PURE__ */ Object.assign({
2503
- "./locales/en/index.ts": () => import("./i18n-en.ckhf41nr.js").then((e) => e.t),
2504
- "./locales/zhHans/index.ts": () => import("./i18n-zhHans.lj81m5nl.js").then((e) => e.t)
2495
+ "./locales/en/index.ts": () => import("./i18n-en.h32u3o3z.js").then((e) => e.t),
2496
+ "./locales/zhHans/index.ts": () => import("./i18n-zhHans.kyejc661.js").then((e) => e.t)
2505
2497
  }), `./locales/${e}/index.ts`, 4)).default;
2506
2498
  }
2507
2499
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-prop-tree",
3
3
  "private": false,
4
- "version": "0.8.17",
4
+ "version": "0.8.18",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",