Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
33daa5fb
Commit
33daa5fb
authored
Mar 01, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
横向标签吸顶
parent
761a0221
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
src/components/basicTool/transverse-label/index.vue
+1
-0
static/vant/sticky/index.js
+1
-0
static/vant/sticky/index.wxml
+1
-1
static/vant/sticky/index.wxss
+2
-2
No files found.
src/components/basicTool/transverse-label/index.vue
View file @
33daa5fb
...
...
@@ -39,6 +39,7 @@
@
getEleInfo=
"getEleInfo"
:animated=
"true"
:ellipsis=
"false"
:sticky=
"stickyTop"
:title-active-color=
"selectTabTextColor"
:title-inactive-color=
"defaultTabTextColor"
:line-position=
"tabLayout"
...
...
static/vant/sticky/index.js
View file @
33daa5fb
...
...
@@ -46,6 +46,7 @@ VantComponent({
},
methods
:
{
onScroll
({
scrollTop
}
=
{})
{
return
;
const
{
container
,
offsetTop
,
disabled
}
=
this
.
data
;
if
(
disabled
)
{
this
.
setDataAfterDiff
({
...
...
static/vant/sticky/index.wxml
View file @
33daa5fb
<wxs src="../wxs/utils.wxs" module="utils" />
<wxs src="./index.wxs" module="computed" />
<view class="custom-class van-sticky" style="{{ computed.containerStyle({ fixed, height, zIndex }) }}">
<view class="custom-class van-sticky"
class="{{!disabled?'van-sticky':''}}"
style="{{ computed.containerStyle({ fixed, height, zIndex }) }}">
<view class="{{ utils.bem('sticky-wrap', { fixed }) }}" style="{{ computed.wrapStyle({ fixed, offsetTop, transform, zIndex }) }}">
<slot />
</view>
...
...
static/vant/sticky/index.wxss
View file @
33daa5fb
@import '../common/index.wxss';.van-sticky{position:relative}.van-sticky-wrap--fixed{position:fixed;right:0;left:0}
\ No newline at end of file
@import '../common/index.wxss';.van-sticky{position:sticky;top:0;}.van-sticky-wrap--fixed{position:fixed;right:0;left:0}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment