index.wxs 472 B

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