diff --git a/src/pages/common/PageHome.vue b/src/pages/common/PageHome.vue index 3d93176f..0183767e 100644 --- a/src/pages/common/PageHome.vue +++ b/src/pages/common/PageHome.vue @@ -11,7 +11,34 @@ :hide-details="true" variant="outlined" label="分区" - /> + > + + +
@@ -60,15 +87,16 @@ const showItemsAll: Array = [ ShowItemEnum.pool, ShowItemEnum.position, ]; + +const gameSelectList = TGConstant.BBS.CHANNELS; +const curGid = ref(gameSelectList[0].gid); + +const loadItems = shallowRef>([]); +const components = shallowRef>([]); const showItems = computed>({ get: () => homeStore.getShowItems(), set: (v: Array) => homeStore.setShowItems(v), }); -const loadItems = shallowRef>([]); -const components = shallowRef>([]); - -const gameSelectList = TGConstant.BBS.CHANNELS; -const curGid = ref(gameSelectList[0].gid); onMounted(async () => { // @ts-expect-error-next-line The import.meta meta-property is not allowed in files which will build into CommonJS output. @@ -179,4 +207,38 @@ async function loadEnd(item: SFComp): Promise { background: var(--tgc-btn-1); color: var(--btn-text); } + +.select-item { + position: relative; + display: flex; + align-items: center; + column-gap: 4px; + + &.main { + position: relative; + height: 24px; + font-family: var(--font-title); + font-size: 16px; + } + + &.sub { + padding: 8px; + font-family: var(--font-title); + font-size: 16px; + + &:hover { + background: var(--common-shadow-2); + } + + &.selected:not(:hover) { + background: var(--common-shadow-1); + } + } + + .icon { + width: 28px; + height: 28px; + border-radius: 4px; + } +} diff --git a/src/pages/common/PostForum.vue b/src/pages/common/PostForum.vue index 59a124a3..d24724f0 100644 --- a/src/pages/common/PostForum.vue +++ b/src/pages/common/PostForum.vue @@ -29,7 +29,11 @@