How to use the @form-create/utils.toArray 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 / element-ui / src / components / frame / index.jsx View on Github external
value(n) {
            this.$emit('on-change', n);
            this.fileList = toArray(n);
        },
        fileList(n) {
github xaboy / form-create / packages / iview / src / components / frame / index.jsx View on Github external
value(n) {
            this.$emit('on-change', n);
            this.fileList = toArray(n);
        },
        fileList(n) {
github xaboy / form-create / packages / framework / src / factory / vData.js View on Github external
directives(directives) {
        if (isUndef(directives)) return this;
        $set(this._data, 'directives', this._data.directives.concat(toArray(directives)));
        return this;
    }
github xaboy / form-create / packages / iview / src / components / frame / index.jsx View on Github external
data() {
        return {
            modalVm: null,
            fileList: toArray(this.value),
            unique: uniqueId()
        }
    },
    watch: {
github xaboy / form-create / packages / iview / src / components / tree / index.jsx View on Github external
value(n) {
            n = toArray(n);
            const data = this.$refs.tree.data;
            this.type === 'selected' ? this.selected(data, n) : this.checked(data, n);
        }
    },
github xaboy / form-create / packages / iview / src / components / tree / handler.js View on Github external
toFormValue(value) {
        value = toArray(value);
        this.choose(value);
        this.parseValue = value;
        return value;
    }
github xaboy / form-create / packages / iview / src / components / upload / index.jsx View on Github external
value(n) {
            if (this.$refs.upload.fileList.every(file => {
                return !file.status || file.status === 'finished';
            })) {
                this.$refs.upload.fileList = toArray(n).map(parseFile);
                this.uploadList = this.$refs.upload.fileList;
            }
        },
        maxLength(n, o) {
github xaboy / form-create / packages / element-ui / src / components / frame / index.jsx View on Github external
data() {
        return {
            modalVm: null,
            fileList: toArray(this.value),
            unique: uniqueId()
        }
    },
    watch: {
github xaboy / form-create / packages / element-ui / src / components / upload / index.jsx View on Github external
created() {
        if (this.ctx.props.showFileList === undefined)
            this.ctx.props.showFileList = false;
        this.ctx.props.fileList = toArray(this.value).map(parseFile);
    },
    watch: {
github xaboy / form-create / packages / element-ui / src / components / tree / index.jsx View on Github external
setValue() {
            const type = (this.type).toLocaleLowerCase();

            if (type === 'selected')
                this.$refs.tree.setCurrentKey(this.value);
            else
                this.$refs.tree.setCheckedKeys(toArray(this.value));
        }
    },