lifanagju_citu 4 months ago
parent
commit
a4416401fe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/mall/cart/index.vue

+ 2 - 2
src/views/mall/cart/index.vue

@@ -43,9 +43,9 @@
       </v-data-table>
       <v-divider></v-divider>
       <div class="d-flex align-center justify-space-between py-4">
-        <div>
+        <div class="d-flex align-center">
           <v-btn :disabled="!selectedData.length" color="error" variant="outlined" @click.stop="handleDelete(true)">删除选中的商品</v-btn>
-          <!-- <v-btn v-if="selectedData.length" color="warning" variant="outlined" class="ml-2" @click.stop="handleSelectAll(false)">取消全部选中项</v-btn> -->
+          <v-checkbox v-model="selectAll" hide-details color="primary" class="ml-3" @update:modelValue="handleSelectAll"></v-checkbox><span style="color: #777;">全选</span>
         </div>
         <div class="d-flex align-center">
           <div class="color-666 mr-8">共{{ totalCount }}件商品,合计:¥{{ fen2yuan(totalPrice) }}</div>