Skip to content

[Bug] 通过CDN引入vtable-plugins后,执行new VTable.plugins.ContextMenuPlugin报错 #4562

@MR-Robot-Lee

Description

@MR-Robot-Lee

Version

1.20.1

Steps to Reproduce

<script src="https://unpkg.com/@visactor/vtable-plugins/dist/vtable-plugins.min.js"></script> <script> new VTable.plugins.ContextMenuPlugin(); </script>

Current Behavior

报错信息如下:
Uncaught TypeError: Cannot read property 'CONTEXTMENU_CELL' of undefined
at e.ContextMenuPlugin.<instance_members_initializer> (VM1941 vtable-plugins.min.js:37)
at new e.ContextMenuPlugin (VM1941 vtable-plugins.min.js:37)
at :1:1

Expected Behavior

可以通过CDN引入插件,并正常使用右键菜单及其他各个插件的各项功能;

Environment

- OS: Win10
- Browser: Edge最新版
- Framework: 无

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions