rename traits

This commit is contained in:
Yanzhen Yu 2021-07-27 10:43:12 +08:00
parent 5850de1b33
commit 010a70f5f3
3 changed files with 10 additions and 2 deletions

View File

@ -74,7 +74,9 @@ const useEventTrait: TraitImplementation<{
};
}, []);
return hub;
return {
props: hub,
};
};
const EventsPropertySchema = Type.Array(

View File

@ -24,5 +24,7 @@ export default {
methods: [],
},
}),
impl: () => {},
impl: () => ({
props: null,
}),
};

View File

@ -19,6 +19,10 @@ const useStateTrait: TraitImplementation<{
},
});
}, []);
return {
props: null,
};
};
const KeyPropertySchema = Type.String();