MaxKB/apps/common/forms/password_input.py
2025-04-17 18:01:33 +08:00

27 lines
694 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# coding=utf-8
"""
@project: maxkb
@Author
@file password_input.py
@date2023/11/1 14:48
@desc:
"""
from typing import Dict
from common.forms import BaseField, TriggerType
class PasswordInputField(BaseField):
"""
文本输入框
"""
def __init__(self, label: str,
required: bool = False,
default_value=None,
relation_show_field_dict: Dict = None,
attrs=None, props_info=None):
super().__init__('PasswordInput', label, required, default_value, relation_show_field_dict,
{},
TriggerType.OPTION_LIST, attrs, props_info)