@fewangsit/wangsvue-fats 1.0.1-alpha.17 → 1.0.1-alpha.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.
- package/dialog/index.es.js +17 -11
- package/package.json +1 -1
- package/stats.html +1 -1
- package/utils/index.d.ts +1 -0
- package/wangsvue-fats.es.js +193 -191
- package/wangsvue-fats.esm.browser.js +1058 -1051
- package/wangsvue-fats.system.js +2 -2
package/dialog/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { s as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as u, inject as m, createBlock as $, openBlock as y, unref as s, mergeProps as v, createSlots as B, withCtx as t, renderSlot as l } from "vue";
|
|
2
|
+
import { s as g } from "../vendor/primevue/dialog/dialog.esm.es.js";
|
|
3
|
+
const A = /* @__PURE__ */ u({
|
|
4
4
|
__name: "Dialog",
|
|
5
5
|
props: {
|
|
6
6
|
header: { default: void 0 },
|
|
@@ -39,14 +39,18 @@ const g = /* @__PURE__ */ f({
|
|
|
39
39
|
},
|
|
40
40
|
emits: ["update:visible", "hide", "afterHide", "show", "maximize", "unmaximize", "dragend"],
|
|
41
41
|
setup(C) {
|
|
42
|
-
const i =
|
|
42
|
+
const i = m("preset", {}).dialog, f = () => {
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
document.querySelectorAll('[data-pc-name="dialog"]').length && document.body.classList.add("p-overflow-hidden");
|
|
45
|
+
}, 10);
|
|
46
|
+
};
|
|
43
47
|
return (e, o) => {
|
|
44
|
-
var
|
|
45
|
-
return
|
|
48
|
+
var d, n, r, p;
|
|
49
|
+
return y(), $(s(g), v(e.$props, {
|
|
46
50
|
pt: {
|
|
47
51
|
root: {
|
|
48
52
|
class: [
|
|
49
|
-
...(
|
|
53
|
+
...(d = s(i)) == null ? void 0 : d.root({ state: {} }).class,
|
|
50
54
|
...Array.isArray(e.$props.class) ? e.$props.class : [e.$props.class]
|
|
51
55
|
]
|
|
52
56
|
},
|
|
@@ -59,7 +63,7 @@ const g = /* @__PURE__ */ f({
|
|
|
59
63
|
},
|
|
60
64
|
content: {
|
|
61
65
|
class: [
|
|
62
|
-
...(
|
|
66
|
+
...(r = s(i)) == null ? void 0 : r.content({ state: {}, instance: {} }).class,
|
|
63
67
|
...Array.isArray(e.$props.contentClass) ? e.$props.contentClass : [e.$props.contentClass]
|
|
64
68
|
]
|
|
65
69
|
},
|
|
@@ -71,14 +75,16 @@ const g = /* @__PURE__ */ f({
|
|
|
71
75
|
},
|
|
72
76
|
...e.$props.pt
|
|
73
77
|
},
|
|
74
|
-
onAfterHide: o[0] || (o[0] = (a) =>
|
|
78
|
+
onAfterHide: o[0] || (o[0] = (a) => {
|
|
79
|
+
e.$emit("afterHide"), f();
|
|
80
|
+
}),
|
|
75
81
|
onDragend: o[1] || (o[1] = (a) => e.$emit("dragend", a)),
|
|
76
82
|
onHide: o[2] || (o[2] = (a) => e.$emit("hide")),
|
|
77
83
|
onMaximize: o[3] || (o[3] = (a) => e.$emit("maximize", a)),
|
|
78
84
|
onShow: o[4] || (o[4] = (a) => e.$emit("show")),
|
|
79
85
|
onUnmaximize: o[5] || (o[5] = (a) => e.$emit("unmaximize", a)),
|
|
80
86
|
"onUpdate:visible": o[6] || (o[6] = (a) => e.$emit("update:visible", a))
|
|
81
|
-
}),
|
|
87
|
+
}), B({
|
|
82
88
|
default: t(() => [
|
|
83
89
|
l(e.$slots, "default")
|
|
84
90
|
]),
|
|
@@ -117,5 +123,5 @@ const g = /* @__PURE__ */ f({
|
|
|
117
123
|
}
|
|
118
124
|
});
|
|
119
125
|
export {
|
|
120
|
-
|
|
126
|
+
A as _
|
|
121
127
|
};
|