zanllp opened a new issue #13672: URL: https://github.com/apache/incubator-echarts/issues/13672
### Version 4.9.0 ### Steps to reproduce ```ts import { EChartOption } from 'echarts' export const baseLineChartOption: EChartOption = { legend: { bottom: 0, icon: 'roundRect', itemHeight: 5, itemWidth: 20, selectedMode: true, show: true, type: 'scroll', selector: true, textStyle: { color: '#333', fontSize: 12, fontWeight: 'bold' } } } ``` ### What is expected? vscode不报错 ### What is actually happening? vscode提示 不能将类型“{ bottom: number; icon: string; itemHeight: number; itemWidth: number; selectedMode: true; show: true; type: "scroll"; selector: true; textStyle: { color: string; fontSize: number; fontWeight: "bold"; }; }”分配给类型“Legend”。 对象文字可以只指定已知属性,并且“selector”不在类型“Legend”中。 <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE --> ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org