import React from 'react' import { Row, Col, Select } from 'antd' const Option = Select.Option import ColorPicker from 'components/ColorPicker' import { PIVOT_CHART_FONT_FAMILIES, PIVOT_CHART_FONT_SIZES, PIVOT_CHART_LINE_STYLES } from 'app/globalConstants' const styles = require('../Workbench.less') export interface IPivotConfig { fontFamily: string fontSize: string color: string lineStyle: string lineColor: string headerBackgroundColor: string } interface IPivotSectionProps { title: string config: IPivotConfig onChange: (prop: string, value: any) => void } export class PivotSection extends React.PureComponent { 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 { fontFamily, fontSize, color, lineStyle, lineColor, headerBackgroundColor } = config const fontFamilies = PIVOT_CHART_FONT_FAMILIES.map((f) => ( )) const fontSizes = PIVOT_CHART_FONT_SIZES.map((f) => ( )) const lineStyles = PIVOT_CHART_LINE_STYLES.map((l) => ( )) return (

{title}

文字 边框 表头背景颜色
) } } export default PivotSection