| | |
| | | |
| | | delete item.isNew |
| | | |
| | | this.setState({card: null}, () => { |
| | | this.setState({card: item}) |
| | | }) |
| | | } |
| | | } |
| | | |
| | |
| | | card.$c_cl = true |
| | | |
| | | card.errors = checkComponent(card) |
| | | |
| | | if (!card.submit.sheet) { |
| | | card.errors.push({ level: 0, detail: '提交按钮未设置!'}) |
| | | } |
| | | |
| | | if (card.errors.length === 0) { |
| | | card.$tables = getTables(card) |
| | |
| | | } |
| | | |
| | | getWrapForms = () => { |
| | | const { wrap, action } = this.state.card |
| | | const { wrap, columns } = this.state.card |
| | | |
| | | return getWrapForm(wrap, action) |
| | | return getWrapForm(wrap, columns) |
| | | } |
| | | |
| | | updateWrap = (res) => { |
| | |
| | | |
| | | render() { |
| | | const { card, appType } = this.state |
| | | |
| | | if (!card) return null |
| | | |
| | | let _style = resetStyle(card.style) |
| | | |
| | | return ( |