no message

This commit is contained in:
kuaifan 2025-03-09 18:52:37 +08:00
parent 277a751ed4
commit 0ff1ac7743
3 changed files with 24 additions and 23 deletions

View File

@ -11,16 +11,18 @@
<div ref="icon" class="general-operation-icon"></div>
<EDropdownMenu ref="dropdownMenu" slot="dropdown" class="general-operation-more-dropdown menu-dropdown">
<li class="general-operation-more-warp small">
<ul class="operation-ul" :style="ulStyle">
<ul :style="ulStyle">
<EDropdownItem
v-for="(item, key) in list"
:key="key"
:command="item.value"
:divided="!!item.divided"
:disabled="active === item.value || !!item.disabled">
<div class="item">{{item.label}}</div>
<div v-if="tickShow" class="tick">
<i v-if="active === item.value && !item.disabled" class="taskfont">&#xe684;</i>
<div class="item-box">
<div class="item">{{item.label}}</div>
<div v-if="tickShow" class="tick">
<i v-if="active === item.value && !item.disabled" class="taskfont">&#xe684;</i>
</div>
</div>
</EDropdownItem>
</ul>

View File

@ -1474,14 +1474,14 @@ export default {
//
list.unshift(...[
{label: '选择识别语言', value: '', disabled: true},
{label: '自动识别', value: ''},
{label: '自动识别', value: '', divided: true},
])
active = this.cacheTranscriptionLanguage
} else {
//
list.unshift(...[
{label: '选择翻译结果', value: '', disabled: true},
{label: '不翻译结果', value: ''},
{label: '不翻译结果', value: '', divided: true},
])
active = this.recordConvertTranslate
}

View File

@ -31,15 +31,26 @@
display: none
}
&.operation-ul {
> li {
> li {
.item-box {
display: flex;
align-items: center;
justify-content: space-between;
}
}
> li {
.tick {
color: $primary-color;
transform: translateX(40%);
width: 26px;
height: 26px;
text-align: right;
margin-left: 6px;
> i {
font-size: 14px;
}
}
}
.item {
display: flex;
align-items: center;
@ -71,18 +82,6 @@
}
}
.tick {
color: $primary-color;
transform: translateX(40%);
width: 26px;
height: 26px;
text-align: right;
margin-left: 6px;
> i {
font-size: 14px;
}
}
.flow {
padding: 4px 0;