feat(头部组件): 新增自定义帮助按钮
This commit is contained in:
parent
a54b32ea01
commit
c5180f4808
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user