update: 滚动条样式抽离复用

This commit is contained in:
zhuoqinglian
2026-06-29 15:42:52 +08:00
parent 799ea28d82
commit 0270de1844
7 changed files with 30 additions and 36 deletions
@@ -288,23 +288,15 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/global.scss';
::v-deep .el-dialog { ::v-deep .el-dialog {
margin-top: 6vh !important; margin-top: 6vh !important;
} }
::v-deep .el-dialog__body { ::v-deep .el-dialog__body {
max-height: 60vh; max-height: 60vh;
overflow-y: auto; overflow-y: auto;
&::-webkit-scrollbar { @include scrollbar-style;
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: #a1c9fd;
border-radius: 3px;
}
&::-webkit-scrollbar-track {
background: #f0f3fe;
border-radius: 3px;
}
} }
.add-model-dialog { .add-model-dialog {
.section-header { .section-header {
@@ -599,7 +599,6 @@ export default {
.nav-text { .nav-text {
white-space: normal; white-space: normal;
text-align: center; text-align: center;
max-width: 80px;
line-height: 1.2; line-height: 1.2;
} }
@@ -464,23 +464,15 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/global.scss';
::v-deep .el-dialog { ::v-deep .el-dialog {
margin-top: 6vh !important; margin-top: 6vh !important;
} }
::v-deep .el-dialog__body { ::v-deep .el-dialog__body {
max-height: 60vh; max-height: 60vh;
overflow-y: auto; overflow-y: auto;
&::-webkit-scrollbar { @include scrollbar-style;
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: #a1c9fd;
border-radius: 3px;
}
&::-webkit-scrollbar-track {
background: #f0f3fe;
border-radius: 3px;
}
} }
.model-edit-dialog { .model-edit-dialog {
.header-row { .header-row {
+14
View File
@@ -30,3 +30,17 @@ select:-webkit-autofill:focus {
border-top-color: #e4e7ed !important; border-top-color: #e4e7ed !important;
} }
} }
@mixin scrollbar-style {
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: #a1c9fd;
border-radius: 3px;
}
&::-webkit-scrollbar-track {
background: #f0f3fe;
border-radius: 3px;
}
}
@@ -356,7 +356,9 @@ export default {
} }
</script> </script>
<style scoped> <style lang="scss" scoped>
@import '@/styles/global.scss';
.welcome { .welcome {
min-width: 900px; min-width: 900px;
min-height: 506px; min-height: 506px;
@@ -427,6 +429,7 @@ export default {
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: auto;
} }
.content-panel { .content-panel {
@@ -464,7 +467,8 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex: 1; flex: 1;
overflow: hidden; overflow: auto;
@include scrollbar-style;
} }
.features-grid { .features-grid {
@@ -709,6 +709,7 @@ export default {
position: relative; position: relative;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden;
} }
.operation-bar { .operation-bar {
@@ -363,6 +363,8 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/styles/global.scss';
.welcome { .welcome {
min-width: 900px; min-width: 900px;
min-height: 506px; min-height: 506px;
@@ -484,17 +486,7 @@ export default {
align-content: start; align-content: start;
min-height: 200px; min-height: 200px;
overflow: auto; overflow: auto;
&::-webkit-scrollbar { @include scrollbar-style;
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: #a1c9fd;
border-radius: 3px;
}
&::-webkit-scrollbar-track {
background: #f0f3fe;
border-radius: 3px;
}
} }
.voice-clone-card { .voice-clone-card {