Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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() {
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);
}
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;
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);
}