RAEditBaseModel.h 912 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // RAEditBaseModel.h
  3. // Apex And Drivers
  4. //
  5. // Created by Jack on 2018/6/4.
  6. // Copyright © 2018年 USAI. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef enum {
  10. RAEditTypeLabel = 0,
  11. RAEditTypeInput = 1,
  12. RAEditTypeMultInput = 2,
  13. RAEditTypePhoto = 3,
  14. RAEditTypeSignature = 4,
  15. RAEditTypeDate = 5,
  16. RAEditTypeMultPhoto = 6
  17. } RAEditType;
  18. @protocol RAEditModelDelegate <NSObject>
  19. - (void)refresh;
  20. - (void)unbind;
  21. @end
  22. @interface RAEditBaseModel : NSObject
  23. @property (nonatomic,assign) RAEditType type;
  24. @property (nonatomic,copy) NSString *key;
  25. @property (nonatomic,copy) NSString *title;
  26. @property (nonatomic,assign) CGFloat height;
  27. @property (nonatomic,assign) BOOL required;
  28. @property (nonatomic,weak) id<RAEditModelDelegate> delegate;
  29. @property (nonatomic,strong) id expand;
  30. @property (nonatomic,assign) BOOL autofill;
  31. - (void)updateDefaultValue;
  32. @end