@mixd-id/web-scaffold 0.1.230406115 → 0.1.230406116
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.
- package/package.json +1 -1
- package/src/utils/listview.js +5 -1
package/package.json
CHANGED
package/src/utils/listview.js
CHANGED
|
@@ -230,6 +230,7 @@ let ListView = {
|
|
|
230
230
|
}*/
|
|
231
231
|
|
|
232
232
|
const { afterItem, itemsPerPage = this.itemsPerPage ?? 24 } = params
|
|
233
|
+
|
|
233
234
|
const { preset = {} } = params
|
|
234
235
|
let where = {}
|
|
235
236
|
let replacements = []
|
|
@@ -1240,7 +1241,10 @@ let ListView = {
|
|
|
1240
1241
|
order.push([ key, type ])
|
|
1241
1242
|
}
|
|
1242
1243
|
})
|
|
1243
|
-
|
|
1244
|
+
|
|
1245
|
+
if(order.filter((_) => _[0] === 'id').length === 0){
|
|
1246
|
+
order.push([ 'id', 'desc' ])
|
|
1247
|
+
}
|
|
1244
1248
|
|
|
1245
1249
|
return {
|
|
1246
1250
|
order
|