Skip to content
This repository was archived by the owner on Mar 17, 2024. It is now read-only.

Commit e000f24

Browse files
committed
fix(vuefer): reordable list on disable
1 parent 65fa242 commit e000f24

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/vuefer/lib/abstract/ReordableListViewDelegate.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import { reactive } from 'vue'
22
import { GridViewItemPosition, GridViewItemPreBuidler } from './Grid'
33
export class ReordableListViewDelegate<TPosition extends GridViewItemPosition> {
44
reactVal: GridViewItemPreBuidler<TPosition>[] = reactive([])
5-
get sortedReactVal() {
6-
return this.reactVal.sort((a, b) => a.position.y - b.position.y)
7-
}
5+
86
constructor({
97
gridViewItems,
108
}: {

packages/vuefer/lib/components/ReordableListView.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export const ReordableListView = <TPosition extends GridViewItemPosition>({
127127
)
128128
: h(
129129
<div class={[_debugClasses, 'flex flex-col']}>
130-
{...delegate.sortedReactVal.map((el) => h(el.widget))}
130+
{...delegate.reactVal.map((el) => h(el.widget))}
131131
</div>
132132
)
133133
},

0 commit comments

Comments
 (0)