chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -31,12 +31,12 @@ interface ResponsiveListProps<T> {
footer?: React.ReactNode;
gridCols?: ResponsiveTokenMap<ScreenRange>; // 响应式列数
gridGapXs?: ResponsiveTokenMap<ScreenRange>; // 响应式X轴gap
gridGapYs?: ResponsiveTokenMap<ScreenRange>; // 响应式Y轴gap
gridCols?: ResponsiveTokenMap<ScreenRange>; // number of responsive columns
gridGapXs?: ResponsiveTokenMap<ScreenRange>; // Responsive X-axis gap
gridGapYs?: ResponsiveTokenMap<ScreenRange>; // Responsive Y-axis gap
}
// 通过tailwind动态根据媒体查询设置List列数
// List columns dynamically set by media query with tailwind
export const ResponsiveList = <T extends object>({
dataSource,
renderItem,

View File

@@ -30,7 +30,7 @@ export const useCustomMediaQuery = ({
rangeMinPx?: string;
rangeMaxPx?: string;
}) => {
// 1. 根据查询范围拼凑query语句
// 1. Patchwork query statements according to query range
const getQuery = () => {
const minQuery = rangeMinPx ? `(min-width: ${rangeMinPx})` : '';
const maxQuery = rangeMaxPx ? `(max-width: ${rangeMaxPx})` : '';
@@ -40,7 +40,7 @@ export const useCustomMediaQuery = ({
};
const query = getQuery();
// 2. 配合监听事件动态判断是否在区域中
// 2. Cooperate with the monitoring event to dynamically determine whether it is in the area
const [matches, setMatches] = useState(window.matchMedia(query).matches);
useEffect(() => {
const mediaQueryList = window.matchMedia(query);
@@ -58,7 +58,7 @@ export const useCustomMediaQuery = ({
return matches;
};
// 判断当前屏幕像素是否match媒体查询条件
// Determine whether the current screen pixels match the media query conditions
export const useMediaQuery = ({
rangeMin,
rangeMax,