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

View File

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

View File

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

View File

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

View File

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