Quellcode durchsuchen

表格按钮列表固定在右边

huangbin vor 4 Jahren
Ursprung
Commit
8aff66cd17

+ 7 - 0
src/assets/styles/mixin.less

@@ -2059,4 +2059,11 @@ input:-internal-autofill-selected {
     .ant-calendar-picker-icon {
         display: none;
     }
+}
+
+// 表格按钮列表固定在右边
+.btn-list-sticky {
+    position: sticky;
+    position: -webkit-sticky;
+    right: 2px;
 }

+ 1 - 0
src/views/business/sell/list/pending/index.vue

@@ -18,6 +18,7 @@
       <!-- 额外的展开行 -->
       <template #expandedRowRender="{ record }">
         <BtnList :btnList="secondBtn"
+                 class="btn-list-sticky"
                  :record="record"
                  @click="openComponent" />
       </template>

+ 1 - 0
src/views/business/sell/list/performance/index.vue

@@ -18,6 +18,7 @@
       <!-- 额外的展开行 -->
       <template #expandedRowRender="{ record }">
         <BtnList :btnList="secondBtn"
+                 class="btn-list-sticky"
                  :record="record"
                  @click="openComponent" />
       </template>