password_input.py 694 B

1234567891011121314151617181920212223242526
  1. # coding=utf-8
  2. """
  3. @project: maxkb
  4. @Author:虎
  5. @file: password_input.py
  6. @date:2023/11/1 14:48
  7. @desc:
  8. """
  9. from typing import Dict
  10. from common.forms import BaseField, TriggerType
  11. class PasswordInputField(BaseField):
  12. """
  13. 文本输入框
  14. """
  15. def __init__(self, label: str,
  16. required: bool = False,
  17. default_value=None,
  18. relation_show_field_dict: Dict = None,
  19. attrs=None, props_info=None):
  20. super().__init__('PasswordInput', label, required, default_value, relation_show_field_dict,
  21. {},
  22. TriggerType.OPTION_LIST, attrs, props_info)