render()

in src/ui/widget/Segment.tsx [20:39]


  render() {
    return <div style={this.props.style} className="AForm_segment">
      <div className="AForm_segmentTitleBar" key="分段标题" {... { name: this.props.labelName }}>
        {this.props.topRight ? <span className="AForm_segmentTopRight">{this.props.topRight}</span> : undefined}
        {this.props.mainTitle ? <span className="AForm_segmentMainTitle">{this.props.mainTitle}</span> : undefined}
        {this.props.subTitle ? <span className="AForm_segmentSubTitle">{this.props.subTitle}</span> : undefined}
      </div>
      {
        this.props.column > 1 ?
          <div className="AForm" style={{
            display: 'flex',
            flexFlow: 'row wrap',
            alignContent: 'flex-start',
          }}>
            {this.props.children}
          </div>
          : this.props.children
      }
    </div>
  }