holiber / sl-vue-tree

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

How to use import #64

Open elalienx opened 5 years ago

elalienx commented 5 years ago

Hi, great node tree component.

There is a way to use in a Vue CLI 3.0 project that uses import to get the node modules, instead of using a script tag?

holiber commented 5 years ago

es imports should work fine

import SlVueTree, { ISlTreeNode, ISlTreeNodeModel, ICursorPosition } from 'sl-vue-tree';
rudda commented 4 years ago

It's works for me.... It's possible add it on readme.md file?