mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 00:32:06 +08:00
- 新增页面模板服务模块,提供页面模板配置、字段定义和数据验证功能。 - 实现了前端布局组件模型,包括行、列、文本、按钮、卡片等,支持灵活的页面布局。 - 引入 FastAPI 路由,提供统一的API接口以获取模板配置和处理数据提交。 - 注册用户表单模板示例,包含提交、重置和取消按钮的功能。 - 增强了数据验证和处理逻辑,确保提交数据的有效性和安全性。
56 lines
848 B
Python
56 lines
848 B
Python
"""
|
|
前端布局组件模型集合
|
|
|
|
用于以数据形式描述页面布局,标签与前端 Element 组件保持一致:
|
|
- el-row, el-col
|
|
- el-text
|
|
- el-button
|
|
- el-card, el-divider, el-space, el-form, el-form-item, el-table
|
|
"""
|
|
|
|
from .layout import (
|
|
Button,
|
|
ButtonProps,
|
|
Card,
|
|
CardProps,
|
|
Col,
|
|
ColProps,
|
|
Component,
|
|
ComponentType,
|
|
Divider,
|
|
Form,
|
|
FormItem,
|
|
FormItemProps,
|
|
FormProps,
|
|
Row,
|
|
RowProps,
|
|
Space,
|
|
Table,
|
|
TableProps,
|
|
Text,
|
|
TextProps,
|
|
)
|
|
|
|
__all__ = [
|
|
"Button",
|
|
"ButtonProps",
|
|
"Card",
|
|
"CardProps",
|
|
"Col",
|
|
"ColProps",
|
|
"Component",
|
|
"ComponentType",
|
|
"Divider",
|
|
"Form",
|
|
"FormItem",
|
|
"FormItemProps",
|
|
"FormProps",
|
|
"Row",
|
|
"RowProps",
|
|
"Space",
|
|
"Table",
|
|
"TableProps",
|
|
"Text",
|
|
"TextProps",
|
|
]
|