mirror of
https://github.com/continew-org/continew-admin.git
synced 2026-01-01 08:57:12 +08:00
新增:新增前端项目模块(基于 Vue3、TypeScript、Arco Design Pro Vue 技术栈),已对接现有 API
This commit is contained in:
10
continew-admin-ui/src/types/echarts.ts
Normal file
10
continew-admin-ui/src/types/echarts.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { CallbackDataParams } from 'echarts/types/dist/shared';
|
||||
|
||||
export interface ToolTipFormatterParams extends CallbackDataParams {
|
||||
axisDim: string;
|
||||
axisIndex: number;
|
||||
axisType: string;
|
||||
axisId: string;
|
||||
axisValue: string;
|
||||
axisValueLabel: string;
|
||||
}
|
||||
37
continew-admin-ui/src/types/global.ts
Normal file
37
continew-admin-ui/src/types/global.ts
Normal file
@@ -0,0 +1,37 @@
|
||||
export interface AnyObject {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface Options {
|
||||
value: unknown;
|
||||
label: string;
|
||||
}
|
||||
|
||||
export interface NodeOptions extends Options {
|
||||
children?: NodeOptions[];
|
||||
}
|
||||
|
||||
export interface GetParams {
|
||||
body: null;
|
||||
type: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface PostData {
|
||||
body: string;
|
||||
type: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface Pagination {
|
||||
current: number;
|
||||
pageSize: number;
|
||||
total?: number;
|
||||
}
|
||||
|
||||
export type TimeRanger = [string, string];
|
||||
|
||||
export interface GeneralChart {
|
||||
xAxis: string[];
|
||||
data: Array<{ name: string; value: number[] }>;
|
||||
}
|
||||
5
continew-admin-ui/src/types/mock.ts
Normal file
5
continew-admin-ui/src/types/mock.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface MockParams {
|
||||
url: string;
|
||||
type: string;
|
||||
body: string;
|
||||
}
|
||||
Reference in New Issue
Block a user