UnisKB/apps/common/forms/password_input.py

27 lines
694 B
Python
Raw Normal View History

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