diff --git a/.gitignore b/.gitignore index 62c893550adb53d3a8fc29a1584ff831cb829062..f32e31af499da4e38a79d6fb73f098ae42473366 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.idea/ \ No newline at end of file +.idea/ +.DS_Store diff --git a/docs/QUICK.md b/docs/QUICK.md index 4c5b7f74fbdd77ecfbcdc08c443f402b9d83ea00..5e9544c42360f794e0114e569b647b993e5226a8 100644 --- a/docs/QUICK.md +++ b/docs/QUICK.md @@ -432,16 +432,17 @@ SIMPLEUI_ICON = { 开启为True,开启后,每次用户登陆都会刷新左侧菜单配置。
需要注意的是:开启后每次访问admin都会重读配置文件,所以会带来额外的消耗。 -### menus说明 +### menus说明 (2021.2已加入3级菜单) |字段|说明| |---|---| |name|菜单名| |icon|图标,参考element-ui和fontawesome图标| |url|链接地址,绝对或者相对,如果存在models字段,将忽略url| -|models|子菜单,自2021.02.01+版本 支持最多3级菜单| +|models|子菜单,自2021.02.01+版本 支持最多3级菜单,使用方法可以看下方例子| ### 例子 + ```python import time SIMPLEUI_CONFIG = { @@ -465,22 +466,16 @@ SIMPLEUI_CONFIG = { # 自2021.02.01+ 支持多级菜单,models 为子菜单名 'name': '多级菜单测试', 'icon': 'fa fa-file', + # 二级菜单 'models': [{ 'name': 'Baidu', 'icon': 'far fa-surprise', + # 第三级菜单 , 'models': [ { 'name': '爱奇艺', + 'url': 'https://www.iqiyi.com/dianshiju/' # 第四级就不支持了,element只支持了3级 - 'models': [ - { - 'name': '电影', - 'url': 'https://www.iqiyi.com/dianying/' - }, { - 'name': '电视剧', - 'url': 'https://www.iqiyi.com/dianshiju/' - }, - ] }, { 'name': '百度问答', 'icon': 'far fa-surprise',