feat(input): UiText支持placeholder——textarea编辑框显示格式提示(供应商端点目录等JSON字段需要)
This commit is contained in:
parent
658e0bd748
commit
4c8abd57e5
@ -1025,6 +1025,8 @@ bricks.UiText =class extends bricks.UiType {
|
|||||||
build(){
|
build(){
|
||||||
var e = this.dom_element;
|
var e = this.dom_element;
|
||||||
e.id = e.name = this.opts.name;
|
e.id = e.name = this.opts.name;
|
||||||
|
if (this.opts.placeholder)
|
||||||
|
e.placeholder = bricks.app.i18n._(this.opts.placeholder);
|
||||||
this.reset();
|
this.reset();
|
||||||
this.bind('input', this.set_value_from_input.bind(this))
|
this.bind('input', this.set_value_from_input.bind(this))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user