diff --git a/pages/template/custom-long-list/custom-long-list.uvue b/pages/template/custom-long-list/custom-long-list.uvue
index 35b53e2bcdeb73edf82ee0057a3e5b92a872b428..73635b7950967b97dc1e1e70527b0b94a5082e86 100644
--- a/pages/template/custom-long-list/custom-long-list.uvue
+++ b/pages/template/custom-long-list/custom-long-list.uvue
@@ -3,16 +3,16 @@
list-view组件虽然在UI层有recycle机制,但长列表的vnode太多也会造成初始化卡顿。本组件仅创建部分vnode,而未使用list-view,也就是UI层其实是短列表。
此示例中仅渲染滚动容器上下5屏的内容。适用于仅使用一个for循环创建所有列表项的场景。
-
+
-
+
{{item.name}}
{{item.info}}
-
+
-
+
@@ -22,13 +22,7 @@
name : string
info : string
}
- import CustomListView from "./custom-list-view"
- import CustomListItem from "./custom-list-item"
export default {
- components: {
- CustomListView,
- CustomListItem
- },
data() {
return {
title: '自行实现长列表组件',
diff --git a/uni_modules/uni-recycle-view/changelog.md b/uni_modules/uni-recycle-view/changelog.md
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
diff --git a/pages/template/custom-long-list/custom-list-item.uvue b/uni_modules/uni-recycle-view/components/uni-recycle-item/uni-recycle-item.uvue
similarity index 59%
rename from pages/template/custom-long-list/custom-list-item.uvue
rename to uni_modules/uni-recycle-view/components/uni-recycle-item/uni-recycle-item.uvue
index b95c44ef4d79fa07101836cc39fb932b3f888fa6..6a51a7f6a96f1e32f3b2e38980bdb9089fd18e17 100644
--- a/pages/template/custom-long-list/custom-list-item.uvue
+++ b/uni_modules/uni-recycle-view/components/uni-recycle-item/uni-recycle-item.uvue
@@ -1,10 +1,15 @@
-
+