Skip to content

Commit 894443b

Browse files
committed
fix
1 parent d95cba1 commit 894443b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

fast_tmp/amis/formitem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ class Config:
282282
class UUIDItem(FormItem):
283283
# 随机生成一个 id,可以用于防止表单重复提交。
284284
type = FormItemEnum.uuid
285+
label = ""
285286
name: Optional[str] # type: ignore
286287
length: Optional[int]
287288

@@ -418,7 +419,7 @@ class InputTable(FormItem):
418419
表格
419420
"""
420421

421-
type = "table"
422+
type = "input-table"
422423
addable: Optional[bool] # 是否可新增
423424
editable: Optional[bool] # 是否可编辑
424425
removable: Optional[bool] # 是否可删除

fast_tmp/site/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class ModelAdmin(ModelSession, PageRouter): # todo inline字段必须都在upda
4747
selct_defs: Dict[
4848
str,
4949
Callable[
50-
[Request, Optional[str], Optional[int], Optional[int]], Coroutine[Any, Any, List[dict]]
50+
[Request, Optional[str], Optional[int], Optional[int],Optional[Any]], Coroutine[Any, Any, List[dict]]
5151
],
5252
]
5353
_filters = None

fast_tmp/site/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ def name(self) -> str:
218218
return self._name
219219

220220
async def router(self, request: Request, prefix: str, method: str) -> BaseRes:
221+
"""
222+
用于自定义接口的方法
223+
"""
221224
raise NotFoundError("not found function.")
222225

223226

0 commit comments

Comments
 (0)