How to use the @form-create/core.Creator.prototype function in @form-create/core

To help you get started, we’ve selected a few @form-create/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xaboy / form-create / packages / iview / src / core / index.js View on Github external
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;

    if (!isPlainObject(key)) {
        event = {[key]: value}
    } else {
        event = key;
    }

    Object.keys(event).forEach((eventName) => {
        const name = toString(eventName).indexOf('on-') === 0 ? eventName : `on-${eventName}`;
        this.on(name, event[eventName]);
    });
    return this;
};

if (typeof window !== 'undefined') {

@form-create/core

vue动态表单,助你轻松搞定表单|form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports 3 UI frameworks, and supports the generation of any Vue components. Built-in 20

MIT
Latest version published 1 month ago

Package Health Score

83 / 100
Full package analysis