How do I reference contaniner
from template
within the script
?
<template>
<div id="container"></div>
</template>
<script>
import { Graph, Node, Shape, Edge } from '@antv/x6'
const graph = new Graph({
container: document.getElementById('container'),
width: 100,
height: 100,
});
export default {
data() {
return {
items: [],
};
},
created() {
},
methods: {
}
};
</script>
<style></style>