How to use the @form-create/core.VNode 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 / element-ui / src / core / modal.js View on Github external
import {VNode, Vue} from '@form-create/core';
import {isUndef} from '@form-create/utils';

const vNode = new VNode({});
const Modal = (options, cb) => {
    if (isUndef(options.width)) options.width = '30%';
    return {
        name: 'fc-modal',
        data() {
            return {
                visible: true,
                ...options
            }
        },
        render() {
            vNode.setVm(this);
            return vNode.modal({
                props: this.$data,
                on: {
                    close: this.onClose,
github xaboy / form-create / packages / iview / src / _form.js View on Github external
constructor(fComponent) {
        let {id, vm, fieldList, handlers} = fComponent;
        this.vm = vm;
        this.handlers = handlers;
        this.renderSort = fieldList;
        this.fc = fComponent;
        this.vNode = new VNode(vm);
        this.vData = new VData();
        this.unique = id;
        this.refName = `cForm${id}`;
        this.cacheUnique = 0;
    }
github xaboy / form-create / packages / element-ui / src / form.js View on Github external
constructor(fComponent) {
        let {id, vm, fieldList, handlers} = fComponent;
        this.vm = vm;
        this.handlers = handlers;
        this.renderSort = fieldList;
        this.fc = fComponent;
        this.vNode = new VNode(vm);
        this.vData = new VData();
        this.unique = id;
        this.refName = `cForm${id}`;
        this.cacheUnique = 0;
    }
github xaboy / form-create / packages / iview / src / core / modal.js View on Github external
import {Vue, VNode} from '@form-create/core';

const vNode = new VNode();
const Modal = (options, cb) => {
    return {
        name: 'fc-modal',
        data() {
            return {
                value: true,
                ...options
            }
        },
        render() {
            vNode.setVm(this);
            return vNode.modal({
                props: this.$data,
                on: {
                    'on-visible-change': this.remove
                }

@form-create/core

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

MIT
Latest version published 15 days ago

Package Health Score

79 / 100
Full package analysis