2025-11-05 17:11:36 +08:00

17 lines
326 B
TypeScript

import { View, Image } from "@tarojs/components";
import { memo } from "react";
interface Props {
src: string;
size: "small" | "medium" | "large" | "raw";
}
export const ImageTpl = memo(({ src, size }: Props) => {
console.log(size);
return (
<View>
<Image src={src} mode="widthFix" />
</View>
);
});