@lobehub/ui 1.138.1 → 1.138.2
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/es/mdx/Image.js +4 -4
- package/es/mdx/Video.js +4 -4
- package/package.json +1 -1
package/es/mdx/Image.js
CHANGED
|
@@ -8,7 +8,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
8
|
var Image = function Image(_ref) {
|
|
9
9
|
var style = _ref.style,
|
|
10
10
|
_ref$width = _ref.width,
|
|
11
|
-
width = _ref$width === void 0 ?
|
|
11
|
+
width = _ref$width === void 0 ? 800 : _ref$width,
|
|
12
12
|
height = _ref.height,
|
|
13
13
|
cover = _ref.cover,
|
|
14
14
|
inStep = _ref.inStep,
|
|
@@ -16,11 +16,11 @@ var Image = function Image(_ref) {
|
|
|
16
16
|
alt = _ref$alt === void 0 ? 'cover' : _ref$alt,
|
|
17
17
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
18
18
|
var size = cover ? {
|
|
19
|
-
height:
|
|
20
|
-
width:
|
|
19
|
+
height: 300,
|
|
20
|
+
width: 800
|
|
21
21
|
} : inStep ? {
|
|
22
22
|
height: height,
|
|
23
|
-
width:
|
|
23
|
+
width: 780
|
|
24
24
|
} : {
|
|
25
25
|
height: height,
|
|
26
26
|
width: width
|
package/es/mdx/Video.js
CHANGED
|
@@ -8,17 +8,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
8
|
var Video = function Video(_ref) {
|
|
9
9
|
var style = _ref.style,
|
|
10
10
|
_ref$width = _ref.width,
|
|
11
|
-
width = _ref$width === void 0 ?
|
|
11
|
+
width = _ref$width === void 0 ? 800 : _ref$width,
|
|
12
12
|
height = _ref.height,
|
|
13
13
|
cover = _ref.cover,
|
|
14
14
|
inStep = _ref.inStep,
|
|
15
15
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16
16
|
var size = cover ? {
|
|
17
|
-
height:
|
|
18
|
-
width:
|
|
17
|
+
height: 300,
|
|
18
|
+
width: 800
|
|
19
19
|
} : inStep ? {
|
|
20
20
|
height: height,
|
|
21
|
-
width:
|
|
21
|
+
width: 780
|
|
22
22
|
} : {
|
|
23
23
|
height: height,
|
|
24
24
|
width: width
|