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

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 3 months ago

Package Health Score

78 / 100
Full package analysis