插件仪表板示例

This commit is contained in:
jxxghp
2024-05-08 21:01:52 +08:00
parent d3133250d3
commit 3c034de04f
3 changed files with 500 additions and 419 deletions

View File

@@ -452,16 +452,16 @@ class EventType(Enum):
```python
def get_dashboard(self) -> Optional[Tuple[Dict[str, Any], Dict[str, Any], List[dict]]]:
"""
获取插件仪表盘页面需要返回1、仪表板col配置字典2、仪表板页面元素配置json含数据3、全局配置自动刷新等
获取插件仪表盘页面需要返回1、仪表板col配置字典2、全局配置自动刷新等2、仪表板页面元素配置json含数据
1、col配置参考
{
"cols": 12, "md": 6
}
2、页面配置使用Vuetify组件拼装参考https://vuetifyjs.com/
3、全局配置参考
2、全局配置参考:
{
"refresh": 10 // 自动刷新时间,单位秒
}
3、页面配置使用Vuetify组件拼装参考https://vuetifyjs.com/
"""
pass
```