This commit is contained in:
yumoqing 2026-03-04 17:01:32 +08:00
parent fba6f1eee3
commit 1e4de632e7
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ SOURCES=" page_data_loader.js factory.js uitypesdef.js utils.js uitype.js \
line.js pie.js bar.js gobang.js period.js iconbarpage.js \ line.js pie.js bar.js gobang.js period.js iconbarpage.js \
keypress.js asr.js webspeech.js countdown.js progressbar.js \ keypress.js asr.js webspeech.js countdown.js progressbar.js \
qaframe.js svg.js videoplayer.js sctter.js radar.js kline.js \ qaframe.js svg.js videoplayer.js sctter.js radar.js kline.js \
heatmap.js map.js qr.js " heatmap.js map.js qr.js textfiles.js "
echo ${SOURCES} echo ${SOURCES}
cat ${SOURCES} > ../dist/bricks.js cat ${SOURCES} > ../dist/bricks.js
# uglifyjs --compress --mangle -- ../dist/bricks.js > ../dist/bricks.min.js # uglifyjs --compress --mangle -- ../dist/bricks.js > ../dist/bricks.min.js

View File

@ -986,6 +986,7 @@ bricks.UiText =class extends bricks.UiType {
this.value = v; this.value = v;
this.dom_element.value = v; this.dom_element.value = v;
debug('UiText: v=', v); debug('UiText: v=', v);
this.handleInput();
} }
reset(){ reset(){
var v = this.opts.value || this.opts.defaultvalue||''; var v = this.opts.value || this.opts.defaultvalue||'';