How to use the @form-create/utils.debounce function in @form-create/utils

To help you get started, we’ve selected a few @form-create/utils 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 / core / src2 / factory / render.js View on Github external
import {
    $nt,
    debounce,
    errMsg,
    extend,
    isFunction,
    isString,
    isUndef,
    isValidChildren,
    uniqueId
} from '@form-create/utils';
import VNode from './vNode';
import VData from './vData';
import {_vue as Vue} from '../formCreate';

const $de = debounce((fn) => fn(), 1);

export default class Render {

    constructor(handler) {
        this.vm = handler.vm;
        this.handler = handler;
        this.options = handler.fc.options;
        this.vNode = new VNode(this.vm);
        this.vData = new VData;
        this.cache = null;
        this.$tickEvent = [];

        this.init();
    }

    init() {
github xaboy / form-create / packages / core / src2 / formCreate.js View on Github external
constructor(rules, options = {}) {
            this.fRender = undefined;
            this.fCreateApi = undefined;
            this.$parent = undefined;
            this.id = uniqueId();
            this.validate = {};
            this.__init(rules, options);
            initStyle();
            this.$tick = debounce((fn) => fn(), 150);
        }
github xaboy / form-create / packages / core / src / core / render.js View on Github external
import {_vue as Vue} from './index';
import {debounce, errMsg, isFunction, isString, isUndef, isValidChildren} from '@form-create/utils';
import VNode from '../factory/vNode';
import VData from '../factory/vData';


const $de = debounce((fn) => fn(), 1);

export default class Render {
    constructor(handle) {
        this.$handle = handle;
        this.fc = handle.fc;
        this.vm = handle.vm;
        this.options = handle.options;
        this.$form = handle.$form;
        this.vNode = new VNode(this.vm);
        this.vData = new VData();
        this.cache = {};
        this.renderList = {};
    }

    clearCache(parser, clear = true) {
        if (!this.cache[parser.id]) return;
github xaboy / form-create / packages / framework / src / core / formCreate.js View on Github external
constructor(rules, options = {}) {
            this.fCreateApi = undefined;
            this.$parent = undefined;
            this.drive = drive;
            this.vm = undefined;
            this.rules = Array.isArray(rules) ? rules : [];
            initStyle();
            this.options = margeGlobal(options);
            this.$tick = debounce((fn) => fn(), 150);
        }