@v-c/trigger 0.0.16 → 1.0.0
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/Popup/index.cjs +6 -1
- package/dist/Popup/index.js +6 -1
- package/package.json +4 -4
package/dist/Popup/index.cjs
CHANGED
|
@@ -58,8 +58,13 @@ var Popup = /* @__PURE__ */ (0, vue.defineComponent)((props, { attrs, slots, exp
|
|
|
58
58
|
}
|
|
59
59
|
if (!open.value) miscStyle.pointerEvents = "none";
|
|
60
60
|
const [mergedMask, mergedMaskMotion, mergedPopupMotion] = mergedProps.value;
|
|
61
|
-
const
|
|
61
|
+
const popupMotionName = mergedPopupMotion?.name ?? mergedPopupMotion?.motionName;
|
|
62
|
+
const baseTransitionProps = popupMotionName ? (0, __v_c_util_dist_utils_transition.getTransitionProps)(popupMotionName, mergedPopupMotion) : {
|
|
63
|
+
appear: true,
|
|
64
|
+
...mergedPopupMotion || {}
|
|
65
|
+
};
|
|
62
66
|
const mergedTransitionProps = {
|
|
67
|
+
appear: true,
|
|
63
68
|
...baseTransitionProps,
|
|
64
69
|
onBeforeEnter: (element) => {
|
|
65
70
|
onPrepare?.();
|
package/dist/Popup/index.js
CHANGED
|
@@ -55,8 +55,13 @@ var Popup_default = /* @__PURE__ */ defineComponent((props, { attrs, slots, expo
|
|
|
55
55
|
}
|
|
56
56
|
if (!open.value) miscStyle.pointerEvents = "none";
|
|
57
57
|
const [mergedMask, mergedMaskMotion, mergedPopupMotion] = mergedProps.value;
|
|
58
|
-
const
|
|
58
|
+
const popupMotionName = mergedPopupMotion?.name ?? mergedPopupMotion?.motionName;
|
|
59
|
+
const baseTransitionProps = popupMotionName ? getTransitionProps(popupMotionName, mergedPopupMotion) : {
|
|
60
|
+
appear: true,
|
|
61
|
+
...mergedPopupMotion || {}
|
|
62
|
+
};
|
|
59
63
|
const mergedTransitionProps = {
|
|
64
|
+
appear: true,
|
|
60
65
|
...baseTransitionProps,
|
|
61
66
|
onBeforeEnter: (element) => {
|
|
62
67
|
onPrepare?.();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/trigger",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"vue": "^3.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@v-c/portal": "0.0
|
|
33
|
-
"@v-c/resize-observer": "0.0
|
|
34
|
-
"@v-c/util": "0.0
|
|
32
|
+
"@v-c/portal": "^1.0.0",
|
|
33
|
+
"@v-c/resize-observer": "^1.0.0",
|
|
34
|
+
"@v-c/util": "^1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "vite build",
|