From 2f4f8290d181e3c533342418c7dc9dbdc2a14163 Mon Sep 17 00:00:00 2001 From: dcd <1151627903@qq.com> Date: Fri, 18 Oct 2024 18:27:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=92=E4=BB=B6=E9=83=A8=E7=BD=B2-?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=8C=85=E5=8F=82=E6=95=B0=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20(closed=20#2461)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/backend/plugin/tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/backend/plugin/tools.py b/apps/backend/plugin/tools.py index 139e7640c..d04f78da2 100644 --- a/apps/backend/plugin/tools.py +++ b/apps/backend/plugin/tools.py @@ -79,6 +79,9 @@ class VariableNodeSerializer(serializers.Serializer): items = serializers.DictField(required=False, label=_("子变量")) default = LiteralField(required=False, label=_("默认值")) depth = serializers.IntegerField(label=_("嵌套深度"), max_value=5) + ui_component = serializers.DictField(required=False, label=_("UI组件")) + description = serializers.CharField(required=False, label=_("tips描述说明"), max_length=128) + value = serializers.CharField(required=False, label=_("下拉列表值"), max_length=128) @classmethod def parse_default(cls, default_value: Union[str, bool, int, float], variable_type: str):