holiber / sl-vue-tree

Customizable draggable tree component for Vue.js
MIT License
344 stars 79 forks source link

Component prop isDraggable is not support #68

Open nick-running opened 4 years ago

nick-running commented 4 years ago

Glad that our project used your component. I have a issue that you mentioned the newest version v1.8.4 include feature isDraggable since v1.7.0. but it's no any effect when i set isDraggable prop on that component. I searched your relate solved issue to solve that disabled drag effect from #12 . but that solution is not good for doing this. hope you can start complete this feature.

derrabauke commented 3 years ago

@nick-running

I have a issue that you mentioned the newest version v1.8.4 include feature isDraggable since v1.7.0. but it's no any effect when i set isDraggable prop on that component.

It's not ment to be used as component prop, instead you have to apply it to each item in the tree like the Interface states:

interface ISlTreeNodeModel<TDataType> {
    title: string;
    ...
    isSelected?: boolean;
    isDraggable?: boolean;
    ...
}

I was trying it as a component prop as well until I figured it out. 😄