@@ -0,0 +1,32 @@
+// components/My_listBox/index.js
+
+Component({
+ /**
+ * 组件的属性列表
+ */
+ properties: {
+ height: {
+ type: Number,
+ value: 0
+ }
+ },
+ lifetimes: {
+ ready() {
+ * 组件的初始数据
+ data: {
+ * 组件的方法列表
+ methods: {
+})
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
@@ -0,0 +1 @@
+/* components/My_listBox/index.wxss */
@@ -0,0 +1,3 @@
+<scroll-view scroll-y refresher-enabled style="height: {{height}}rpx;">
+ <slot />
+</scroll-view>