mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
15 lines
404 B
TypeScript
15 lines
404 B
TypeScript
import {objectOrArray, buildOptions} from './Common';
|
|
|
|
//@ts-ignore
|
|
const xAxisOptions = __inline('./option-parts/option.xAxis.json');
|
|
//@ts-ignore
|
|
const yAxisOptions = __inline('./option-parts/option.yAxis.json');
|
|
|
|
export default (axis = 'x') => {
|
|
return objectOrArray(
|
|
axis === 'x' ? 'xAxis' : 'yAxis',
|
|
'多轴模式',
|
|
buildOptions('', axis === 'x' ? xAxisOptions : yAxisOptions)
|
|
);
|
|
};
|