Commit ba060a3f authored by nick zheng's avatar nick zheng

Merge branch 'beta' into 'master'

Beta

See merge request !13
parents 6fa9631a 5fc3a3b7
...@@ -26,18 +26,18 @@ const timebreId = computed(() => digitalHumanDialogueStore.humanInfo.timebreId) ...@@ -26,18 +26,18 @@ const timebreId = computed(() => digitalHumanDialogueStore.humanInfo.timebreId)
<template> <template>
<div <div
class="relative mb-4 flex items-center gap-2 rounded-2xl border p-2 hover:shadow" class="relative mb-4 flex items-center gap-2 rounded-2xl border hover:shadow"
:class="!showToggle && dialogueTimbreItem?.timebreId === timebreId ? 'border-blue' : 'border-gray-200'" :class="!showToggle && dialogueTimbreItem?.timebreId === timebreId ? 'border-blue' : 'border-gray-200'"
@click="emit('click', dialogueTimbreItem!.timebreId)" @click="emit('click', dialogueTimbreItem!.timebreId)"
> >
<div <div
class="h-16 w-16 rounded-lg bg-[length:100%_100%]" class="m-2 mr-0 h-16 w-16 rounded-lg bg-[length:100%_100%]"
:style="{ :style="{
backgroundImage: `url(${dialogueTimbreItem?.iconUrl || 'https://digital-human-js-cdn.cdn.bcebos.com/web_base/20240926112018/digital-human-web-new-base/img/boy.png'})`, backgroundImage: `url(${dialogueTimbreItem?.iconUrl || 'https://digital-human-js-cdn.cdn.bcebos.com/web_base/20240926112018/digital-human-web-new-base/img/boy.png'})`,
}" }"
/> />
<div class="flex-1 overflow-hidden"> <div class="mt-2 flex-1 overflow-hidden pr-2">
<div class="mb-3 flex items-center gap-2"> <div class="mb-[11px] flex items-center gap-2">
<div class="max-w-32 truncate">{{ dialogueTimbreItem?.name }}</div> <div class="max-w-32 truncate">{{ dialogueTimbreItem?.name }}</div>
<CustomIcon <CustomIcon
class="cursor-pointer text-lg" class="cursor-pointer text-lg"
...@@ -45,7 +45,7 @@ const timebreId = computed(() => digitalHumanDialogueStore.humanInfo.timebreId) ...@@ -45,7 +45,7 @@ const timebreId = computed(() => digitalHumanDialogueStore.humanInfo.timebreId)
@click.stop.prevent="emit('play', dialogueTimbreItem!.audioUrl)" @click.stop.prevent="emit('play', dialogueTimbreItem!.audioUrl)"
/> />
</div> </div>
<NScrollbar x-scrollable> <NScrollbar x-scrollable class="pb-2">
<div class="flex gap-2"> <div class="flex gap-2">
<NTag v-for="(style, index) in dialogueTimbreItem?.style" :key="index" type="warning" round> <NTag v-for="(style, index) in dialogueTimbreItem?.style" :key="index" type="warning" round>
{{ style }} {{ style }}
......
...@@ -60,7 +60,7 @@ watch( ...@@ -60,7 +60,7 @@ watch(
) )
onMounted(() => { onMounted(() => {
currentSelectedAudioType.value = digitalHumanDialogueStore.humanInfo.timebreId ? 'mandarin' : 'cantonese' currentSelectedAudioType.value = digitalHumanDialogueStore.humanInfo.timebreId === '101019' ? 'cantonese' : 'mandarin'
getDigitalTimbreList() getDigitalTimbreList()
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment