瀏覽代碼

feat(组件): 排序

tangning 2 年之前
父節點
當前提交
28545a9d6b
共有 1 個文件被更改,包括 7 次插入6 次删除
  1. 7 6
      src/views/product/list.data.ts

+ 7 - 6
src/views/product/list.data.ts

@@ -60,13 +60,14 @@ export const columns: BasicColumn[] = [
     title: '购买链接',
     dataIndex: 'realShopUrl',
     slots: { customRender: 'realShopUrl' },
+    ellipsis: true,
     width: 150,
   },
   {
     title: '商品分类',
     dataIndex: 'categoryName',
     // slots: { customRender: 'productType' },
-    // sorter: true,
+    sorter: true,
     width: 120,
   },
   {
@@ -76,32 +77,32 @@ export const columns: BasicColumn[] = [
     // customRender: ({ record }) => {
     //   return record.steamRoom.name as unknown as {};
     // },
-    // sorter: true,
+    sorter: true,
     width: 120,
   },
   {
     title: '销售价',
     dataIndex: 'retailPrice',
-    // sorter: true,
+    sorter: true,
     width: 80,
   },
   {
     title: '销售量',
     dataIndex: 'sellVolume',
-    // sorter: true,
+    sorter: true,
     width: 80,
   },
   {
     title: '市场价',
     dataIndex: 'marketPrice',
-    // sorter: true,
+    sorter: true,
     width: 80,
   },
   {
     title: '创建时间',
     dataIndex: 'addTime',
     slots: { customRender: 'addTime' },
-    // sorter: true,
+    sorter: true,
     width: 140,
   },
   {