Skip to content

Commit

Permalink
优化页面布局
Browse files Browse the repository at this point in the history
Signed-off-by: exploit <eitsxiaozhai@gmail.com>
  • Loading branch information
EITSxiaozhai committed Aug 19, 2024
1 parent 88ed767 commit 5a59bc0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
13 changes: 7 additions & 6 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions blogvuets/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ declare module 'vue' {
ElTag: typeof import('element-plus/es')['ElTag']
ElTimeline: typeof import('element-plus/es')['ElTimeline']
ElTimelineItem: typeof import('element-plus/es')['ElTimelineItem']
ElWatermark: typeof import('element-plus/es')['ElWatermark']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Expand Down
2 changes: 2 additions & 0 deletions blogvuets/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ useHead({
<head>
<meta name="keywords" content="">
</head>

<div id="app">

<router-view/>
<!-- <div v-for="item of 500" :key="item" class="snowflake"></div>-->
</div>
Expand Down
16 changes: 7 additions & 9 deletions blogvuets/src/views/BlogDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,8 @@ const redirectToUserProfile = () => {


<el-container class="affix-container">
<el-row>
<el-col :xs="11" :sm="3" :md="4" :lg="6" :xl="10" class="hidden-md-and-down">
<!-- <el-row>-->
<!-- <el-col :xs="11" :sm="3" :md="4" :lg="6" :xl="10" class="hidden-md-and-down">-->
<el-aside>
<el-affix target=".affix-container" :offset="270">
<el-card style="height: 30vh">
Expand All @@ -500,7 +500,7 @@ const redirectToUserProfile = () => {
</el-card>


<el-card style="margin-top: 1%">
<el-card style="margin-top: 1%">
<h4>喜欢该文章吗?</h4>
<el-rate
v-model="value"
Expand All @@ -512,10 +512,10 @@ const redirectToUserProfile = () => {
</el-card>
</el-affix>
</el-aside>
</el-col>
<!-- </el-col>-->


<el-col :xs="24" :sm="24" :md="19" :lg="17" :xl="13">
<!-- <el-col :xs="24" :sm="24" :md="19" :lg="17" :xl="13">-->
<el-main>
<el-card style="margin-top: 20px;padding-bottom: 10%" v-if="!isLoading">
<div v-for="(item, index) in data.data" :key="index" class="text item">
Expand All @@ -535,13 +535,11 @@ const redirectToUserProfile = () => {
</u-comment>
</el-card>
</div>

</el-main>
</el-col>
</el-row>
<!-- </el-col>-->
<!-- </el-row>-->
</el-container>
<el-backtop/>

</template>


Expand Down

0 comments on commit 5a59bc0

Please sign in to comment.