File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Source/LinkSDK/QCAPISets/Public Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -109,21 +109,30 @@ - (void)zipData:(NSDictionary *)uiInfo baseInfo:(NSDictionary *)baseInfo deviceD
109109 }else {
110110
111111 // 默认面板
112+ self.navBar = @{@" visible" :@0 };
113+ self.timingProject = false ;
112114
113115 NSMutableArray *propertiesForUI = [NSMutableArray array ];
114116 NSArray *propertiesForInfo = baseInfo[@" properties" ];
115117
116118 for (NSDictionary * protovalue in propertiesForInfo) {
119+ NSString *btn_type = protovalue[@" define" ][@" type" ];
117120
121+ if (!([btn_type isEqualToString: @" enum" ] || [btn_type isEqualToString: @" int" ] || [btn_type isEqualToString: @" float" ] || [btn_type isEqualToString: @" bool" ])) {
122+ continue ;
123+ }
118124 NSMutableDictionary *proper = [NSMutableDictionary dictionary ];
119125
120126 NSString *protoid = protovalue[@" id" ];
121127 [proper setValue: deviceInfo[protoid] forKey: @" status" ];
122128
129+ [proper setValue: protoid forKey: @" id" ];
123130 [proper setValue: protovalue[@" name" ] forKey: @" name" ];
124131 [proper setValue: protovalue[@" desc" ] forKey: @" desc" ];
125132 [proper setValue: protovalue[@" define" ] forKey: @" define" ];
126133
134+ [proper setValue: @{@" icon" : @" create" , @" type" : @" btn-col-1" , @" visible" : @1 } forKey: @" ui" ];
135+
127136 [propertiesForUI addObject: proper];
128137 }
129138
You can’t perform that action at this time.
0 commit comments