提交 b726f6e7 编写于 作者: H haoxr

docs: 添加注释

上级 19649663
...@@ -132,11 +132,13 @@ const options = { ...@@ -132,11 +132,13 @@ const options = {
}; };
onMounted(() => { onMounted(() => {
// 图表初始化
const chart = echarts.init( const chart = echarts.init(
document.getElementById(props.id) as HTMLDivElement document.getElementById(props.id) as HTMLDivElement
); );
chart.setOption(options); chart.setOption(options);
// 大小自适应
window.addEventListener('resize', () => { window.addEventListener('resize', () => {
chart.resize(); chart.resize();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册