How to use the @form-create/utils.$del 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 / src / core / handle.js View on Github external
removeField(parser, value) {
        const {id, field} = parser, index = this.sortList.indexOf(id);

        delParser(parser, value);
        $del(this.parsers, id);

        if (index !== -1) {
            this.sortList.splice(index, 1);
        }

        if (!this.fieldList[field]) {
            $del(this.validate, field);
            $del(this.formData, field);
            $del(this.customData, field);
            $del(this.fieldList, field);
            $del(this.trueData, field);
        }
    }
github xaboy / form-create / packages / core / src2 / formCreate.js View on Github external
removeField(field) {
            if (this.handlers[field] === undefined) return;
            const index = this.fieldList.indexOf(field);

            delHandler(this.handlers[field]);
            $del(this.handlers, field);
            $del(this.validate, field);

            if (index !== -1) {
                this.fieldList.splice(index, 1);
            }

            this.vm._removeField(field);
        }
github xaboy / form-create / packages / core / src / core / handle.js View on Github external
removeField(parser, value) {
        const {id, field} = parser, index = this.sortList.indexOf(id);

        delParser(parser, value);
        $del(this.parsers, id);

        if (index !== -1) {
            this.sortList.splice(index, 1);
        }

        if (!this.fieldList[field]) {
            $del(this.validate, field);
            $del(this.formData, field);
            $del(this.customData, field);
            $del(this.fieldList, field);
            $del(this.trueData, field);
        }
    }
github xaboy / form-create / packages / core / src2 / formCreate.js View on Github external
removeField(field) {
            if (this.handlers[field] === undefined) return;
            const index = this.fieldList.indexOf(field);

            delHandler(this.handlers[field]);
            $del(this.handlers, field);
            $del(this.validate, field);

            if (index !== -1) {
                this.fieldList.splice(index, 1);
            }

            this.vm._removeField(field);
        }
github xaboy / form-create / packages / core / src / core / handle.js View on Github external
removeField(parser, value) {
        const {id, field} = parser, index = this.sortList.indexOf(id);

        delParser(parser, value);
        $del(this.parsers, id);

        if (index !== -1) {
            this.sortList.splice(index, 1);
        }

        if (!this.fieldList[field]) {
            $del(this.validate, field);
            $del(this.formData, field);
            $del(this.customData, field);
            $del(this.fieldList, field);
            $del(this.trueData, field);
        }
    }
github xaboy / form-create / packages / core / src / core / handle.js View on Github external
removeField(parser, value) {
        const {id, field} = parser, index = this.sortList.indexOf(id);

        delParser(parser, value);
        $del(this.parsers, id);

        if (index !== -1) {
            this.sortList.splice(index, 1);
        }

        if (!this.fieldList[field]) {
            $del(this.validate, field);
            $del(this.formData, field);
            $del(this.customData, field);
            $del(this.fieldList, field);
            $del(this.trueData, field);
        }
    }