We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e108b39 commit 2d2f26fCopy full SHA for 2d2f26f
1 file changed
src/model-mixin.vue
@@ -145,10 +145,6 @@ export default defineComponent({
145
},
146
data() {
147
const result = {
148
- size: {
149
- width: this.width,
150
- height: this.height,
151
- },
152
object: null as null | Object3D,
153
raycaster: new Raycaster(),
154
mouse: new Vector2(),
@@ -165,9 +161,13 @@ export default defineComponent({
165
161
166
162
// 确保这些对象不被转为 vue reactive 对象,避免 three 渲染出错
167
163
Object.assign(this, result);
168
-
164
+
169
// 为了保留类型信息,仍然返回 result 的 type
170
return {
+ size: {
+ width: this.width,
+ height: this.height,
+ },
171
progress: {
172
isComplete: false,
173
lengthComputable: false,
0 commit comments