ant vue3.0项目,表格里和编辑里,Switch 开关怎么写?我不太了解这个的写法,查也没有查到有用的,接口返回的1和2
假如你这个table的列的键名叫status 那么 在 a-table中 给status列加 slots:{customRender:'status'}
<template #status = "{record}"> <a-switch v-model:checked="record.status==2"></a-switch> </template>