Permalink
Browse files

fix: 表格控件如果编辑方式为form则showfix为false

  • Loading branch information...
1 parent 54d6ec5 commit 34e6c61df68e0f07072d1f5b36ec4b7af87964c9 liuyk committed Nov 8, 2016
Showing with 9 additions and 0 deletions.
  1. +9 −0 js/component/keroa-grid.js
@@ -168,6 +168,15 @@ var GridAdapter = BaseAdapter.extend({
comp.modelValueChange(obj.value);
obj.gridObj.editComp = comp;
+ if(obj.gridObj.options.editType == 'form'){
+ //form默认为false
+ comp.options.showFix = false;
+ comp.comp.options.showFix = false;
+ }else{
+ comp.options.showFix = true;
+ comp.comp.options.showFix = true;
+ }
+
// 根据惊道需求增加editype之后的处理,此处只针对grid.js中的默认eType进行处理,非默认通过eType进行处理
if(typeof afterEType == 'function'){
afterEType.call(this,obj);

0 comments on commit 34e6c61

Please sign in to comment.