From 50187bdc5d7e746d1d73958cd405c235f1c6db65 Mon Sep 17 00:00:00 2001 From: Shigma <1700011071@pku.edu.cn> Date: Sun, 8 May 2022 03:03:14 +0800 Subject: [PATCH] feat(manager): support npm package version notation --- .../client/components/common/button.vue | 19 +----- .../client/client/components/style.scss | 24 +++++++ plugins/frontend/console/src/http.ts | 1 + .../frontend/manager/client/deps/index.vue | 2 +- .../frontend/manager/client/deps/package.vue | 62 ++++++++++++++----- plugins/frontend/manager/src/installer.ts | 2 +- 6 files changed, 74 insertions(+), 36 deletions(-) diff --git a/plugins/frontend/client/client/components/common/button.vue b/plugins/frontend/client/client/components/common/button.vue index bdf93844bd..afd5522ca7 100644 --- a/plugins/frontend/client/client/components/common/button.vue +++ b/plugins/frontend/client/client/components/common/button.vue @@ -54,7 +54,7 @@ function onClick(event: MouseEvent) { border-radius: 0.4em; cursor: pointer; padding: 0.4em 1em; - transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease; + transition: var(--color-transition); display: inline-block; &.round { border-radius: 50%; @@ -116,22 +116,7 @@ function onClick(event: MouseEvent) { } } - .k-button-group > &:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; - } - .k-button-group > &:not(:last-child) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; - &:not(:hover) { - border-right-width: 0; - } - } - .k-button-group > &:hover + & { - border-left-width: 0; - } - - *:not(.k-button-group) > & + & { + & + & { margin: 0 1rem; } } diff --git a/plugins/frontend/client/client/components/style.scss b/plugins/frontend/client/client/components/style.scss index 4fd94de9e3..d1a520c785 100644 --- a/plugins/frontend/client/client/components/style.scss +++ b/plugins/frontend/client/client/components/style.scss @@ -131,6 +131,30 @@ html.dark .el-switch { --el-switch-off-color: #72767d; } +.right-adjacent { + &.k-button, &.el-select .el-input__wrapper { + border-top-right-radius: 0; + border-bottom-right-radius: 0; + } + + &:hover { + z-index: 100; + } + &:hover + .left-adjacent { + border-left-color: transparent; + } +} + +.left-adjacent { + z-index: 0; + margin-left: -1px; + + &.k-button, &.el-select .el-input__wrapper { + border-top-left-radius: 0; + border-bottom-left-radius: 0; + } +} + .el-table__body-wrapper, .el-table__footer-wrapper, .el-table__header-wrapper { diff --git a/plugins/frontend/console/src/http.ts b/plugins/frontend/console/src/http.ts index f460ca6f49..351fd2ae85 100644 --- a/plugins/frontend/console/src/http.ts +++ b/plugins/frontend/console/src/http.ts @@ -135,6 +135,7 @@ class HttpService extends DataService { }, optimizeDeps: { include: [ + 'schemastery', 'element-plus', ], }, diff --git a/plugins/frontend/manager/client/deps/index.vue b/plugins/frontend/manager/client/deps/index.vue index 3e6c6142ed..f63b136f8c 100644 --- a/plugins/frontend/manager/client/deps/index.vue +++ b/plugins/frontend/manager/client/deps/index.vue @@ -1,7 +1,7 @@