import { Con, Row, Col } from 'bee-layout'; import { Panel } from 'bee-panel'; import Button from 'bee-button'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; const CARET = ; const CARETUP = ; {demolist} class Demo extends Component { constructor(props){ super(props); this.state = { open: false } this.handleClick = this.handleClick.bind(this); } handleClick() { this.setState({ open: !this.state.open }) } render () { const { title, example, code, desc } = this.props; let caret = this.state.open ? CARETUP : CARET; let text = this.state.open ? "隐藏代码" : "查看代码"; const footer = ( ); const header = ( { example } ); return (

{ title }

{ desc }

{ code }
) } } class DemoGroup extends Component { constructor(props){ super(props) } render () { return ( {DemoArray.map((child,index) => { return ( ) })} ) } } ReactDOM.render(, document.getElementById('tinperBeeDemo'));