UnisKB/apps/common/forms/table_radio.py

34 lines
1.0 KiB
Python
Raw Normal View History

# coding=utf-8
"""
@project: maxkb
@Author
@file table_radio.py
@date2023/10/31 18:01
@desc:
"""
2024-03-21 06:49:21 +00:00
from typing import Dict
2024-04-15 11:06:42 +00:00
from common.forms.base_field import TriggerType, BaseExecField
class TableRadio(BaseExecField):
"""
table 单选
"""
def __init__(self,
label: str,
text_field: str,
value_field: str,
provider: str,
method: str,
required: bool = False,
default_value: object = None,
2023-11-23 09:55:39 +00:00
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__("TableRadio", label, text_field, value_field, provider, method, required, default_value,
2023-11-23 09:55:39 +00:00
relation_show_field_dict, relation_trigger_field_dict, trigger_type, attrs, props_info)