Logo white

wxd / MShopWeApp

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • MShopWeApp
  • components
  • mp-sticky
  • mp-sticky.wxs
  • 服务卡自定义模版分类标题置顶
    f3f09f94
    后端研发-苏泰源 authored
    2022-04-15 01:10:19 +0800  
    Browse Code »
mp-sticky.wxs 355 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

/* eslint-disable */
function wrapStyle(data) {
  if (data.fixed) {
    return 'top: ' + data.offsetTop + 'px;'
  }
  return ''
}

function containerStyle(data) {
  if (data.fixed) {
    return 'height: ' + data.height + 'px; z-index: ' + data.zIndex + ';'
  }
  return ''
}

module.exports = {
  wrapStyle: wrapStyle,
  containerStyle: containerStyle
}