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.
- package/dist/tanxin-ui.es.js +19 -14
- package/dist/tanxin-ui.umd.js +1 -1
- package/es/popover/index.d.ts +14 -6
- package/es/popover/src/popover.d.ts +4 -2
- package/es/popover/src/popover.js +10 -3
- package/lib/popover/index.d.ts +14 -6
- package/lib/popover/src/popover.d.ts +4 -2
- package/lib/popover/src/popover.js +9 -2
- package/package.json +1 -1
package/dist/tanxin-ui.es.js
CHANGED
|
@@ -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:
|
|
12089
|
-
} = ue("popover", e),
|
|
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
|
|
12093
|
-
class: `${
|
|
12094
|
-
}, [
|
|
12095
|
-
class: `${
|
|
12096
|
-
}, [
|
|
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
|
|
12099
|
-
return (
|
|
12102
|
+
var v;
|
|
12103
|
+
return (v = t.default) == null ? void 0 : v.call(t);
|
|
12100
12104
|
},
|
|
12101
|
-
content: () =>
|
|
12105
|
+
content: () => d
|
|
12102
12106
|
};
|
|
12103
12107
|
return l(le, null, [l(H("t-popper"), Q({
|
|
12104
|
-
visible:
|
|
12108
|
+
visible: i.value,
|
|
12109
|
+
"onUpdate:visible": (v) => i.value = v
|
|
12105
12110
|
}, e, {
|
|
12106
12111
|
"popper-style": "overflow:visible;"
|
|
12107
|
-
}),
|
|
12112
|
+
}), c)]);
|
|
12108
12113
|
}
|
|
12109
12114
|
};
|
|
12110
12115
|
},
|