import { WeaDialog, WeaFormItem, WeaNewScroll, WeaSearchGroup, WeaMoreButton, } from 'ecCom' import { Spin, Button, } from 'antd' import { WeaSwitch } from 'comsMobx' import { i18n } from '../../public/i18n'; export default class NewPopconfirm extends React.Component { constructor(props) { super(props); this.state = { width: 700, } } getForm() { const { condition, form, isFormInit, } = this.props; let arr = []; isFormInit && condition.map(c => { c.items.map((field, index) => { arr.push( {} ) }) }) return
{arr}
} render() { const { title, visible, save, onCancel, loading, height, } = this.props, { width, } = this.state; const buttons = [ (), () ]; return ( onCancel()} buttons={buttons} style={{ width: width, height: height }} > { loading ?
: this.getForm() }
) } }