Commit 472bb3cb authored by pete谢兆麟's avatar pete谢兆麟

长期按钮调整

parent e5b23c5b
...@@ -18,7 +18,7 @@ class YHItemView: UIView { ...@@ -18,7 +18,7 @@ class YHItemView: UIView {
var leftButton: UIButton! var leftButton: UIButton!
var rightButton: UIButton! var rightButton: UIButton!
var showPromptLabel: UILabel! var showPromptLabel: UILabel!
var longTimeButton:UIButton! var longTimeButton: UIButton!
var country: String = "" var country: String = ""
var dataSource: YHItemModel? { var dataSource: YHItemModel? {
didSet { didSet {
...@@ -147,7 +147,6 @@ class YHItemView: UIView { ...@@ -147,7 +147,6 @@ class YHItemView: UIView {
button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14) button.titleLabel?.font = UIFont.PFSC_M(ofSize: 14)
button.contentHorizontalAlignment = .right button.contentHorizontalAlignment = .right
button.addTarget(self, action: #selector(longTimeButtonClick), for: .touchUpInside) button.addTarget(self, action: #selector(longTimeButtonClick), for: .touchUpInside)
button.imageEdgeInsets = UIEdgeInsets(top: 10, left: 0, bottom: 10, right: 30)
button.isSelected = false button.isSelected = false
return button return button
}() }()
...@@ -158,6 +157,7 @@ class YHItemView: UIView { ...@@ -158,6 +157,7 @@ class YHItemView: UIView {
make.height.equalTo(32) make.height.equalTo(32)
make.width.equalTo(43) make.width.equalTo(43)
} }
longTimeButton.iconInLeft(spacing: 3)
} }
@objc func longTimeButtonClick() { @objc func longTimeButtonClick() {
......
...@@ -506,6 +506,6 @@ extension YHOtherSelecteItemView { ...@@ -506,6 +506,6 @@ extension YHOtherSelecteItemView {
printLog("error: 未处理的类型") printLog("error: 未处理的类型")
} }
longTimeButton.iconInLeft(spacing: 3)
} }
} }
...@@ -160,6 +160,7 @@ class YHWorkExperienceItemView: UIView { ...@@ -160,6 +160,7 @@ class YHWorkExperienceItemView: UIView {
make.height.equalTo(32) make.height.equalTo(32)
make.width.equalTo(43) make.width.equalTo(43)
} }
longTimeButton.iconInLeft(spacing: 3)
} }
@objc func longTimeButtonClick() { @objc func longTimeButtonClick() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment