Commit d86c36a151a09ec1e0ee65282f9ad8dc338513ce
1 parent
ab67540d
vue2 圆角标签栏
Showing
12 changed files
with
72 additions
and
60 deletions
yudao-ui-admin/package.json
| ... | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | "clipboard": "2.0.8", |
| 48 | 48 | "core-js": "^3.26.0", |
| 49 | 49 | "crypto-js": "^4.0.0", |
| 50 | - "echarts": "4.9.0", | |
| 50 | + "echarts": "5.4.0", | |
| 51 | 51 | "element-ui": "2.15.10", |
| 52 | 52 | "file-saver": "2.0.5", |
| 53 | 53 | "fuse.js": "6.6.2", |
| ... | ... | @@ -89,7 +89,7 @@ |
| 89 | 89 | "fs-extra": "^8.1.0", |
| 90 | 90 | "lint-staged": "12.5.0", |
| 91 | 91 | "runjs": "4.4.2", |
| 92 | - "sass": "1.3.0", | |
| 92 | + "sass": "1.32.13", | |
| 93 | 93 | "sass-loader": "10.2.0", |
| 94 | 94 | "script-ext-html-webpack-plugin": "2.1.5", |
| 95 | 95 | "svg-sprite-loader": "5.1.1", | ... | ... |
yudao-ui-admin/src/assets/styles/ruoyi.scss
yudao-ui-admin/src/components/HeaderSearch/index.vue
yudao-ui-admin/src/components/RightPanel/index.vue
| ... | ... | @@ -53,7 +53,6 @@ export default { |
| 53 | 53 | } |
| 54 | 54 | }, |
| 55 | 55 | mounted() { |
| 56 | - this.insertToBody() | |
| 57 | 56 | this.addEventClick() |
| 58 | 57 | }, |
| 59 | 58 | beforeDestroy() { |
| ... | ... | @@ -70,11 +69,6 @@ export default { |
| 70 | 69 | this.show = false |
| 71 | 70 | window.removeEventListener('click', this.closeSidebar) |
| 72 | 71 | } |
| 73 | - }, | |
| 74 | - insertToBody() { | |
| 75 | - const elx = this.$refs.rightPanel | |
| 76 | - const body = document.querySelector('body') | |
| 77 | - body.insertBefore(elx, body.firstChild) | |
| 78 | 72 | } |
| 79 | 73 | } |
| 80 | 74 | } | ... | ... |
yudao-ui-admin/src/components/TopNav/index.vue
| 1 | 1 | <template> |
| 2 | 2 | <el-menu |
| 3 | - :default-active="activeMenu" | |
| 4 | - mode="horizontal" | |
| 5 | - @select="handleSelect" | |
| 3 | + :default-active="activeMenu" | |
| 4 | + mode="horizontal" | |
| 5 | + @select="handleSelect" | |
| 6 | 6 | > |
| 7 | 7 | <template v-for="(item, index) in topMenus"> |
| 8 | - <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber" | |
| 9 | - ><svg-icon :icon-class="item.meta.icon" /> | |
| 10 | - {{ item.meta.title }}</el-menu-item | |
| 11 | - > | |
| 8 | + <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber"> | |
| 9 | + <svg-icon :icon-class="item.meta.icon"/> | |
| 10 | + {{ item.meta.title }} | |
| 11 | + </el-menu-item> | |
| 12 | 12 | </template> |
| 13 | 13 | |
| 14 | 14 | <!-- 顶部菜单超出数量折叠 --> |
| ... | ... | @@ -16,12 +16,13 @@ |
| 16 | 16 | <template slot="title">更多菜单</template> |
| 17 | 17 | <template v-for="(item, index) in topMenus"> |
| 18 | 18 | <el-menu-item |
| 19 | - :index="item.path" | |
| 20 | - :key="index" | |
| 21 | - v-if="index >= visibleNumber" | |
| 22 | - ><svg-icon :icon-class="item.meta.icon" /> | |
| 23 | - {{ item.meta.title }}</el-menu-item | |
| 19 | + :index="item.path" | |
| 20 | + :key="index" | |
| 21 | + v-if="index >= visibleNumber" | |
| 24 | 22 | > |
| 23 | + <svg-icon :icon-class="item.meta.icon"/> | |
| 24 | + {{ item.meta.title }} | |
| 25 | + </el-menu-item> | |
| 25 | 26 | </template> |
| 26 | 27 | </el-submenu> |
| 27 | 28 | </el-menu> |
| ... | ... | @@ -92,7 +93,9 @@ export default { |
| 92 | 93 | if (path !== undefined && path.lastIndexOf("/") > 0 && hideList.indexOf(path) === -1) { |
| 93 | 94 | const tmpPath = path.substring(1, path.length); |
| 94 | 95 | activePath = "/" + tmpPath.substring(0, tmpPath.indexOf("/")); |
| 95 | - this.$store.dispatch('app/toggleSideBarHide', false); | |
| 96 | + if (!this.$route.meta.link) { | |
| 97 | + this.$store.dispatch('app/toggleSideBarHide', false) | |
| 98 | + } | |
| 96 | 99 | } else if(!this.$route.children) { |
| 97 | 100 | activePath = path; |
| 98 | 101 | this.$store.dispatch('app/toggleSideBarHide', true); |
| ... | ... | @@ -145,6 +148,8 @@ export default { |
| 145 | 148 | } |
| 146 | 149 | if(routes.length > 0) { |
| 147 | 150 | this.$store.commit("SET_SIDEBAR_ROUTERS", routes); |
| 151 | + } else { | |
| 152 | + this.$store.dispatch("app/toggleSideBarHide", true); | |
| 148 | 153 | } |
| 149 | 154 | }, |
| 150 | 155 | ishttp(url) { | ... | ... |
yudao-ui-admin/src/components/Verifition/Verify.vue
| ... | ... | @@ -139,7 +139,6 @@ export default { |
| 139 | 139 | let slider = 'slider' + '-' + s.join('') |
| 140 | 140 | let point = 'point' + '-' + s.join('') |
| 141 | 141 | // 判断下是否存在 slider |
| 142 | - console.log(localStorage.getItem('slider')) | |
| 143 | 142 | if (!localStorage.getItem('slider')) { |
| 144 | 143 | localStorage.setItem('slider', slider) |
| 145 | 144 | } | ... | ... |
yudao-ui-admin/src/layout/components/TagsView/index.vue
| ... | ... | @@ -239,7 +239,7 @@ export default { |
| 239 | 239 | |
| 240 | 240 | <style lang="scss" scoped> |
| 241 | 241 | .tags-view-container { |
| 242 | - height: 34px; | |
| 242 | + height: 36px; | |
| 243 | 243 | width: 100%; |
| 244 | 244 | background: #fff; |
| 245 | 245 | border-bottom: 1px solid #d8dce5; |
| ... | ... | @@ -249,15 +249,16 @@ export default { |
| 249 | 249 | display: inline-block; |
| 250 | 250 | position: relative; |
| 251 | 251 | cursor: pointer; |
| 252 | - height: 26px; | |
| 253 | - line-height: 26px; | |
| 252 | + height: 28px; | |
| 253 | + line-height: 28px; | |
| 254 | 254 | border: 1px solid #d8dce5; |
| 255 | 255 | color: #495060; |
| 256 | 256 | background: #fff; |
| 257 | - padding: 0 8px; | |
| 257 | + padding: 0 6px; | |
| 258 | 258 | font-size: 12px; |
| 259 | - margin-left: 5px; | |
| 259 | + margin-left: 4px; | |
| 260 | 260 | margin-top: 4px; |
| 261 | + border-radius: 3px 3px 3px 3px; | |
| 261 | 262 | &:first-of-type { |
| 262 | 263 | margin-left: 15px; |
| 263 | 264 | } | ... | ... |
yudao-ui-admin/src/views/dashboard/BarChart.vue
yudao-ui-admin/src/views/dashboard/LineChart.vue
yudao-ui-admin/src/views/dashboard/PieChart.vue
yudao-ui-admin/src/views/dashboard/RaddarChart.vue
yudao-ui-admin/yarn.lock
| ... | ... | @@ -2775,6 +2775,21 @@ check-types@^8.0.3: |
| 2775 | 2775 | resolved "https://registry.npmmirror.com/check-types/-/check-types-8.0.3.tgz" |
| 2776 | 2776 | integrity sha512-YpeKZngUmG65rLudJ4taU7VLkOCTMhNl/u4ctNC56LQS/zJTyNH0Lrtwm1tfTsbLlwvlfsA2d1c8vCf/Kh2KwQ== |
| 2777 | 2777 | |
| 2778 | +"chokidar@>=3.0.0 <4.0.0", chokidar@^3.4.1: | |
| 2779 | + version "3.5.3" | |
| 2780 | + resolved "https://registry.npmmirror.com/chokidar/-/chokidar-3.5.3.tgz" | |
| 2781 | + integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== | |
| 2782 | + dependencies: | |
| 2783 | + anymatch "~3.1.2" | |
| 2784 | + braces "~3.0.2" | |
| 2785 | + glob-parent "~5.1.2" | |
| 2786 | + is-binary-path "~2.1.0" | |
| 2787 | + is-glob "~4.0.1" | |
| 2788 | + normalize-path "~3.0.0" | |
| 2789 | + readdirp "~3.6.0" | |
| 2790 | + optionalDependencies: | |
| 2791 | + fsevents "~2.3.2" | |
| 2792 | + | |
| 2778 | 2793 | chokidar@^2.1.8: |
| 2779 | 2794 | version "2.1.8" |
| 2780 | 2795 | resolved "https://registry.npmmirror.com/chokidar/-/chokidar-2.1.8.tgz" |
| ... | ... | @@ -2794,21 +2809,6 @@ chokidar@^2.1.8: |
| 2794 | 2809 | optionalDependencies: |
| 2795 | 2810 | fsevents "^1.2.7" |
| 2796 | 2811 | |
| 2797 | -chokidar@^3.4.1: | |
| 2798 | - version "3.5.3" | |
| 2799 | - resolved "https://registry.npmmirror.com/chokidar/-/chokidar-3.5.3.tgz" | |
| 2800 | - integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== | |
| 2801 | - dependencies: | |
| 2802 | - anymatch "~3.1.2" | |
| 2803 | - braces "~3.0.2" | |
| 2804 | - glob-parent "~5.1.2" | |
| 2805 | - is-binary-path "~2.1.0" | |
| 2806 | - is-glob "~4.0.1" | |
| 2807 | - normalize-path "~3.0.0" | |
| 2808 | - readdirp "~3.6.0" | |
| 2809 | - optionalDependencies: | |
| 2810 | - fsevents "~2.3.2" | |
| 2811 | - | |
| 2812 | 2812 | chownr@^1.1.1: |
| 2813 | 2813 | version "1.1.4" |
| 2814 | 2814 | resolved "https://registry.npmmirror.com/chownr/-/chownr-1.1.4.tgz" |
| ... | ... | @@ -3942,12 +3942,13 @@ ecc-jsbn@~0.1.1: |
| 3942 | 3942 | jsbn "~0.1.0" |
| 3943 | 3943 | safer-buffer "^2.1.0" |
| 3944 | 3944 | |
| 3945 | -echarts@4.9.0: | |
| 3946 | - version "4.9.0" | |
| 3947 | - resolved "https://registry.npmmirror.com/echarts/-/echarts-4.9.0.tgz" | |
| 3948 | - integrity sha512-+ugizgtJ+KmsJyyDPxaw2Br5FqzuBnyOWwcxPKO6y0gc5caYcfnEUIlNStx02necw8jmKmTafmpHhGo4XDtEIA== | |
| 3945 | +echarts@5.4.0: | |
| 3946 | + version "5.4.0" | |
| 3947 | + resolved "https://registry.npmmirror.com/echarts/-/echarts-5.4.0.tgz#a9a8e5367293a397408d3bf3e2638b869249ce04" | |
| 3948 | + integrity sha512-uPsO9VRUIKAdFOoH3B0aNg7NRVdN7aM39/OjovjO9MwmWsAkfGyeXJhK+dbRi51iDrQWliXV60/XwLA7kg3z0w== | |
| 3949 | 3949 | dependencies: |
| 3950 | - zrender "4.3.2" | |
| 3950 | + tslib "2.3.0" | |
| 3951 | + zrender "5.4.0" | |
| 3951 | 3952 | |
| 3952 | 3953 | editorconfig@^0.15.3: |
| 3953 | 3954 | version "0.15.3" |
| ... | ... | @@ -8527,10 +8528,12 @@ sass-loader@10.2.0: |
| 8527 | 8528 | schema-utils "^3.0.0" |
| 8528 | 8529 | semver "^7.3.2" |
| 8529 | 8530 | |
| 8530 | -sass@1.3.0: | |
| 8531 | - version "1.3.0" | |
| 8532 | - resolved "https://registry.npmmirror.com/sass/-/sass-1.3.0.tgz#570f2ac1c868dacf2101648056f40423284a557c" | |
| 8533 | - integrity sha512-YdPvqr6GCzh70dB0NMdQ+95YS5WxdCSrJ1eql3+o+t/GOQQTNgb4qXAY+b8e6dIHx7fa3LT73EpsjeZTXdCZkQ== | |
| 8531 | +sass@1.32.13: | |
| 8532 | + version "1.32.13" | |
| 8533 | + resolved "https://registry.npmmirror.com/sass/-/sass-1.32.13.tgz#8d29c849e625a415bce71609c7cf95e15f74ed00" | |
| 8534 | + integrity sha512-dEgI9nShraqP7cXQH+lEXVf73WOPCse0QlFzSD8k+1TcOxCMwVXfQlr0jtoluZysQOyJGnfr21dLvYKDJq8HkA== | |
| 8535 | + dependencies: | |
| 8536 | + chokidar ">=3.0.0 <4.0.0" | |
| 8534 | 8537 | |
| 8535 | 8538 | sax@^1.2.4, sax@~1.2.4: |
| 8536 | 8539 | version "1.2.4" |
| ... | ... | @@ -9586,6 +9589,11 @@ tsconfig-paths@^3.14.1: |
| 9586 | 9589 | minimist "^1.2.6" |
| 9587 | 9590 | strip-bom "^3.0.0" |
| 9588 | 9591 | |
| 9592 | +tslib@2.3.0: | |
| 9593 | + version "2.3.0" | |
| 9594 | + resolved "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e" | |
| 9595 | + integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg== | |
| 9596 | + | |
| 9589 | 9597 | tslib@^1.9.0: |
| 9590 | 9598 | version "1.14.1" |
| 9591 | 9599 | resolved "https://registry.npmmirror.com/tslib/-/tslib-1.14.1.tgz" |
| ... | ... | @@ -10370,7 +10378,9 @@ yorkie@^2.0.0: |
| 10370 | 10378 | normalize-path "^1.0.0" |
| 10371 | 10379 | strip-indent "^2.0.0" |
| 10372 | 10380 | |
| 10373 | -zrender@4.3.2: | |
| 10374 | - version "4.3.2" | |
| 10375 | - resolved "https://registry.npmmirror.com/zrender/-/zrender-4.3.2.tgz" | |
| 10376 | - integrity sha512-bIusJLS8c4DkIcdiK+s13HiQ/zjQQVgpNohtd8d94Y2DnJqgM1yjh/jpDb8DoL6hd7r8Awagw8e3qK/oLaWr3g== | |
| 10381 | +zrender@5.4.0: | |
| 10382 | + version "5.4.0" | |
| 10383 | + resolved "https://registry.npmmirror.com/zrender/-/zrender-5.4.0.tgz#d4f76e527b2e3bbd7add2bdaf27a16af85785576" | |
| 10384 | + integrity sha512-rOS09Z2HSVGFs2dn/TuYk5BlCaZcVe8UDLLjj1ySYF828LATKKdxuakSZMvrDz54yiKPDYVfjdKqcX8Jky3BIA== | |
| 10385 | + dependencies: | |
| 10386 | + tslib "2.3.0" | ... | ... |