@digi-frontend/dgate-api-documentation 4.0.1 → 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 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +17 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1284,8 +1284,7 @@ const ApiCard = ({ api, viewStyle }) => {
|
|
|
1284
1284
|
fontFamily: token.fontFamily
|
|
1285
1285
|
},
|
|
1286
1286
|
[scope("grid-card")]: {
|
|
1287
|
-
width: "
|
|
1288
|
-
height: "100%",
|
|
1287
|
+
width: "100%",
|
|
1289
1288
|
borderRadius: token.borderRadiusLG
|
|
1290
1289
|
},
|
|
1291
1290
|
[scope("grid-title")]: {
|
|
@@ -1703,10 +1702,21 @@ const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, vi
|
|
|
1703
1702
|
level: 4,
|
|
1704
1703
|
children: tagName
|
|
1705
1704
|
}),
|
|
1706
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
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,
|
|
1710
1720
|
children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard, {
|
|
1711
1721
|
api: item,
|
|
1712
1722
|
viewStyle
|