解决方案:使用 getCheckboxProps
design vue table 官网:https://1x.antdv.com/components/table-cn/
<template>
<view class="bg">
<Table @register="registerTable" />
</view>
</template>
<script setup lang="ts">
import { useTable } from "/@/components/Table";
const [registerTable] = useTable({
rowSelection: {
type: "checkbox",
fixed: true,
getCheckboxProps: (record) => {
if (record.disabled) {
record.disabled = true;
}
},
},
});
</script>