@fy-/fws-vue 2.3.84 → 2.3.85
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.
|
@@ -97,6 +97,10 @@ const props = withDefaults(
|
|
|
97
97
|
selectAllText?: string
|
|
98
98
|
clearSelectionText?: string
|
|
99
99
|
selectedCountText?: string
|
|
100
|
+
// Save order support
|
|
101
|
+
saveOrderText?: string
|
|
102
|
+
onSaveOrder?: Function
|
|
103
|
+
showSaveOrder?: boolean
|
|
100
104
|
}>(),
|
|
101
105
|
{
|
|
102
106
|
modelValue: 0,
|
|
@@ -123,6 +127,10 @@ const props = withDefaults(
|
|
|
123
127
|
selectAllText: 'Select All',
|
|
124
128
|
clearSelectionText: 'Clear',
|
|
125
129
|
selectedCountText: 'selected',
|
|
130
|
+
// Save order defaults
|
|
131
|
+
saveOrderText: 'Save Order',
|
|
132
|
+
onSaveOrder: undefined,
|
|
133
|
+
showSaveOrder: false,
|
|
126
134
|
},
|
|
127
135
|
)
|
|
128
136
|
|
|
@@ -933,6 +941,13 @@ onUnmounted(() => {
|
|
|
933
941
|
>
|
|
934
942
|
{{ cancelButtonText }}
|
|
935
943
|
</button>
|
|
944
|
+
<button
|
|
945
|
+
v-if="showSaveOrder && onSaveOrder"
|
|
946
|
+
class="px-4 py-1.5 text-sm bg-blue-600 hover:bg-blue-700 text-white rounded-md transition-colors font-medium"
|
|
947
|
+
@click="onSaveOrder()"
|
|
948
|
+
>
|
|
949
|
+
{{ saveOrderText }}
|
|
950
|
+
</button>
|
|
936
951
|
<button
|
|
937
952
|
class="px-4 py-1.5 text-sm bg-red-600 hover:bg-red-700 text-white rounded-md transition-colors font-medium"
|
|
938
953
|
:disabled="localSelectedItems.size === 0"
|
|
@@ -1118,6 +1133,13 @@ onUnmounted(() => {
|
|
|
1118
1133
|
>
|
|
1119
1134
|
{{ cancelButtonText }}
|
|
1120
1135
|
</button>
|
|
1136
|
+
<button
|
|
1137
|
+
v-if="showSaveOrder && onSaveOrder"
|
|
1138
|
+
class="px-4 py-1.5 text-sm bg-blue-600 hover:bg-blue-700 text-white rounded-md transition-colors font-medium"
|
|
1139
|
+
@click="onSaveOrder()"
|
|
1140
|
+
>
|
|
1141
|
+
{{ saveOrderText }}
|
|
1142
|
+
</button>
|
|
1121
1143
|
<button
|
|
1122
1144
|
class="px-4 py-1.5 text-sm bg-red-600 hover:bg-red-700 text-white rounded-md transition-colors font-medium"
|
|
1123
1145
|
:disabled="localSelectedItems.size === 0"
|