浏览代码

feat: add staff list defaultFilterValue

lanjianrong 3 年之前
父节点
当前提交
c2d540fec1
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/pages/Institutions/Company/Detail/components/Staff.tsx
  2. 1 0
      src/pages/Institutions/Staff/index.tsx

+ 1 - 0
src/pages/Institutions/Company/Detail/components/Staff.tsx

@@ -81,6 +81,7 @@ const Staff: React.FC<ListProps> = ({
       filters: true,
       width: 82,
       align: 'center',
+      defaultFilteredValue: ['true'],
       onHeaderCell: () => ({ style: { textAlign: 'center' } }),
       filterMultiple: false,
       valueEnum: {

+ 1 - 0
src/pages/Institutions/Staff/index.tsx

@@ -71,6 +71,7 @@ const CompanyList: React.FC<ListProps> = () => {
       align: 'center',
       filters: true,
       filterMultiple: false,
+      defaultFilteredValue: ['true'],
       onHeaderCell: () => ({ style: { textAlign: 'center' } }),
       valueEnum: {
         true: { text: '启用', status: 'Success' },