How to use @form-create/core - 10 common examples

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 / element-ui / src / components / timePicker / index.js View on Github external
import handler from "./handler";
import {creatorTypeFactory} from "@form-create/core";
import Render from '../../factory/render';

const name = "timePicker";

const render = Render.factory(name, true);

const maker = {
    time: creatorTypeFactory(name, (m) => m.props.isRange = false),
    timeRange: creatorTypeFactory(name, (m) => m.props.isRange = true)
};

export default {handler, render, name, maker};
github xaboy / form-create / packages / element-ui / src / makers / datePicker.js View on Github external
export default ['year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimeRange', 'dateRange'].reduce((initial, type) => {
    initial[type] = creatorTypeFactory(name, type.toLowerCase());
    return initial
}, {});
github xaboy / form-create / packages / element-ui / src / makers / timePicker.js View on Github external
import {creatorTypeFactory} from '@form-create/core';

const name = 'timePicker';

export default {
    time: creatorTypeFactory(name, (m) => m.props.isRange = false),
    timeRange: creatorTypeFactory(name, (m) => m.props.isRange = true)
};
github xaboy / form-create / packages / element-ui / src / components / slider / index.js View on Github external
import handler from "./handler";
import {creatorTypeFactory} from "@form-create/core";
import Render from '../../factory/render';

const name = "slider";

const maker = {
    sliderRange: creatorTypeFactory(name, true, 'range')
};

const render = Render.factory(name);

export default {handler, render, name, maker};
github xaboy / form-create / packages / iview / src / components / datePicker / index.js View on Github external
const maker = ['date', 'dateRange', 'dateTime', 'dateTimeRange', 'year', 'month'].reduce((initial, type) => {
    initial[type] = creatorTypeFactory(name, type.toLowerCase());
    return initial
}, {});
github xaboy / form-create / packages / iview / src / makers / timePicker.js View on Github external
import {creatorTypeFactory} from '@form-create/core';

const name = 'timePicker';

export default {
    time: creatorTypeFactory(name, 'time'),
    timeRange: creatorTypeFactory(name, 'timerange')
};
github xaboy / form-create / packages / element-ui / src / components / datePicker / index.js View on Github external
const maker = ['year', 'month', 'date', 'dates', 'week', 'datetime', 'datetimeRange', 'dateRange'].reduce((initial, type) => {
    initial[type] = creatorTypeFactory(name, type.toLowerCase());
    return initial
}, {});
github xaboy / form-create / packages / element-ui / src / switch / index.js View on Github external
import {Handler as handler, creatorTypeFactory} from "@form-create/core";
import render from "./render";

const name = "switch";

const maker = {
    sliderRange: creatorTypeFactory(name, true, 'range')
};

export default {handler, render, name, maker};
github xaboy / form-create / packages / iview / src / components / input / index.js View on Github external
import parser from './parser';
import {creatorTypeFactory} from '@form-create/core';

const name = 'input';

const maker = ['password', 'url', 'email', 'text', 'textarea'].reduce((initial, type) => {
    initial[type] = creatorTypeFactory(name, type);
    return initial;
}, {});

maker.idate = creatorTypeFactory(name, 'date');


export default {parser, name, maker};
github xaboy / form-create / packages / element-ui / src / makers / frame.js View on Github external
const maker = Object.keys(types).reduce((maker, key) => {
    maker[key] = creatorTypeFactory(name, m => m.props({type: types[key][0], maxLength: types[key][1]}));
    return maker
}, {});

@form-create/core

FormCreate低代码表单渲染引擎,可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单。支持6个UI框架,适配移动端,并且支持生成任何 Vue 组件。

MIT
Latest version published 14 days ago

Package Health Score

76 / 100
Full package analysis