From bef87d26404deed9e28627ca88d6caf5db086c24 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 18 Jun 2021 14:04:03 +0800 Subject: [PATCH] =?UTF-8?q?style(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E5=9C=BA=E6=99=AF=E6=AD=A5=E9=AA=A4=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E8=BF=87=E9=95=BF=E6=A0=B7=E5=BC=8F=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scenario/common/ApiBaseComponent.vue | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue index e8845db461..6f3f5c0345 100644 --- a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue @@ -18,11 +18,11 @@ @blur="isShowInput = false" :placeholder="$t('commons.input_name')" ref="nameEdit" :disabled="data.disabled"/> + {{data.name}} - @@ -132,9 +132,9 @@ }, methods: { active() { - // 这种写法性能极差,不要再放开了 - //this.$set(this.data, 'active', !this.data.active); - this.$emit('active'); + if(!this.isShowInput){ + this.$emit('active'); + } }, getMethod() { if (this.data.protocol === "HTTP") { @@ -208,11 +208,15 @@ } .scenario-name { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; + display: inline-block; font-size: 13px; - width: 100%; + margin: 0 5px; + overflow-x: hidden; + padding-bottom: 0; + text-overflow: ellipsis; + vertical-align: middle; + white-space: nowrap; + width: calc(100% - 30rem); } /deep/ .el-step__icon {