mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 12:17:37 +08:00
40 lines
728 B
TypeScript
40 lines
728 B
TypeScript
import {
|
|
SuccessFilled,
|
|
InfoFilled,
|
|
WarningFilled,
|
|
CircleCloseFilled,
|
|
Close,
|
|
Loading,
|
|
CircleCheck,
|
|
CircleClose,
|
|
} from '@element-plus/icons-vue'
|
|
import { definePropType } from './props'
|
|
import type { Component } from 'vue'
|
|
|
|
export const iconPropType = definePropType<string | Component>([String, Object])
|
|
|
|
export const CloseComponents = {
|
|
Close,
|
|
}
|
|
|
|
export const TypeComponents = {
|
|
Close,
|
|
SuccessFilled,
|
|
InfoFilled,
|
|
WarningFilled,
|
|
CircleCloseFilled,
|
|
}
|
|
|
|
export const TypeComponentsMap = {
|
|
success: SuccessFilled,
|
|
warning: WarningFilled,
|
|
error: CircleCloseFilled,
|
|
info: InfoFilled,
|
|
}
|
|
|
|
export const ValidateComponentsMap = {
|
|
validating: Loading,
|
|
success: CircleCheck,
|
|
error: CircleClose,
|
|
}
|