//
//  EMallProductChooseSectionHeaderView.swift
//  EMallBusiness
//
//  Created by kerwin on 2021/1/12.
//

import Foundation

extension GLuxChooseSectionHeader {
    func update(with model:GLuxChooseSectionModelProtocol) {
        self.titleLabel.text = model.title
    }
}

class GLuxChooseSectionHeader: UICollectionReusableView {
    
    fileprivate lazy var titleLabel :UILabel = {
        let view = UILabel()
        view.textColor = GLuxStyle.lux_c2
        view.font = GLuxStyle.luxm_f16
        view.text = "配置项类型"
        return view
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        addSubview(titleLabel)
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        titleLabel.frame = self.bounds
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
