@blocklet/pages-kit 0.2.421 → 0.2.422
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/lib/cjs/builtin/async/ai-runtime/runtime-components/PhotoGalleryItem/index.js +2 -1
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/builtin/async/ai-runtime/runtime-components/PhotoGalleryItem/index.js +2 -1
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
|
@@ -20,6 +20,7 @@ const types_1 = require("@blocklet/ai-runtime/types");
|
|
|
20
20
|
const react_1 = require("@iconify/react");
|
|
21
21
|
const material_1 = require("@mui/material");
|
|
22
22
|
const react_2 = require("react");
|
|
23
|
+
const ufo_1 = require("ufo");
|
|
23
24
|
const ux_1 = require("../../../../arcblock/ux");
|
|
24
25
|
const locale_1 = require("../../../../locale");
|
|
25
26
|
const session_1 = require("../../../../session");
|
|
@@ -57,7 +58,7 @@ function PhotoGalleryItem() {
|
|
|
57
58
|
opacity: 1,
|
|
58
59
|
},
|
|
59
60
|
},
|
|
60
|
-
}, onClick: () => setOpenDialog(true), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { component: "img", src: url, alt: "", width: "100%", height: "100%",
|
|
61
|
+
}, onClick: () => setOpenDialog(true), children: [(0, jsx_runtime_1.jsx)(material_1.Box, { component: "img", src: (0, ufo_1.withQuery)(url, { imageFilter: 'resize', w: 500 }), alt: "", width: "100%", height: "100%",
|
|
61
62
|
// 首屏 image 不能用 lazy,会闪烁乱序
|
|
62
63
|
loading: index < 12 ? 'eager' : 'lazy' }), (0, jsx_runtime_1.jsx)(material_1.Box, { className: "photo-wall-item-alt", sx: {
|
|
63
64
|
position: 'absolute',
|