Browse Source

设置公开方法

jsonwang 3 năm trước cách đây
mục cha
commit
2263eb4b9f
1 tập tin đã thay đổi với 9 bổ sung9 xóa
  1. 9 9
      BFFramework/Classes/Base/View/PQRemindView.swift

+ 9 - 9
BFFramework/Classes/Base/View/PQRemindView.swift

@@ -2,7 +2,7 @@
 // MARK: - 设置页退出登录跟注销账号提示视图
 
 /// 设置页退出登录跟注销账号提示视图
-public class PQRemindView: UIView {
+open class PQRemindView: UIView {
     public var isBanned: Bool = false // 是否是拉黑用户提示
     public var isBlank: Bool = false { // 是否是黑色弹窗
         didSet {
@@ -100,7 +100,7 @@ public class PQRemindView: UIView {
         backgroundColor = cShadowColor
     }
 
-    required init?(coder _: NSCoder) {
+    required public init?(coder _: NSCoder) {
         fatalError("init(coder:) has not been implemented")
     }
 
@@ -111,7 +111,7 @@ public class PQRemindView: UIView {
         }
     }
 
-    public func addData() {
+    open func addData() {
         titleLab.text = remindData?.title
         contentLab.text = remindData?.summary
         cancelBtn.setTitleColor(isBanned ? (isBlank ? UIColor.white : UIColor.black) : (isBlank ? UIColor.white : UIColor.hexColor(hexadecimal: "#666666")), for: .normal)
@@ -122,7 +122,7 @@ public class PQRemindView: UIView {
         }
     }
 
-   public func addLayout() {
+   open func addLayout() {
         var summH: CGFloat = 0
         var titleH: CGFloat = 0
         if (remindData?.summary?.count ?? 0) > 0 {
@@ -190,7 +190,7 @@ public class PQRemindView: UIView {
         }
     }
 
-    @objc func btnClck(sender: UIButton) {
+    @objc open func btnClck(sender: UIButton) {
         removeFromSuperview()
         if remindBlock != nil {
             remindBlock!(sender, remindData!)
@@ -201,7 +201,7 @@ public class PQRemindView: UIView {
 // MARK: 空白提示页
 
 /// 空白提示页
-public class PQEmptyRemindView: UIView {
+open class PQEmptyRemindView: UIView {
     // 回调
     public var fullRefreshBloc: ((_ isNetConnected: Bool, _ emptyData: PQEmptyModel?) -> Void)?
 
@@ -241,7 +241,7 @@ public class PQEmptyRemindView: UIView {
         return remindSubLab
     }()
 
-    lazy var refreshBtn: UIButton = {
+    lazy public var refreshBtn: UIButton = {
         let refreshBtn = UIButton(type: .custom)
         refreshBtn.backgroundColor = UIColor.hexColor(hexadecimal: "#EE0051")
         refreshBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
@@ -254,7 +254,7 @@ public class PQEmptyRemindView: UIView {
         return refreshBtn
     }()
 
-    override init(frame: CGRect) {
+    override public init(frame: CGRect) {
         super.init(frame: frame)
         addSubview(imageView)
         addSubview(shimmeringView)
@@ -467,7 +467,7 @@ public class PQUploadRemindView: PQRemindView {
         removeFromSuperview()
     }
 
-    @objc override func btnClck(sender: UIButton) {
+    @objc public override func btnClck(sender: UIButton) {
         removeFromSuperview()
         if remindBlock != nil {
             remindBlock!(sender, remindData!)