Skip to content

sync changes with datasource #2

@qyloxe

Description

@qyloxe

currently this code:

updateItem(itemValue) {
                const index = this.localValue.findIndex(v => v[this.rowKey] === itemValue[this.rowKey]);
                this.$set(this.localValue, index, itemValue);
                this.$emit("input", this.localValue);
            }

emits the whole tree struct from this.localValue. It would be helpful to also emit only changes after dropping the node. This event should have source node, target node, source position, target position etc.
With such event it would be possible to efficently synchronize state in big (1000+ nodes) trees.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions