文件操作 - index.tsx
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/Admin/components/Grid/index.tsx
编辑文件内容
import classnames from 'classnames'; import styles from './styles.module.scss'; /** * @since 4.8.0 */ type GridProps = { children: React.ReactNode; ariaLabel: string; }; /** * @since 4.8.0 */ export default function Grid({children, ariaLabel}: GridProps) { return ( <div className={styles.container} role="group" aria-label={ariaLabel}> {children} </div> ); } /** * @since 4.8.0 */ type GridCardProps = { children: React.ReactNode; heading: string; headingId: string; className?: string; }; /** * @since 4.8.0 */ export function GridCard({children, heading, headingId, className}: GridCardProps) { return ( <div className={classnames(styles.card, className)} role="region" aria-labelledby={`${headingId}-label`}> <h3 id={headingId} className={styles.heading}>{heading}</h3> {children} </div> ); }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件