ant-design / ant-design-charts

A React Chart Library
https://ant-design-charts.antgroup.com/
MIT License
1.89k stars 359 forks source link

🐛[BUG]官网的demo div.x6-graph-pannable height = 0, 导致画布不显示,切换窗口大小后height变化显示画布 #1357

Closed yuuunagi closed 1 year ago

yuuunagi commented 2 years ago

1654071227(1) 1654071238(1) @ant-design/flowchart@1.1.2 @ant-design/pro-layout@6.31.7 umi@3.5.20

yuuunagi commented 2 years ago

demo基础流程图

9527jfLi commented 2 years ago

需要导入默认样式

lxfu1 commented 1 year ago

import "antd/dist/antd.css"
import "@ant-design/flowchart/dist/index.css"

/**
 * 样式文件引入,实际项目中不要这么用,可以考虑在对应的less\sass文件中引入
 * eg:
 *  style.less
 *  @import (inline) '../../node_modules/antd/dist/antd.css';
 *  @import (inline) '../../node_modules/@ant-design/flowchart/dist/index.css';
 *  
 *  
 *  demo.tsx
 *  import './style.less'
 */