.smart-multi-form
el-table(:data="tableData" stripe size="mini" :default-expand-all="true")
template
el-table-column(
v-for="(item, index) in realConfig.normal"
:key="JSON.stringify(item)"
:label="item.label")
template(slot-scope="scope")
SmartItem(:type="item.type" size="mini" v-model="scope.row[item.prop]" :config="item" :formData="scope.row")
el-table-column(
v-if="realConfig.expand.length"
type="expand"
label="更多")
template(slot-scope="scope")
board.expend(
v-for="(item, index) in realConfig.expand"
:key="JSON.stringify(item)"
:title="item.label")
SmartItem(
size="mini"
:type="item.type"
v-model="scope.row[item.prop]"
:config="item"
:formData="scope.row")
el-table-column(width="40")
template(slot-scope="scope" v-if="scope.$index !== tableData.length - 1")
el-button.close(type="danger" size="mini" icon="el-icon-close" circle @click="close(scope.$index)")