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:
parent
4308da7524
commit
ee30c75d88
@ -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()
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user