From 8a29c9bcb413ee92676c95771c051a5ef02ffdcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=AD=90=E6=96=87?= Date: Tue, 31 Aug 2021 14:36:37 +0800 Subject: [PATCH] flowbug --- package/vitevui/package.json | 2 +- package/vitevui/src/flow/graphCom/TRIGGER.tsx | 4 ---- src/components/test1.tsx | 8 +------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/package/vitevui/package.json b/package/vitevui/package.json index 716bf07..b23472b 100644 --- a/package/vitevui/package.json +++ b/package/vitevui/package.json @@ -1,6 +1,6 @@ { "name": "vitevui", - "version": "1.0.0-beta.55", + "version": "1.0.0-beta.56", "description": "vue3.0 ui", "main": "lib/index.js", "homepage": "https://bhabgs.github.io/vite-vui-docs/", diff --git a/package/vitevui/src/flow/graphCom/TRIGGER.tsx b/package/vitevui/src/flow/graphCom/TRIGGER.tsx index c478524..31e5fac 100644 --- a/package/vitevui/src/flow/graphCom/TRIGGER.tsx +++ b/package/vitevui/src/flow/graphCom/TRIGGER.tsx @@ -25,10 +25,6 @@ export default defineComponent({ }, }); const { proxy }: any = getCurrentInstance(); - watch(props, () => { - customUtil.resetObj(state.resData); - state.resData = { ...state.resData, ...props.com.data }; - }); onMounted(() => { customUtil.resetObj(state.resData); state.resData = { ...state.resData, ...props.com.data }; diff --git a/src/components/test1.tsx b/src/components/test1.tsx index 9bc555e..393cb3d 100644 --- a/src/components/test1.tsx +++ b/src/components/test1.tsx @@ -7,19 +7,13 @@ * @LastEditTime: 2021-04-08 14:10:06 */ import { defineComponent, getCurrentInstance } from 'vue'; -import { getTabCurrentDetail } from '../../package/vitevui'; export default defineComponent({ setup() { const { proxy } = getCurrentInstance()!; const mitt = proxy!.$mitt; return () => ( -
{ - console.log(getTabCurrentDetail('aaaa')); - }} - > +
{}}> aaaa1