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

remove ref in renderer (vitepress)

This commit is contained in:
Kevin Levron 2021-02-21 13:36:48 +01:00
parent 4308da7524
commit ee30c75d88

View File

@ -30,7 +30,7 @@ export default {
}, },
mounted() { mounted() {
const params = { const params = {
canvas: this.$refs.canvas, canvas: this.$el,
antialias: this.antialias, antialias: this.antialias,
alpha: this.alpha, alpha: this.alpha,
autoClear: this.autoClear, autoClear: this.autoClear,
@ -74,10 +74,6 @@ export default {
}, },
}, },
render() { render() {
return h( return h('canvas', {}, this.$slots.default());
'canvas',
{ ref: 'canvas' },
this.$slots.default()
);
}, },
}; };