element-plus根据条件显示多选框
- 游戏开发
- 2025-08-21 18:15:02

代码如下:
<el-table :data="pager.lists" @selection-change="handleSelectionChange" row-key="id" :tree-props="{ checkStrictly: true }" :cell-class-name="cellClass"> <el-table-column type="selection" width="55" :selectable="selectable" /> </el-table> <script lang="ts" setup name="examLists"> const selectable = (row: any) => row.pid === 0 const cellClass = (row: any) => { return row.row.pid === 0 ? '' : 'myCell' } </script> <style> .myCell .el-checkbox__input { display: none !important; } </style>element-plus根据条件显示多选框由讯客互联游戏开发栏目发布,感谢您对讯客互联的认可,以及对我们原创作品以及文章的青睐,非常欢迎各位朋友分享到个人网站或者朋友圈,但转载请说明文章出处“element-plus根据条件显示多选框”
上一篇
vertical-align