index.wxs 343 B

123456789101112131415161718
  1. /* eslint-disable */
  2. var style = require('../wxs/style.wxs');
  3. var addUnit = require('../wxs/add-unit.wxs');
  4. function rootStyle(data) {
  5. if (!data.gutter) {
  6. return '';
  7. }
  8. return style({
  9. 'padding-right': addUnit(data.gutter / 2),
  10. 'padding-left': addUnit(data.gutter / 2),
  11. });
  12. }
  13. module.exports = {
  14. rootStyle: rootStyle,
  15. };