Permalink
Browse files

fix: 将grid中的下拉框ui风格与表单中的下拉框风格保持统一

  • Loading branch information...
HuYuee committed Aug 2, 2017
1 parent 2664c06 commit efcc9111ffd2f99cb396f96249f58bcbde437589
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/keroa-grid.js
View
@@ -223,6 +223,10 @@ var GridAdapter = u.BaseAdapter.extend({
if (comp && comp.modelValueChange) {
setTimeout(function() {
comp.modelValueChange(obj.value);
comp.element.value = obj.value;
comp.element.title = obj.value;
//在grid中由于setShowValue会对控件本身的校验有干扰,所以直接覆盖
comp.setShowValue = function(){}
})
}
@@ -1648,7 +1652,7 @@ var GridAdapter = u.BaseAdapter.extend({
} else if (eType == 'combo') {
// compDiv = $('<div class="input-group form_date u-grid-edit-item-comb"><div type="text" class="form-control grid-combox"></div><i class="input-group-addon" ><i class="uf uf-anglearrowdown"></i></i></div>');
compDiv = $('<div class="eType-input"><input type="text" class="u-grid-edit-item-float"></div>');
compDiv = $('<div class="eType-input"><input type="text" class="u-grid-edit-item-float"><span style="top:2px;" class="u-form-control-feedback uf uf-arrow-down" data-role="combo-button"></span></div>');
//comp = new $.compManager.plugs.combo(compDiv[0],eOptions,viewModel);
//comp = new Combobox({
// el:compDiv[0],

0 comments on commit efcc911

Please sign in to comment.