feat: 修改scrollTop 单位

master
jimmy zhong 2021-01-20 20:24:28 +08:00
parent 38d1199989
commit 86a192e36b
2 changed files with 4 additions and 4 deletions

View File

@ -9,9 +9,9 @@ Page({
bgColor: '#ffffff',
bgColorTop: '#333333',
bgColorBottom: '#999999',
scrollTop: '200px',
scrollTop: '100rpx',
duration: 200,
fontSize: '20px',
fontSize: '30px',
pageStyle: 'color: red',
navigationTitle: '初始化navigation-bar文档',
navigationBgColor: '#000000',
@ -34,6 +34,7 @@ Page({
bgColorBottom: '#333333',
fontSize: '30px',
pageStyle: 'color: blue',
scrollTop: '500rpx'
})
},

View File

@ -6,7 +6,7 @@
background-color='{{bgColor}}'
background-color-top="{{bgColorTop}}"
background-color-bottom="{{bgColorBottom}}"
scroll-top="{{scrollTop}}}"
scroll-top="{{scrollTop}}"
scrollDuration="{{duration}}"
root-font-size='{{fontSize}}'
page-style='{{pageStyle}}'
@ -22,7 +22,6 @@
color-animation-timing-func='{{func}}'
></navigation-bar>
</page-meta>
<view class="container">
<template is="head" data="{{title: 'page-meta'}}"/>
<view class="page-body">