What problem does this feature solve?
the problem is 'CategoryAxisBaseOption' interface is no exported,and I want to write such code , like this :
import { CategoryAxisBaseOption, EChartsOption } from 'echarts'
let xAxisData: CategoryAxisBaseOption = ['xAxis1', 'xAxis2']
const chartOption: EChartsOption = {
xAxis: {
data: xAxisData,
},
}
so what should I do , and why not export CategoryAxisBaseOption
。
The real reason for this is package component in Vue , the xAxisData
is prop define in Vue component。
What does the proposed API look like?
I don't know how to do it.
2条答案
按热度按时间dbf7pr2w1#
I made other attempts, but also encountered problems,for example:
data
is error : Property does not exist on typeXAXisOption | XAXisOption[]
.continue, I know
XAXisOption
is export asXAXisComponentOption
, code:data
is error too , I see the source code,The reason for the problem may be thatAxisBaseOption
have too much interface.but the example is success :
n3h0vuf22#
I have also encountered this problem. Is there any repair methods available?