| | |
| | | <PageWrapper title="卡片列表示例" content="基础封装"> |
| | | <CardList :params="params" :api="demoListApi" @get-method="getMethod" @delete="handleDel"> |
| | | <template #header> |
| | | <Button type="primary" color="error"> 按钮1 </Button> |
| | | <Button type="primary" color="success"> 按钮2 </Button> |
| | | <a-button type="primary" color="error"> 按钮1 </a-button> |
| | | <a-button type="primary" color="success"> 按钮2 </a-button> |
| | | </template> |
| | | </CardList> |
| | | </PageWrapper> |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { CardList } from '/@/components/CardList'; |
| | | import { Button } from '/@/components/Button'; |
| | | import { PageWrapper } from '/@/components/Page'; |
| | | import { demoListApi } from '/@/api/demo/table'; |
| | | import { useMessage } from '/@/hooks/web/useMessage'; |
| | | import { CardList } from '@/components/CardList'; |
| | | import { PageWrapper } from '@/components/Page'; |
| | | import { demoListApi } from '@/api/demo/table'; |
| | | import { useMessage } from '@/hooks/web/useMessage'; |
| | | |
| | | const { notification } = useMessage(); |
| | | // 请求api时附带参数 |
| | | const params = {}; |