Skip to content

Commit

Permalink
update button(FormItem)
Browse files Browse the repository at this point in the history
因该类中  type = “button" 在校验中无法通过,需修改为
  type: str = "button",增加参数验证
  • Loading branch information
fanbinbill authored Sep 26, 2023
1 parent 44ee8a7 commit 23030f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastapi_amis_admin/amis/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ class InputSubForm(FormItem):
class Button(FormItem):
"""Button"""

type = "button"
type: str = "button"
className: str = None # Specify the add button class name
url: str = None # Click the jump address, specify the behavior of this attribute button is consistent with the
# a link
Expand Down

0 comments on commit 23030f6

Please sign in to comment.