vue-orgchart icon indicating copy to clipboard operation
vue-orgchart copied to clipboard

schedule

Open verilog15 opened this issue 7 years ago • 9 comments

Good luck with your new project! Can you provide a schedule for the project? I was waiting a long time to use org chart with Vue. Thank you!

verilog15 avatar Oct 24 '18 08:10 verilog15

Hi @verilog15 , I just released 1.0 version of vue-organization-chart on npmjs.com. I think it will be a good start point though current component only can render the orgchart without too much options which jquery orgchart plugin has exposed. Additionally, feel free to play around with Demo on CodeSandbox and tell me your interesting ideas 😊

dabeng avatar Dec 21 '18 15:12 dabeng

Hi @dabeng, That is so great! You don't have an idea how much I waited for a good Vue library which deals with orgchars. I was using your JQuery project with my Vue wrapper. I will be more than glad to replace it with your Vue project. Which JQuery options I can use for now? The main options which I would like to use are:

  1. pan & zoom - Also please provide an exposed function so I can insert into a button.
  2. direction.
  3. nodeContent.
  4. createNode - Also please provide an exposed function so I can open a modal when pressing a specific node.
  5. An exposed function of the image downloader so I can insert into a button.
  6. An exposed function of the JSON downloader so I can insert into a button.

All those features are available on the JQuery project. Is it possible to create those options on this project? Also is there a table with all available options which I can use? (like the one you have in the JQuery project).

Thank you again for all your hard work!

verilog15 avatar Dec 22 '18 23:12 verilog15

Hi @verilog15 . I'm glad that vue-organization-chart could be introduced into your new Vue project 😊 . I added zoom option just now and will expose more option according to the APIs of jquery orgchart in the feature.

dabeng avatar Dec 30 '18 23:12 dabeng

Hi @dabeng, I started using your project :) How can I use those features I mentioned above? Only zoom works for me, for now (I used "datasource").

verilog15 avatar Jan 03 '19 23:01 verilog15

@dabeng Any good news for us? :)

verilog15 avatar Jan 15 '19 22:01 verilog15

Look forward to your good news,happy new year

chaoYrAx avatar Jan 30 '19 03:01 chaoYrAx

Happy spring festival 😊

dabeng avatar Feb 03 '19 13:02 dabeng

Hi @verilog15 @chaoYrAx. I have to say sorry. For various reasons, I only spared two days to update vue-orgchart during my Chinese New Year holiday. For now, there is the following available attributes and slot and you can find some new Demos on codesandbox.io.

Attributes

NameTypeRequiredDefaultDescription
datasourcejsonyesdatasource usded to build out structure of orgchart. It could be a json object.
panbooleannofalseUsers could pan the orgchart by mouse drag&drop if they enable this attribute.
zoombooleannofalseUsers could zoomin/zoomout the orgchart by mouse wheel if they enable this attribute.
zoomin-limitnumberno7Users are allowed to set a zoom-in limit.
zoomout-limitnumberno0.5Users are allowed to set a zoom-out limit.

Scoped Slots

<template slot-scope="{ nodeData }">
  <!-- feel free to customize the internal structure of node -->
</template>

dabeng avatar Feb 20 '19 08:02 dabeng

Hi @dabeng - thanks for this great library!

Any idea if you'll be able to add the direction and createNode attributes?

nickcoats avatar May 22 '19 15:05 nickcoats