表格列属性searchValue的默认值是0时不起作用
问题描述
2026-03-06
分享
加入收藏
写评论
1 个评论
提示: 安装或使用过程中遇到的 常见问题 ,点击查看更快解决您的问题!
我也来评论
发布 👻
发布问答
发布分享
临时 🔈
小风扇 🌀
广告 🆒
商品分类例子,默认值为禁用时不起作用:{field: 'status', title: '状态', width: 85, search: 'select', selectList: {0: '禁用', 1: '启用'}, templet: ea.table.switch, searchValue:0} ![](https://static.easyadmin8.top/EasyAdmin8/QA/2026-03-06___30303030-3030-4030-b531-30744c63766b_1772767833.png) 默认值是启用时才起作用:{field: 'status', title: '状态', width: 85, search: 'select', selectList: {0: '禁用', 1: '启用'}, templet: ea.table.switch, searchValue:1}, ![](https://static.easyadmin8.top/EasyAdmin8/QA/2026-03-06___30303030-3030-4030-b531-304d584e6374_1772767770.png)