feat(echarts): add types for echarts (#38144)

* feat(echarts): add types for echarts

+ lineStyle.color can be an string[]
https://echarts.apache.org/zh/option.html#yAxis.splitLine.lineStyle.color

+ cartesianAxis.min/max can be a function
https://echarts.apache.org/zh/option.html#yAxis.min

* docs(echarts): change reference link

* docs(echarts): fix yAxis.max reference link

* style(echarts): add space before `number`
This commit is contained in:
theWorkFsz 2019-09-17 19:04:40 +08:00 committed by Orta
parent 808267e6e8
commit dd4a93f39b

View File

@ -1170,9 +1170,9 @@ declare namespace echarts {
* Moreover, it can be set as negative number, like `-3`.
*
* @default null
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.min
* @see https://echarts.apache.org/option.html#yAxis.min
*/
min?: number | string;
min?: number | string | ((value: { min: number, max: number }) => number);
/**
* The maximum value of axis.
@ -1187,9 +1187,9 @@ declare namespace echarts {
* Moreover, it can be set as negative number, like `-3`.
*
* @default null
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.max
* @see https://echarts.apache.org/option.html#yAxis.max
*/
max?: number | string;
max?: number | string | ((value: { min: number, max: number } ) => number);
/**
* It is available only in numerical axis, i.e., type: `'value'`.