mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-22 07:05:20 +00:00
Global non-persisted state with useEmailSelection composition function
This commit is contained in:
21
src/components/BulkActionBar.vue
Normal file
21
src/components/BulkActionBar.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div>
|
||||
{{emailSelection.emails.size}}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { useEmailSelection } from '../composition/useEmailSelection';
|
||||
|
||||
export default {
|
||||
setup(){
|
||||
let { emailSelection } = useEmailSelection();
|
||||
|
||||
return { emailSelection }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user