commit
3708c45789
@ -0,0 +1,52 @@
|
|||||||
|
export type ComponentName =
|
||||||
|
| 'Radio'
|
||||||
|
| 'RadioButton'
|
||||||
|
| 'Checkbox'
|
||||||
|
| 'CheckboxButton'
|
||||||
|
| 'Input'
|
||||||
|
| 'Autocomplete'
|
||||||
|
| 'InputNumber'
|
||||||
|
| 'Select'
|
||||||
|
| 'Cascader'
|
||||||
|
| 'Switch'
|
||||||
|
| 'Slider'
|
||||||
|
| 'TimePicker'
|
||||||
|
| 'DatePicker'
|
||||||
|
| 'Rate'
|
||||||
|
| 'ColorPicker'
|
||||||
|
| 'Transfer'
|
||||||
|
| 'Divider'
|
||||||
|
| 'TimeSelect'
|
||||||
|
| 'SelectV2'
|
||||||
|
| 'InputPassword'
|
||||||
|
| 'Editor'
|
||||||
|
|
||||||
|
export type ColProps = {
|
||||||
|
span?: number
|
||||||
|
xs?: number
|
||||||
|
sm?: number
|
||||||
|
md?: number
|
||||||
|
lg?: number
|
||||||
|
xl?: number
|
||||||
|
tag?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComponentOptions = {
|
||||||
|
label?: string
|
||||||
|
value?: FormValueType
|
||||||
|
disabled?: boolean
|
||||||
|
key?: string | number
|
||||||
|
children?: ComponentOptions[]
|
||||||
|
options?: ComponentOptions[]
|
||||||
|
} & Recordable
|
||||||
|
|
||||||
|
export type ComponentOptionsAlias = {
|
||||||
|
labelField?: string
|
||||||
|
valueField?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type ComponentProps = {
|
||||||
|
optionsAlias?: ComponentOptionsAlias
|
||||||
|
options?: ComponentOptions[]
|
||||||
|
optionsSlot?: boolean
|
||||||
|
} & Recordable
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
import { ElementPlusSize } from './elementPlus'
|
||||||
|
export interface ConfigGlobalTypes {
|
||||||
|
size?: ElementPlusSize
|
||||||
|
}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
export type contextMenuSchema = {
|
||||||
|
disabled?: boolean
|
||||||
|
divided?: boolean
|
||||||
|
icon?: string
|
||||||
|
label: string
|
||||||
|
command?: (item: contextMenuSchema) => void
|
||||||
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
declare interface DescriptionsSchema {
|
export interface DescriptionsSchema {
|
||||||
span?: number // 占多少分
|
span?: number // 占多少分
|
||||||
field: string // 字段名
|
field: string // 字段名
|
||||||
label?: string // label名
|
label?: string // label名
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
export type ElementPlusSize = 'default' | 'small' | 'large'
|
||||||
|
|
||||||
|
export type ElementPlusInfoType = 'success' | 'info' | 'warning' | 'danger'
|
||||||
@ -1,4 +1,4 @@
|
|||||||
declare interface IconTypes {
|
export interface IconTypes {
|
||||||
size?: number
|
size?: number
|
||||||
color?: string
|
color?: string
|
||||||
icon: string
|
icon: string
|
||||||
@ -1,4 +1,4 @@
|
|||||||
declare interface TipSchema {
|
export interface TipSchema {
|
||||||
label: string
|
label: string
|
||||||
keys?: string[]
|
keys?: string[]
|
||||||
}
|
}
|
||||||
@ -1,9 +1,9 @@
|
|||||||
declare interface Language {
|
export interface Language {
|
||||||
el: Recordable
|
el: Recordable
|
||||||
name: string
|
name: string
|
||||||
}
|
}
|
||||||
|
|
||||||
declare interface LocaleDropdownType {
|
export interface LocaleDropdownType {
|
||||||
lang: LocaleType
|
lang: LocaleType
|
||||||
name?: string
|
name?: string
|
||||||
elLocale?: Language
|
elLocale?: Language
|
||||||
@ -1,4 +1,4 @@
|
|||||||
declare interface QrcodeLogo {
|
export interface QrcodeLogo {
|
||||||
src?: string
|
src?: string
|
||||||
logoSize?: number
|
logoSize?: number
|
||||||
bgColor?: string
|
bgColor?: string
|
||||||
@ -1,3 +0,0 @@
|
|||||||
declare interface ConfigGlobalTypes {
|
|
||||||
size?: ElememtPlusSize
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
declare type contextMenuSchema = {
|
|
||||||
disabled?: boolean
|
|
||||||
divided?: boolean
|
|
||||||
icon?: string
|
|
||||||
label: string
|
|
||||||
command?: (item: contextMenuSchema) => viod
|
|
||||||
}
|
|
||||||
@ -1,40 +1,39 @@
|
|||||||
declare interface Fn<T = any> {
|
import type { CSSProperties } from 'vue'
|
||||||
(...arg: T[]): T
|
declare global {
|
||||||
}
|
declare interface Fn<T = any> {
|
||||||
|
(...arg: T[]): T
|
||||||
declare type Nullable<T> = T | null
|
}
|
||||||
|
|
||||||
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
|
declare type Nullable<T> = T | null
|
||||||
|
|
||||||
declare type ElememtPlusSize = 'default' | 'small' | 'large'
|
declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>
|
||||||
|
|
||||||
declare type ElementPlusInfoType = 'success' | 'info' | 'warning' | 'danger'
|
declare type Recordable<T = any, K = string> = Record<K extends null | undefined ? string : K, T>
|
||||||
|
|
||||||
declare type Recordable<T = any, K = string> = Record<K extends null | undefined ? string : K, T>
|
declare type ComponentRef<T> = InstanceType<T>
|
||||||
|
|
||||||
declare type ComponentRef<T> = InstanceType<T>
|
declare type LocaleType = 'zh-CN' | 'en'
|
||||||
|
|
||||||
declare type LocaleType = 'zh-CN' | 'en'
|
declare type AxiosHeaders =
|
||||||
|
| 'application/json'
|
||||||
|
| 'application/x-www-form-urlencoded'
|
||||||
|
| 'multipart/form-data'
|
||||||
|
|
||||||
declare type AxiosHeaders =
|
declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put'
|
||||||
| 'application/json'
|
|
||||||
| 'application/x-www-form-urlencoded'
|
|
||||||
| 'multipart/form-data'
|
|
||||||
|
|
||||||
declare type AxiosMethod = 'get' | 'post' | 'delete' | 'put'
|
declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'
|
||||||
|
|
||||||
declare type AxiosResponseType = 'arraybuffer' | 'blob' | 'document' | 'json' | 'text' | 'stream'
|
declare interface AxiosConfig {
|
||||||
|
params?: any
|
||||||
declare interface AxiosConfig {
|
data?: any
|
||||||
params?: any
|
url?: string
|
||||||
data?: any
|
method?: AxiosMethod
|
||||||
url?: string
|
headersType?: string
|
||||||
method?: AxiosMethod
|
responseType?: AxiosResponseType
|
||||||
headersType?: string
|
}
|
||||||
responseType?: AxiosResponseType
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface IResponse<T = any> {
|
declare interface IResponse<T = any> {
|
||||||
code: string
|
code: string
|
||||||
data: T extends any ? T : T & any
|
data: T extends any ? T : T & any
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue