增加演示项目,修复css引起的相关故障

pull/1/head
rookie4show 1 month ago
parent 20232a5d7c
commit 5336b57d9b
  1. 6
      src/App.vue
  2. 4
      src/components/Yys.vue
  3. 35
      src/stores/files.ts

@ -89,7 +89,6 @@ const activeFileGroups = computed(() => {
<!-- 工作区 --> <!-- 工作区 -->
<div class="workspace"> <div class="workspace">
<main id="main-container" :style="{ height: contentHeight, overflow: 'auto' }">
<el-tabs <el-tabs
v-model="filesStore.activeFile" v-model="filesStore.activeFile"
type="card" type="card"
@ -103,10 +102,11 @@ const activeFileGroups = computed(() => {
:label="file.label" :label="file.label"
:name="file.name.toString()" :name="file.name.toString()"
> >
<Yys :groups="activeFileGroups" ref="yysRef" /> <main id="main-container" :style="{ height: contentHeight, overflow: 'auto' }">
<Yys :groups="activeFileGroups" ref="yysRef"/>
</main>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</main>
</div> </div>
</div> </div>
</div> </div>

@ -43,6 +43,7 @@
<div class="group-body"> <div class="group-body">
<draggable :list="group.groupInfo" item-key="name" class="body-content"> <draggable :list="group.groupInfo" item-key="name" class="body-content">
<template #item="{element : position, index:positionIndex}"> <template #item="{element : position, index:positionIndex}">
<div>
<el-col> <el-col>
<el-card class="group-card" shadow="never"> <el-card class="group-card" shadow="never">
<div class="opt-btn" data-html2canvas-ignore="true"> <div class="opt-btn" data-html2canvas-ignore="true">
@ -88,6 +89,7 @@
</div> </div>
</el-card> </el-card>
</el-col> </el-col>
</div>
</template> </template>
</draggable> </draggable>
</div> </div>
@ -390,6 +392,7 @@ defineExpose({
} }
.group-header { .group-header {
margin: 10px;
padding: 10px; padding: 10px;
} }
@ -419,6 +422,7 @@ defineExpose({
.avatar-container { .avatar-container {
position: relative; position: relative;
min-width: 100px;
} }
.avatar-container span { .avatar-container span {

@ -4,13 +4,42 @@ export const useFilesStore = defineStore('files', {
state: () => ({ state: () => ({
fileList: [ fileList: [
{ {
label: 'File 1', label: 'Welcome',
name: "1", name: "1",
visible: true, visible: true,
groups: [ groups: [
{ {
shortDescription: '', shortDescription: '<h1>鬼灵歌姬</h1><p>这是一个演示项目,用于测试显示效果</p>',
groupInfo: [{}, {}, {}, {}, {}], groupInfo: [{
"avatar": "/assets/Shikigami/sp/372.png",
"name": "因幡辉夜姬",
"rarity": "SP"
},
{
"avatar": "/assets/Shikigami/ssr/356.png",
"name": "千姬",
"rarity": "SSR"
},
{
"avatar": "/assets/Shikigami/sp/554.png",
"name": "纺愿缘结神",
"rarity": "SP"
},
{
"avatar": "/assets/Shikigami/ssr/556.png",
"name": "天照",
"rarity": "SSR"
},
{
"avatar": "/assets/Shikigami/ssr/557.png",
"name": "伊邪那美",
"rarity": "SSR"
},
{
"avatar": "/assets/Shikigami/sp/367.png",
"name": "绘世花鸟卷",
"rarity": "SP"
}],
details: '' details: ''
}, },
{ {

Loading…
Cancel
Save