style(接口自动化): 场景步骤名称过长样式显示问题优化

This commit is contained in:
fit2-zhao 2021-06-18 14:04:03 +08:00 committed by fit2-zhao
parent f320d9d44d
commit bef87d2640
1 changed files with 13 additions and 9 deletions

View File

@ -18,11 +18,11 @@
@blur="isShowInput = false" :placeholder="$t('commons.input_name')" ref="nameEdit" :disabled="data.disabled"/> @blur="isShowInput = false" :placeholder="$t('commons.input_name')" ref="nameEdit" :disabled="data.disabled"/>
</span> </span>
<span :class="isMax?'ms-step-name':'scenario-name'" v-else> <span :class="isMax?'ms-step-name':'scenario-name'" v-else>
<i class="el-icon-edit" style="cursor:pointer;" @click="editName"
v-if="data.referenced!='REF' && !data.disabled"/>
<el-tooltip placement="top" :content="data.name"> <el-tooltip placement="top" :content="data.name">
<span>{{data.name}}</span> <span>{{data.name}}</span>
</el-tooltip> </el-tooltip>
<i class="el-icon-edit" style="cursor:pointer;" @click="editName"
v-if="data.referenced!='REF' && !data.disabled" @click.stop/>
</span> </span>
</slot> </slot>
<slot name="behindHeaderLeft" v-if="!isMax"></slot> <slot name="behindHeaderLeft" v-if="!isMax"></slot>
@ -132,9 +132,9 @@
}, },
methods: { methods: {
active() { active() {
// if(!this.isShowInput){
//this.$set(this.data, 'active', !this.data.active);
this.$emit('active'); this.$emit('active');
}
}, },
getMethod() { getMethod() {
if (this.data.protocol === "HTTP") { if (this.data.protocol === "HTTP") {
@ -208,11 +208,15 @@
} }
.scenario-name { .scenario-name {
overflow: hidden; display: inline-block;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 13px; 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 { /deep/ .el-step__icon {