|
@@ -6,14 +6,30 @@
|
|
|
<n-tabs type="line" pane-class="tab-content">
|
|
|
<template #prefix>
|
|
|
<span class="meta-title">
|
|
|
- <img src="/img/subtitle_1.png" />
|
|
|
+ <img src="/img/subtitle_3.png" />
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ <template #suffix>
|
|
|
+ <span class="input-container">
|
|
|
+ <!-- <n-input
|
|
|
+ v-model:value="inputValue"
|
|
|
+ placeholder="请输入要搜索的藏品"
|
|
|
+ /> -->
|
|
|
+ <n-input-group round>
|
|
|
+ <n-input
|
|
|
+ round
|
|
|
+ v-model:value="inputValue"
|
|
|
+ placeholder="请输入要搜索的藏品"
|
|
|
+ />
|
|
|
+ <n-button round type="primary" > 搜索 </n-button>
|
|
|
+ </n-input-group>
|
|
|
</span>
|
|
|
</template>
|
|
|
<n-tab-pane name="展览" tab="展览">
|
|
|
<n-grid :x-gap="XGap" :y-gap="YGap" :cols="3" class="tab-grid">
|
|
|
<template v-for="(_, index) in 16">
|
|
|
<n-gi>
|
|
|
- <infoBox
|
|
|
+ <collect-box
|
|
|
:id="index + 1"
|
|
|
title="卡片"
|
|
|
cover="https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg"
|
|
@@ -71,9 +87,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { onMounted } from "vue";
|
|
|
+import { onMounted, ref } from "vue";
|
|
|
import { useFullscreen } from "@vueuse/core";
|
|
|
-import infoBox from "../components/infoBox";
|
|
|
+import collectBox from "../components/collectBox";
|
|
|
import subHeader from "../components/subHeader";
|
|
|
import sideMenu from "../components/sideMenu";
|
|
|
import noticeBox from "../components/noticeBox";
|
|
@@ -81,6 +97,7 @@ import { useInfoStore } from "../store/info";
|
|
|
|
|
|
const XGap = ref(50);
|
|
|
const YGap = ref(50);
|
|
|
+const inputValue = ref("");
|
|
|
const { isFullscreen, enter, exit, toggle } = useFullscreen();
|
|
|
const InfoStore = useInfoStore();
|
|
|
|
|
@@ -89,4 +106,13 @@ onMounted(() => {
|
|
|
});
|
|
|
</script>
|
|
|
|
|
|
-<style lang="scss" scoped></style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+:deep(.n-tabs-nav__suffix) {
|
|
|
+ min-width: 100px;
|
|
|
+ flex: 1;
|
|
|
+ .input-container {
|
|
|
+ width: 100%;
|
|
|
+ padding: 0 20px;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|