浏览代码

make_model: add data() method for synchrorized data fetching

master
Bing Sun 5 年前
父节点
当前提交
51bb88779b
签署人:: sunb GPG 密钥 ID: 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) {


正在加载...
取消
保存