File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
LXFProtocolTool/Classes/EmptyDataSetable Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ fileprivate var defaultEmptyConfig: EmptyDataSetConfigure {
16
16
get { return EmptyDataSetableConfigure . shared. emptyDataSetConfigure }
17
17
}
18
18
19
- public struct EmptyDataSetConfigure {
19
+ public struct EmptyDataSetConfigure : LXFEquatable {
20
20
/// 纵向偏移(0) CGFloat
21
21
public var verticalOffset : CGFloat
22
22
/// 提示语(暂无数据) String
@@ -60,6 +60,9 @@ public struct EmptyDataSetConfigure {
60
60
/// shouldAnimateImageView(false)
61
61
public var shouldAnimateImageView : Bool
62
62
63
+ /// 随机id
64
+ public var lxf_randomId : String
65
+
63
66
public init (
64
67
verticalOffset: CGFloat = 0 ,
65
68
tipStr: String = " " ,
@@ -104,6 +107,11 @@ public struct EmptyDataSetConfigure {
104
107
self . shouldDisplay = shouldDisplay
105
108
self . shouldAllowTouch = shouldAllowTouch
106
109
self . shouldAnimateImageView = shouldAnimateImageView
110
+ self . lxf_randomId = Self . generateRandomId ( )
111
+ }
112
+
113
+ public static func == ( lhs: EmptyDataSetConfigure , rhs: EmptyDataSetConfigure ) -> Bool {
114
+ return lhs. lxf. randomId == rhs. lxf. randomId
107
115
}
108
116
}
109
117
You can’t perform that action at this time.
0 commit comments