import React from 'react' import { Row, Col, Checkbox, Select} from 'antd' const Option = Select.Option import ColorPicker from 'components/ColorPicker' import { PIVOT_CHART_LINE_STYLES } from 'app/globalConstants' const styles = require('../Workbench.less') export interface ISplitLineConfig { showHorizontalLine: boolean horizontalLineStyle: 'solid' | 'dashed' | 'dotted' horizontalLineSize: string horizontalLineColor: string showVerticalLine: boolean verticalLineStyle: 'solid' | 'dashed' | 'dotted' verticalLineSize: string verticalLineColor: string } interface ISplitLineSectionProps { title: string config: ISplitLineConfig onChange: (prop: string, value: any) => void } export class SplitLineSection extends React.PureComponent { private checkboxChange = (prop) => (e) => { this.props.onChange(prop, e.target.checked) } private selectChange = (prop) => (value) => { this.props.onChange(prop, value) } private colorChange = (prop) => (color) => { this.props.onChange(prop, color) } public render () { const { title, config } = this.props const { showHorizontalLine, horizontalLineStyle, horizontalLineSize, horizontalLineColor, showVerticalLine, verticalLineStyle, verticalLineSize, verticalLineColor } = config const lineStyles = PIVOT_CHART_LINE_STYLES.map((l) => ( )) return (

{title}

显示横向分隔线 显示纵向分隔线
) } } export default SplitLineSection