add event handler to input event
This commit is contained in:
parent
21ff62e206
commit
07cfddab1d
6 changed files with 108 additions and 58 deletions
|
|
@ -6,7 +6,7 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import { defineComponent, inject } from 'vue';
|
||||
// import UIindex from "@/components/UI/index.vue";
|
||||
// import Microphone from "@/components/microphone/index.vue";
|
||||
import InputItem from "@/components/UI/UIDetails/inputItem.vue";
|
||||
|
|
@ -14,6 +14,10 @@
|
|||
export default defineComponent({
|
||||
name: "HomeIndex",
|
||||
components: { InputItem },
|
||||
setup() {
|
||||
const emitter: any = inject("mitt");
|
||||
emitter.on('newSelfMessage', (payload: any) => console.log('foo', payload) )
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue