mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-01 15:11:16 +00:00
Revert "perf: 自定义平台协议名称宽度自适应显示"
This commit is contained in:
parent
c3adfe7031
commit
4ce651e319
@ -12,12 +12,9 @@
|
||||
slot="prepend"
|
||||
:disabled="disableSelect(item)"
|
||||
:value="item.display_name ? item.display_name : item.name"
|
||||
class="prepend auto-width-select"
|
||||
class="prepend"
|
||||
@change="handleProtocolChange($event, item)"
|
||||
>
|
||||
<template slot="prefix">
|
||||
{{ item.display_name ? item.display_name : item.name }}
|
||||
</template>
|
||||
<el-option
|
||||
v-for="p of remainProtocols"
|
||||
:key="p.name"
|
||||
@ -270,11 +267,15 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
<style lang="less" scoped>
|
||||
.el-select .el-input {
|
||||
width: 130px;
|
||||
}
|
||||
|
||||
.el-select {
|
||||
max-width: 120px;
|
||||
}
|
||||
|
||||
.input-with-select {
|
||||
flex-shrink: 1;
|
||||
width: calc(100% - 80px) !important;
|
||||
@ -309,30 +310,4 @@ export default {
|
||||
color: #1a1a1a;
|
||||
padding: 9px 20px;
|
||||
}
|
||||
|
||||
.auto-width-select > .el-input--prefix {
|
||||
min-width: 120px!important;
|
||||
}
|
||||
|
||||
.auto-width-select >>> .el-input__prefix {
|
||||
position: relative;
|
||||
left: 0px;
|
||||
padding: 0 30px;
|
||||
box-sizing: border-box;
|
||||
height: 34px;
|
||||
line-height: 34px;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.auto-width-select >>> input {
|
||||
position: absolute!important;
|
||||
width: 100%!important;
|
||||
border: none;
|
||||
color: #606266;
|
||||
background-color: #e6e6e6;
|
||||
font-size: 12px;
|
||||
font-weight: 470;
|
||||
line-height: 27px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user