1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

wip: core

This commit is contained in:
Kevin Levron 2021-04-19 19:57:19 +02:00
parent 65eb3d9450
commit da2a4607c3

View File

@ -2,7 +2,7 @@ import { Object3D } from 'three'
import { ComponentPublicInstance, defineComponent, watch } from 'vue' import { ComponentPublicInstance, defineComponent, watch } from 'vue'
import { bindProp } from '../tools' import { bindProp } from '../tools'
interface Object3DInterface { interface Object3DSetupInterface {
o3d?: Object3D o3d?: Object3D
parent?: ComponentPublicInstance parent?: ComponentPublicInstance
} }
@ -19,7 +19,7 @@ export default defineComponent({
autoRemove: { type: Boolean, default: true }, autoRemove: { type: Boolean, default: true },
userData: { type: Object, default: () => ({}) }, userData: { type: Object, default: () => ({}) },
}, },
setup(): Object3DInterface { setup(): Object3DSetupInterface {
return {} return {}
}, },
unmounted() { unmounted() {