react-kggraph 0.0.8 → 0.0.9

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.
Files changed (67) hide show
  1. package/lib/index.es.js +8 -4
  2. package/lib/index.es10.js +188 -0
  3. package/lib/index.es11.js +72 -0
  4. package/lib/index.es12.js +32 -0
  5. package/lib/index.es13.js +72 -0
  6. package/lib/index.es14.js +226 -0
  7. package/lib/index.es15.js +6 -0
  8. package/lib/index.es16.js +38 -0
  9. package/lib/index.es18.js +15469 -0
  10. package/lib/index.es19.js +56 -0
  11. package/lib/index.es20.js +62 -0
  12. package/lib/index.es21.js +71 -0
  13. package/lib/index.es22.js +42 -0
  14. package/lib/index.es23.js +4 -0
  15. package/lib/index.es24.js +4 -0
  16. package/lib/index.es25.js +4 -0
  17. package/lib/index.es26.js +4 -0
  18. package/lib/index.es27.js +4 -0
  19. package/lib/index.es28.js +4 -0
  20. package/lib/index.es29.js +4 -0
  21. package/lib/index.es3.js +356 -0
  22. package/lib/index.es30.js +4 -0
  23. package/lib/index.es31.js +4 -0
  24. package/lib/index.es32.js +4 -0
  25. package/lib/index.es33.js +4 -0
  26. package/lib/index.es35.js +6 -0
  27. package/lib/index.es36.js +4 -0
  28. package/lib/index.es4.js +8 -0
  29. package/lib/index.es5.js +4 -0
  30. package/lib/index.es6.js +601 -0
  31. package/lib/index.es7.js +7 -0
  32. package/lib/index.es8.js +324 -0
  33. package/lib/index.es9.js +423 -0
  34. package/lib/style.css +1 -0
  35. package/package.json +2 -3
  36. package/lib/index10.es.js +0 -4
  37. package/lib/index11.es.js +0 -4
  38. package/lib/index12.es.js +0 -4
  39. package/lib/index13.es.js +0 -4
  40. package/lib/index14.es.js +0 -4
  41. package/lib/index15.es.js +0 -4
  42. package/lib/index16.es.js +0 -4
  43. package/lib/index17.es.js +0 -25
  44. package/lib/index18.es.js +0 -330
  45. package/lib/index19.es.js +0 -5
  46. package/lib/index2.es.js +0 -13
  47. package/lib/index20.es.js +0 -284
  48. package/lib/index22.es.js +0 -70
  49. package/lib/index24.es.js +0 -68
  50. package/lib/index26.es.js +0 -72
  51. package/lib/index27.es.js +0 -32
  52. package/lib/index28.es.js +0 -828
  53. package/lib/index29.es.js +0 -4
  54. package/lib/index30.es.js +0 -161
  55. package/lib/index31.es.js +0 -71
  56. package/lib/index33.es.js +0 -100
  57. package/lib/index34.es.js +0 -250
  58. package/lib/index35.es.js +0 -47
  59. package/lib/index36.es.js +0 -376
  60. package/lib/index37.es.js +0 -12
  61. package/lib/index38.es.js +0 -6
  62. package/lib/index5.es.js +0 -12387
  63. package/lib/index6.es.js +0 -4
  64. package/lib/index7.es.js +0 -4
  65. package/lib/index8.es.js +0 -4
  66. package/lib/index9.es.js +0 -4
  67. package/lib/react-kggraph.css +0 -2
package/lib/index29.es.js DELETED
@@ -1,4 +0,0 @@
1
- //#region src/components/Graph/api.ts
2
- var e = (e) => {}, t = (e) => {};
3
- //#endregion
4
- export { t as fullSearchDetail, e as stepNext };
package/lib/index30.es.js DELETED
@@ -1,161 +0,0 @@
1
- //#region src/components/Graph/utils/edge_node_styles.ts
2
- var e = [
3
- {
4
- selector: "node",
5
- style: { "text-margin-y": "5px" }
6
- },
7
- {
8
- selector: "edge",
9
- style: {
10
- "line-color": "#a29e9e",
11
- "target-arrow-color": "#a29e9e",
12
- opacity: 1,
13
- "target-arrow-shape": "triangle",
14
- width: 2,
15
- "curve-style": "bezier",
16
- "transition-property": "line-color, target-arrow-color, opacity",
17
- "transition-duration": "0.2s",
18
- label: "data(name)",
19
- "z-index": 9999,
20
- "text-opacity": 1,
21
- "font-size": 18,
22
- color: "#666",
23
- "text-background-color": "#fff",
24
- "text-background-opacity": 1,
25
- "text-background-shape": "roundrectangle",
26
- "text-background-padding": "3px"
27
- }
28
- },
29
- {
30
- selector: ".highlight",
31
- style: {
32
- "border-color": "rgba(174, 255, 45, 0.2)",
33
- "border-width": 4
34
- }
35
- },
36
- {
37
- selector: ".path-node",
38
- style: {
39
- "background-color": "#145AFD",
40
- "border-color": "#FFEB3B"
41
- }
42
- },
43
- {
44
- selector: ".path-edge",
45
- style: {
46
- "line-color": "#145AFD",
47
- "target-arrow-color": "#145AFD",
48
- width: 4
49
- }
50
- },
51
- {
52
- selector: ".grayed",
53
- style: {
54
- opacity: .15,
55
- "text-opacity": .15
56
- }
57
- },
58
- {
59
- selector: "node.selected, edge.selected",
60
- style: {
61
- "border-color": "rgba(174, 255, 45, 0.2)",
62
- "border-width": 4
63
- }
64
- },
65
- {
66
- selector: ".correlationStyle",
67
- style: {
68
- width: 60,
69
- height: 60,
70
- "outline-width": "10px",
71
- "outline-color": "rgba(188, 220, 255, 0.4)",
72
- "outline-style": "solid",
73
- "line-opacity": "0.2",
74
- "outline-offset": "2px",
75
- filter: "blur(20px)",
76
- "z-index": 9999
77
- }
78
- },
79
- {
80
- selector: ".hover",
81
- style: {
82
- "border-width": 3,
83
- "border-color": "#0d6ac2"
84
- }
85
- },
86
- {
87
- selector: ".level-selected",
88
- style: {
89
- "background-color": "#f8bbd0",
90
- "border-color": "#e91e63",
91
- "border-width": 4,
92
- color: "#880e4f"
93
- }
94
- },
95
- {
96
- selector: ".level-highlight",
97
- style: {
98
- "background-color": "#bbdefb",
99
- "border-color": "#2196f3",
100
- "border-width": 3,
101
- color: "#0d47a1"
102
- }
103
- },
104
- {
105
- selector: ".level-highlightedge",
106
- style: {
107
- "line-color": "#1976d2",
108
- "target-arrow-color": "#1976d2",
109
- width: 3,
110
- opacity: 1
111
- }
112
- },
113
- {
114
- selector: ".level-grayed",
115
- style: {
116
- opacity: .15,
117
- "text-opacity": .15
118
- }
119
- }
120
- ], t = ({ elements: t }) => {
121
- let n = [];
122
- t.map((e) => {
123
- !n.includes(e?.data?.type) && e?.data?.type && n.push(e.data?.type);
124
- });
125
- let r = [];
126
- return r.push({
127
- selector: "[properties-type=\"uri\"]",
128
- style: {
129
- "background-color": "#f7de63",
130
- "background-image": "data(image)",
131
- "background-fit": "cover",
132
- width: 80,
133
- height: 80,
134
- label: "data(name)",
135
- color: "black",
136
- "text-valign": "bottom",
137
- "font-size": 18,
138
- "text-max-width": "250px",
139
- "text-wrap": "ellipsis",
140
- "text-overflow-wrap": "anywhere"
141
- }
142
- }), r.push({
143
- selector: "[properties-type!=\"uri\"]",
144
- style: {
145
- "background-color": "#1890FF",
146
- "background-image": "data(image)",
147
- "background-fit": "cover",
148
- width: 80,
149
- height: 80,
150
- label: "data(name)",
151
- color: "black",
152
- "text-valign": "bottom",
153
- "font-size": 18,
154
- "text-max-width": "250px",
155
- "text-wrap": "ellipsis",
156
- "text-overflow-wrap": "anywhere"
157
- }
158
- }), r.concat(e);
159
- };
160
- //#endregion
161
- export { t as edgeNodeStyles };
package/lib/index31.es.js DELETED
@@ -1,71 +0,0 @@
1
- //#region src/components/Graph/utils/menuItems.ts
2
- var e = ({ cyRef: e, setContextMenu: t, onPathAnalysis: n, setPathNodes: r }) => [
3
- {
4
- label: "展收实体",
5
- ids: "contract",
6
- action: (t) => {
7
- let n = e.current;
8
- console.log("新增属性", n);
9
- }
10
- },
11
- {
12
- label: "展收属性",
13
- ids: "expanded",
14
- action: (t) => {
15
- if (console.log("展开", t), !e.current) {
16
- console.error("Cytoscape instance is not available");
17
- return;
18
- }
19
- console.log("New node and edge added");
20
- }
21
- },
22
- {
23
- label: "节点信息",
24
- ids: "nodeInfo",
25
- action: (e) => {
26
- console.log("节点信息:", e);
27
- }
28
- },
29
- {
30
- label: "知识卡片",
31
- ids: "knowledgeCard",
32
- action: (t) => {
33
- let n = e.current;
34
- console.log("知识卡片", n);
35
- }
36
- },
37
- {
38
- label: "选中关联",
39
- ids: "selRelate",
40
- action: (n) => {
41
- let r = e.current;
42
- if (!r || !n || n.removed()) {
43
- console.error("节点或Cytoscape实例无效"), t((e) => ({
44
- ...e,
45
- visible: !1
46
- }));
47
- return;
48
- }
49
- let i = n, a = i.neighborhood().nodes().add(i);
50
- a.edgesWith(a), r.nodes().not(a).removeClass("correlationStyle"), a.addClass("correlationStyle"), t((e) => ({
51
- ...e,
52
- visible: !1
53
- }));
54
- }
55
- },
56
- {
57
- label: "路径分析",
58
- action: (t) => {
59
- e.current, console.log(11, t.data("name")), n?.(), r([t.data("name"), ""]);
60
- }
61
- },
62
- {
63
- label: "删除节点",
64
- action: (t) => {
65
- let n = e.current;
66
- console.log("删除节点cy::::", n), t && !t.removed() && t.remove();
67
- }
68
- }
69
- ];
70
- //#endregion
71
- export { e as menuItemsConfig };
package/lib/index33.es.js DELETED
@@ -1,100 +0,0 @@
1
- /* empty css */
2
- import { useMemo as e } from "react";
3
- import { jsx as t, jsxs as n } from "react/jsx-runtime";
4
- //#region src/components/Graph/components/SettingCircle/index.tsx
5
- var r = ({ items: r = [], centerImage: i, size: a = 200, onClick: o }) => {
6
- let s = a / 2, c = a / 2 - 10, l = 360 / r.length, u = e(() => r.map((e, t) => {
7
- let n = (t * l - 90) * (Math.PI / 180), r = ((t + 1) * l - 90) * (Math.PI / 180), i = ((t + .5) * l - 90) * (Math.PI / 180), a = s + c * Math.cos(n), o = s + c * Math.sin(n), u = s + c * Math.cos(r), d = s + c * Math.sin(r), f = s + 30 * Math.cos(r), p = s + 30 * Math.sin(r), m = s + 30 * Math.cos(n), h = s + 30 * Math.sin(n), g = +(l > 180), _ = `M ${m} ${h} L ${a} ${o} A ${c} ${c} 0 ${g} 1 ${u} ${d} L ${f} ${p} A 30 30 0 ${g} 0 ${m} ${h}`, v = (c + 30) / 2 + 5, y = s + v * Math.cos(i), b = s + v * Math.sin(i);
8
- return {
9
- ...e,
10
- path: _,
11
- textX: y,
12
- textY: b,
13
- rotation: (t + .5) * l - 90
14
- };
15
- }), [
16
- r,
17
- l,
18
- s,
19
- c,
20
- 30
21
- ]);
22
- return /* @__PURE__ */ n("div", {
23
- className: "radial-menu",
24
- style: {
25
- width: a,
26
- height: a
27
- },
28
- children: [/* @__PURE__ */ n("svg", {
29
- width: a,
30
- height: a,
31
- className: "radial-svg",
32
- children: [
33
- /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("filter", {
34
- id: "shadow",
35
- x: "-20%",
36
- y: "-20%",
37
- width: "140%",
38
- height: "140%",
39
- children: /* @__PURE__ */ t("feDropShadow", {
40
- dx: "0",
41
- dy: "2",
42
- stdDeviation: "3",
43
- floodOpacity: "0.3"
44
- })
45
- }) }),
46
- /* @__PURE__ */ t("circle", {
47
- cx: s,
48
- cy: s,
49
- r: c,
50
- fill: "#f5f5f5",
51
- stroke: "#ddd",
52
- strokeWidth: "1"
53
- }),
54
- u.map((e, r) => (200 + r * 25, /* @__PURE__ */ n("g", {
55
- onClick: () => o(e),
56
- className: "sector-group",
57
- children: [/* @__PURE__ */ t("path", {
58
- d: e.path,
59
- fill: "#333",
60
- stroke: "rgb(185, 185, 185)",
61
- strokeWidth: "1",
62
- filter: "url(#shadow)",
63
- className: "sector-path"
64
- }), /* @__PURE__ */ t("text", {
65
- x: e.textX,
66
- y: e.textY,
67
- textAnchor: "middle",
68
- dominantBaseline: "middle",
69
- fill: "#fff",
70
- fontSize: "12",
71
- fontWeight: "500",
72
- className: "sector-label",
73
- children: e.label
74
- })]
75
- }, r))),
76
- /* @__PURE__ */ t("circle", {
77
- cx: s,
78
- cy: s,
79
- r: 32,
80
- fill: "#fff"
81
- })
82
- ]
83
- }), /* @__PURE__ */ t("div", {
84
- className: "center-avatar",
85
- style: {
86
- width: 60,
87
- height: 60
88
- },
89
- children: i ? /* @__PURE__ */ t("img", {
90
- src: i,
91
- alt: "avatar"
92
- }) : /* @__PURE__ */ t("span", {
93
- className: "center-text",
94
- children: "菜单"
95
- })
96
- })]
97
- });
98
- };
99
- //#endregion
100
- export { r as default };
package/lib/index34.es.js DELETED
@@ -1,250 +0,0 @@
1
- import { forwardRef as e, useImperativeHandle as t, useState as n } from "react";
2
- import { Drawer as r } from "antd";
3
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
- //#region src/components/Graph/components/NodeInfoDrawer/index.tsx
5
- var o = e((e, o) => {
6
- let [s, c] = n(!1), [l, u] = n({
7
- style: {},
8
- data: {}
9
- });
10
- t(o, () => ({
11
- open: (e) => {
12
- c(!0), u(e);
13
- },
14
- close: () => c(!1)
15
- }));
16
- let d = () => {
17
- c(!1);
18
- }, f = (e) => {
19
- let { name: t, value: n } = e.target;
20
- u((e) => ({
21
- ...e,
22
- [t]: n
23
- }));
24
- };
25
- return /* @__PURE__ */ i(r, {
26
- title: "节点配置",
27
- closable: { "aria-label": "Close Button" },
28
- onClose: d,
29
- open: s,
30
- getContainer: !1,
31
- children: /* @__PURE__ */ i("div", {
32
- className: "h-full overflow-y-auto z-50",
33
- children: /* @__PURE__ */ a("div", {
34
- className: "space-y-4",
35
- children: [
36
- /* @__PURE__ */ a("div", {
37
- className: "flex items-center gap-4 !mb-20px",
38
- children: [/* @__PURE__ */ i("label", {
39
- className: "w-40",
40
- children: "名称"
41
- }), /* @__PURE__ */ i("input", {
42
- name: "name",
43
- value: l.data.name,
44
- onChange: f,
45
- readOnly: !0,
46
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded focus:outline-none focus:ring-1 focus:ring-blue-500"
47
- })]
48
- }),
49
- /* @__PURE__ */ a("div", {
50
- className: "flex items-center gap-4 !mb-20px",
51
- children: [/* @__PURE__ */ i("label", {
52
- className: "w-40",
53
- children: "类型"
54
- }), /* @__PURE__ */ a("select", {
55
- name: "type",
56
- value: l.type,
57
- disabled: !0,
58
- onChange: f,
59
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded bg-white",
60
- children: [/* @__PURE__ */ i("option", {
61
- value: "圆形",
62
- children: "圆形"
63
- }), /* @__PURE__ */ i("option", {
64
- value: "矩形",
65
- children: "矩形"
66
- })]
67
- })]
68
- }),
69
- /* @__PURE__ */ a("div", {
70
- className: "flex items-center gap-4 !mb-20px",
71
- children: [/* @__PURE__ */ i("label", {
72
- className: "w-40",
73
- children: "颜色"
74
- }), /* @__PURE__ */ a("div", {
75
- className: "flex-1 flex gap-2 items-center",
76
- children: [/* @__PURE__ */ i("input", {
77
- name: "color",
78
- readOnly: !0,
79
- value: l.style.color,
80
- onChange: f,
81
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded h-30px"
82
- }), /* @__PURE__ */ i("input", {
83
- type: "color",
84
- readOnly: !0,
85
- value: l.style.color,
86
- onChange: (e) => u({
87
- ...l,
88
- color: e.target.value
89
- }),
90
- className: "h-20px w-20px rounded cursor-pointer border"
91
- })]
92
- })]
93
- }),
94
- /* @__PURE__ */ a("div", {
95
- className: "flex items-center gap-4 !mb-20px",
96
- children: [/* @__PURE__ */ i("label", {
97
- className: "w-40",
98
- children: "大小"
99
- }), /* @__PURE__ */ i("input", {
100
- type: "number",
101
- name: "size",
102
- readOnly: !0,
103
- value: parseInt(l.style.height),
104
- onChange: f,
105
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded "
106
- })]
107
- }),
108
- /* @__PURE__ */ a("div", {
109
- className: "flex items-center gap-4 !mb-20px",
110
- children: [/* @__PURE__ */ i("label", {
111
- className: "w-40",
112
- children: "边框宽度"
113
- }), /* @__PURE__ */ i("input", {
114
- type: "number",
115
- name: "borderWidth",
116
- readOnly: !0,
117
- value: parseInt(l.style.borderWidth),
118
- onChange: f,
119
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded "
120
- })]
121
- }),
122
- /* @__PURE__ */ a("div", {
123
- className: "flex items-center gap-4 !mb-20px",
124
- children: [/* @__PURE__ */ i("label", {
125
- className: "w-40",
126
- children: "边框虚线"
127
- }), /* @__PURE__ */ a("select", {
128
- name: "borderDash",
129
- value: l.style.borderDash,
130
- disabled: !0,
131
- onChange: f,
132
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded bg-white",
133
- children: [/* @__PURE__ */ i("option", {
134
- value: "否",
135
- children: "否"
136
- }), /* @__PURE__ */ i("option", {
137
- value: "是",
138
- children: "是"
139
- })]
140
- })]
141
- }),
142
- /* @__PURE__ */ a("div", {
143
- className: "flex items-center gap-4 !mb-20px",
144
- children: [/* @__PURE__ */ i("label", {
145
- className: "w-40",
146
- children: "边框颜色"
147
- }), /* @__PURE__ */ a("div", {
148
- className: "flex-1 flex gap-2 items-center",
149
- children: [/* @__PURE__ */ i("input", {
150
- name: "borderColor",
151
- value: l.style.borderColor,
152
- readOnly: !0,
153
- onChange: f,
154
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded h-30px"
155
- }), /* @__PURE__ */ i("input", {
156
- type: "color",
157
- value: l.borderColor,
158
- readOnly: !0,
159
- onChange: (e) => u({
160
- ...l,
161
- borderColor: e.target.value
162
- }),
163
- className: "h-20px w-20px rounded cursor-pointer border"
164
- })]
165
- })]
166
- }),
167
- /* @__PURE__ */ a("div", {
168
- className: "flex items-center gap-4 !mb-20px",
169
- children: [/* @__PURE__ */ i("label", {
170
- className: "w-40",
171
- children: "字体位置"
172
- }), /* @__PURE__ */ a("select", {
173
- name: "fontPosition",
174
- value: l.style.textValign,
175
- disabled: !0,
176
- onChange: f,
177
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded bg-white",
178
- children: [
179
- /* @__PURE__ */ i("option", {
180
- value: "center",
181
- children: "居中"
182
- }),
183
- /* @__PURE__ */ i("option", {
184
- value: "bottom",
185
- children: "底部"
186
- }),
187
- /* @__PURE__ */ i("option", {
188
- value: "top",
189
- children: "顶部"
190
- })
191
- ]
192
- })]
193
- }),
194
- /* @__PURE__ */ a("div", {
195
- className: "flex items-center gap-4 !mb-20px",
196
- children: [/* @__PURE__ */ i("label", {
197
- className: "w-40",
198
- children: "字体样式"
199
- }), /* @__PURE__ */ i("input", {
200
- name: "fontStyle",
201
- value: l.style.fontStyle,
202
- readOnly: !0,
203
- onChange: f,
204
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded "
205
- })]
206
- }),
207
- /* @__PURE__ */ a("div", {
208
- className: "flex items-center gap-4 !mb-20px",
209
- children: [/* @__PURE__ */ i("label", {
210
- className: "w-40",
211
- children: "字体颜色"
212
- }), /* @__PURE__ */ a("div", {
213
- className: "flex-1 flex gap-2 items-center",
214
- children: [/* @__PURE__ */ i("input", {
215
- name: "fontColor",
216
- readOnly: !0,
217
- value: l.style.textBorderColor,
218
- onChange: f,
219
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded h-30px"
220
- }), /* @__PURE__ */ i("input", {
221
- type: "color",
222
- readOnly: !0,
223
- value: l.style["font-color"],
224
- onChange: (e) => u({
225
- ...l,
226
- fontColor: e.target.value
227
- }),
228
- className: "h-20px w-20px rounded cursor-pointer border"
229
- })]
230
- })]
231
- }),
232
- /* @__PURE__ */ a("div", {
233
- className: "flex items-center gap-4 !mb-20px",
234
- children: [/* @__PURE__ */ i("label", {
235
- className: "w-40",
236
- children: "字体背色"
237
- }), /* @__PURE__ */ i("input", {
238
- type: "text",
239
- readOnly: !0,
240
- value: l.style.textBackgroundColor,
241
- className: "flex-1 px-3 py-1.5 border border-gray-300 rounded bg-gray-50 text-gray-400 cursor-not-allowed"
242
- })]
243
- })
244
- ]
245
- })
246
- })
247
- });
248
- });
249
- //#endregion
250
- export { o as default };
package/lib/index35.es.js DELETED
@@ -1,47 +0,0 @@
1
- import { GraphContext as e } from "./index19.es.js";
2
- import { fullSearchDetail as t } from "./index29.es.js";
3
- import { forwardRef as n, useContext as r, useEffect as i, useImperativeHandle as a, useRef as o, useState as s } from "react";
4
- import { Drawer as c } from "antd";
5
- import { jsx as l } from "react/jsx-runtime";
6
- //#region src/components/Graph/components/KnowledgeCard/index.tsx
7
- var u = n((n, u) => {
8
- let { graphInfo: d } = r(e), [f, p] = s(!1), [m, h] = s(!1), [g, _] = s(!1), [v, y] = s({
9
- style: {},
10
- data: {}
11
- }), b = o(null);
12
- i(() => {
13
- f && b.current && (b.current.scrollTop = 0);
14
- }, [f]), a(u, () => ({
15
- open: (e) => {
16
- p(!0), y(e), x(e);
17
- },
18
- close: () => p(!1)
19
- }));
20
- let x = async (e) => {
21
- h(!0);
22
- let n = await t({
23
- kgId: d.kgId,
24
- uri: e.id
25
- });
26
- console.log(44, e), _(n.data), h(!1);
27
- };
28
- return /* @__PURE__ */ l(c, {
29
- title: "知识卡片",
30
- onClose: () => {
31
- p(!1);
32
- },
33
- open: f,
34
- getContainer: !1,
35
- className: "knowledge-card-drawer",
36
- bodyStyle: {
37
- padding: "0 20px",
38
- overflow: "auto"
39
- },
40
- children: /* @__PURE__ */ l("div", {
41
- ref: b,
42
- style: { height: "100%" }
43
- })
44
- });
45
- });
46
- //#endregion
47
- export { u as default };