wip: Table component developing

This commit is contained in:
kailong321200875
2022-02-07 17:32:37 +08:00
parent 9b4b317817
commit 7b7fcfef59
16 changed files with 1358 additions and 1136 deletions

11
src/api/table/index.ts Normal file
View File

@@ -0,0 +1,11 @@
import { useAxios } from '@/hooks/web/useAxios'
import type { TableData } from './types'
const { request } = useAxios()
export const getTableListApi = ({ params }: AxiosConfig) => {
return request<{
total: number
list: TableData[]
}>({ url: '/example/list', method: 'get', params })
}

9
src/api/table/types.ts Normal file
View File

@@ -0,0 +1,9 @@
export type TableData = {
id: string
author: string
title: string
content: string
importance: number
display_time: string
pageviews: number
}