文件操作 - index.tsx
返回文件管理
返回主菜单
删除本文件
文件: /home/www/public/wp-content/plugins/give/src/Views/Components/AdminUI/Button/index.tsx
编辑文件内容
import {forwardRef, MouseEventHandler, ReactNode} from 'react'; import cx from 'classnames'; import './style.scss'; /** * * @since 3.0.0 */ export type ButtonProps = { variant?: 'primary' | 'secondary' | 'danger'; size?: 'small' | 'large'; type?: 'button' | 'reset' | 'submit'; children: ReactNode; onClick?: MouseEventHandler; disabled?: boolean; className?: string; [x: string]: any; }; const Button = forwardRef<HTMLButtonElement, ButtonProps>( ({children, type = 'button', variant = 'primary', size = 'small', disabled = false, className, ...props}, ref) => ( <button ref={ref} disabled={disabled} type={type} className={cx('givewp-button', variant, size, className)} {...props} > {children} </button> ) ); export default Button;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件