mayf
2024-09-20 de6c456c895bbf8ffcd1c0b4d9442c8cec3c0f4c
显示二级分类数量
已修改1个文件
2 ■■■■■ 文件已修改
pages/goods/category-list.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/goods/category-list.vue
@@ -36,6 +36,7 @@
          )
          return list.map((i) => ({
            ...i,
            childrenCount: Array.isArray(i.children) ? i.children.length : 0,
            children: this.expandIds.includes(i.id)
              ? i.children
              : i.children.slice(0, 1),
@@ -82,6 +83,7 @@
            ),
          },
          { label: '排序', prop: 'sortBy' },
          { label: '下级数量', formatter: (row) => row.childrenCount },
          {
            label: '是否显示',
            formatter: (row) => (