@visactor/react-vtable
Version:
The react version of VTable
14 lines (13 loc) • 481 B
JavaScript
import { CheckBox, Radio, Tag } from "@visactor/vtable/es/vrender";
export function createVRenderComponent(type, props) {
if ("tag" === type) {
return new Tag(props.attribute ? props.attribute : props);
}
if ("radio" === type) {
return new Radio(props.attribute ? props.attribute : props);
}
if ("checkbox" === type) {
return new CheckBox(props.attribute ? props.attribute : props);
}
}
//# sourceMappingURL=component-creater.js.map