Skip to content
New issue

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

没有导出成员Addon #4127

Closed
Prixii opened this issue Dec 30, 2023 · 5 comments
Closed

没有导出成员Addon #4127

Prixii opened this issue Dec 30, 2023 · 5 comments

Comments

@Prixii
Copy link

Prixii commented Dec 30, 2023

问题描述

在vue3,ts下,我尝试使用Addon,但是报错说没有导出成员Addon
image

重现链接

null

重现步骤

import { Addon } from '@antv/x6'

预期行为

在我找到的即使是官方示例中,似乎也没有明确写道Addon有其他来源,都是直接通过 import {Addon} from '@antv/x6' 就行的了

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.16.1]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@x6-bot
Copy link
Contributor

x6-bot bot commented Dec 30, 2023

👋 @Prixii

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@Prixii Prixii closed this as completed Jan 2, 2024
@sangjunke
Copy link

image
image

真的离谱,引入了2.x版本的X6做开发,发现官方文档两次使用了 Addon 方法,却没有说从哪里导入的此方法
全局搜索文档也没有说明如何引入 没人维护的吗?我翻了issues发现好几次有人提出此问题,并没有人解决 真是可笑

@Prixii
Copy link
Author

Prixii commented Apr 17, 2024

如果你也有这个问题,可以去文档的 [插件] 目录中找(虽然两个版本的文档其中一个文档里面没写),Addon 本身是一个插件,需要另外下载导入

@TimelyRainX
Copy link

怎么引入呢 没有看到相关 Addon文档呢?

@Prixii
Copy link
Author

Prixii commented Jun 24, 2024

怎么引入呢 没有看到相关 Addon文档呢?

怪了,可能记错了...
但是 Addon 似乎在文档中只被引用了两次,一次是Addon.Dnd,一次是Addon.Stencil,但是实际上这两个 class 都可以不需要 Addon 就能直接创建
说不定 Addon 是一个被移除的东西,但是文档没来得及更新

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants