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

34 lines
1.1 KiB
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 tab_card.py
@date2023/10/31 18:03
@desc:
"""
from typing import Dict
from common.forms.base_field import BaseExecField, TriggerType
class TabCard(BaseExecField):
"""
收集 Tab类型数据 tab1:{},tab2:{}
"""
def __init__(self,
label: str,
text_field: str,
value_field: str,
provider: str,
method: str,
required: bool = False,
default_value: object = None,
relation_show_field_dict: Dict = None,
relation_trigger_field_dict: Dict = None,
trigger_type: TriggerType = TriggerType.OPTION_LIST,
attrs: Dict[str, object] = None,
props_info: Dict[str, object] = None):
super().__init__("TabCard", label, text_field, value_field, provider, method, required, default_value,
relation_show_field_dict, relation_trigger_field_dict, trigger_type, attrs, props_info)