chore: 根据新的需求,加入虎狼之师,英雄榜条幅
This commit is contained in:
@@ -611,6 +611,38 @@
|
||||
<span class="size-unit">px</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="config-item">
|
||||
<label class="checkbox-label">
|
||||
<span>皇冠位置 - 上(px):</span>
|
||||
<input type="number" v-model.number="localDisplayConfig.crownPosition.top"
|
||||
class="width-input" placeholder="默认-100">
|
||||
<span class="size-unit">px</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="config-item">
|
||||
<label class="checkbox-label">
|
||||
<span>皇冠位置 - 下(px):</span>
|
||||
<input type="number" v-model.number="localDisplayConfig.crownPosition.bottom"
|
||||
class="width-input" placeholder="默认不设置">
|
||||
<span class="size-unit">px</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="config-item">
|
||||
<label class="checkbox-label">
|
||||
<span>皇冠位置 - 左(px):</span>
|
||||
<input type="number" v-model.number="localDisplayConfig.crownPosition.left"
|
||||
class="width-input" placeholder="默认居中">
|
||||
<span class="size-unit">px</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="config-item">
|
||||
<label class="checkbox-label">
|
||||
<span>皇冠位置 - 右(px):</span>
|
||||
<input type="number" v-model.number="localDisplayConfig.crownPosition.right"
|
||||
class="width-input" placeholder="默认不设置">
|
||||
<span class="size-unit">px</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="config-item">
|
||||
<label class="checkbox-label">
|
||||
<input type="checkbox" v-model="localDisplayConfig.crown.animationEnabled">
|
||||
@@ -618,6 +650,7 @@
|
||||
</label>
|
||||
</div>
|
||||
<p class="upload-hint">皇冠大小默认为英雄冠军头像的1.2倍,建议设置为合适的大小以确保美观</p>
|
||||
<p class="upload-hint">皇冠位置默认值为顶部-100px且水平居中;负值向上/左偏移,正值向下/右偏移</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -971,6 +1004,12 @@ onMounted(async () => {
|
||||
localTeamRankings.value = [...teamRankings];
|
||||
localBonusRules.value = [...bonusRules];
|
||||
localDisplayConfig.value = { ...displayConfig };
|
||||
// 确保皇冠位置配置存在
|
||||
if (!localDisplayConfig.value.crownPosition) {
|
||||
localDisplayConfig.value.crownPosition = { top: '-100px' };
|
||||
} else if (!localDisplayConfig.value.crownPosition.top) {
|
||||
localDisplayConfig.value.crownPosition.top = '-100px';
|
||||
}
|
||||
localBattleEndTime.value = { ...battleEndTime };
|
||||
localDrumConfig.value = { ...drumConfig };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user