12345678910111213141516171819202122232425262728293031323334353637383940 |
- import {
- CircleCheck,
- CircleClose,
- CircleCloseFilled,
- Close,
- InfoFilled,
- Loading,
- SuccessFilled,
- WarningFilled,
- } from '@element-plus/icons-vue';
- import { definePropType } from './props';
- import type { Component } from 'vue';
- export const iconPropType = definePropType<string | Component>([String, Object, Function]);
- 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,
- };
|