tanxin-ui 1.4.8 → 1.4.10

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.
@@ -6044,7 +6044,7 @@ const Ka = ["top", "bottom", "topLeft", "bottomLeft", "topRight", "bottomRight",
6044
6044
  transitionName: a.string.def("fade"),
6045
6045
  offset: a.oneOfType([a.string, a.number]).def(10),
6046
6046
  minWidth: a.oneOfType([a.string, a.number]).def(150),
6047
- maxWidth: a.oneOfType([a.string, a.number]).def(300),
6047
+ maxWidth: a.oneOfType([a.string, a.number]).def(1500),
6048
6048
  //指定长宽,则不再动态检测,以提高性能, 在同一页面大量的popper时,建议指定长度
6049
6049
  width: a.oneOfType([a.string, a.number]),
6050
6050
  height: a.oneOfType([a.string, a.number]),
@@ -12072,7 +12072,8 @@ const $0 = {
12072
12072
  content: a.string,
12073
12073
  transitionName: a.string.def("fade"),
12074
12074
  offset: a.oneOfType([a.string, a.number]).def(10),
12075
- minWidth: a.oneOfType([a.string, a.number]).def(150)
12075
+ minWidth: a.oneOfType([a.string, a.number]).def(150),
12076
+ maxWidth: a.oneOfType([a.string, a.number]).def(1500)
12076
12077
  }, O0 = /* @__PURE__ */ G({
12077
12078
  name: "TPopover",
12078
12079
  components: {
@@ -12080,30 +12081,35 @@ const $0 = {
12080
12081
  },
12081
12082
  inheritAttrs: !1,
12082
12083
  props: T0,
12084
+ emits: ["update:visible"],
12083
12085
  setup(e, {
12084
- slots: t
12086
+ slots: t,
12087
+ emit: n
12085
12088
  }) {
12086
12089
  const {
12087
- prefixCls: n
12088
- } = ue("popover", e), r = $(!1), i = f(() => t.title ? t.title() : e.title), u = f(() => t.content ? t.content() : e.content);
12089
- return {
12090
+ prefixCls: r
12091
+ } = ue("popover", e), i = $(!1), u = f(() => t.title ? t.title() : e.title), s = f(() => t.content ? t.content() : e.content);
12092
+ return ne(() => i.value, (d, c) => {
12093
+ d != c && n("update:visible", i.value);
12094
+ }), {
12090
12095
  render: () => {
12091
- const o = l(le, null, [i.value ? l("div", {
12092
- class: `${n.value}-title`
12093
- }, [i.value]) : null, u.value ? l("div", {
12094
- class: `${n.value}-content`
12095
- }, [u.value]) : null]), d = {
12096
+ const d = l(le, null, [u.value ? l("div", {
12097
+ class: `${r.value}-title`
12098
+ }, [u.value]) : null, s.value ? l("div", {
12099
+ class: `${r.value}-content`
12100
+ }, [s.value]) : null]), c = {
12096
12101
  trigger: () => {
12097
- var c;
12098
- return (c = t.default) == null ? void 0 : c.call(t);
12102
+ var v;
12103
+ return (v = t.default) == null ? void 0 : v.call(t);
12099
12104
  },
12100
- content: () => o
12105
+ content: () => d
12101
12106
  };
12102
12107
  return l(le, null, [l(H("t-popper"), Q({
12103
- visible: r.value
12108
+ visible: i.value,
12109
+ "onUpdate:visible": (v) => i.value = v
12104
12110
  }, e, {
12105
12111
  "popper-style": "overflow:visible;"
12106
- }), d)]);
12112
+ }), c)]);
12107
12113
  }
12108
12114
  };
12109
12115
  },