Skip to content

Commit

Permalink
style: 调整布局结构
Browse files Browse the repository at this point in the history
  • Loading branch information
lengyibai committed Jul 7, 2024
1 parent 463aab0 commit 2472cb1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,23 @@ watch(
</script>

<template>
<div>
<transition name="card-list">
<LibGrid
v-if="show && epigraph_list.length"
ref="epigraphListRef"
:load-more="false"
gap="0.9375rem"
:count="line_num"
>
<transition-group name="card" appear>
<EpigraphCard
v-for="(item, index) in epigraph_list"
:key="item.id"
:data="item"
class="epigraph-card"
:style="{
'transition-delay': 0.025 * index + 's',
}"
/>
</transition-group>
</LibGrid>
</transition>
</div>
<LibGrid
v-if="show && epigraph_list.length"
ref="epigraphListRef"
:load-more="false"
gap="0.9375rem"
:count="line_num"
>
<transition-group name="card" appear>
<EpigraphCard
v-for="(item, index) in epigraph_list"
:key="item.id"
:data="item"
class="epigraph-card"
:style="{
'transition-delay': 0.025 * index + 's',
}"
/>
</transition-group>
</LibGrid>
</template>
5 changes: 0 additions & 5 deletions src/views/Epigraph/views/EpigraphList/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
flex-direction: column;
margin-bottom: 1rem;
}

.epigraph-main {
flex-grow: 1;
overflow: auto;
}
5 changes: 1 addition & 4 deletions src/views/Epigraph/views/EpigraphList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { computed, ref } from "vue";
import EpigraphToolbar from "./components/EpigraphToolbar/index.vue";
import EpigraphList from "./components/EpigraphList/index.vue";
import { vScrollVirtualization } from "@/directives";
import { KCategory } from "@/components/business";
import { EpigraphStore } from "@/store";
Expand Down Expand Up @@ -50,9 +49,7 @@ const current_index = computed({
</transition>

<!-- 铭文列表 -->
<div v-scroll-virtualization class="epigraph-main">
<EpigraphList />
</div>
<EpigraphList />
</template>

<style scoped lang="less">
Expand Down

0 comments on commit 2472cb1

Please sign in to comment.