index.wxs 355 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. return style([
  6. {
  7. 'border-color': data.borderColor,
  8. color: data.textColor,
  9. 'font-size': addUnit(data.fontSize),
  10. },
  11. data.customStyle,
  12. ]);
  13. }
  14. module.exports = {
  15. rootStyle: rootStyle,
  16. };