1
jhzh
2025-04-14 a5601fbcdc19292b32423bea88e67fc9ab4422a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* eslint-disable */
var utils = require('../wxs/utils.wxs');
 
function barStyle(barHeight, activeColor) {
  var styles = [['height', utils.addUnit(barHeight)]];
 
  if (activeColor) {
    styles.push(['background', activeColor]);
  }
 
  return styles
    .map(function (item) {
      return item.join(':');
    })
    .join(';');
}
 
module.exports = {
  barStyle: barStyle,
};