| | |
| | | <div v-if="withFooter" class="window__footer"> |
| | | <slot name="footer"> |
| | | <el-button @click="confirm" :loading="confirmWorking" type="primary">{{text}}</el-button> |
| | | <el-button @click="close">返回</el-button> |
| | | <slot name="btns" /> |
| | | <el-button @click="close">{{ backText }}</el-button> |
| | | </slot> |
| | | </div> |
| | | </el-drawer> |
| | |
| | | type: String, |
| | | default: '确定' |
| | | }, |
| | | backText: { |
| | | type: String, |
| | | default: '返回' |
| | | }, |
| | | // 确认按钮loading状态 |
| | | confirmWorking: { |
| | | type: Boolean, |
| | |
| | | this.$emit('confirm') |
| | | }, |
| | | close () { |
| | | this.$emit('close') |
| | | this.$emit('update:visible', false) |
| | | } |
| | | } |