index.sjs 456 B

12345678910111213141516171819202122
  1. var antmove_export = {};
  2. import antmove_1_module from '../wxs/utils.sjs';
  3. /* eslint-disable */
  4. var utils = antmove_1_module;
  5. function barStyle(barHeight, activeColor) {
  6. var styles = [['height', utils.addUnit(barHeight)]];
  7. if (activeColor) {
  8. styles.push(['background', activeColor]);
  9. }
  10. return styles.map(function (item) {
  11. return item.join(':');
  12. }).join(';');
  13. }
  14. antmove_export = {
  15. barStyle: barStyle
  16. };
  17. export default antmove_export;