|
@@ -7,7 +7,7 @@
|
|
@load="load"
|
|
@load="load"
|
|
:src="isOnlyDay"
|
|
:src="isOnlyDay"
|
|
/>
|
|
/>
|
|
- <span class="days" :style="'font-size:' + fontSizeFunc() + 'px'">{{
|
|
|
|
|
|
+ <span class="days" :style="'font-size:' + fontSizeTitleFunc() + 'px'">{{
|
|
times.join(' 到 ')
|
|
times.join(' 到 ')
|
|
}}</span>
|
|
}}</span>
|
|
</div>
|
|
</div>
|
|
@@ -154,6 +154,12 @@ export default {
|
|
if (size < 12) return 12;
|
|
if (size < 12) return 12;
|
|
return size;
|
|
return size;
|
|
},
|
|
},
|
|
|
|
+ fontSizeTitleFunc() {
|
|
|
|
+ let size = this.width / 25;
|
|
|
|
+ if (size > 18) return 18;
|
|
|
|
+ if (size < 12) return 12;
|
|
|
|
+ return size;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
beforeUnmount() {},
|
|
beforeUnmount() {},
|
|
components: {
|
|
components: {
|