feat(头部组件): 新增自定义帮助按钮

This commit is contained in:
hzj 2025-12-11 17:42:10 +08:00
parent a54b32ea01
commit c5180f4808

View File

@ -44,12 +44,7 @@
<!-- 右侧按钮 -->
<!-- 帮助按钮 -->
<button v-if="showHelp" class="help-btn" style="width: 1.5em" @click="$emit('help')">
<img
v-smart-img
src="../assets/icon/helpWhite.png"
alt=""
style="width: 100%; display: block"
/>
<img v-smart-img :src="helpImg" alt="" style="width: 100%; display: block" />
</button>
<!-- 语言切换 -->
@ -136,6 +131,14 @@ const props = defineProps({
},
},
//
helpImg: {
type: String,
default: () => {
return new URL('../assets/icon/helpWhite.png', import.meta.url).href
},
},
//
backQuery: {
type: Object,