-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
jry
committed
Aug 8, 2024
1 parent
8b0c71f
commit fbb2867
Showing
3 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<template> | ||
<view class="u-page"> | ||
<up-navbar | ||
safeAreaInsetTop | ||
fixed | ||
:autoBack="true" | ||
> | ||
</up-navbar> | ||
<view class="u-page__item"> | ||
<text class="u-page__item__title">基础功能</text> | ||
<up-navbar | ||
homeUrl="/pages/index/index" | ||
:safeAreaInsetTop="true" | ||
:fixed="true" | ||
@leftClick="leftClick" | ||
> | ||
</up-navbar> | ||
</view> | ||
<view class="u-page__item"> | ||
<text class="u-page__item__title">自定义插槽</text> | ||
<up-navbar | ||
:fixed="false" | ||
:safeAreaInsetTop="false" | ||
> | ||
<template #left> | ||
<up-icon | ||
name="arrow-left" | ||
size="19" | ||
></up-icon> | ||
</template> | ||
</up-navbar> | ||
</view> | ||
<up-gap height="50"></up-gap> | ||
</view> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
data() { | ||
return { | ||
} | ||
}, | ||
methods: { | ||
navigateBack() { | ||
uni.navigateBack({ | ||
delta: 1 | ||
}) | ||
}, | ||
leftClick() { | ||
console.log('leftClick'); | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
/* #ifndef APP-NVUE */ | ||
page { | ||
background-color: $u-bg-color; | ||
} | ||
/* #endif */ | ||
.u-page { | ||
padding: 0; | ||
flex: 1; | ||
background-color: $u-bg-color; | ||
&__item { | ||
&__title { | ||
color: $u-tips-color; | ||
background-color: $u-bg-color; | ||
padding: 15px; | ||
font-size: 15px; | ||
&__slot-title { | ||
color: $u-primary; | ||
font-size: 14px; | ||
} | ||
} | ||
} | ||
} | ||
.u-nav-slot { | ||
@include flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
border-width: 0.5px; | ||
border-radius: 100px; | ||
border-color: $u-border-color; | ||
padding: 3px 7px; | ||
opacity: 0.8; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters