@sendoutcards/quantum-design-ui 1.7.16 → 1.7.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -21003,12 +21003,13 @@ var ImageUploadWidget = function (_a) {
|
|
|
21003
21003
|
return jsx(GridItem, {
|
|
21004
21004
|
key: index,
|
|
21005
21005
|
gridColSpan: 2,
|
|
21006
|
-
gridRowSpan: image.isHorizontal ?
|
|
21006
|
+
gridRowSpan: image.isHorizontal ? 2 : 4,
|
|
21007
21007
|
borderRadius: 'medium'
|
|
21008
21008
|
}, jsx(Div, {
|
|
21009
21009
|
width: "100%",
|
|
21010
21010
|
height: "100%"
|
|
21011
21011
|
}, jsx(Image, {
|
|
21012
|
+
onClick: image.onClick,
|
|
21012
21013
|
isActive: true,
|
|
21013
21014
|
height: "100%",
|
|
21014
21015
|
width: "100%",
|
|
@@ -2,6 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { AcceptedFiles, RejectedFiles } from '../imageUploader/imageUploader';
|
|
3
3
|
export declare type UserImage = {
|
|
4
4
|
url: string;
|
|
5
|
+
onClick: () => void;
|
|
5
6
|
isHorizontal: boolean;
|
|
6
7
|
};
|
|
7
8
|
export declare type ImageUploadWidgetProps = {
|
|
@@ -9,7 +10,7 @@ export declare type ImageUploadWidgetProps = {
|
|
|
9
10
|
maxHeight?: string;
|
|
10
11
|
onClose: () => void;
|
|
11
12
|
onFinished: () => void;
|
|
12
|
-
isOpen:
|
|
13
|
+
isOpen: boolean;
|
|
13
14
|
onUpload: (files: {
|
|
14
15
|
accepted: AcceptedFiles;
|
|
15
16
|
rejected: RejectedFiles;
|