Skip to content

Commit

Permalink
flowbug
Browse files Browse the repository at this point in the history
  • Loading branch information
孟子文 committed Aug 31, 2021
1 parent beab629 commit 8a29c9b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package/vitevui/package.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down
4 changes: 0 additions & 4 deletions package/vitevui/src/flow/graphCom/TRIGGER.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down
8 changes: 1 addition & 7 deletions src/components/test1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => (
<div
class='test'
onClick={() => {
console.log(getTabCurrentDetail('aaaa'));
}}
>
<div class='test' onClick={() => {}}>
aaaa1
<input type='text' />
</div>
Expand Down

0 comments on commit 8a29c9b

Please sign in to comment.