vendor: amis 6.13.0 base (fork root)
This commit is contained in:
14
examples/components/EChartsEditor/Axis.tsx
Normal file
14
examples/components/EChartsEditor/Axis.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user