import React from 'react' import Row from 'antd/lib/row' import Col from 'antd/lib/col' import Checkbox from 'antd/lib/checkbox' import Select from 'antd/lib/select' const Option = Select.Option import InputNumber from 'antd/lib/input-number' import ColorPicker from 'components/ColorPicker' import { PIVOT_CHART_YAXIS_OPTIONS, PIVOT_CHART_LINE_STYLES, PIVOT_CHART_FONT_FAMILIES, PIVOT_CHART_FONT_SIZES } from 'app/globalConstants' const styles = require('../Workbench.less') export interface IDoubleYAxisConfig { yAxisLeft: string yAxisRight: string yAxisSplitNumber: number dataZoomThreshold: number inverse: boolean showLine: boolean lineStyle: 'solid' | 'dashed' | 'dotted' lineSize: string lineColor: string showLabel: boolean labelFontFamily: string labelFontSize: string labelColor: string } interface IDoubleYAxisSectionProps { title: string config: IDoubleYAxisConfig onChange: (prop: string, value: any) => void } export class DoubleYAxisSection extends React.PureComponent { private selectChange = (prop) => (value) => { this.props.onChange(prop, value) } private inputNumberChange = (prop) => (value) => { this.props.onChange(prop, value) } private checkboxChange = (prop) => (e) => { this.props.onChange(prop, e.target.checked) } private colorChange = (prop) => (color) => { this.props.onChange(prop, color) } public render () { const { title, config } = this.props const { yAxisLeft, yAxisRight, yAxisSplitNumber, dataZoomThreshold, showLine, inverse, lineStyle, lineSize, lineColor, showLabel, labelFontFamily, labelFontSize, labelColor } = config const yAixsOptions = PIVOT_CHART_YAXIS_OPTIONS.map((f) => ( )) const lineStyles = PIVOT_CHART_LINE_STYLES.map((l) => ( )) const fontFamilies = PIVOT_CHART_FONT_FAMILIES.map((f) => ( )) const fontSizes = PIVOT_CHART_FONT_SIZES.map((f) => ( )) return (

{title}

左Y轴 右Y轴 {/* y轴刻度条数 超出后缩放 */} 显示坐标轴 坐标轴反转 显示标签文字
) } } export default DoubleYAxisSection