Kaynağa Gözat

feat: add staff list defaultFilterValue

lanjianrong 3 yıl önce
ebeveyn
işleme
c2d540fec1

+ 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' },