index.wxs 421 B

12345678910111213141516171819202122
  1. /* eslint-disable */
  2. var style = require('../wxs/style.wxs');
  3. var addUnit = require('../wxs/add-unit.wxs');
  4. function spinnerStyle(data) {
  5. return style({
  6. color: data.color,
  7. width: addUnit(data.size),
  8. height: addUnit(data.size),
  9. });
  10. }
  11. function textStyle(data) {
  12. return style({
  13. 'font-size': addUnit(data.textSize),
  14. });
  15. }
  16. module.exports = {
  17. spinnerStyle: spinnerStyle,
  18. textStyle: textStyle,
  19. };