@apexcura/ui-components 0.0.11-Beta196 → 0.0.11-Beta198
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.js +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -614,7 +614,10 @@ var import_antd14 = require("antd");
|
|
|
614
614
|
// src/Components/Model.tsx
|
|
615
615
|
var import_react19 = __toESM(require("react"));
|
|
616
616
|
var import_antd13 = require("antd");
|
|
617
|
-
var ModelElement = (props
|
|
617
|
+
var ModelElement = (props) => {
|
|
618
|
+
const { onCancel, model } = props;
|
|
619
|
+
return /* @__PURE__ */ import_react19.default.createElement(import_antd13.Modal, { open: model, onCancel }, /* @__PURE__ */ import_react19.default.createElement("p", null, "Model opened"));
|
|
620
|
+
};
|
|
618
621
|
|
|
619
622
|
// src/Components/TableElement.tsx
|
|
620
623
|
var TableElement = (props) => {
|
|
@@ -632,8 +635,8 @@ var TableElement = (props) => {
|
|
|
632
635
|
...thead.map((col) => ({
|
|
633
636
|
title: col.label,
|
|
634
637
|
dataIndex: col.name,
|
|
635
|
-
key: col.key
|
|
636
|
-
|
|
638
|
+
key: col.key,
|
|
639
|
+
sorter: (a) => console.log(a)
|
|
637
640
|
}))
|
|
638
641
|
];
|
|
639
642
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -563,7 +563,10 @@ import { Table as Table2 } from "antd";
|
|
|
563
563
|
// src/Components/Model.tsx
|
|
564
564
|
import React18 from "react";
|
|
565
565
|
import { Modal } from "antd";
|
|
566
|
-
var ModelElement = (props
|
|
566
|
+
var ModelElement = (props) => {
|
|
567
|
+
const { onCancel, model } = props;
|
|
568
|
+
return /* @__PURE__ */ React18.createElement(Modal, { open: model, onCancel }, /* @__PURE__ */ React18.createElement("p", null, "Model opened"));
|
|
569
|
+
};
|
|
567
570
|
|
|
568
571
|
// src/Components/TableElement.tsx
|
|
569
572
|
var TableElement = (props) => {
|
|
@@ -581,8 +584,8 @@ var TableElement = (props) => {
|
|
|
581
584
|
...thead.map((col) => ({
|
|
582
585
|
title: col.label,
|
|
583
586
|
dataIndex: col.name,
|
|
584
|
-
key: col.key
|
|
585
|
-
|
|
587
|
+
key: col.key,
|
|
588
|
+
sorter: (a) => console.log(a)
|
|
586
589
|
}))
|
|
587
590
|
];
|
|
588
591
|
}
|