Blame view

stores/cell.ts 247 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useCellStore = defineStore('cell', () => {
  const cell = ref(null)

  const setCell = (value:any) => {
    cell.value = value
  }

  return {
    cell,
    setCell
  }
})