@v-c/trigger 1.0.5 → 1.0.6
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -304,7 +304,7 @@ function generateTrigger(PortalComponent = _v_c_portal.default) {
|
|
|
304
304
|
});
|
|
305
305
|
(0, _v_c_resize_observer.useResizeObserver)(mergedOpen, targetEle, onTargetResize);
|
|
306
306
|
return () => {
|
|
307
|
-
const child = (0, _v_c_util_dist_props_util.filterEmpty)(slots?.default?.() ?? [])?.[0];
|
|
307
|
+
const child = (0, _v_c_util_dist_props_util.filterEmpty)(slots?.default?.({ open: mergedOpen.value }) ?? [])?.[0];
|
|
308
308
|
const mergedChildrenProps = {
|
|
309
309
|
...originChildProps,
|
|
310
310
|
...cloneProps.value
|
package/dist/index.js
CHANGED
|
@@ -298,7 +298,7 @@ function generateTrigger(PortalComponent = Portal) {
|
|
|
298
298
|
});
|
|
299
299
|
useResizeObserver(mergedOpen, targetEle, onTargetResize);
|
|
300
300
|
return () => {
|
|
301
|
-
const child = filterEmpty(slots?.default?.() ?? [])?.[0];
|
|
301
|
+
const child = filterEmpty(slots?.default?.({ open: mergedOpen.value }) ?? [])?.[0];
|
|
302
302
|
const mergedChildrenProps = {
|
|
303
303
|
...originChildProps,
|
|
304
304
|
...cloneProps.value
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/trigger",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.6",
|
|
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/
|
|
33
|
-
"@v-c/
|
|
34
|
-
"@v-c/
|
|
32
|
+
"@v-c/portal": "^1.0.6",
|
|
33
|
+
"@v-c/resize-observer": "^1.0.8",
|
|
34
|
+
"@v-c/util": "^1.0.9"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "vite build",
|