fit-input
Version:
输入框
33 lines (26 loc) • 772 B
JavaScript
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var Props = function Props() {
_classCallCheck(this, Props);
this.label = '请输入内容';
this.highlight = false;
this.highlightLine = true;
this.rightRender = function () {
return null;
};
this.innerRender = function () {
return null;
};
this.textAlign = 'left';
this.validateMiddleware = function () {
return { ok: true };
};
this.disabled = false;
};
exports.Props = Props;
var State = function State() {
_classCallCheck(this, State);
this.hasError = false;
this.errorMessage = '';
};
exports.State = State;
;