Skip to content

Commit

Permalink
feat: 插件部署-插件包参数优化 (closed #2461)
Browse files Browse the repository at this point in the history
  • Loading branch information
Huayeaaa committed Oct 18, 2024
1 parent 44d9db6 commit 53d8c50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/backend/plugin/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 53d8c50

Please sign in to comment.