Skip to content

Commit 8ef8030

Browse files
author
jack
committed
更新readme
1 parent 18e65ec commit 8ef8030

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ npm install --save miniprogram-recycle-view
139139
})
140140
```
141141

142+
`typescript`支持,使用如下方式引入
143+
```typescript
144+
import * as recycleContext from 'miniprogram-recycle-view';
145+
```
146+
142147
​ 页面必须通过 Component 构造器定义,页面引入了`miniprogram-recycle-view`包之后,会在 wx 对象下面新增接口`createRecycleContext`函数创建`RecycleContext`对象来管理 recycle-view 定义的的数据,`createRecycleContext`接收类型为1个 Object 的参数,Object 参数的每一个 key 的介绍如下:
143148

144149
| 参数名 | 类型 | 描述 |

0 commit comments

Comments
 (0)