feat: longbow.dataentity增加对longbow-select控件支持

This commit is contained in:
Argo Zhang 2019-05-07 13:45:11 +08:00
parent 8de7b17e15
commit a55a16fd22
1 changed files with 12 additions and 2 deletions

View File

@ -21,7 +21,12 @@
else if (ctl.attr('data-toggle') === 'toggle') {
ctl.bootstrapToggle(value[name] ? 'on' : 'off');
}
else ctl.val(value[name]);
else if (ctl.attr('data-toggle') === 'lgbSelect') {
ctl.lgbSelect('val', value[name]);
}
else {
ctl.val(value[name]);
}
}
},
reset: function () {
@ -35,7 +40,12 @@
else if (ctl.attr('data-toggle') === 'toggle') {
ctl.bootstrapToggle(dv === "true" ? 'on' : 'off');
}
else ctl.val(dv);
else if (ctl.attr('data-toggle') === 'lgbSelect') {
ctl.lgbSelect('val', dv);
}
else {
ctl.val(dv);
}
}
},
get: function () {