@kengic/core.react 0.0.2-beta.29 → 0.0.2-beta.31
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/kengic-core.react.js +30 -20
- package/package.json +1 -1
package/kengic-core.react.js
CHANGED
|
@@ -65954,26 +65954,26 @@ function doKgSqlClient(e = "") {
|
|
|
65954
65954
|
}), t;
|
|
65955
65955
|
}
|
|
65956
65956
|
function KgSqlClientResultTab({ executeResult: e, index: t }) {
|
|
65957
|
-
var u, p;
|
|
65958
|
-
const r =
|
|
65959
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgSqlClient.ResultTab.tabTitlePrefix" }),
|
|
65960
|
-
t + 1
|
|
65961
|
-
] }), [n, a] = reactExports.useState(!1), s = ((u = e == null ? void 0 : e.columns) == null ? void 0 : u.map((C) => ({
|
|
65957
|
+
var s, u, p;
|
|
65958
|
+
const [r, n] = reactExports.useState(!1), a = ((s = e == null ? void 0 : e.columns) == null ? void 0 : s.map((C) => ({
|
|
65962
65959
|
dataIndex: C.columnLabel,
|
|
65963
65960
|
render: (w) => w
|
|
65964
65961
|
}))) ?? [];
|
|
65965
|
-
return /* @__PURE__ */ jsxRuntimeExports.
|
|
65966
|
-
|
|
65967
|
-
|
|
65968
|
-
|
|
65969
|
-
|
|
65970
|
-
|
|
65971
|
-
|
|
65972
|
-
|
|
65973
|
-
|
|
65974
|
-
|
|
65975
|
-
|
|
65976
|
-
|
|
65962
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
65963
|
+
(e == null ? void 0 : e.columns) && ((u = e == null ? void 0 : e.columns) == null ? void 0 : u.length) > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
65964
|
+
ForwardTable,
|
|
65965
|
+
{
|
|
65966
|
+
className: "kg-flex-table",
|
|
65967
|
+
dataSource: (e == null ? void 0 : e.rows) ?? [],
|
|
65968
|
+
loading: r,
|
|
65969
|
+
columns: a,
|
|
65970
|
+
size: "small",
|
|
65971
|
+
scroll: { y: "auto" },
|
|
65972
|
+
rowKey: (C, w) => w
|
|
65973
|
+
}
|
|
65974
|
+
),
|
|
65975
|
+
!((p = e == null ? void 0 : e.columns) != null && p.length) && (e == null ? void 0 : e.message) && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: e.message })
|
|
65976
|
+
] });
|
|
65977
65977
|
}
|
|
65978
65978
|
function KgSqlClient() {
|
|
65979
65979
|
var L;
|
|
@@ -66025,10 +66025,20 @@ function KgSqlClient() {
|
|
|
66025
66025
|
type: "editable-card",
|
|
66026
66026
|
hideAdd: !0,
|
|
66027
66027
|
children: s.map((G, ne) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66028
|
-
|
|
66028
|
+
Tabs.TabPane,
|
|
66029
66029
|
{
|
|
66030
|
-
|
|
66031
|
-
|
|
66030
|
+
tab: /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
66031
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(MemoizedFormattedMessage, { id: "KgSqlClient.ResultTab.tabTitlePrefix" }),
|
|
66032
|
+
ne + 1
|
|
66033
|
+
] }),
|
|
66034
|
+
children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
66035
|
+
KgSqlClientResultTab,
|
|
66036
|
+
{
|
|
66037
|
+
executeResult: G,
|
|
66038
|
+
index: ne
|
|
66039
|
+
},
|
|
66040
|
+
ne
|
|
66041
|
+
)
|
|
66032
66042
|
}
|
|
66033
66043
|
))
|
|
66034
66044
|
}
|