提交 1bd599dd 编写于 作者: NoSubject's avatar NoSubject

修复Elautocomplete固定可选值不生效的问题

上级 b68042fd
......@@ -52,15 +52,15 @@ MWF.xApplication.process.Xform.Elautocomplete = MWF.APPElautocomplete = new Cla
// }
// }.bind(this);
if (this.json.itemType!=='script'){
app.methods.$fetchSuggestions = function(qs){
app.methods.$fetchSuggestions = function(qs, cb){
if (this.json.itemValues){
var items = this.json.itemValues.filter(function(v){
return !qs || v.indexOf(qs)!=-1;
}).map(function(v){
return {"value": v};
});
//cb(items);
return items;
cb(items);
//return items;
}
return [];
}.bind(this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册