index.wxs 335 B

1234567891011121314151617
  1. /* eslint-disable */
  2. var style = require('../wxs/style.wxs');
  3. var addUnit = require('../wxs/add-unit.wxs');
  4. function titleStyle(data) {
  5. return style([
  6. {
  7. 'max-width': addUnit(data.titleWidth),
  8. 'min-width': addUnit(data.titleWidth),
  9. },
  10. data.titleStyle,
  11. ]);
  12. }
  13. module.exports = {
  14. titleStyle: titleStyle,
  15. };