This commit is contained in:
yumoqing 2024-04-12 16:01:45 +08:00
parent 16c8ed4c70
commit 34933b7d51

View File

@ -589,15 +589,13 @@ bricks.UiText =class extends bricks.UiType {
} }
resultValue(){ resultValue(){
var e = this.dom_element; var e = this.dom_element;
bricks.debug('UiText(), element=', e, 'value=', e.value);
this.value = e.value; this.value = e.value;
return this.value; return this.value;
} }
setValue(v){ setValue(v){
if (! v) v = ''; if (! v) v = '';
this.value = v; this.value = v;
this.dom_element.innerText = ''; this.dom_element.value = v;
this.dom_element.innerText = v;
debug('UiText: v=', v); debug('UiText: v=', v);
} }
reset(){ reset(){