mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:02:46 +00:00
34 lines
1.1 KiB
Python
34 lines
1.1 KiB
Python
# coding=utf-8
|
||
"""
|
||
@project: maxkb
|
||
@Author:虎
|
||
@file: array_object_card.py
|
||
@date:2023/10/31 18:03
|
||
@desc:
|
||
"""
|
||
from typing import List, Dict
|
||
|
||
from common.froms.base_field import BaseExecField, TriggerType
|
||
|
||
|
||
class ArrayCard(BaseExecField):
|
||
"""
|
||
收集List[Object]
|
||
"""
|
||
|
||
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__("ArrayObjectCard", label, text_field, value_field, provider, method, required, default_value,
|
||
relation_show_field_dict, relation_trigger_field_dict, trigger_type, attrs, props_info)
|