From a3e9c3acb0acd03fb468261d7f60dd952c25037a Mon Sep 17 00:00:00 2001 From: devilwjp <9700616@qq.com> Date: Sun, 22 Sep 2024 15:08:37 +0800 Subject: [PATCH 1/3] fix: #125 and #124 --- src/applyReactInVue.js | 2 +- src/pureReactInVue/getChildInfo.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/applyReactInVue.js b/src/applyReactInVue.js index 4f4ced4..5b9e838 100644 --- a/src/applyReactInVue.js +++ b/src/applyReactInVue.js @@ -659,7 +659,7 @@ export default function applyReactInVue(component, options = {}) { // Destroy the React root node if (ReactMajorVersion > 17) { - this.__veauryReactApp__.unmount() + this.__veauryReactApp__?.unmount() } else { ReactDOM.unmountComponentAtNode(this.$refs.react) } diff --git a/src/pureReactInVue/getChildInfo.js b/src/pureReactInVue/getChildInfo.js index 1dc65ba..b8650e6 100644 --- a/src/pureReactInVue/getChildInfo.js +++ b/src/pureReactInVue/getChildInfo.js @@ -45,5 +45,8 @@ export default function getChildInfo(child, index, vueInReactCall, defaultSlotsF // props.node = () => reactNode // } + // remove ref_for + if (typeof props.ref_for === "boolean") delete props.ref_for + return props } From 8c5298eb282851d111bd7df8de9fa88442f223f4 Mon Sep 17 00:00:00 2001 From: devilwjp <9700616@qq.com> Date: Sun, 22 Sep 2024 15:08:49 +0800 Subject: [PATCH 2/3] 2.5.1-beta.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index af56370..80a258e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "veaury", "private": false, - "version": "2.5.0", + "version": "2.5.1-beta.0", "description": "Use React in Vue3 and Vue3 in React, And as perfect as possible!", "main": "dist/veaury.umd.js", "module": "dist/veaury.esm.js", From 37fc032ce267a18e0a62c308e622d1f26fa608e3 Mon Sep 17 00:00:00 2001 From: devilwjp <9700616@qq.com> Date: Sun, 22 Sep 2024 16:30:23 +0800 Subject: [PATCH 3/3] 2.5.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 80a258e..4a394a2 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "veaury", "private": false, - "version": "2.5.1-beta.0", + "version": "2.5.1", "description": "Use React in Vue3 and Vue3 in React, And as perfect as possible!", "main": "dist/veaury.umd.js", "module": "dist/veaury.esm.js",