Skip to content

Commit b6700a6

Browse files
authored
feat(sender): replace wave image with IconRecordingWave icon (#285)
1 parent 03aaa92 commit b6700a6

File tree

2 files changed

+34
-7
lines changed

2 files changed

+34
-7
lines changed

packages/components/src/sender/components/ActionButtons.vue

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { computed, isVNode } from 'vue'
33
import { TinyTooltip } from '@opentiny/vue'
44
import { ActionButtonsProps } from '../index.type'
5-
import { IconSend, IconStop, IconUpload, IconVoice, IconClear } from '@opentiny/tiny-robot-svgs'
5+
import { IconSend, IconStop, IconUpload, IconVoice, IconRecordingWave, IconClear } from '@opentiny/tiny-robot-svgs'
66
77
const props = withDefaults(defineProps<ActionButtonsProps>(), {
88
/**
@@ -221,7 +221,8 @@ const fileTooltipPlacement = computed(() => props.buttonGroup?.file?.tooltipPlac
221221
:class="{ 'is-recording': isSpeechRecording }"
222222
>
223223
<component v-if="!isSpeechRecording" :is="VoiceIconComponent" class="action-buttons__icon" alt="录音" />
224-
<img v-else class="action-buttons__recording" src="../../assets/wave.webp" alt="语音中" />
224+
<!-- 录音时显示波形图标 -->
225+
<IconRecordingWave v-else class="action-buttons__icon" alt="语音中" />
225226
</div>
226227
</template>
227228

@@ -307,11 +308,6 @@ const fileTooltipPlacement = computed(() => props.buttonGroup?.file?.tooltipPlac
307308
border-radius: 26px;
308309
align-items: center;
309310
310-
&__recording {
311-
width: 140px;
312-
height: 18px;
313-
}
314-
315311
/* 公共按钮样式 */
316312
&__button {
317313
display: flex;
Lines changed: 31 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)