@sendoutcards/quantum-design-ui 1.7.41 → 1.7.42
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
|
@@ -21373,11 +21373,13 @@ var ImageUploadWidget = function (_a) {
|
|
|
21373
21373
|
hasMore = _a.hasMore,
|
|
21374
21374
|
loadMore = _a.loadMore,
|
|
21375
21375
|
endMessage = _a.endMessage,
|
|
21376
|
-
dataLength = _a.dataLength
|
|
21376
|
+
dataLength = _a.dataLength,
|
|
21377
|
+
_d = _a.width,
|
|
21378
|
+
width = _d === void 0 ? 264 : _d;
|
|
21377
21379
|
|
|
21378
|
-
var
|
|
21379
|
-
shouldShowImageGrid =
|
|
21380
|
-
setShouldShowImageGrid =
|
|
21380
|
+
var _e = useState(false),
|
|
21381
|
+
shouldShowImageGrid = _e[0],
|
|
21382
|
+
setShouldShowImageGrid = _e[1];
|
|
21381
21383
|
|
|
21382
21384
|
return jsx(AnimatePresence, null, isOpen && jsx(Div, {
|
|
21383
21385
|
initial: {
|
|
@@ -21395,7 +21397,7 @@ var ImageUploadWidget = function (_a) {
|
|
|
21395
21397
|
position: "absolute",
|
|
21396
21398
|
flexDirection: "column",
|
|
21397
21399
|
height: shouldShowImageGrid ? '450px' : '300px',
|
|
21398
|
-
width: "
|
|
21400
|
+
width: width + "px",
|
|
21399
21401
|
backgroundColor: "foreground",
|
|
21400
21402
|
boxShadow: "mediumDark",
|
|
21401
21403
|
borderRadius: "medium",
|