@arco-vue-pro-components/pro-components
Version:
基于@arco-design/web-vue组件的高级组件,包括pro-table
66 lines (65 loc) • 1.19 kB
JavaScript
import { createVNode } from "vue";
import { Badge } from "@arco-design/web-vue";
const Status = {
Success: ({
text
}) => createVNode(Badge, {
"status": "success",
"text": text
}, null),
Error: ({
text
}) => createVNode(Badge, {
"status": "danger",
"text": text
}, null),
Default: ({
text
}) => createVNode(Badge, {
"status": "normal",
"text": text
}, null),
Processing: ({
text
}) => createVNode(Badge, {
"status": "processing",
"text": text
}, null),
Warning: ({
text
}) => createVNode(Badge, {
"status": "warning",
"text": text
}, null),
success: ({
text
}) => createVNode(Badge, {
"status": "success",
"text": text
}, null),
error: ({
text
}) => createVNode(Badge, {
"status": "danger",
"text": text
}, null),
default: ({
text
}) => createVNode(Badge, {
"status": "normal",
"text": text
}, null),
processing: ({
text
}) => createVNode(Badge, {
"status": "processing",
"text": text
}, null),
warning: ({
text
}) => createVNode(Badge, {
"status": "warning",
"text": text
}, null)
};
export { Status as default };