| | |
| | | <slot></slot> |
| | | <template slot="footer"> |
| | | <el-button @click="visible = false" v-show="editAble">{{ $t('cancel') }}</el-button> |
| | | <el-button type="primary" @click="formSubmit()" v-preventReClick v-show="editAble && hasConfirm">{{ $t('confirm') |
| | | }} |
| | | <el-button type="primary" @click="formSubmit()" v-preventReClick v-show="editAble && hasConfirm">{{ $t('confirm') }} |
| | | </el-button> <!-- 确定 --> |
| | | <el-button type="warning" @click="formSubmit()" v-show="stepMarker">提交 |
| | | </el-button> |
| | | <el-button type="warning" @click="formSubmit()" v-show="!stepMarker">保存 |
| | | </el-button> |
| | | <el-button type="info" @click="close()" v-show="!editAble">{{ $t('close') }}</el-button> |
| | | <slot name="footer"></slot> |
| | |
| | | type: String, |
| | | default: '1' |
| | | }, |
| | | stepMarker:{ |
| | | |
| | | }, |
| | | appendToBody: { |
| | | type: Boolean, |
| | | default: false |
| | |
| | | editAble: { |
| | | type: Boolean, |
| | | default: true |
| | | }, |
| | | hasSubmit:{ |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | hasSave:{ |
| | | type: Boolean, |
| | | default: false |
| | | } |
| | | }, |
| | | data() { |