Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions packages/components/src/sender/components/ActionButtons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { computed, isVNode } from 'vue'
import { TinyTooltip } from '@opentiny/vue'
import { ActionButtonsProps } from '../index.type'
import { IconSend, IconStop, IconUpload, IconVoice, IconClear } from '@opentiny/tiny-robot-svgs'
import { IconSend, IconStop, IconUpload, IconVoice, IconRecordingWave, IconClear } from '@opentiny/tiny-robot-svgs'

const props = withDefaults(defineProps<ActionButtonsProps>(), {
/**
Expand Down Expand Up @@ -221,7 +221,8 @@ const fileTooltipPlacement = computed(() => props.buttonGroup?.file?.tooltipPlac
:class="{ 'is-recording': isSpeechRecording }"
>
<component v-if="!isSpeechRecording" :is="VoiceIconComponent" class="action-buttons__icon" alt="录音" />
<img v-else class="action-buttons__recording" src="../../assets/wave.webp" alt="语音中" />
<!-- 录音时显示波形图标 -->
<IconRecordingWave v-else class="action-buttons__icon" alt="语音中" />
</div>
</template>

Expand Down Expand Up @@ -307,11 +308,6 @@ const fileTooltipPlacement = computed(() => props.buttonGroup?.file?.tooltipPlac
border-radius: 26px;
align-items: center;

&__recording {
width: 140px;
height: 18px;
}

/* 公共按钮样式 */
&__button {
display: flex;
Expand Down
31 changes: 31 additions & 0 deletions packages/svgs/src/assets/recording-wave.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading