CGXVerticalMenuCollectionItemModel.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // CGXVerticalMenuCollectionItemModel.h
  3. // CGXVerticalMenuView-OC
  4. //
  5. // Created by CGX on 2018/05/01.
  6. // Copyright © 2019 CGX. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import <UIKit/UIKit.h>
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface CGXVerticalMenuCollectionItemModel : NSObject
  12. @property (nonatomic , strong) id dataModel;
  13. @property (nonatomic , assign) CGFloat itemCornerRadius;
  14. @property (nonatomic , assign) CGFloat itemBborderWidth;
  15. @property (nonatomic , strong) UIColor *itemBorderColor;
  16. @property (nonatomic , strong) UIColor *itemBgColor;
  17. // 图片对应的文字显示
  18. @property (nonatomic, strong) NSString *itemText;
  19. /** 轮播文字label颜色 [UIColor blackColor]; */
  20. @property (nonatomic, strong) UIColor *itemColor;
  21. /** 轮播文字label字体大小 [UIFont systemFontOfSize:14] */
  22. @property (nonatomic, strong) UIFont *itemFont;
  23. // 文字高度 默认 30
  24. @property (nonatomic , assign) CGFloat itemHeight;
  25. /* 默认一行。为1*/
  26. @property (nonatomic, assign) NSInteger numberOfLines;
  27. // 图文间距 默认 0
  28. @property (nonatomic , assign) CGFloat itemSpace;
  29. @property (nonatomic , strong) NSString *itemUrlStr;
  30. /** 图片加载 */
  31. @property (nonatomic, copy) void(^menu_ImageCallback)(UIImageView *hotImageView, NSURL *hotImageURL);
  32. @end
  33. NS_ASSUME_NONNULL_END