index.wxs 262 B

123456789
  1. var getStyles = function (top, zIndex, customStyle) {
  2. var topStyle = top ? 'top:' + top + 'px;' : '';
  3. var zIndexStyle = zIndex ? 'z-index:' + zIndex + ';' : '';
  4. return topStyle + zIndexStyle + customStyle;
  5. };
  6. module.exports = {
  7. getStyles: getStyles,
  8. };