From b4857a7559e9bb159d0e600a58a8567a1e9ddd18 Mon Sep 17 00:00:00 2001 From: Ah jung <735878602@qq.com> Date: Fri, 16 Jul 2021 17:41:11 +0800 Subject: [PATCH] fix Bug or add example --- CHANGELOG.md | 14 + README.md | 4 + index.html | 76 +----- package.json | 4 +- src/components/Application/Application.vue | 2 +- src/components/ProTable/src/ProTable.vue | 29 ++- .../src/components/settings/ColumnSetting.vue | 2 - src/layout/components/Footer/index.vue | 2 +- src/layout/components/Header/components.ts | 3 - src/layout/components/Header/index.vue | 11 +- src/layout/components/Menu/index.vue | 56 ++-- src/main.ts | 36 +-- src/plugins/naive.ts | 10 +- src/router/generator-routers.ts | 13 +- src/router/modules/comp.ts | 6 +- src/router/modules/list.ts | 41 +++ src/router/modules/setting.ts | 49 ++++ src/router/router-guards.ts | 243 +++++++++--------- src/styles/common.less | 5 + src/utils/http/axios/index.ts | 4 - src/views/comp/table/columns.ts | 35 ++- src/views/form/basicForm/index.vue | 2 +- src/views/list/basicList/columns.ts | 72 ++++++ src/views/list/basicList/index.vue | 156 +++++++++++ src/views/setting/account/BasicSetting.vue | 95 +++++++ src/views/setting/account/SafetySetting.vue | 96 +++++++ yarn.lock | 18 +- 27 files changed, 780 insertions(+), 304 deletions(-) create mode 100644 src/router/modules/list.ts create mode 100644 src/router/modules/setting.ts create mode 100644 src/views/list/basicList/columns.ts create mode 100644 src/views/list/basicList/index.vue create mode 100644 src/views/setting/account/BasicSetting.vue create mode 100644 src/views/setting/account/SafetySetting.vue diff --git a/CHANGELOG.md b/CHANGELOG.md index ee7e57f..57fdfb4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,17 @@ +# 1.2 (2021-07-16) +### 🐛 Bug Fixes +- 修复面包屑显示登录页面 +- 菜单支持只展开当前父级菜单 + +- ### ✨ Features +- 新增 `列表页面-基础列表` 示例页面 +- 新增 `异常页面-404-403-500` 示例页面 +- 新增 `结果页面-成功-失败-信息` 示例页面 +- 新增 `设置页面-个人设置-系统设置` 示例页面 +- tips `示例页面,可能在深色主题显示不佳` +- 持续更新更多实用示例,同时也演示`Naive UI`使用方法 + + # 1.1 (2021-07-15) - ### ✨ Features - 新增 `基础表单` 示例页面 diff --git a/README.md b/README.md index fd36120..64f5e92 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ Naive Ui Admin 是一个免费开源的中后台模版,使用了最新的`vue3 - [ ] 监控页 - [x] 工作台 - [x] 表单页面 +- [x] 列表页面 +- [x] 异常页面 +- [x] 结果页面 +- [x] 设置页面 ### 页面组件 #### ProTable diff --git a/index.html b/index.html index 3edcd1c..96e8993 100644 --- a/index.html +++ b/index.html @@ -10,81 +10,13 @@ /> <%= title %> +
- -
-
-
-
+
+
+
diff --git a/package.json b/package.json index 7c882e4..9132f69 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "naive-ui-admin", - "version": "1.1", + "version": "1.2", "author": { "name": "Ahjung", "email": "735878602@qq.com", @@ -33,7 +33,7 @@ "lodash-es": "^4.17.21", "mitt": "^2.1.0", "mockjs": "^1.1.0", - "naive-ui": "^2.15.4", + "naive-ui": "^2.15.5", "nprogress": "^1.0.0-1", "pinia": "^2.0.0-beta.3", "qs": "^6.10.1", diff --git a/src/components/Application/Application.vue b/src/components/Application/Application.vue index 8dfda42..6942887 100644 --- a/src/components/Application/Application.vue +++ b/src/components/Application/Application.vue @@ -11,7 +11,7 @@ + + diff --git a/src/views/setting/account/BasicSetting.vue b/src/views/setting/account/BasicSetting.vue new file mode 100644 index 0000000..e5e6745 --- /dev/null +++ b/src/views/setting/account/BasicSetting.vue @@ -0,0 +1,95 @@ + + + diff --git a/src/views/setting/account/SafetySetting.vue b/src/views/setting/account/SafetySetting.vue new file mode 100644 index 0000000..aa0d061 --- /dev/null +++ b/src/views/setting/account/SafetySetting.vue @@ -0,0 +1,96 @@ + + + diff --git a/yarn.lock b/yarn.lock index 515990a..d2532ce 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3561,10 +3561,10 @@ mute-stream@0.0.7: resolved "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= -naive-ui@^2.15.4: - version "2.15.4" - resolved "https://registry.nlark.com/naive-ui/download/naive-ui-2.15.4.tgz#56c53b03e277ac9e55396bfb85dc2b49293ca6c3" - integrity sha1-VsU7A+J3rJ5VOWv7hdwrSSk8psM= +naive-ui@^2.15.5: + version "2.15.5" + resolved "https://registry.nlark.com/naive-ui/download/naive-ui-2.15.5.tgz#50ffc1834fd64765621a31f0b09e64d72770cd6c" + integrity sha1-UP/Bg0/WR2ViGjHwsJ5k1ydwzWw= dependencies: "@css-render/plugin-bem" "^0.15.4" "@css-render/vue3-ssr" "^0.15.4" @@ -3578,7 +3578,7 @@ naive-ui@^2.15.4: lodash "^4.17.21" lodash-es "^4.17.21" seemly "^0.3.1" - treemate "^0.2.11" + treemate "^0.2.12" vdirs "^0.1.4" vfonts "^0.1.0" vooks "^0.2.6" @@ -4967,10 +4967,10 @@ to-regex-range@^5.0.1: dependencies: is-number "^7.0.0" -treemate@^0.2.11: - version "0.2.11" - resolved "https://registry.nlark.com/treemate/download/treemate-0.2.11.tgz#cffa37051e613beaa82fd3fce56300e8e4d8328f" - integrity sha1-z/o3BR5hO+qoL9P85WMA6OTYMo8= +treemate@^0.2.12: + version "0.2.12" + resolved "https://registry.nlark.com/treemate/download/treemate-0.2.12.tgz#eed8ce0cd5a03f11c090c43d08f548694eead4b5" + integrity sha1-7tjODNWgPxHAkMQ9CPVIaU7q1LU= trim-newlines@^3.0.0: version "3.0.1"