diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index fa5c6f2..052bc0e 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -124,6 +124,13 @@ aside { //main-container全局样式 .app-container { padding: 10px; + .current-title{ + font-size: 18px; + color: rgba(28,30,32,0.85); + font-family: Noto Sans SC, Noto Sans SC; + font-weight: 500; + margin: 20px 0; + } } .components-container { diff --git a/src/components/baseSelection/index.vue b/src/components/baseSelection/index.vue index 85773e3..03184b7 100644 --- a/src/components/baseSelection/index.vue +++ b/src/components/baseSelection/index.vue @@ -40,9 +40,9 @@ onMounted(()=>{
-
+
-
{{item.baseName}}
+
{{item.baseName}}
@@ -56,9 +56,15 @@ onMounted(()=>{ } .base-list{ .base-item{ - margin: 10px 20px; + text-align: center; //鼠标悬浮变成点击 cursor: pointer; + padding: 10px 20px; + + &:hover { + background-color: var(--el-color-primary-light-9); + color: var(--el-color-primary); + } display: flex; .base-name{ margin-left: 10px; @@ -66,6 +72,8 @@ onMounted(()=>{ } } .base-active{ - color: v-bind(theme); + background-color: var(--el-color-primary-light-9); + color: var(--el-color-primary); + border-right: 3px solid var(--el-color-primary); } \ No newline at end of file diff --git a/src/components/cropSelection/index.vue b/src/components/cropSelection/index.vue index 2aced6f..864f538 100644 --- a/src/components/cropSelection/index.vue +++ b/src/components/cropSelection/index.vue @@ -13,6 +13,8 @@ onMounted(()=>{ clickCrop(item) } }) + }else{ + clickCrop(cropList.value[0]) } }) const currentCrop = defineModel({type:Object,default:()=>({})}) @@ -31,9 +33,9 @@ const clickCrop = (item) => {
-
+
-
{{item.cropName}}
+
{{item.cropName}}
@@ -47,9 +49,15 @@ const clickCrop = (item) => { } .Crop-list{ .Crop-item{ - margin: 10px 20px; + text-align: center; //鼠标悬浮变成点击 cursor: pointer; + padding: 10px 20px; + + &:hover { + background-color: var(--el-color-primary-light-9); + color: var(--el-color-primary); + } display: flex; .Crop-name{ margin-left: 10px; @@ -57,6 +65,8 @@ const clickCrop = (item) => { } } .Crop-active{ - color: v-bind(theme); + background-color: var(--el-color-primary-light-9); + color: var(--el-color-primary); + border-right: 3px solid var(--el-color-primary); } \ No newline at end of file