ion-reorder

Ionic4项目中我们可以使用Ionic4排序组件ion-reorder对项目进行布局。

Reorder is a component that allows an item to be dragged to change its order. It must be used within an ion-reorder-group to provide a visual drag and drop interface.

ion-reorder is the anchor users will use to drag and drop items inside the ion-reorder-group. It must be added to ion-item in order for them to be draggable.

<ion-item>
  <ion-label>
    Item
  ion-label>
  <ion-reorder slot="end">ion-reorder>
ion-item>

The position of the