From 5019ed6016b47221321bf395cd102dc4b51b4724 Mon Sep 17 00:00:00 2001 From: MrShi <1878285526@qq.com> Date: 星期一, 05 二月 2024 09:40:43 +0800 Subject: [PATCH] Mr.Shi --- platform/src/components/common/GlobalWindow.vue | 29 +++++------------------------ 1 files changed, 5 insertions(+), 24 deletions(-) diff --git a/platform/src/components/common/GlobalWindow.vue b/platform/src/components/common/GlobalWindow.vue index 7967500..56150c5 100644 --- a/platform/src/components/common/GlobalWindow.vue +++ b/platform/src/components/common/GlobalWindow.vue @@ -8,12 +8,10 @@ :close-on-press-escape="false" :wrapper-closable="false" :append-to-body="true" - :modal="false" @close="close" > <div slot="title" class="window__header"> <span class="header__btn-back" @click="close"><i class="el-icon-arrow-left"></i></span>{{title}} - <!-- {{title}} --> </div> <div class="window__body"> <slot></slot> @@ -21,7 +19,7 @@ <div v-if="withFooter" class="window__footer"> <slot name="footer"> <el-button @click="confirm" :loading="confirmWorking" type="primary">纭畾</el-button> - <el-button @click="close">杩斿洖</el-button> + <el-button @click="close">鍙栨秷</el-button> </slot> </div> </el-drawer> @@ -33,7 +31,7 @@ props: { width: { type: String, - default: '100%' + default: '36%' }, // 鏄惁鍖呭惈搴曢儴鎿嶄綔 withFooter: { @@ -72,16 +70,11 @@ // 杈撳叆妗嗛珮搴� $input-height: 32px; .global-window { - top: 80px !important; - left: 218px !important; // 澶撮儴鏍囬 - ::v-deep .el-drawer__header { + /deep/ .el-drawer__header { padding: 0 10px 0 0; line-height: 40px; border-bottom: 1px solid #eee; - // text-align: center; - font-weight: 500; - color: #222; // 杩斿洖鎸夐挳 .header__btn-back { display: inline-block; @@ -97,7 +90,7 @@ } } // 涓讳綋 - ::v-deep .el-drawer__body { + /deep/ .el-drawer__body { display: flex; flex-direction: column; position: absolute; @@ -105,24 +98,12 @@ bottom: 0; width: 100%; overflow: hidden; - // background-color: #f7f7f7; // 鍐呭 .window__body { - // width: 1100px; - // margin: 0 auto; - // background-color: #fff; - width: 100%; height: 100%; overflow-y: auto; padding: 12px 16px; - // 鏍囩 - // .el-form-item__label { - // float: none; - // } - // 鍏冪礌瀹藉害涓�100% - .el-form-item__content > *{ - width: 100%; - } + } // 灏鹃儴 .window__footer { -- Gitblit v1.9.3