Reorder

组件 Reorder 允许您拖动以重新排列列表中的项目。

基本用法

  • 🍅 Tomato
  • 🥒 Cucumber
  • 🧀 Cheese
  • 🥬 Lettuce

布局使用

🍅

重新排序组属性

PropDefaultType
axis
y
'x' | 'y'
重新排序的轴。要使两个轴都可拖动,设置 ``
onUpdate:values
-
(newOrder: V[]) => void
拖动结束时的回调函数,用于触发新值顺序。
values
[]
V[]
最新值状态。

= ::

重排项属性

PropDefaultType
value
V
该组件所代表的列表中的值。