@farmzone/fz-react-ui 1.0.16 → 1.0.17
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 +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -4740,7 +4740,13 @@ function Table(props) {
|
|
|
4740
4740
|
showHorizontalDivider = true,
|
|
4741
4741
|
showVerticalDivider = true
|
|
4742
4742
|
} = props;
|
|
4743
|
-
const {
|
|
4743
|
+
const {
|
|
4744
|
+
fixed = false,
|
|
4745
|
+
onSelectionChange,
|
|
4746
|
+
selectedKeys = [],
|
|
4747
|
+
disabledKeys = [],
|
|
4748
|
+
disabledTooltip
|
|
4749
|
+
} = checkboxInfo ?? {};
|
|
4744
4750
|
const scrollRef = React6.useRef(null);
|
|
4745
4751
|
const footerRef = React6.useRef(null);
|
|
4746
4752
|
const [tableHeight, setTableHeight] = React6.useState(500);
|
|
@@ -5129,7 +5135,7 @@ function Table(props) {
|
|
|
5129
5135
|
TableCellContent,
|
|
5130
5136
|
{
|
|
5131
5137
|
cellContent,
|
|
5132
|
-
tooltipText: String(record[col.key] ?? ""),
|
|
5138
|
+
tooltipText: col.tooltipText ? col.tooltipText(record[col.key], record, rowIdx) : String(record[col.key] ?? ""),
|
|
5133
5139
|
align: align ?? "",
|
|
5134
5140
|
tooltipConfig: col.key === "__checkbox__" ? false : tooltipConfig,
|
|
5135
5141
|
onCellClick: col.key !== "__checkbox__" && onRowClickRef.current ? () => onRowClickRef.current?.(record, rowIdx) : void 0
|
|
@@ -7781,8 +7787,9 @@ function PageFilter(props) {
|
|
|
7781
7787
|
const handleInputChange = (key) => (e) => {
|
|
7782
7788
|
onChange({ [key]: e.target.value });
|
|
7783
7789
|
};
|
|
7784
|
-
const handleSelectChange = (key) => (value) => {
|
|
7790
|
+
const handleSelectChange = (key, autoSubmit) => (value) => {
|
|
7785
7791
|
onChange({ [key]: value });
|
|
7792
|
+
if (autoSubmit) onSubmit();
|
|
7786
7793
|
};
|
|
7787
7794
|
const handleRadioChange = (key) => (value) => {
|
|
7788
7795
|
onChange({ [key]: value });
|
|
@@ -7825,7 +7832,7 @@ function PageFilter(props) {
|
|
|
7825
7832
|
Select2,
|
|
7826
7833
|
{
|
|
7827
7834
|
value: currentValue,
|
|
7828
|
-
onChange: handleSelectChange(optionKey),
|
|
7835
|
+
onChange: handleSelectChange(optionKey, option.autoSubmit),
|
|
7829
7836
|
options: option.options,
|
|
7830
7837
|
placeholder: option.placeholder || "\uC120\uD0DD",
|
|
7831
7838
|
canReset: option.canReset ?? true,
|