meixioacomponent 0.1.85 → 0.1.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -72,7 +72,11 @@
|
|
|
72
72
|
<span></span>
|
|
73
73
|
</template>
|
|
74
74
|
|
|
75
|
-
<el-table-column
|
|
75
|
+
<el-table-column
|
|
76
|
+
type="selection"
|
|
77
|
+
width="60px"
|
|
78
|
+
:selectable="selected"
|
|
79
|
+
></el-table-column>
|
|
76
80
|
<el-table-column
|
|
77
81
|
:key="index"
|
|
78
82
|
:align="align"
|
|
@@ -346,6 +350,9 @@ export default {
|
|
|
346
350
|
return {
|
|
347
351
|
value: [],
|
|
348
352
|
type: "single",
|
|
353
|
+
canSelected: () => {
|
|
354
|
+
return true;
|
|
355
|
+
},
|
|
349
356
|
};
|
|
350
357
|
},
|
|
351
358
|
},
|
|
@@ -687,6 +694,13 @@ export default {
|
|
|
687
694
|
this.tableCheckboxConfig.value = [];
|
|
688
695
|
this.$refs.elTable?.clearSelection();
|
|
689
696
|
},
|
|
697
|
+
// 判断表格的行能否点击
|
|
698
|
+
selected(row, index) {
|
|
699
|
+
let _tableCheckboxConfig = this.$props.tableCheckboxConfig;
|
|
700
|
+
if (_tableCheckboxConfig.canSelected) return true;
|
|
701
|
+
|
|
702
|
+
return _tableCheckboxConfig.canSelected(row, index);
|
|
703
|
+
},
|
|
690
704
|
},
|
|
691
705
|
watch: {
|
|
692
706
|
fixedList(newValue, oldValue) {
|