2019-07-05 03:19:24 +08:00
|
|
|
import { componentExportHelper } from 'Component/Abstract';
|
|
|
|
import { AbstractInput } from 'Component/AbstractInput';
|
2015-11-15 08:23:16 +08:00
|
|
|
|
2016-07-06 03:52:52 +08:00
|
|
|
const DEFAULT_ROWS = 5;
|
|
|
|
|
2019-07-05 03:19:24 +08:00
|
|
|
class TextAreaComponent extends AbstractInput {
|
2015-11-15 08:23:16 +08:00
|
|
|
/**
|
|
|
|
* @param {Object} params
|
|
|
|
*/
|
|
|
|
constructor(params) {
|
|
|
|
super(params);
|
|
|
|
|
2016-07-06 03:52:52 +08:00
|
|
|
this.rows = params.rows || DEFAULT_ROWS;
|
2020-07-30 03:49:41 +08:00
|
|
|
this.spellcheck = undefined === params.spellcheck ? false : !!params.spellcheck;
|
2015-11-15 08:23:16 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-01 02:44:13 +08:00
|
|
|
export default componentExportHelper(TextAreaComponent, 'TextAreaComponent');
|