index.wxs 444B

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