Files
mier_ios/Pods/CRBoxInputView/PodCode/Classes/CRBoxInputCellProperty.h

179 lines
3.6 KiB
C
Raw Normal View History

2025-08-11 10:43:19 +08:00
//
// CRBoxInputCellProperty.h
// CaiShenYe
//
// Created by Chobits on 2019/1/3.
// Copyright © 2019 Chobits. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CRBoxInputView/CRLineView.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger, CRBoxSecurityType) {
CRBoxSecuritySymbolType,
CRBoxSecurityCustomViewType,
};
typedef UIView *_Nonnull(^CustomSecurityViewBlock)(void);
typedef CRLineView *_Nonnull(^CustomLineViewBlock)(void);
typedef void(^ConfigCellShadowBlock)(CALayer *layer);
@interface CRBoxInputCellProperty : NSObject <NSCopying>
#pragma mark - UI
/**
cell边框宽度
0.5
*/
@property (assign, nonatomic) CGFloat borderWidth;
/**
cell边框颜色
[UIColor colorWithRed:228/255.0 green:228/255.0 blue:228/255.0 alpha:1]
*/
@property (copy, nonatomic) UIColor *cellBorderColorNormal;
/**
cell边框颜色
[UIColor colorWithRed:255/255.0 green:70/255.0 blue:62/255.0 alpha:1]
*/
@property (copy, nonatomic) UIColor *cellBorderColorSelected;
/**
cell边框颜色
cellBorderColorFilled相同
*/
@property (copy, nonatomic) UIColor *__nullable cellBorderColorFilled;
/**
cell背景颜色
[UIColor whiteColor]
*/
@property (copy, nonatomic) UIColor *cellBgColorNormal;
/**
cell背景颜色
[UIColor whiteColor]
*/
@property (copy, nonatomic) UIColor *cellBgColorSelected;
/**
cell背景颜色
cellBgColorFilled相同
*/
@property (copy, nonatomic) UIColor *__nullable cellBgColorFilled;
/**
[UIColor colorWithRed:255/255.0 green:70/255.0 blue:62/255.0 alpha:1]
*/
@property (copy, nonatomic) UIColor *cellCursorColor;
/**
2
*/
@property (assign, nonatomic) CGFloat cellCursorWidth;
/**
32
*/
@property (assign, nonatomic) CGFloat cellCursorHeight;
/**
4
*/
@property (assign, nonatomic) CGFloat cornerRadius;
#pragma mark - line
/**
线
NO
*/
@property (assign, nonatomic) BOOL showLine;
#pragma mark - label
/**
/
[UIFont systemFontOfSize:20];
*/
@property (copy, nonatomic) UIFont *cellFont;
/**
[UIColor blackColor];
*/
@property (copy, nonatomic) UIColor *cellTextColor;
#pragma mark - Security
/**
NO
*/
@property (assign, nonatomic) BOOL ifShowSecurity;
/**
ifShowSecurity=YES时
*/
@property (copy, nonatomic) NSString *securitySymbol;
/**
*/
@property (copy, nonatomic) NSString *originValue;
/**
CRBoxSecuritySymbolType
CRBoxSecuritySymbolType securitySymboloriginValue的内容来显示
CRBoxSecurityCustomViewType View类型View
*/
@property (assign, nonatomic) CRBoxSecurityType securityType;
#pragma mark - Block
/**
View回调
*/
@property (copy, nonatomic) CustomSecurityViewBlock customSecurityViewBlock;
/**
线
*/
@property (copy, nonatomic) CustomLineViewBlock customLineViewBlock;
/**
*/
@property (copy, nonatomic) ConfigCellShadowBlock __nullable configCellShadowBlock;
#pragma mark - Test
@property (assign, nonatomic) NSInteger index;
@end
NS_ASSUME_NONNULL_END