You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
834 B
35 lines
834 B
|
2 years ago
|
import '../../../utils/index.mjs';
|
||
|
|
import { CircleCheckFilled, WarningFilled, CircleCloseFilled, InfoFilled } from '@element-plus/icons-vue';
|
||
|
|
import { buildProps } from '../../../utils/vue/props/runtime.mjs';
|
||
|
|
|
||
|
|
const IconMap = {
|
||
|
|
success: "icon-success",
|
||
|
|
warning: "icon-warning",
|
||
|
|
error: "icon-error",
|
||
|
|
info: "icon-info"
|
||
|
|
};
|
||
|
|
const IconComponentMap = {
|
||
|
|
[IconMap.success]: CircleCheckFilled,
|
||
|
|
[IconMap.warning]: WarningFilled,
|
||
|
|
[IconMap.error]: CircleCloseFilled,
|
||
|
|
[IconMap.info]: InfoFilled
|
||
|
|
};
|
||
|
|
const resultProps = buildProps({
|
||
|
|
title: {
|
||
|
|
type: String,
|
||
|
|
default: ""
|
||
|
|
},
|
||
|
|
subTitle: {
|
||
|
|
type: String,
|
||
|
|
default: ""
|
||
|
|
},
|
||
|
|
icon: {
|
||
|
|
type: String,
|
||
|
|
values: ["success", "warning", "info", "error"],
|
||
|
|
default: "info"
|
||
|
|
}
|
||
|
|
});
|
||
|
|
|
||
|
|
export { IconComponentMap, IconMap, resultProps };
|
||
|
|
//# sourceMappingURL=result.mjs.map
|