Files
NapCatQQ/.pnpm-store/v3/files/93/2b3d4937bac84d87add1581071389eedd6931d861f022eb00d0fa785dec0ed9a7a3ba1114551d910957b84495a2f3f3fdef1602ed7847ea0ff887b5905bbf7
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

23 lines
1.0 KiB
Plaintext

import React from 'react';
import type { DataType, ReachMoveFunction, ReachFunction, PhotoTapFunction, BrokenElementParams, ExposedProperties } from './types';
import './PhotoBox.less';
export interface PhotoBoxProps {
item: DataType;
visible: boolean;
speed: number;
easing: string;
wrapClassName?: string;
className?: string;
style?: object;
loadingElement?: JSX.Element;
brokenElement?: JSX.Element | ((photoProps: BrokenElementParams) => JSX.Element);
onPhotoTap: PhotoTapFunction;
onMaskTap: PhotoTapFunction;
onReachMove: ReachMoveFunction;
onReachUp: ReachFunction;
onPhotoResize: () => void;
expose: (state: ExposedProperties) => void;
isActive: boolean;
}
export default function PhotoBox({ item: { src, render, width: customWidth, height: customHeight, originRef }, visible, speed, easing, wrapClassName, className, style, loadingElement, brokenElement, onPhotoTap, onMaskTap, onReachMove, onReachUp, onPhotoResize, isActive, expose, }: PhotoBoxProps): React.JSX.Element;