feat(input): UiText支持placeholder——textarea编辑框显示格式提示(供应商端点目录等JSON字段需要)

This commit is contained in:
yumoqing 2026-09-03 17:10:05 +08:00
parent 658e0bd748
commit 4c8abd57e5

View File

@ -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))
}