I recently started using Vue-Cli3.0 and came across this interesting module for Vue.js called https://github.com/holiber/sl-vue-tree
It's a customizable draggable tree component for Vue.js, but I encountered an issue where it couldn't copy functions of objects.
I found the specific line causing the problem in the source code here: https://github.com/holiber/sl-vue-tree/blob/master/src/sl-vue-tree.js#L715
The solution was to use another module and modify the copy function. I used https://www.npmjs.com/package/clone for this purpose.
var clone = require('clone');
copy(entity) {
return clone(entity)
},
By implementing this change, the object functions were copied correctly without any performance issues. However, I still encountered a console error message.
[Vue warn]: Invalid default value for prop "multiselectKey": Props with type Object/Array must use a factory function to return the default value.
found in
---> <SlVueTree>
I'm looking for a way to eliminate this error message. Any suggestions or insights would be greatly appreciated. Thank you for taking the time to read my question.