liyongli 2 rokov pred
rodič
commit
3d689d7596
1 zmenil súbory, kde vykonal 16 pridanie a 0 odobranie
  1. 16 0
      src/views/Content/index.vue

+ 16 - 0
src/views/Content/index.vue

@@ -278,6 +278,22 @@
             ></countTo>
           </template>
         </el-table-column>
+        <el-table-column
+          label="评论数"
+          header-align="center"
+          align="center"
+          sortable
+          :sort-orders="['descending', null]"
+          prop="ccomments"
+        >
+          <template #default="scope">
+            <countTo
+              :startVal="0"
+              :endVal="scope.row.ccomments || 0"
+              :duration="100"
+            ></countTo>
+          </template>
+        </el-table-column>
         <el-table-column
           label="观看用户数"
           header-align="center"