This commit is contained in:
yumoqing 2026-02-28 13:34:24 +08:00
parent 50853eea2f
commit 315b15ae53

View File

@ -914,8 +914,6 @@ bricks.UiText =class extends bricks.UiType {
value: value:
defaultValue: defaultValue:
tip: tip:
rows:
cols:
readonly: readonly:
required: required:
} }
@ -932,8 +930,7 @@ bricks.UiText =class extends bricks.UiType {
this.uitype='text'; this.uitype='text';
this.build(); this.build();
this.charsize_sizing(); this.charsize_sizing();
this.set_style('overflow', 'auto'); this.bind('input', this.handleInput.bind(this));
this.bind('oninput', this.handleInput.bind(this));
this.bind('keydown', this.key_handle.bind(this)); this.bind('keydown', this.key_handle.bind(this));
} }
handleInput() { handleInput() {
@ -962,8 +959,6 @@ bricks.UiText =class extends bricks.UiType {
build(){ build(){
var e = this.dom_element; var e = this.dom_element;
e.id = e.name = this.opts.name; e.id = e.name = this.opts.name;
e.rows = this.opts.rows || 5;
e.cols = this.opts.cols || 40;
this.reset(); this.reset();
this.bind('input', this.set_value_from_input.bind(this)) this.bind('input', this.set_value_from_input.bind(this))
} }