no message

This commit is contained in:
kuaifan 2025-03-09 15:49:56 +08:00
parent e34aa77a54
commit f28bff569a
5 changed files with 18 additions and 12 deletions

View File

@ -11,7 +11,7 @@
<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 :style="ulStyle">
<ul class="operation-ul" :style="ulStyle">
<EDropdownItem
v-for="(item, key) in list"
:key="key"
@ -39,7 +39,7 @@ export default {
list: [], // : [{label: '', value: ''}]
active: '', //
onUpdate: null, //
scrollHide: false, //
scrollHide: true, //
tickShow: true, //
maxHeight: 0, //
@ -80,7 +80,7 @@ export default {
this.list = data.list;
this.active = data.active && this.list.find(item => item.value === data.active) ? data.active : '';
this.onUpdate = typeof data.onUpdate === "function" ? data.onUpdate : null;
this.scrollHide = typeof data.scrollHide === "boolean" ? data.scrollHide : false;
this.scrollHide = typeof data.scrollHide === "boolean" ? data.scrollHide : true;
this.tickShow = typeof data.tickShow === "boolean" ? data.tickShow : true;
this.maxHeight = typeof data.maxHeight === "number" ? data.maxHeight : 0;
//

View File

@ -243,7 +243,6 @@ export default {
this.$store.state.menuOperation = {
event,
list,
scrollHide: true,
onUpdate: async (act) => {
switch (act) {
case 'browse':

View File

@ -1455,7 +1455,6 @@ export default {
event,
list,
active,
scrollHide: true,
onUpdate: async (language) => {
if (type === 'transcription') {
await this.$store.dispatch('setTranscriptionLanguage', language)

View File

@ -1927,10 +1927,15 @@ export default {
return
}
const models = item.config?.models
const list = $A.isArray(models) ? models : []
let active = this.aiModelValue()
if (!active && item.config?.model) {
active = item.config.model
}
this.$store.state.menuOperation = {
event,
list: $A.isArray(models) ? models : [],
scrollHide: true,
list,
active,
onUpdate: async model => {
this.dialogAiModel = [
...this.dialogAiModel.filter(({dialog_id}) => dialog_id !== this.dialogId),
@ -3518,7 +3523,6 @@ export default {
event,
list,
active: this.cacheTranslationLanguage,
scrollHide: true,
onUpdate: async (language) => {
if (languageList[language]) {
await this.$store.dispatch("setTranslationLanguage", language);

View File

@ -31,11 +31,15 @@
display: none
}
> li {
display: flex;
align-items: center;
justify-content: space-between;
&.operation-ul {
> li {
display: flex;
align-items: center;
justify-content: space-between;
}
}
> li {
.item {
display: flex;
align-items: center;