We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//ProgressNode.vue
StackBlitz
正常显示vue节点
No response
The text was updated successfully, but these errors were encountered:
vite版本问题导致的。 { "name": "vite-vue-starter", "private": true, "version": "0.0.0", "type": "module", "scripts": { "dev": "vite", "build": "vite build", "preview": "vite preview" }, "dependencies": { "@antv/x6": "^2.18.1", "@antv/x6-vue-shape": "^2.1.2", "vue": "^3.4.19" }, "devDependencies": { "@vitejs/plugin-vue": "^5.0.4", "vite": "^5.1.4" } }
Sorry, something went wrong.
This thread has been automatically locked because it has not had recent activity.
Please open a new issue for related bugs and link to relevant comments in this thread.
No branches or pull requests
问题描述
<script setup> import { Graph } from '@antv/x6'; import { ref, onMounted } from 'vue' import Count from '@/components/ProgressNode.vue' import { register } from '@antv/x6-vue-shape' register({ shape: 'custom-vue-node', width: 100, height: 100, component: Count, }) let graph = ref(null) onMounted(() => { graph.value = new Graph({ container: document.getElementById('container'), }) graph.value.addNode({ shape: 'custom-vue-node', x: 60, y: 100, }) }) </script>//ProgressNode.vue
<script setup> import { ref } from 'vue' const count = ref(0) </script> You clicked me {{ count }} times. 版本 "@antv/x6": "^2.18.1", "@antv/x6-vue-shape": "^2.1.1", "vue": "^3.4.19"重现链接
StackBlitz
重现步骤
<script setup> import { Graph } from '@antv/x6'; import { ref, onMounted } from 'vue' import Count from '@/components/ProgressNode.vue' import { register } from '@antv/x6-vue-shape' register({ shape: 'custom-vue-node', width: 100, height: 100, component: Count, }) let graph = ref(null) onMounted(() => { graph.value = new Graph({ container: document.getElementById('container'), }) graph.value.addNode({ shape: 'custom-vue-node', x: 60, y: 100, }) }) </script> <style lang="scss" scoped> #container { width: 100%; height: 100%; } </style>//ProgressNode.vue
<script setup> import { ref } from 'vue' const count = ref(0) </script> You clicked me {{ count }} times.预期行为
正常显示vue节点
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: