RAEditBaseModel.h 867 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. } RAEditType;
  17. @protocol RAEditModelDelegate <NSObject>
  18. - (void)refresh;
  19. @end
  20. @interface RAEditBaseModel : NSObject
  21. @property (nonatomic,assign) RAEditType type;
  22. @property (nonatomic,copy) NSString *key;
  23. @property (nonatomic,copy) NSString *title;
  24. @property (nonatomic,assign) CGFloat height;
  25. @property (nonatomic,assign) BOOL required;
  26. @property (nonatomic,weak) id<RAEditModelDelegate> delegate;
  27. @property (nonatomic,strong) id expand;
  28. @property (nonatomic,assign) BOOL autofill;
  29. - (void)updateDefaultValue;
  30. @end