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() {
|
||||
const params = {
|
||||
canvas: this.$refs.canvas,
|
||||
canvas: this.$el,
|
||||
antialias: this.antialias,
|
||||
alpha: this.alpha,
|
||||
autoClear: this.autoClear,
|
||||
@ -74,10 +74,6 @@ export default {
|
||||
},
|
||||
},
|
||||
render() {
|
||||
return h(
|
||||
'canvas',
|
||||
{ ref: 'canvas' },
|
||||
this.$slots.default()
|
||||
);
|
||||
return h('canvas', {}, this.$slots.default());
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user