Explorar o código

fix:选择器里的列表处理

liujiayin %!s(int64=2) %!d(string=hai) anos
pai
achega
bdb791c8c3

+ 7 - 0
src/components/ibps-crud/mixin/base.js

@@ -166,6 +166,13 @@ export default {
          * @description 勾选数据时触发的事件
          */
         handleSelect (selection, row) {
+            if (this.selectionType === 'radio') {
+                this.setSelectionRadio(row)
+                this.$emit('selection-change', row)
+                console.log('172 row',row)
+            } else {
+                this.$refs.elTable.toggleRowSelection(row)
+            }
             this.$emit('select', selection, row)
         },
         /**

+ 1 - 0
src/components/ibps-tree-table/index.vue

@@ -5,6 +5,7 @@
     :data="formatData"
     :row-style="showRow"
     v-bind="$attrs"
+    @select="handleRowClick"
     @select-all="handleSelectAll"
     @cell-click="handleCellClick"
     @row-click="handleRowClick"