This commit is contained in:
2025-10-17 10:31:13 +08:00
commit e6e86f2ce0
1043 changed files with 1031839 additions and 0 deletions

55
src/types/components.d.ts vendored Normal file
View File

@@ -0,0 +1,55 @@
export type ComponentName =
| 'Radio'
| 'RadioButton'
| 'Checkbox'
| 'CheckboxButton'
| 'Input'
| 'Autocomplete'
| 'InputNumber'
| 'Select'
| 'Cascader'
| 'Switch'
| 'Slider'
| 'TimePicker'
| 'DatePicker'
| 'Rate'
| 'ColorPicker'
| 'Transfer'
| 'Divider'
| 'TimeSelect'
| 'SelectV2'
| 'TreeSelect'
| 'InputPassword'
| 'UploadImg'
| 'UploadImgs'
| 'UploadFile'
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

4
src/types/configGlobal.d.ts vendored Normal file
View File

@@ -0,0 +1,4 @@
import { ElementPlusSize } from './elementPlus'
export interface ConfigGlobalTypes {
size?: ElementPlusSize
}

7
src/types/contextMenu.d.ts vendored Normal file
View File

@@ -0,0 +1,7 @@
export type contextMenuSchema = {
disabled?: boolean
divided?: boolean
icon?: string
label: string
command?: (item: contextMenuSchema) => void
}

3
src/types/elementPlus.d.ts vendored Normal file
View File

@@ -0,0 +1,3 @@
export type ElementPlusSize = 'default' | 'small' | 'large'
export type ElementPlusInfoType = 'success' | 'info' | 'warning' | 'danger'

5
src/types/icon.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
export interface IconTypes {
size?: number
color?: string
icon: string
}

4
src/types/infoTip.d.ts vendored Normal file
View File

@@ -0,0 +1,4 @@
export interface TipSchema {
label: string
keys?: string[]
}

1
src/types/layout.d.ts vendored Normal file
View File

@@ -0,0 +1 @@
export type LayoutType = 'classic' | 'topLeft' | 'top' | 'cutMenu'

10
src/types/localeDropdown.d.ts vendored Normal file
View File

@@ -0,0 +1,10 @@
export interface Language {
el: Recordable
name: string
}
export interface LocaleDropdownType {
lang: LocaleType
name?: string
elLocale?: Language
}

9
src/types/qrcode.d.ts vendored Normal file
View File

@@ -0,0 +1,9 @@
export interface QrcodeLogo {
src?: string
logoSize?: number
bgColor?: string
borderSize?: number
crossOrigin?: string
borderRadius?: number
logoRadius?: number
}

22
src/types/theme.d.ts vendored Normal file
View File

@@ -0,0 +1,22 @@
export type ThemeTypes = {
elColorPrimary?: string
leftMenuBorderColor?: string
leftMenuBgColor?: string
leftMenuBgLightColor?: string
leftMenuBgActiveColor?: string
leftMenuCollapseBgActiveColor?: string
leftMenuTextColor?: string
leftMenuTextActiveColor?: string
logoTitleTextColor?: string
logoBorderColor?: string
topHeaderBgColor?: string
topHeaderTextColor?: string
topHeaderHoverColor?: string
topToolBorderColor?: string
}
export type DarkBeforeColor = {
menu: string
topHeader: string
}