@antd-vc/pro-table
- 🔥 Written in TypeScript & jsx
- 🔥 使用typescript和jsx开发
⚠️ For personal learning purposes only, please do not use in production environments.⚠️ 仅供个人学习使用,请勿在生产环境中使用
pnpm i @antd-vc/pro-table
import { ProTable } from "@antd-vc/pro-table";
<ProTable
params={params}
request={async (
params: T & {
pageSize: number;
current: number;
},
sort,
filter,
) => {
const msg = await myQuery({
page: params.current,
pageSize: params.pageSize,
});
return {
data: msg.result,
success: boolean,
total: number,
};
}}
/>;
引入样式:
import "@antd-vc/pro-table/es/style.css";