Unable to use it in Browser
creativenoobie opened this issue · 4 comments
creativenoobie commented
Hey,
I'm trying to use this library via Unpkg and while registering the component I got an error:
Uncaught ReferenceError: Vue2OrgTree is not defined
Here's the codepen:
https://codepen.io/anon/pen/vzbdwX
hukaibaihu commented
Have been fixed!
Please upgrade to v1.1.0
Thanks!
creativenoobie commented
Hey,
Thank you for responding.
My codepen is still not working. Getting same error even after Updating to 1.1.0;
Here's the link:
https://codepen.io/anon/pen/pOXxbz
hukaibaihu commented
creativenoobie commented
I think you should define ` renderContent`, ` onExpand`, ` onNodeClick` and
`collapse` as default functions too.
That way, developers won't have to define the same function again and again
in case of multiple usage. It's good to provide them as props in order to
increase flexibility but there should be a default function as well.
…On Wed, Sep 26, 2018 at 6:10 PM Ste7en ***@***.***> wrote:
Please refer to
https://github.com/hukaibaihu/vue-org-tree/blob/gh-pages/index.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWcU4b6EEWA0zLV9CZ4LbOJxDwFCBzHXks5ue3XWgaJpZM4WyTRz>
.