add: `侧边栏`-`个人信息`中新增背景图

This commit is contained in:
liuxuewen 2023-12-22 15:39:38 +08:00
parent 1564a578a1
commit 890e06c092
2 changed files with 26 additions and 3 deletions

View File

@ -608,6 +608,11 @@ spec:
label: 默认
- value: one
label: 样式一
- $formkit: attachment
name: backgroundImg
label: 背景图片
value: https://pic.cnkj.site/b/2023/6585299246b8a.webp?type=blog
placeholder: 请输入背景图片地址
- $formkit: attachment
name: stickerImg
if: $get(profileStyle).value == 'one'
@ -628,7 +633,7 @@ spec:
name: profileName
label: 卡片名称
placeholder: 请填写个人卡片名称
help: 不填写默认为站点名称
help: 不填写默认为站点名称
- $formkit: code
name: profileDesc
label: 描述信息
@ -1317,6 +1322,24 @@ spec:
value: true
- label: 禁用
value: false
- $formkit: radio
name: qq_edit
help: 启用分享到QQ
value: true
options:
- label: 启用
value: true
- label: 禁用
value: false
- $formkit: radio
name: wechat_edit
help: 启用分享到微信朋友圈
value: true
options:
- label: 启用
value: true
- label: 禁用
value: false
- $formkit: group
name: copyrights
label: 版权声明
@ -2074,7 +2097,7 @@ spec:
if: $get(tenyear_enable).value
name: end_time
label: 结束时间
- group: aboutReward
label: 关于(打赏)

View File

@ -1,6 +1,6 @@
<!-- 侧边栏自我介绍 -->
<div class="card-widget card-info" >
<div class="card-widget card-info" th:style="|background-image: url(${theme.config.sidebar.profile.backgroundImg});|">
<!-- 默认 -->
<th:block th:if="${#strings.equals(theme.config.sidebar.profile.profileStyle, 'default')}">