MinJieLiu %!s(int64=7) %!d(string=hai) anos
pai
achega
06e56ab406
Modificáronse 6 ficheiros con 6 adicións e 6 borrados
  1. 1 1
      package.json
  2. 1 1
      src/Photo.tsx
  3. 1 1
      src/PhotoConsumer.tsx
  4. 1 1
      src/PhotoProvider.tsx
  5. 1 1
      src/PhotoSlider.tsx
  6. 1 1
      src/PhotoView.tsx

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "react-photo-view",
-  "version": "0.2.6",
+  "version": "0.2.7",
   "description": "React photo preview.",
   "main": "./lib/index",
   "module": "./es/index",

+ 1 - 1
src/Photo.tsx

@@ -4,7 +4,7 @@ import throttle from './utils/throttle';
 import Spinner from './components/Spinner';
 import getSuitableImageSize from './utils/getSuitableImageSize';
 
-interface IPhotoProps extends React.HTMLAttributes<any> {
+export interface IPhotoProps extends React.HTMLAttributes<any> {
   src: string;
   onPhotoResize: () => void;
   loadingElement?: JSX.Element;

+ 1 - 1
src/PhotoConsumer.tsx

@@ -7,7 +7,7 @@ import PhotoContext, {
   removeItemType,
 } from './photo-context';
 
-interface IPhotoViewItem {
+export interface IPhotoViewItem {
   src: string;
   intro?: React.ReactNode;
   children?: React.ReactElement<any>;

+ 1 - 1
src/PhotoProvider.tsx

@@ -7,7 +7,7 @@ import PhotoContext, {
 import PhotoSlider from './PhotoSlider';
 import { dataType, IPhotoProviderBase } from './types';
 
-interface IPhotoProvider extends IPhotoProviderBase {
+export interface IPhotoProvider extends IPhotoProviderBase {
   children: React.ReactNode;
 }
 

+ 1 - 1
src/PhotoSlider.tsx

@@ -11,7 +11,7 @@ import {
 } from './types';
 import { defaultOpacity, horizontalOffset, maxMoveOffset } from './variables';
 
-interface IPhotoSliderProps extends IPhotoProviderBase {
+export interface IPhotoSliderProps extends IPhotoProviderBase {
   // 图片列表
   images: dataType[];
   // 图片当前索引

+ 1 - 1
src/PhotoView.tsx

@@ -16,7 +16,7 @@ import {
   ReachTypeEnum,
 } from './types';
 
-interface IPhotoViewProps {
+export interface IPhotoViewProps {
   // 图片地址
   src: string;
   // 容器类名