Browse Source

[ui] Vue 3 - Web Component Wrapper - Remove dataVApp befoee sending it as prop

sreenaths 5 năm trước cách đây
mục cha
commit
c39ed2d173

+ 1 - 0
desktop/core/src/desktop/js/vue/wrapper/index.ts

@@ -98,6 +98,7 @@ export default function wrap(component: Component): CustomElementConstructor {
       this._wrapper = createApp({
       this._wrapper = createApp({
         render() {
         render() {
           const props = Object.assign({}, self._props, eventProxies);
           const props = Object.assign({}, self._props, eventProxies);
+          delete props.dataVApp;
           return h(componentObj, props, () => self._slotChildren);
           return h(componentObj, props, () => self._slotChildren);
         },
         },
         mounted() {
         mounted() {