@fy-/fws-vue 2.3.87 → 2.3.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -99,6 +99,7 @@ const props = withDefaults(
|
|
|
99
99
|
selectedCountText?: string
|
|
100
100
|
// Save order support
|
|
101
101
|
saveOrderText?: string
|
|
102
|
+
reorderButtonText?: string
|
|
102
103
|
onSaveOrder?: Function
|
|
103
104
|
showSaveOrder?: boolean
|
|
104
105
|
getItemPosition?: Function
|
|
@@ -131,6 +132,7 @@ const props = withDefaults(
|
|
|
131
132
|
selectedCountText: 'selected',
|
|
132
133
|
// Save order defaults
|
|
133
134
|
saveOrderText: 'Save Order',
|
|
135
|
+
reorderButtonText: 'Reorder',
|
|
134
136
|
onSaveOrder: undefined,
|
|
135
137
|
showSaveOrder: false,
|
|
136
138
|
getItemPosition: (item: any, index: number) => item.UserIndex ?? index,
|
|
@@ -939,7 +941,7 @@ onUnmounted(() => {
|
|
|
939
941
|
class="px-4 py-2 rounded-lg font-medium text-sm transition-colors bg-blue-600 hover:bg-blue-700 text-white"
|
|
940
942
|
@click="toggleReorderMode"
|
|
941
943
|
>
|
|
942
|
-
{{
|
|
944
|
+
{{ reorderButtonText }}
|
|
943
945
|
</button>
|
|
944
946
|
</div>
|
|
945
947
|
|
|
@@ -1130,8 +1132,8 @@ onUnmounted(() => {
|
|
|
1130
1132
|
type="number"
|
|
1131
1133
|
min="0"
|
|
1132
1134
|
:value="getItemPosition(images[i - 1], i - 1)"
|
|
1133
|
-
class="w-
|
|
1134
|
-
@change="(e: Event) => onPositionChange(images[i - 1], parseInt((e.target as HTMLInputElement).value))"
|
|
1135
|
+
class="w-20 h-8 text-xs text-center rounded border-1 border-blue-400 bg-white/95 dark:bg-black/95 dark:text-white font-bold"
|
|
1136
|
+
@change="(e: Event) => onPositionChange ? onPositionChange(images[i - 1], parseInt((e.target as HTMLInputElement).value)) : () => {}"
|
|
1135
1137
|
@click.stop
|
|
1136
1138
|
>
|
|
1137
1139
|
</div>
|