index.wxs 390B

12345678910111213141516171819
  1. /* eslint-disable */
  2. var style = require('../wxs/style.wxs');
  3. var addUnit = require('../wxs/add-unit.wxs');
  4. function inputStyle(autosize) {
  5. if (autosize && autosize.constructor === 'Object') {
  6. return style({
  7. 'min-height': addUnit(autosize.minHeight),
  8. 'max-height': addUnit(autosize.maxHeight),
  9. });
  10. }
  11. return '';
  12. }
  13. module.exports = {
  14. inputStyle: inputStyle,
  15. };