first commit
This commit is contained in:
14
uni_modules/tdesign-uniapp/components/textarea/computed.js
Normal file
14
uni_modules/tdesign-uniapp/components/textarea/computed.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import utils from '../common/utils.wxs';
|
||||
|
||||
|
||||
export function textareaStyle(autosize) {
|
||||
if (autosize && typeof autosize === 'object') {
|
||||
return utils._style({
|
||||
'min-height': utils.addUnit(autosize.minHeight),
|
||||
'max-height': utils.addUnit(autosize.maxHeight),
|
||||
});
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user