vue-multiselect-listbox icon indicating copy to clipboard operation
vue-multiselect-listbox copied to clipboard

Is this compatible with the new composition API?

Open brdhunga opened this issue 4 years ago • 12 comments

Is this compatible with the new composition API?

brdhunga avatar Nov 14 '20 14:11 brdhunga

I haven't tried with the composition API, but I can take a look at it this weekend and then get back to you.

abhimediratta avatar Nov 24 '20 08:11 abhimediratta

I'm working on a new version for Vue 3, so this is coming soon.

abhimediratta avatar Oct 17 '22 07:10 abhimediratta

i'm waiting new version for Vue 3.

limbyungki avatar Nov 27 '22 09:11 limbyungki

It's already in this branch migrate/vue-3, but just needs some more testing and then release it to npm

abhimediratta avatar Nov 29 '22 07:11 abhimediratta

it's still not out? what a waste. It doesn't work on vue3.

WisdomSky avatar Jan 02 '23 07:01 WisdomSky

@WisdomSky I haven't got the time to work on it. Feel free to use that branch though.

abhimediratta avatar Jan 02 '23 08:01 abhimediratta

Hello ! does this work with vue3 ? Thanks !

cams03 avatar Feb 17 '23 10:02 cams03

This version 1.0.0-0 works with Vue 3. It has just been released.

abhimediratta avatar Feb 20 '23 11:02 abhimediratta

This version 1.0.0-0 works with Vue 3. It has just been released.

ok I tried to use in my code but then I have this error in my window 👍 image

I ran npm install --save vue-multiselect-listbox imported it in my component : import vMultiselectListbox from 'vue-multiselect-listbox' , import 'vue-multiselect-listbox/dist/vue-multi-select-listbox.css', components: { vMultiselectListbox, },, <v-multiselect-listbox v-model="selectedRoles" :options="rolesList" ></v-multiselect-listbox> but still have this error like on the picture I send. Any idea where is the problem please @abhimediratta ?

cams03 avatar Feb 20 '23 13:02 cams03

@cams03, did you solve the error? I am doing the exactly same thing of you. @abhimediratta, I am having a similar problem in here.

The company decided to update Vue version to 3 and it is a breaking change.

When rendering the basic array of strings or numbers:

<v-multiselect-listbox :options="['Alabama', 'California']"></v-multiselect-listbox>

I see this error: Captura de Tela 2023-06-27 às 12 54 50

When I try to render an array of objects:

<v-multiselect-listbox :options="[{label: 'Alabama', code: 'al'}, {label: 'California', code: 'cal'}]"
                       :reduce-display-property="(option) => option.label"
                       :reduce-value-property="(option) => option.code">
</v-multiselect-listbox>

I see this warning: Captura de Tela 2023-06-27 às 13 00 25

arnonrdp avatar Jun 27 '23 16:06 arnonrdp

@arnonrdp I fixed the error yes, but I'm sorry it was a long time ago and I don't remember how... I also removed the plugin in the end and made it from scratch so I can't even tell you what was my solution, sorry !

cams03 avatar Jun 30 '23 08:06 cams03

Don't feel bad @cams03. Yesterday I decide to do the same from scratch.

I'll leave it here in case anyone needs it in the future: https://codepen.io/arnonrdp/pen/yLQMdgv

arnonrdp avatar Jun 30 '23 10:06 arnonrdp