소스 검색

设置默认小尺寸

zhengnaiwen_citu 5 달 전
부모
커밋
e9c954e4ce
3개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 0
      src/components/AutoComponents/MTable/index.vue
  2. 0 1
      src/views/bonus/allocation/index.vue
  3. 4 5
      src/views/dataChart/privateChart.vue

+ 5 - 0
src/components/AutoComponents/MTable/index.vue

@@ -117,6 +117,11 @@ $height: 60px;
   display: flex;
   align-items: center;
   height: $height;
+  ::v-deep .el-button {
+    padding: 9px 15px;
+    font-size: 12px;
+    border-radius: 3px;
+  }
 }
 ::v-deep .el-card__header {
   padding-top: 0;

+ 0 - 1
src/views/bonus/allocation/index.vue

@@ -16,7 +16,6 @@
             <m-button
               class="ml-3"
               type="orange"
-              size="small"
               :loading="auditStatusLoading"
               v-show="auditStatus !== 0 && auditStatus !== 1 && items.length"
               @click="onSave">

+ 4 - 5
src/views/dataChart/privateChart.vue

@@ -1,10 +1,6 @@
 <template>
   <div class="pa-3 white">
-    <m-search class="mb-3" :items="searchItems" v-model="searchValue" @search="onSearch">
-      <template #button>
-        <m-button type="orange" icon="el-icon-plus" @click="onAdd">新增</m-button>
-      </template>
-    </m-search>
+    <m-search class="mb-3" :items="searchItems" v-model="searchValue" @search="onSearch"></m-search>
     <m-table
       v-loading="loading"
       :items="items"
@@ -14,6 +10,9 @@
       :total="total"
       @page-change="onPageChange"
     >
+      <template #card-tools>
+        <m-button type="orange" icon="el-icon-plus" @click="onAdd">新增</m-button>
+      </template>
       <template #actions="{ row }">
         <m-button type="primary" text @click="onEdit(row)">编辑</m-button>
         <m-button type="danger" text @click="onDelete(row)">删除</m-button>