Parcourir la source

fix: 限定 el-select 默认宽度的影响范围

许俊杰 il y a 2 ans
Parent
commit
5977cc0007
1 fichiers modifiés avec 10 ajouts et 6 suppressions
  1. 10 6
      Web/src/App.vue

+ 10 - 6
Web/src/App.vue

@@ -107,11 +107,15 @@ watch(
 );
 </script>
 
-<style>
-.el-select {
-	width: 171px !important;
-}
-.el-select__wrapper {
-	line-height: 22px !important;
+<style lang="scss">
+.el-form--inline {
+	.el-form-item {
+		.el-select {
+			width: 171px !important;
+		}
+		.el-select__wrapper {
+			line-height: 22px !important;
+		}
+	}
 }
 </style>