feat: initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
// Ported from legacy henza_pwa/src/store/windowData.ts.
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
interface WindowDataState {
|
||||
width: number
|
||||
pullingDown: boolean
|
||||
}
|
||||
|
||||
export const useWindowDataStore = defineStore('windowData', {
|
||||
state: (): WindowDataState => ({
|
||||
width: 0,
|
||||
pullingDown: false,
|
||||
}),
|
||||
actions: {
|
||||
setWidth(width: number) {
|
||||
this.width = width
|
||||
},
|
||||
setPullingDown(pulling: boolean) {
|
||||
this.pullingDown = pulling
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user