feat: longbow.dataentity增加对longbow-select控件支持
This commit is contained in:
parent
8de7b17e15
commit
a55a16fd22
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue