Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import components from '../components';
import parsers from '../parsers';
import getConfig from './config';
import getGlobalApi from './api';
import nodes from './nodes';
import formRender from './form';
import createFormCreate, {Creator, VNode} from '@form-create/core';
import makers from '../makers';
import {isPlainObject, toString} from '@form-create/utils';
VNode.use(nodes);
export const drive = {
ui: process.env.UI,
version: process.env.VERSION,
formRender,
components,
parsers,
makers,
getGlobalApi,
getConfig,
};
const {FormCreate, install} = createFormCreate(drive);
Creator.prototype.event = function (key, value) {
let event;