智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/c8/c870bd720321594b19ab9d7c870...

39 lines
1.0 KiB

export function parsePullToRefresh (routeOptions) {
const windowOptions = routeOptions.window
if (windowOptions.enablePullDownRefresh || (windowOptions.pullToRefresh && windowOptions.pullToRefresh.support)) {
const pullToRefreshStyles = Object.create(null)
// 初始化默认值
if (plus.os.name === 'Android') {
Object.assign(pullToRefreshStyles, {
support: true,
style: 'circle'
})
} else {
Object.assign(pullToRefreshStyles, {
support: true,
style: 'default',
height: '50px',
range: '200px',
contentdown: {
caption: ''
},
contentover: {
caption: ''
},
contentrefresh: {
caption: ''
}
})
}
if (windowOptions.backgroundTextStyle) {
pullToRefreshStyles.color = windowOptions.backgroundTextStyle
pullToRefreshStyles.snowColor = windowOptions.backgroundTextStyle
}
Object.assign(pullToRefreshStyles, windowOptions.pullToRefresh || {})
return pullToRefreshStyles
}
}