1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00
This commit is contained in:
Kevin Levron 2021-04-06 18:43:06 +02:00
parent bc8386d033
commit 7e0c4d5737

View File

@ -2,7 +2,7 @@ import Stats from 'stats.js';
export default { export default {
props: { props: {
noSetup: { type: Boolean, default: false } noSetup: { type: Boolean, default: false },
}, },
emits: ['created'], emits: ['created'],
inject: ['rendererComponent'], inject: ['rendererComponent'],
@ -31,7 +31,7 @@ export default {
if (this.stats) { if (this.stats) {
this.stats.end(); this.stats.end();
} }
} },
}, },
unmounted() { unmounted() {
if (this.stats && this.stats.dom) { if (this.stats && this.stats.dom) {
@ -43,4 +43,4 @@ export default {
render() { render() {
return this.$slots.default ? this.$slots.default() : []; return this.$slots.default ? this.$slots.default() : [];
}, },
}; };