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