This commit is contained in:
yumoqing 2024-02-21 14:37:44 +08:00
parent c536775bd7
commit 397f13e2b9

View File

@ -501,11 +501,12 @@ bricks.UiText =class extends bricks.UiType {
this.bind('input', this.set_value_from_input.bind(this)) this.bind('input', this.set_value_from_input.bind(this))
} }
set_value_from_input(event){ set_value_from_input(event){
this.value = this.dom_element.innerText; this.value = this.dom_element.value;
} }
resultValue(){ resultValue(){
console.log('UiText(), element=', this.dom_element); var e = this.dom_element;
this.value = this.dom_element.innerText; console.log('UiText(), element=', e, 'value=', e.value);
this.value = e.value;
return this.value; return this.value;
} }
setValue(v){ setValue(v){