liquor-tree icon indicating copy to clipboard operation
liquor-tree copied to clipboard

it can same event call ? '@node:selected'

Open FactAttacker opened this issue 5 years ago • 5 comments

hello ! this is good library! I'm not very good at English ! Please acknowledge.

ex) <tree ... @node:seleted="getSeletedData" />

data(){ return{ isNodeClicker:0; } }, method:{ getSeletedData(node){ ++this.isNodeClicker ; }, }

This does not apply when it choose the same thing.

FactAttacker avatar Apr 23 '19 07:04 FactAttacker

Hi. Please check: https://jsfiddle.net/gjmou9fa/

amsik avatar Apr 23 '19 08:04 amsik

Thanks for the answer!!!

But ..[ https://jsfiddle.net/gjmou9fa/ ] Not resolved

current ex) ltem2 (click) -> ltem2 (click) -> ltem2 (click)

  • log [ Item2]

but what I want ex) ltem2 (click) -> ltem2 (click) -> ltem2 (click)

  • log [ Item2] [ Item2] [ Item2]

I need click event

Is it impossible?

And thanks for the quick answer.

FactAttacker avatar Apr 23 '19 08:04 FactAttacker

I've added a new event: node:clicked. You can try it in the new version (0.2.54)

amsik avatar Apr 23 '19 11:04 amsik

Wow!! thanks !! I did not know you would do this. I got a new version and this is good.

if you are not uncomfortable.. can I ask for an issue from time to time?

FactAttacker avatar Apr 24 '19 02:04 FactAttacker

Yeah, sure :)

amsik avatar Apr 24 '19 09:04 amsik