@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.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { create } from "zustand";
|
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
4
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
5
|
-
import { Alert, Breadcrumb, Button, Card, Divider, Drawer, Empty, Flex, Form, Grid, Input, Modal, Pagination, Select, Switch, Table, Tabs, Tag, Tooltip, Tree, Typography, message, theme } from "antd";
|
|
5
|
+
import { Alert, Breadcrumb, Button, Card, Col, Divider, Drawer, Empty, Flex, Form, Grid, Input, Modal, Pagination, Row, Select, Switch, Table, Tabs, Tag, Tooltip, Tree, Typography, message, theme } from "antd";
|
|
6
6
|
import { useStyleRegister } from "@ant-design/cssinjs";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import Text from "antd/es/typography/Text.js";
|
|
@@ -1255,10 +1255,7 @@ const ApiCard = ({ api, viewStyle }) => {
|
|
|
1255
1255
|
fontFamily: token.fontFamily
|
|
1256
1256
|
},
|
|
1257
1257
|
[scope("grid-card")]: {
|
|
1258
|
-
width: "
|
|
1259
|
-
flex: "1 1 17.5rem",
|
|
1260
|
-
minWidth: "17.5rem",
|
|
1261
|
-
height: "100%",
|
|
1258
|
+
width: "100%",
|
|
1262
1259
|
borderRadius: token.borderRadiusLG
|
|
1263
1260
|
},
|
|
1264
1261
|
[scope("grid-title")]: {
|
|
@@ -1676,10 +1673,21 @@ const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, vi
|
|
|
1676
1673
|
level: 4,
|
|
1677
1674
|
children: tagName
|
|
1678
1675
|
}),
|
|
1679
|
-
/* @__PURE__ */ jsx(
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1676
|
+
viewStyle === "grid" ? /* @__PURE__ */ jsx(Row, {
|
|
1677
|
+
gutter: [24, 24],
|
|
1678
|
+
children: apis.map((item) => /* @__PURE__ */ jsx(Col, {
|
|
1679
|
+
xs: 24,
|
|
1680
|
+
sm: 24,
|
|
1681
|
+
md: 12,
|
|
1682
|
+
lg: 8,
|
|
1683
|
+
xl: 8,
|
|
1684
|
+
children: /* @__PURE__ */ jsx(ApiCard, {
|
|
1685
|
+
api: item,
|
|
1686
|
+
viewStyle
|
|
1687
|
+
})
|
|
1688
|
+
}, `${tagName}_renderer_${item.id}_${item.method}_${item.path}`))
|
|
1689
|
+
}) : /* @__PURE__ */ jsx(Flex, {
|
|
1690
|
+
vertical: true,
|
|
1683
1691
|
children: apis.map((item) => /* @__PURE__ */ jsx(ApiCard, {
|
|
1684
1692
|
api: item,
|
|
1685
1693
|
viewStyle
|