Przeglądaj źródła

:recycle: trying sort watcher

tags/0.9.0
J 4 lat temu
rodzic
commit
dcce9f4d04
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3
    0
      vue-theme/src/pages/list.vue

+ 3
- 0
vue-theme/src/pages/list.vue Wyświetl plik

200
         type(newType, oldType) {
200
         type(newType, oldType) {
201
             if(!postTypes.includes(newType)) return console.warn('type not valid...')
201
             if(!postTypes.includes(newType)) return console.warn('type not valid...')
202
         },
202
         },
203
+        sortBy(newSort, oldSort) {
204
+            console.log('newSort :', newSort)
205
+        },
203
         // Only fire if the sort type has changed
206
         // Only fire if the sort type has changed
204
         // and the post type is the same
207
         // and the post type is the same
205
         // and both sorts are valid
208
         // and both sorts are valid

Ładowanie…
Anuluj
Zapisz