table_checkbox.py 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. # coding=utf-8
  2. """
  3. @project: maxkb
  4. @Author:虎
  5. @file: table_radio.py
  6. @date:2023/10/31 18:01
  7. @desc:
  8. """
  9. from typing import Dict
  10. from common.forms.base_field import TriggerType, BaseExecField
  11. class TableRadio(BaseExecField):
  12. """
  13. table 单选
  14. """
  15. def __init__(self,
  16. label: str,
  17. text_field: str,
  18. value_field: str,
  19. provider: str,
  20. method: str,
  21. required: bool = False,
  22. default_value: object = None,
  23. relation_show_field_dict: Dict = None,
  24. relation_trigger_field_dict: Dict = None,
  25. trigger_type: TriggerType = TriggerType.OPTION_LIST,
  26. attrs: Dict[str, object] = None,
  27. props_info: Dict[str, object] = None):
  28. super().__init__("TableCheckbox", label, text_field, value_field, provider, method, required, default_value,
  29. relation_show_field_dict, relation_trigger_field_dict, trigger_type, attrs, props_info)