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