jhzh
2025-04-03 db12897dc68c68d40c557aa59ad78022e2b30ac2
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 iconStyle(checkedColor, value, disabled, parentDisabled, iconSize) {
  var styles = [['font-size', utils.addUnit(iconSize)]];
  if (checkedColor && value && !disabled && !parentDisabled) {
    styles.push(['border-color', checkedColor]);
    styles.push(['background-color', checkedColor]);
  }
 
  return styles
    .map(function(item) {
      return item.join(':');
    })
    .join(';');
}
 
module.exports = {
  iconStyle: iconStyle
};