RAEditBaseModel.h 883 B

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