吴雨瞳添加了注释

master
wyt 4 months ago
parent 2dc6c095b2
commit 829942e9d5

@ -1,23 +1,33 @@
<template>
<!-- 侧边栏通知容器组件 -->
<div class="sidebar-box">
<!-- 子标题组件显示标题和图标标题使用国际化键'titles.notice'图标为'notice' -->
<SubTitle :title="'titles.notice'" icon="notice" />
<div class="mx-auto">
<!-- 通知文本小号字体中等粗细右对齐应用notice样式类 -->
<span class="text-sm font-medium text-right notice"> {{ notice }}</span>
</div>
</div>
</template>
<script lang="ts">
// Vue
import { computed, defineComponent } from 'vue'
//
import { SubTitle } from '@/components/Title'
//
import { useAppStore } from '@/stores/app'
//
export default defineComponent({
name: 'Notice',
//
components: { SubTitle },
setup() {
//
const appStore = useAppStore()
return {
//
notice: computed(() => {
return appStore.websiteConfig.notice
})
@ -27,8 +37,9 @@ export default defineComponent({
</script>
<style lang="scss" scoped>
//
.notice {
word-wrap: break-word;
word-break: break-all;
}
</style>
</style>
Loading…
Cancel
Save