mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +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>
|
<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;
|
||||||
//
|
//
|
||||||
|
|||||||
@ -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':
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user