feat(projects): 添加swiper插件

This commit is contained in:
Soybean
2021-11-16 22:16:51 +08:00
parent 0a9fba90b5
commit 27f600c467
13 changed files with 197 additions and 22 deletions

View File

@ -1,21 +1,16 @@
<template>
<n-layout class="h-full" has-sider>
<global-sider v-if="theme.isVerticalNav" :z-index="3" />
<global-header v-if="isHorizontalMix" :z-index="4" />
<global-sider v-if="theme.isVerticalNav" :z-index="13" />
<global-header v-if="isHorizontalMix" :z-index="14" />
<div class="flex-1-hidden flex h-full">
<global-sider v-if="isHorizontalMix" :z-index="3" />
<n-scrollbar
ref="scrollbar"
class="h-full"
:x-scrollable="true"
:content-class="routeProps.fullPage ? 'h-full' : ''"
>
<global-sider v-if="isHorizontalMix" :z-index="13" />
<n-scrollbar ref="scrollbar" class="h-full" :content-class="routeProps.fullPage ? 'h-full' : ''">
<div
class="inline-flex-col-stretch w-full"
:class="[{ 'content-padding': isHorizontalMix }, routeProps.fullPage ? 'h-full' : 'min-h-100vh']"
>
<global-header v-if="!isHorizontalMix" :z-index="2" />
<global-tab v-if="theme.multiTabStyle.visible" :z-index="1" />
<global-header v-if="!isHorizontalMix" :z-index="12" />
<global-tab v-if="theme.multiTabStyle.visible" :z-index="11" />
<global-content />
<global-footer />
</div>

View File

@ -1,5 +1,5 @@
<template>
<n-scrollbar ref="scrollbar" class="h-full" :x-scrollable="true" :content-class="routeProps.fullPage ? 'h-full' : ''">
<n-scrollbar ref="scrollbar" class="h-full" :content-class="routeProps.fullPage ? 'h-full' : ''">
<div class="inline-block wh-full bg-[#F6F9F8]">
<router-view v-slot="{ Component, route: itemRoute }">
<transition :name="theme.pageAnimateType" mode="out-in" appear>