feat: 修改scrollTop 单位
parent
38d1199989
commit
86a192e36b
|
@ -9,9 +9,9 @@ Page({
|
||||||
bgColor: '#ffffff',
|
bgColor: '#ffffff',
|
||||||
bgColorTop: '#333333',
|
bgColorTop: '#333333',
|
||||||
bgColorBottom: '#999999',
|
bgColorBottom: '#999999',
|
||||||
scrollTop: '200px',
|
scrollTop: '100rpx',
|
||||||
duration: 200,
|
duration: 200,
|
||||||
fontSize: '20px',
|
fontSize: '30px',
|
||||||
pageStyle: 'color: red',
|
pageStyle: 'color: red',
|
||||||
navigationTitle: '初始化navigation-bar文档',
|
navigationTitle: '初始化navigation-bar文档',
|
||||||
navigationBgColor: '#000000',
|
navigationBgColor: '#000000',
|
||||||
|
@ -34,6 +34,7 @@ Page({
|
||||||
bgColorBottom: '#333333',
|
bgColorBottom: '#333333',
|
||||||
fontSize: '30px',
|
fontSize: '30px',
|
||||||
pageStyle: 'color: blue',
|
pageStyle: 'color: blue',
|
||||||
|
scrollTop: '500rpx'
|
||||||
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
background-color='{{bgColor}}'
|
background-color='{{bgColor}}'
|
||||||
background-color-top="{{bgColorTop}}"
|
background-color-top="{{bgColorTop}}"
|
||||||
background-color-bottom="{{bgColorBottom}}"
|
background-color-bottom="{{bgColorBottom}}"
|
||||||
scroll-top="{{scrollTop}}}"
|
scroll-top="{{scrollTop}}"
|
||||||
scrollDuration="{{duration}}"
|
scrollDuration="{{duration}}"
|
||||||
root-font-size='{{fontSize}}'
|
root-font-size='{{fontSize}}'
|
||||||
page-style='{{pageStyle}}'
|
page-style='{{pageStyle}}'
|
||||||
|
@ -22,7 +22,6 @@
|
||||||
color-animation-timing-func='{{func}}'
|
color-animation-timing-func='{{func}}'
|
||||||
></navigation-bar>
|
></navigation-bar>
|
||||||
</page-meta>
|
</page-meta>
|
||||||
|
|
||||||
<view class="container">
|
<view class="container">
|
||||||
<template is="head" data="{{title: 'page-meta'}}"/>
|
<template is="head" data="{{title: 'page-meta'}}"/>
|
||||||
<view class="page-body">
|
<view class="page-body">
|
||||||
|
|
Loading…
Reference in New Issue