Ver a proveniência

make_model: add data() method for synchrorized data fetching

master
Bing Sun há 5 anos
ascendente
cometimento
51bb88779b
Assinados por: sunb ID da chave GPG: F7795F8C590626AB
1 ficheiros alterados com 1 adições e 0 eliminações
  1. +1
    -0
      src/util/make_model.js

+ 1
- 0
src/util/make_model.js Ver ficheiro

@@ -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) {


Carregando…
Cancelar
Guardar