|  |  |  | 
|---|
|  |  |  | :close-on-press-escape="false" | 
|---|
|  |  |  | :wrapper-closable="false" | 
|---|
|  |  |  | :append-to-body="true" | 
|---|
|  |  |  | :modal="false" | 
|---|
|  |  |  | :modal="true" | 
|---|
|  |  |  | @close="close" | 
|---|
|  |  |  | > | 
|---|
|  |  |  | <div slot="title" class="window__header"> | 
|---|
|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | <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> | 
|---|
|  |  |  | <el-button v-if="showConfirm" @click="confirm" :loading="confirmWorking" type="primary">{{text}}</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, | 
|---|
|  |  |  | default: false | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | showConfirm: { | 
|---|
|  |  |  | type: Boolean, | 
|---|
|  |  |  | default: true | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | // 标题 | 
|---|
|  |  |  | title: { | 
|---|
|  |  |  | 
|---|
|  |  |  | this.$emit('confirm') | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | close () { | 
|---|
|  |  |  | this.$emit('close') | 
|---|
|  |  |  | this.$emit('update:visible', false) | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | // 输入框高度 | 
|---|
|  |  |  | $input-height: 32px; | 
|---|
|  |  |  | .global-window { | 
|---|
|  |  |  | top: 80px !important; | 
|---|
|  |  |  | top: 56px !important; | 
|---|
|  |  |  | left: 250px !important; | 
|---|
|  |  |  | // 头部标题 | 
|---|
|  |  |  | ::v-deep .el-drawer__header { | 
|---|