MaxKB/apps/common/forms/text_input_field.py
shaohuzhang1 3d28d2527b
fix: typos
* fix: typos
2024-04-15 19:06:42 +08:00

28 lines
701 B
Python
Raw Permalink 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 text_input_field.py
@date2023/10/31 17:58
@desc:
"""
from typing import Dict
from common.forms.base_field import BaseField, TriggerType
class TextInputField(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__('TextInput', label, required, default_value, relation_show_field_dict,
{},
TriggerType.OPTION_LIST, attrs, props_info)