Ver código fonte

表格选中

ymy 2 anos atrás
pai
commit
ca5aa9fe1a
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      src/benyun/components/byTable/byTable.vue

+ 3 - 1
src/benyun/components/byTable/byTable.vue

@@ -14,7 +14,8 @@
       :tree-config="{transform: attrs.transform, rowField: attrs.rowField, parentField: attrs.parentField}"
       :row-config="{isHover: true}"
       :tooltip-config="{showAll: true}"
-      :checkbox-config="{ checkMethod: attrs.checkMethod, visibleMethod: attrs.visibleMethod}">
+      :radio-config="{trigger: attrs.triggerRowCheck}"
+      :checkbox-config="{ checkMethod: attrs.checkMethod, visibleMethod: attrs.visibleMethod,trigger: attrs.triggerRowCheck}">
       style="width: 100%">
       <vxe-column v-if="attrs.checkbox" type="checkbox" width="50" fixed="left" />
       <vxe-column v-if="attrs.radio" type="radio" width="50" fixed="left" />
@@ -85,6 +86,7 @@
 /**
   config:{
     attr:{
+      triggerRowCheck:'row'  //点击行选中
       size: medium / small / mini  //尺寸
       height: ''  //高度
       maxHeight:''  //最大高度