// // YMPickerPopupView.h // MSYOUPAI // // Created by YoMi on 2024/2/11. // Copyright © 2024 MS. All rights reserved. // #import "YMBaseView.h" #import "MSYOUPAIViewModel.h" NS_ASSUME_NONNULL_BEGIN @class YMPickerComponentViewModel,YMPickerRowViewModel; typedef void(^PickerButtonBlock)(BOOL isConfirm, NSArray *currentSelectedDataArray); @interface YMPickerPopupView : YMBaseView @property (nonatomic, copy) PickerButtonBlock buttonBlock; /** 标题文本*/ @property (nonatomic, copy) NSString *titleText; /** 标题颜色*/ @property (nonatomic, strong) UIColor *titleColor; /** 标题字体样式大小*/ @property (nonatomic, strong) UIFont *titleFont; /** 取消背景色*/ @property (nonatomic, strong) UIColor *cancelBgColor; /** 确认背景色*/ @property (nonatomic, strong) UIColor *confirmBgColor; /** 取消标题颜色*/ @property (nonatomic, strong) UIColor *cancelTitleColor; /** 确认标题颜色*/ @property (nonatomic, strong) UIColor *confirmTitleColor; /** 取消字体样式大小*/ @property (nonatomic, strong) UIFont *cancelFont; /** 确认字体样式大小*/ @property (nonatomic, strong) UIFont *confirmFont; /** 取消标题*/ @property (nonatomic, copy) NSString *cancelTitle; /** 确认标题*/ @property (nonatomic, copy) NSString *confirmTitle; /** 取消圆角大小*/ @property (nonatomic, assign) CGFloat cancelRadius; /** 确认圆角大小*/ @property (nonatomic, assign) CGFloat confirmRadius; /** 取消边框色*/ @property (nonatomic, assign) UIColor *cancelBorderColor; /** 确认边框色*/ @property (nonatomic, assign) UIColor *confirmBorderColor; /** 取消边框宽度大小*/ @property (nonatomic, assign) CGFloat cancelBorderWidth; /** 确认边框宽度大小*/ @property (nonatomic, assign) CGFloat confirmBorderWidth; @end @interface YMPickerViewModel : MSYOUPAIViewModel /** 分组列表 */ @property (nonatomic, strong, readonly) NSArray *componentDataSource; @end @interface YMPickerComponentViewModel : MSYOUPAIViewModel /** 当前选中分组下标 */ @property (nonatomic, assign) NSInteger currentSelectedSectionIndex; /** 当前选中行下标 */ @property (nonatomic, assign) NSInteger currentSelectedRowIndex; /** 当前选中值 */ @property (nonatomic, copy) NSString *currentSelectedValue; /** 分组Id */ @property (nonatomic, copy, readonly) NSString *componentId; /** 分组名 */ @property (nonatomic, copy, readonly) NSString *componentName; /** 分组宽度 */ @property (nonatomic, assign, readonly) CGFloat componentWidth; /** 行列表 */ @property (nonatomic, strong, readonly) NSArray *rowDataSource; @end @interface YMPickerRowViewModel : MSYOUPAIViewModel /** 分组Id */ @property (nonatomic, copy, readonly) NSString *componentId; /** 行Id */ @property (nonatomic, copy, readonly) NSString *rowId; /** 标题名 */ @property (nonatomic, copy, readonly) NSString *rowName; @end NS_ASSUME_NONNULL_END