mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 21:32:49 +00:00
no message
This commit is contained in:
parent
e34aa77a54
commit
f28bff569a
@ -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;
|
||||
//
|
||||
|
||||
@ -243,7 +243,6 @@ export default {
|
||||
this.$store.state.menuOperation = {
|
||||
event,
|
||||
list,
|
||||
scrollHide: true,
|
||||
onUpdate: async (act) => {
|
||||
switch (act) {
|
||||
case 'browse':
|
||||
|
||||
@ -1455,7 +1455,6 @@ export default {
|
||||
event,
|
||||
list,
|
||||
active,
|
||||
scrollHide: true,
|
||||
onUpdate: async (language) => {
|
||||
if (type === 'transcription') {
|
||||
await this.$store.dispatch('setTranscriptionLanguage', language)
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user