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

Can provide a way to achieve loop

Open FreezingRiver opened this issue 5 years ago • 12 comments

as title

FreezingRiver avatar Aug 07 '18 06:08 FreezingRiver

circular option is intended for the same purpose. Set it to true to start from top again and false if you want to start list in reverse when completed.

Let me know if it serve the purpose.

mubaidr avatar Aug 07 '18 14:08 mubaidr

I know circular , what i mean is the seamless loop,not back to the top. Such as when the first loop end, copy the loop data and push it.I have tried to modify your code but failed.

FreezingRiver avatar Aug 08 '18 06:08 FreezingRiver

Now I understand, but currently it is not possible. I will add this in next version.

mubaidr avatar Aug 08 '18 15:08 mubaidr

Any update on loop? Thanks @mubaidr

gongzemin avatar Jun 11 '19 09:06 gongzemin

I do plant to push this feature over the coming days. Stay tuned!

mubaidr avatar Jun 11 '19 09:06 mubaidr

Great! Can you tell me what's your thoughts? How to copy the loop data and push it? Many thanks

gongzemin avatar Jun 11 '19 09:06 gongzemin

This should work:

  • Use computed list instead of directly rendering prop words
  • Add new option continuous to component as prop
  • If the new option (continuous) is true then on completion (final item), slice all the items from the list and insert into array at the end. https://github.com/mubaidr/vue-swimlane/blob/master/src/component/vue-swimlane.vue#L155

You are most welcome to try and implement this, It would be appreciated. 👍

@FreezingRiver

mubaidr avatar Jun 11 '19 10:06 mubaidr

I probably know how to do it.But I have too much work to do this month , I will try after the work is done.

FreezingRiver avatar Jun 13 '19 03:06 FreezingRiver

I have cleaned and refactor the plugin code to improve readability and major layout refinements.

Continuous option can be implemented here: https://github.com/mubaidr/vue-swimlane/blob/master/src/component/vue-swimlane.vue#L156

mubaidr avatar Jun 22 '19 18:06 mubaidr

Continuous option is implemented but the animation breaks for this option. Seems like have to opt for Vue transitions for this.

mubaidr avatar Jun 24 '19 07:06 mubaidr

Hi, any update?

gongzemin avatar Jan 15 '20 02:01 gongzemin

Please use the continous option for this effect.

mubaidr avatar Jan 15 '20 03:01 mubaidr