diff --git a/stories/Issues/component/dom-click.tsx b/stories/Issues/component/dom-click.tsx
new file mode 100644
index 0000000000..98f99ec895
--- /dev/null
+++ b/stories/Issues/component/dom-click.tsx
@@ -0,0 +1,87 @@
+import React, { useEffect } from 'react';
+import G6 from '../../../src';
+import { IGraph } from '../../../src/interface/graph';
+
+let graph: IGraph = null;
+
+
+function handleClick(msg) {
+ alert('aaa')
+}
+
+const DomClick = () => {
+ G6.registerNode('dom-node', {
+ draw: (cfg, group) => {
+ return group.addShape('dom', {
+ attrs: {
+ width: cfg.size[0],
+ height: cfg.size[1],
+ // 传入 DOM 的 html,带有原生 onclick 事件
+ html: `
+
+
+
+
+
${cfg.label}
+
+ `
+ },
+ draggable: true
+ });
+ },
+}, 'single-node');
+
+const data = {
+ nodes: [
+ {
+ id: 'node1',
+ x: 100,
+ y: 200,
+ label: '首页监控',
+ },
+ {
+ id: 'node2',
+ x: 300,
+ y: 200,
+ label: '子页面',
+ },
+ ],
+ edges: [
+ {
+ source: 'node1',
+ target: 'node2',
+ },
+ ],
+};
+
+ const container = React.useRef();
+ useEffect(() => {
+ if (!graph) {
+ graph = new G6.Graph({
+ container: container.current as string | HTMLElement,
+ width: 500,
+ height: 600,
+ renderer: 'svg',
+ defaultNode: {
+ type: 'dom-node',
+ size: [120, 40]
+ },
+ defaultEdge: {
+ type: 'polyline',
+ style: {
+ radius: 20,
+ offset: 45,
+ endArrow: true,
+ lineWidth: 2,
+ stroke: '#C2C8D5',
+ },
+ },
+ });
+ graph.data(data);
+ graph.render();
+ }
+ });
+ return
;
+};
+
+export default DomClick;
diff --git a/stories/Issues/issues.stories.tsx b/stories/Issues/issues.stories.tsx
index d7a05637fe..49c037352a 100644
--- a/stories/Issues/issues.stories.tsx
+++ b/stories/Issues/issues.stories.tsx
@@ -4,6 +4,7 @@ import DragCanvas from './component/drag-canvas';
import DagreArrow from './component/dagre-arrow';
import ChageData from './changeData'
import ChangeAttr from './attrs'
+import DomClick from './component/dom-click'
export default { title: 'Issues' };
@@ -20,3 +21,7 @@ storiesOf('Issues', module)
.add('change attr', () => (
))
+.add('dom click', () => (
+
+))
+