index.wxs 285 B

1234567891011121314
  1. /* eslint-disable */
  2. var style = require('../wxs/style.wxs');
  3. var addUnit = require('../wxs/add-unit.wxs');
  4. function sizeStyle(data) {
  5. return style({
  6. width: addUnit(data.previewSize),
  7. height: addUnit(data.previewSize),
  8. });
  9. }
  10. module.exports = {
  11. sizeStyle: sizeStyle,
  12. };