How to use the @form-create/utils.deepExtend 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 / api.js View on Github external
updateOptions(options) {
            deepExtend(h.options, options);
            this.refresh(true);
        },
        onSubmit(fn) {
github xaboy / form-create / packages / core / src2 / formCreate.js View on Github external
function margeGlobal(_options) {
        if (isBool(_options.sumbitBtn))
            $set(_options, 'sumbitBtn', {show: _options.sumbitBtn});
        if (isBool(_options.resetBtn))
            $set(_options, 'resetBtn', {show: _options.resetBtn});
        let options = deepExtend(extend(drive.getConfig(), getBaseConfig()), _options);

        $set(options, 'el', !options.el
            ? window.document.body
            : (isElement(options.el)
                ? options.el
                : document.querySelector(options.el)
            ));

        return options;
    }
github xaboy / form-create / packages / framework / src / core / formCreate.js View on Github external
function margeGlobal(_options) {
        if (isBool(_options.sumbitBtn))
            $set(_options, 'sumbitBtn', {show: _options.sumbitBtn});
        if (isBool(_options.resetBtn))
            $set(_options, 'resetBtn', {show: _options.resetBtn});
        let options = deepExtend(extend(drive.getConfig(), getBaseConfig()), _options);

        $set(options, 'el', !options.el
            ? window.document.body
            : (isElement(options.el)
                ? options.el
                : document.querySelector(options.el)
            ));

        return options;
    }
github xaboy / form-create / packages / core / src / core / api.js View on Github external
getValue(field) {
            const parser = h.fieldList[field];
            if (!parser) return;
            return deepExtend({}, {value: parser.rule.value}).value;
        },
        setValue(field, value) {
github xaboy / form-create / packages / core / src / core / handle.js View on Github external
Object.keys(this.parsers).forEach((id) => {
            let parser = this.parsers[id];
            if (parser.watch.length === 0) this.addParserWitch(parser);

            parser.el = vm.$refs[parser.refName] || {};

            if (parser.defaultValue === undefined)
                parser.defaultValue = deepExtend({}, {value: parser.rule.value}).value;

            parser.mounted && parser.mounted();
        });
    }
github xaboy / form-create / packages / core / src / components / mixins.js View on Github external
_resetProps(props) {
                this.$set(this, 'resetProps', deepExtend(this.resetProps, props));
            },
            _refresh() {
github xaboy / form-create / packages / core / src / components / mixins.js View on Github external
_buttonProps(props) {
                this.$set(this, 'buttonProps', deepExtend(this.buttonProps, props));
            },
            _resetProps(props) {