antd-mobile
Version:
基于 React 的移动设计规范实现
79 lines (78 loc) • 2.31 kB
TypeScript
/// <reference types="react" />
import React from 'react';
import { ImagePickerPropTypes } from './PropsType';
export default class ImagePicker extends React.Component<ImagePickerPropTypes, any> {
static defaultProps: {
styles: {
container: {
flexWrap: string;
flexDirection: string;
};
size: {
width: number;
height: number;
};
item: {
marginRight: number;
marginBottom: number;
overflow: string;
};
image: {
overflow: string;
borderRadius: number;
};
closeWrap: {
width: number;
height: number;
backgroundColor: string;
borderRadius: number;
position: string;
top: number;
right: number;
justifyContent: string;
alignItems: string;
overflow: string;
};
closeText: {
color: string;
backgroundColor: string;
fontSize: number;
height: number;
marginTop: number;
fontWeight: string;
};
plusWrap: {
borderRadius: number;
borderWidth: number;
justifyContent: string;
alignItems: string;
};
plusWrapNormal: {
backgroundColor: string;
borderColor: string;
};
plusWrapHighlight: {
backgroundColor: string;
borderColor: string;
};
plusText: {
fontSize: number;
backgroundColor: string;
fontWeight: string;
color: string;
};
};
onChange(): void;
files: never[];
};
plusText: any;
plusWrap: any;
constructor(props: any);
onPressIn: () => void;
onPressOut: () => void;
showPicker: () => void;
addImage(imageObj: any): void;
removeImage(idx: number): void;
hideImageRoll: () => void;
render(): JSX.Element;
}