Просмотр исходного кода

make_model: add data() method for synchrorized data fetching

master
Bing Sun 5 лет назад
Родитель
Сommit
51bb88779b
Подписано: sunb Идентификатор GPG ключа: F7795F8C590626AB
1 измененных файлов: 1 добавлений и 0 удалений
  1. +1
    -0
      src/util/make_model.js

+ 1
- 0
src/util/make_model.js Просмотреть файл

@@ -49,6 +49,7 @@ export default (options={}) => {
// reflection methods
configs() { return _configs },
cache() { return _cache },
data(offset=0, limit=Infinity) { return _cache.data && _cache.data.slice(offset, offset+limit) || [] },

// main methods
select(offset=0, limit=Infinity) {


Загрузка…
Отмена
Сохранить