You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
444 B

1 year ago
  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. };