Browse Source

修改字体大小

zs 11 months ago
parent
commit
4ccffb4f7f
2 changed files with 21 additions and 2 deletions
  1. 11 0
      src/styles/variables.scss
  2. 10 2
      src/views/main/seven.vue

+ 11 - 0
src/styles/variables.scss

@@ -103,3 +103,14 @@ $global-font-size-30: 30px;
 .ant-descriptions-title {
   font-size: 18px !important; /* 设置描述列表标题的字体大小 */
 }
+/* custom-antd.css */
+.ant-checkbox-wrapper {
+  font-size: 18px; /* 设置复选框标签的字体大小 */
+}
+
+/* 如果你还想调整复选框内部的文字大小(例如当使用 indeterminate 状态时) */
+.ant-checkbox-input {
+  & + .ant-checkbox-inner {
+    font-size: 16px; /* 设置复选框内部文字的字体大小 */
+  }
+}

+ 10 - 2
src/views/main/seven.vue

@@ -25,8 +25,13 @@
               <el-row class="two_1_1">
                 <el-col :span="2" class="left">机构名称:</el-col>
                 <el-col :span="22" class="right">
-                  <a-input class="input" v-model:value="value" placeholder="请输入机构名称" />
-                  <a-button class="button" type="primary">检索</a-button>
+                  <el-input
+                    size="large"
+                    class="input"
+                    v-model:value="value"
+                    placeholder="请输入机构名称"
+                  />
+                  <el-button size="large" class="button" type="primary">检索</el-button>
                 </el-col>
               </el-row>
             </el-col>
@@ -160,6 +165,9 @@ const toView = (item) => {
         display: flex;
         align-items: center;
         padding: 10px 0;
+        .left {
+          font-size: $global-font-size-18;
+        }
         .right {
           display: flex;
           align-items: center;