@digi-frontend/dgate-api-documentation 4.0.2 → 4.0.3
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.cjs +16 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +17 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1284,10 +1284,7 @@ const ApiCard = ({ api, viewStyle }) => {
|
|
|
1284
1284
|
fontFamily: token.fontFamily
|
|
1285
1285
|
},
|
|
1286
1286
|
[scope("grid-card")]: {
|
|
1287
|
-
width: "
|
|
1288
|
-
flex: "1 1 17.5rem",
|
|
1289
|
-
minWidth: "17.5rem",
|
|
1290
|
-
height: "100%",
|
|
1287
|
+
width: "100%",
|
|
1291
1288
|
borderRadius: token.borderRadiusLG
|
|
1292
1289
|
},
|
|
1293
1290
|
[scope("grid-title")]: {
|
|
@@ -1705,10 +1702,21 @@ const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, vi
|
|
|
1705
1702
|
level: 4,
|
|
1706
1703
|
children: tagName
|
|
1707
1704
|
}),
|
|
1708
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1705
|
+
viewStyle === "grid" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Row, {
|
|
1706
|
+
gutter: [24, 24],
|
|
1707
|
+
children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Col, {
|
|
1708
|
+
xs: 24,
|
|
1709
|
+
sm: 24,
|
|
1710
|
+
md: 12,
|
|
1711
|
+
lg: 8,
|
|
1712
|
+
xl: 8,
|
|
1713
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard, {
|
|
1714
|
+
api: item,
|
|
1715
|
+
viewStyle
|
|
1716
|
+
})
|
|
1717
|
+
}, `${tagName}_renderer_${item.id}_${item.method}_${item.path}`))
|
|
1718
|
+
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Flex, {
|
|
1719
|
+
vertical: true,
|
|
1712
1720
|
children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard, {
|
|
1713
1721
|
api: item,
|
|
1714
1722
|
viewStyle
|