diff --git a/src/components/picklist/PickList.vue b/src/components/picklist/PickList.vue index 899853fca..eb7ac682e 100644 --- a/src/components/picklist/PickList.vue +++ b/src/components/picklist/PickList.vue @@ -135,7 +135,8 @@ export default { this.$emit('reorder', { originalEvent: event, value: value, - direction: this.reorderDirection + direction: this.reorderDirection, + listIndex: listIndex }); } }, diff --git a/src/views/orderlist/OrderListDoc.vue b/src/views/orderlist/OrderListDoc.vue index 57771fa65..2cdeb26ce 100644 --- a/src/views/orderlist/OrderListDoc.vue +++ b/src/views/orderlist/OrderListDoc.vue @@ -9,7 +9,7 @@ import OrderList from 'primevue/orderlist';

Getting Started

OrderList requires an array as its value bound with the v-model directive and a template for its content.

-

Header of the component is defined with the "header" template and to define the content of an item in the list a named templated called "item" needs to be defined which gets the +

Header of the component is defined with the "header" template and to define the content of an item in the list a named template called "item" needs to be defined which gets the item and the index via slotProps.

@@ -37,7 +37,7 @@ import OrderList from 'primevue/orderlist';