tanxin-ui 1.4.9 → 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.
@@ -12081,30 +12081,35 @@ const $0 = {
12081
12081
  },
12082
12082
  inheritAttrs: !1,
12083
12083
  props: T0,
12084
+ emits: ["update:visible"],
12084
12085
  setup(e, {
12085
- slots: t
12086
+ slots: t,
12087
+ emit: n
12086
12088
  }) {
12087
12089
  const {
12088
- prefixCls: n
12089
- } = ue("popover", e), r = $(!1), i = f(() => t.title ? t.title() : e.title), u = f(() => t.content ? t.content() : e.content);
12090
- 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
+ }), {
12091
12095
  render: () => {
12092
- const o = l(le, null, [i.value ? l("div", {
12093
- class: `${n.value}-title`
12094
- }, [i.value]) : null, u.value ? l("div", {
12095
- class: `${n.value}-content`
12096
- }, [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 = {
12097
12101
  trigger: () => {
12098
- var c;
12099
- return (c = t.default) == null ? void 0 : c.call(t);
12102
+ var v;
12103
+ return (v = t.default) == null ? void 0 : v.call(t);
12100
12104
  },
12101
- content: () => o
12105
+ content: () => d
12102
12106
  };
12103
12107
  return l(le, null, [l(H("t-popper"), Q({
12104
- visible: r.value
12108
+ visible: i.value,
12109
+ "onUpdate:visible": (v) => i.value = v
12105
12110
  }, e, {
12106
12111
  "popper-style": "overflow:visible;"
12107
- }), d)]);
12112
+ }), c)]);
12108
12113
  }
12109
12114
  };
12110
12115
  },