zhaoxiaohai 3 anni fa
parent
commit
271a2ea011

+ 32 - 0
components/My_listBox/index.js

@@ -0,0 +1,32 @@
+// components/My_listBox/index.js
+
+Component({
+    /**
+     * 组件的属性列表
+     */
+    properties: {
+        height: {
+            type: Number,
+            value: 0
+        }
+    },
+
+    lifetimes: {
+        ready() {
+        }
+    },
+
+    /**
+     * 组件的初始数据
+     */
+    data: {
+
+    },
+
+    /**
+     * 组件的方法列表
+     */
+    methods: {
+
+    }
+})

+ 4 - 0
components/My_listBox/index.json

@@ -0,0 +1,4 @@
+{
+    "component": true,
+    "usingComponents": {}
+}

+ 1 - 0
components/My_listBox/index.scss

@@ -0,0 +1 @@
+/* components/My_listBox/index.wxss */

+ 3 - 0
components/My_listBox/index.wxml

@@ -0,0 +1,3 @@
+<scroll-view scroll-y refresher-enabled	 style="height: {{height}}rpx;">
+    <slot />
+</scroll-view>