浏览代码

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

sreenaths 4 年之前
父节点
当前提交
c39ed2d173
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      desktop/core/src/desktop/js/vue/wrapper/index.ts

+ 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() {