1234567891011121314151617 |
- import { ref, watchEffect } from "vue";
- import defaultCover from '@/assets/pic.jpg'
- export type PicA = {
- pose?: {
- position: SceneLocalPos
- target: SceneLocalPos
- },
- cover: string,
- back: string
- }
- export type Pic = LocalMode<PicA, 'cover'>
- export const pic = ref<Pic>({ cover: defaultCover, back: 'none' })
- watchEffect(() => console.log(JSON.stringify(pic.value.pose)))
|