@apexcura/ui-components 0.0.11-Beta186 → 0.0.11-Beta188
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 +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -397,7 +397,7 @@ var ButtonElement = (props) => {
|
|
|
397
397
|
onClick: handleClick,
|
|
398
398
|
className: `${props.className ? props.className : ""}`
|
|
399
399
|
},
|
|
400
|
-
props.icon && /* @__PURE__ */ import_react12.default.createElement("
|
|
400
|
+
props.icon && /* @__PURE__ */ import_react12.default.createElement("img", { src: props.img }),
|
|
401
401
|
props.label
|
|
402
402
|
);
|
|
403
403
|
};
|
|
@@ -612,6 +612,8 @@ var import_react19 = __toESM(require("react"));
|
|
|
612
612
|
var import_antd13 = require("antd");
|
|
613
613
|
var TableElement = (props) => {
|
|
614
614
|
const { thead, tbody } = props;
|
|
615
|
+
const onHandleSorter = (a) => {
|
|
616
|
+
};
|
|
615
617
|
let columns = [];
|
|
616
618
|
if (thead) {
|
|
617
619
|
columns = [
|
|
@@ -624,7 +626,7 @@ var TableElement = (props) => {
|
|
|
624
626
|
title: col.label,
|
|
625
627
|
dataIndex: col.name,
|
|
626
628
|
key: col.key,
|
|
627
|
-
sorter: col.
|
|
629
|
+
sorter: onHandleSorter(col.key),
|
|
628
630
|
onFilter: col.onFilter
|
|
629
631
|
}))
|
|
630
632
|
];
|
package/dist/index.mjs
CHANGED
|
@@ -346,7 +346,7 @@ var ButtonElement = (props) => {
|
|
|
346
346
|
onClick: handleClick,
|
|
347
347
|
className: `${props.className ? props.className : ""}`
|
|
348
348
|
},
|
|
349
|
-
props.icon && /* @__PURE__ */ React11.createElement("
|
|
349
|
+
props.icon && /* @__PURE__ */ React11.createElement("img", { src: props.img }),
|
|
350
350
|
props.label
|
|
351
351
|
);
|
|
352
352
|
};
|
|
@@ -561,6 +561,8 @@ import React18 from "react";
|
|
|
561
561
|
import { Table as Table2 } from "antd";
|
|
562
562
|
var TableElement = (props) => {
|
|
563
563
|
const { thead, tbody } = props;
|
|
564
|
+
const onHandleSorter = (a) => {
|
|
565
|
+
};
|
|
564
566
|
let columns = [];
|
|
565
567
|
if (thead) {
|
|
566
568
|
columns = [
|
|
@@ -573,7 +575,7 @@ var TableElement = (props) => {
|
|
|
573
575
|
title: col.label,
|
|
574
576
|
dataIndex: col.name,
|
|
575
577
|
key: col.key,
|
|
576
|
-
sorter: col.
|
|
578
|
+
sorter: onHandleSorter(col.key),
|
|
577
579
|
onFilter: col.onFilter
|
|
578
580
|
}))
|
|
579
581
|
];
|