index.sjs 569 B

12345678910111213141516171819202122232425262728
  1. var antmove_export = {};
  2. import antmove_1_module from '../wxs/utils.sjs';
  3. /* eslint-disable */
  4. var utils = antmove_1_module;
  5. function inputStyle(autosize) {
  6. if (autosize && autosize.constructor === 'Object') {
  7. var style = '';
  8. if (autosize.minHeight) {
  9. style += 'min-height:' + utils.addUnit(autosize.minHeight) + ';';
  10. }
  11. if (autosize.maxHeight) {
  12. style += 'max-height:' + utils.addUnit(autosize.maxHeight) + ';';
  13. }
  14. return style;
  15. }
  16. return '';
  17. }
  18. antmove_export = {
  19. inputStyle: inputStyle
  20. };
  21. export default antmove_export;