@antdv/pro-field
Version:
原子信息组件,统一 ProForm、ProTable、ProList、Filter 等组件里面的字段定义。
77 lines (76 loc) • 1.48 kB
JavaScript
import { createVNode as _createVNode } from "vue";
import { Badge } from "ant-design-vue";
const Status = {
Success: ({
children
}) => _createVNode(Badge, {
"status": "success",
"text": children
}, null),
Error: ({
children
}) => _createVNode(Badge, {
"status": "error",
"text": children
}, null),
Default: ({
children
}) => _createVNode(Badge, {
"status": "default",
"text": children
}, null),
Processing: ({
children
}) => _createVNode(Badge, {
"status": "processing",
"text": children
}, null),
Warning: ({
children
}) => _createVNode(Badge, {
"status": "warning",
"text": children
}, null),
success: ({
children
}) => _createVNode(Badge, {
"status": "success",
"text": children
}, null),
error: ({
children
}) => _createVNode(Badge, {
"status": "error",
"text": children
}, null),
default: ({
children
}) => _createVNode(Badge, {
"status": "default",
"text": children
}, null),
processing: ({
children
}) => _createVNode(Badge, {
"status": "processing",
"text": children
}, null),
warning: ({
children
}) => _createVNode(Badge, {
"status": "warning",
"text": children
}, null)
};
const ProFieldBadgeColor = ({
color,
children
}) => _createVNode(Badge, {
"color": color,
"text": children
}, null);
var stdin_default = Status;
export {
ProFieldBadgeColor,
stdin_default as default
};