UNPKG

@visactor/react-vtable

Version:

The react version of VTable

22 lines (18 loc) 674 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.createVRenderComponent = void 0; const vrender_1 = require("@visactor/vtable/es/vrender"); function createVRenderComponent(type, props) { if ("tag" === type) { return new vrender_1.Tag(props.attribute ? props.attribute : props); } if ("radio" === type) { return new vrender_1.Radio(props.attribute ? props.attribute : props); } if ("checkbox" === type) { return new vrender_1.CheckBox(props.attribute ? props.attribute : props); } } exports.createVRenderComponent = createVRenderComponent; //# sourceMappingURL=component-creater.js.map