/* * @Author: RenXiaoDong * @Date: 2025-07-05 10:49:37 */ export const getPropPrefix = (type: string) => { return type === 'week' ? 'seven_' : 'thirty_'; }; export const CUSTOM_FIELDS = [ { dataIndex: 'view_number', prop: 'view_number', title: '观看量', width: 180, tooltip: '账号所有内容的浏览总数', align: 'right', }, { dataIndex: 'view_rate', prop: 'view_rate', title: '观看量环比', width: 180, tooltip: '账号所有内容的观看量环比', align: 'right', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, }, { dataIndex: 'home_view_number', prop: 'home_view_number', title: '主页访客数', width: 200, tooltip: '账号所有内容的主页访客数', align: 'right', }, { dataIndex: 'home_view_rate', prop: 'home_view_rate', title: '主页访客数环比', width: 200, tooltip: '账号所有内容的主页访客数环比', align: 'right', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, }, { dataIndex: 'like_number', prop: 'like_number', title: '点赞量', width: 180, tooltip: '账号所有内容的点赞总数', align: 'right', }, { dataIndex: 'like_rate', prop: 'like_rate', title: '点赞量环比', width: 180, tooltip: '账号所有内容的点赞量环比', align: 'right', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, }, { dataIndex: 'comment_number', prop: 'comment_number', title: '评论数', width: 180, tooltip: '账号所有内容的评论总数', align: 'right', }, { dataIndex: 'comment_rate', prop: 'comment_rate', title: '评论数环比', width: 180, tooltip: '账号所有内容的评论数环比', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, align: 'right', }, { dataIndex: 'collect_number', prop: 'collect_number', title: '收藏数', width: 180, tooltip: '账号所有内容的收藏总数', align: 'right', }, { dataIndex: 'collect_rate', prop: 'collect_rate', title: '收藏数环比', width: 200, tooltip: '账号所有内容的收藏数环比', align: 'right', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, }, { dataIndex: 'barrage_number', prop: 'barrage_number', title: '弹幕数', width: 180, tooltip: '账号所有内容的弹幕总数', align: 'right', }, { dataIndex: 'barrage_rate', prop: 'barrage_rate', title: '弹幕数环比', width: 200, tooltip: '账号所有内容的弹幕数环比', align: 'right', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, }, { dataIndex: 'rise_fans_number', prop: 'rise_fans_number', title: '笔记涨粉数', width: 180, tooltip: '账号所有内容的笔记涨粉数', align: 'right', }, { dataIndex: 'rise_fans_rate', prop: 'rise_fans_rate', title: '笔记涨粉数环比', width: 200, tooltip: '账号所有内容的笔记涨粉数环比', align: 'right', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, }, { dataIndex: 'share_number', prop: 'share_number', title: '笔记分享量', width: 200, tooltip: '账号所有内容的笔记分享量', align: 'right', }, { dataIndex: 'share_rate', prop: 'share_rate', title: '笔记分享量环比', width: 200, tooltip: '账号所有内容的笔记分享量环比', align: 'right', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, }, { dataIndex: 'avg_view_time', prop: 'avg_view_time', title: '笔记平均浏览数', width: 200, tooltip: '账号所有内容的笔记平均浏览数', align: 'right', }, { dataIndex: 'avg_view_time_rate', prop: 'avg_view_time_rate', title: '笔记平均浏览数环比', width: 220, tooltip: '账号所有内容的笔记平均浏览数环比', align: 'right', suffix: '%', isRateField: true, sortable: { sortDirections: ['ascend', 'descend'], }, }, ];