import { MyBetaModalFormProps, MyButtons, MyColumns, MyProTableProps, } from '@/common'; import { Apis } from '@/gen/Apis'; import { ProTable } from '@ant-design/pro-components'; import { Image, Space } from 'antd'; import PropertyBrandsCreate from './modals/PropertyBrandsCreate'; import PropertyBrandUpdate from './modals/PropertyBrandUpdate'; export default function PropertyBrands(props: MyBetaModalFormProps) { return ( <> MyProTableProps.request( { ...params, companies_id: props?.item?.id }, sort, Apis.Company.CompanyPropertyBrands.List, ) } toolBarRender={(action) => [ , ]} // search={false} // options={false} columns={[ MyColumns.ID(), { title: '物业名称', dataIndex: 'name', }, { title: 'logo', render: (_, item) => { return ( {item?.logo?.[0] && ( )} ); }, }, MyColumns.Option({ render: (_, item: any, index, action) => ( Apis.Company.CompanyPropertyBrands.Delete({ id: item.id, }).then(() => action?.reload()) } /> ), }), ]} /> ); }