Browse Source

适配低版本调试库

xiaohaizhao 1 year ago
parent
commit
1cb25de1d7

+ 3 - 1
components/My_form/index.js

@@ -10,7 +10,9 @@ Component({
             type: Array,
             value: []
         },
-        CompletedOrNot: Function, //完成与否回调
+        CompletedOrNot: {
+            type: Function
+        }, //完成与否回调
     },
     options: {
         multipleSlots: true

+ 9 - 3
components/Yl_Attachment/index.js

@@ -4,9 +4,15 @@ Component({
 		addGlobalClass: true
 	},
 	properties: {
-		ownertable: String,
-		ownerid: String,
-		disabled: Boolean
+		ownertable: {
+			type: String
+		},
+		ownerid: {
+			type: String
+		},
+		disabled: {
+			type: Boolean
+		}
 	},
 	data: {
 		content: {

+ 9 - 3
components/Yl_Field/index.js

@@ -2,13 +2,19 @@ const verify = require('../../utils/Check');
 Component({
     externalClasses: [],
     properties: {
-        form: Array,
+        form: {
+            type: Array
+        },
         showAll: {
             type: Boolean,
             value: true
         }, //不显示必填项
-        onConfirm: Function,
-        interrupt: Function, //打断处理,用于条件判断 把form返回到上个页面处理重新传入
+        onConfirm: {
+            type: Function
+        },
+        interrupt: {
+            type: Function
+        }, //打断处理,用于条件判断 把form返回到上个页面处理重新传入
     },
     data: {
         temporary: null, //route选择暂存选中项

+ 6 - 2
components/Yl_Files/index.js

@@ -14,8 +14,12 @@ Component({
                 files: []
             },
         },
-        delete: Boolean,
-        deleteCallBack: Function
+        delete: {
+            type: Boolean
+        },
+        deleteCallBack: {
+            type: Function
+        }
     },
     methods: {
         /* 预览媒体 */

+ 12 - 4
components/Yl_Filtrate/index.js

@@ -2,7 +2,9 @@ const getHeight = require("../../utils/GetRheRemainingHeight");
 Component({
     properties: {
         list: {
-            type: Array,
+            type: {
+                type: Array
+            },
             value: [{
                 label: "筛选1",
                 index: null,
@@ -19,8 +21,12 @@ Component({
                 }]
             }]
         },
-        show: Boolean,
-        handle: Function, //按钮回调函数
+        show: {
+            type: Boolean
+        },
+        handle: {
+            type: Function
+        }, //按钮回调函数
         dateRange: { //是否开启日期范围筛选
             type: Boolean,
             value: true
@@ -29,7 +35,9 @@ Component({
             type: String,
             value: 99999,
         },
-        interrupt: Function
+        interrupt: {
+            type: Function
+        }
     },
     data: {
         startdate: "", //开始时间

+ 3 - 1
components/Yl_Filtrate/modules/multilevelClass.js

@@ -1,6 +1,8 @@
 Component({
     properties: {
-        item: Object
+        item: {
+            type: Object
+        }
     },
     data: {
         active: {}

+ 6 - 2
components/Yl_FunTabs/index.js

@@ -4,12 +4,16 @@ Component({
         addGlobalClass: true
     },
     properties: {
-        list: Array,
+        list: {
+            type: Array
+        },
         active: {
             type: Number,
             value: 0
         },
-        onChenge: Function
+        onChenge: {
+            type: Function
+        }
     },
     data: {
         scrollLeft: 0,

+ 18 - 6
components/Yl_HeadNav/index.js

@@ -8,8 +8,12 @@ Component({
             type: String,
             value: "default", //默认样式
         },
-        sort: Array, //排序规则列表
-        search: Boolean, //是否开启搜索
+        sort: {
+            type: Array
+        }, //排序规则列表
+        search: {
+            type: Boolean
+        }, //是否开启搜索
         list: { //功能列表
             type: Array,
             value: [{
@@ -32,10 +36,18 @@ Component({
                 id: "filtrate"
             }]
         },
-        condition: String, //搜索内容
-        onClick: Function,
-        startUsing: Boolean, //启用搜索
-        onSearch: Function, //搜索回调
+        condition: {
+            type: String
+        }, //搜索内容
+        onClick: {
+            type: Function
+        },
+        startUsing: {
+            type: Boolean
+        }, //启用搜索
+        onSearch: {
+            type: Function
+        }, //搜索回调
         record: { //记录历史
             type: Boolean,
             value: true

+ 12 - 4
components/Yl_Headline/index.js

@@ -1,13 +1,21 @@
 Component({
   properties: {
-    title: String,
+    title: {
+      type: String
+    },
     type: {
       type: String,
       value: "default", //默认类型 switch-开关
     },
-    switchLabel: String, //开关标签,type==switch生效
-    switch: Boolean, //开关属性值,type==switch生效
-    callBack: Function
+    switchLabel: {
+      type: String
+    }, //开关标签,type==switch生效
+    switch: {
+      type: Boolean
+    }, //开关属性值,type==switch生效
+    callBack: {
+      type: Function
+    }
   },
   methods: {
     /* 改变开关状态 */

+ 6 - 2
components/Yl_ListBox/index.js

@@ -3,8 +3,12 @@ import {
 } from "../../utils/GetRheRemainingHeight";
 Component({
     properties: {
-        height: Number, //组件高度
-        getlist: Function,
+        height: {
+            type: Number
+        }, //组件高度
+        getlist: {
+            type: Function
+        },
         pullDown: { //是否开启下拉
             type: Boolean,
             value: true

+ 6 - 2
components/Yl_ReportForms/index.js

@@ -1,11 +1,15 @@
 Component({
     properties: {
-        list: Array,
+        list: {
+            type: Array
+        },
         showAll: { //是否显示全部(包含值为空项)
             type: Boolean,
             value: true
         },
-        clickItem: Function
+        clickItem: {
+            type: Function
+        }
     },
     methods: {
         /* 单击项目 */

+ 6 - 2
components/Yl_Tabbar/index.js

@@ -1,7 +1,11 @@
 Component({
     properties: {
-        list: Array,
-        callback: Function
+        list: {
+            type: Array
+        },
+        callback: {
+            type: Function
+        }
     },
     data: {
         safeAreaBot: 0,

+ 1 - 1
project.private.config.json

@@ -5,7 +5,7 @@
     "compileHotReLoad": true,
     "urlCheck": false
   },
-  "libVersion": "2.18.1",
+  "libVersion": "2.10.4",
   "condition": {
     "miniprogram": {
       "list": [