d-render
Version:
基于 Element Plus 二次封装的数据驱动渲染组件库 - 表单、搜索表单、表格配置化渲染
16 lines (13 loc) • 520 B
JavaScript
import { DRender } from '@d-render/shared';
const dRender = new DRender();
const getInputComponent = (type = "default") => {
return dRender.getComponent(type);
};
const getViewComponent = (type = "default") => {
return dRender.getComponent(type, "view");
};
const getH5InputComponent = (type = "default") => {
return dRender.getComponent(type, "mobile");
};
const isLayoutType = (type = "default") => dRender.isLayoutType(type);
export { getH5InputComponent, getInputComponent, getViewComponent, isLayoutType };