From 4c8abd57e5d0e0f7603a999cbb0d6a9fe3f9b0b2 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 3 Sep 2026 17:10:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(input):=20UiText=E6=94=AF=E6=8C=81placehol?= =?UTF-8?q?der=E2=80=94=E2=80=94textarea=E7=BC=96=E8=BE=91=E6=A1=86?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=BC=E5=BC=8F=E6=8F=90=E7=A4=BA(?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E7=AB=AF=E7=82=B9=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=AD=89JSON=E5=AD=97=E6=AE=B5=E9=9C=80=E8=A6=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bricks/input.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bricks/input.js b/bricks/input.js index acb11b2..d4cf06d 100644 --- a/bricks/input.js +++ b/bricks/input.js @@ -1025,6 +1025,8 @@ bricks.UiText =class extends bricks.UiType { build(){ var e = this.dom_element; e.id = e.name = this.opts.name; + if (this.opts.placeholder) + e.placeholder = bricks.app.i18n._(this.opts.placeholder); this.reset(); this.bind('input', this.set_value_from_input.bind(this)) }