1.设置顶部导航的默认颜色
parent
5b2e6cec38
commit
eb9f563bcd
|
|
@ -39,7 +39,7 @@
|
|||
<div v-if="!isEmpty(form.icon_setting)" class="flex-row align-c" :class="'gap-' + new_style.img_space">
|
||||
<div v-for="(item, index) in form.icon_setting" :key="index" :style="{ width: new_style.img_size + 'px', height: new_style.img_size + 'px' }">
|
||||
<image-empty v-if="item.img.length > 0" v-model="item.img[0]" :error-img-style="'width: ' + Number(new_style.img_size) / 2 + 'px;height:' + Number(new_style.img_size) / 2 + 'px;'"></image-empty>
|
||||
<icon v-else :name="item.icon" :size="new_style.img_size + ''" color="6"></icon>
|
||||
<icon v-else :name="item.icon" :size="new_style.img_size + ''" :color="new_style.img_color"></icon>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -67,6 +67,9 @@
|
|||
<el-radio value="10">小</el-radio>
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="图标颜色">
|
||||
<color-picker v-model="form.img_color" default-color="#666"></color-picker>
|
||||
</el-form-item>
|
||||
</card-container>
|
||||
</el-form>
|
||||
<template v-if="['3', '5'].includes(content.theme)">
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ interface DefaultFooterNav {
|
|||
search_button_radius: object;
|
||||
img_size: string;
|
||||
img_space: string;
|
||||
img_color: string;
|
||||
tips_color: string;
|
||||
hot_words_color: string;
|
||||
search_border: string;
|
||||
|
|
@ -121,6 +122,7 @@ const defaultFooterNav: DefaultFooterNav = {
|
|||
},
|
||||
img_size: '23',
|
||||
img_space: '15',
|
||||
img_color: '#666',
|
||||
tips_color: '#ccc',
|
||||
hot_words_color: '#000',
|
||||
search_border: '#E4E4E4',
|
||||
|
|
|
|||
Loading…
Reference in New Issue