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

View File

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

View File

@ -31,15 +31,26 @@
display: none display: none
} }
&.operation-ul { > li {
> li { .item-box {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; 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 { .item {
display: flex; display: flex;
align-items: center; 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 { .flow {
padding: 4px 0; padding: 4px 0;