diff --git a/client/packages/lowcoder/src/comps/comps/tableComp/tableComp.tsx b/client/packages/lowcoder/src/comps/comps/tableComp/tableComp.tsx index 0d1abdd0a..602b8fde2 100644 --- a/client/packages/lowcoder/src/comps/comps/tableComp/tableComp.tsx +++ b/client/packages/lowcoder/src/comps/comps/tableComp/tableComp.tsx @@ -642,6 +642,26 @@ TableTmpComp = withMethodExposing(TableTmpComp, [ comp.children.selection.children.selectedRowKeys.dispatchChangeValueAction([]); }, }, + { + method: { + name: "cancelChanges", + description: "", + params: [], + }, + execute: (comp, values) => { + comp.children.columns.dispatchClearChangeSet(); + }, + }, + { + method: { + name: "cancelInsertChanges", + description: "", + params: [], + }, + execute: (comp, values) => { + comp.children.columns.dispatchClearInsertSet(); + }, + }, ]); // exposing data diff --git a/client/packages/lowcoder/src/comps/comps/tableComp/tablePropertyView.tsx b/client/packages/lowcoder/src/comps/comps/tableComp/tablePropertyView.tsx index fff48e6fe..f51b9fe1f 100644 --- a/client/packages/lowcoder/src/comps/comps/tableComp/tablePropertyView.tsx +++ b/client/packages/lowcoder/src/comps/comps/tableComp/tablePropertyView.tsx @@ -489,21 +489,40 @@ export function compTablePropertyView <>
{comp.children.onEvent.getPropertyView()} - {comp.children.selection.getPropertyView()} {hiddenPropertyView(comp.children)} {loadingPropertyView(comp.children)} + {comp.children.showDataLoadSpinner.propertyView({ + label: trans("table.showDataLoadSpinner"), + })} + {comp.children.selection.getPropertyView()} + {comp.children.editModeClicks.propertyView({ + label: trans("table.editMode"), + radioButton: true, + })} + {comp.children.searchText.propertyView({ + label: trans("table.searchText"), + tooltip: trans("table.searchTextTooltip"), + placeholder: "{{input1.value}}", + })}
{comp.children.showSummary.propertyView({ label: trans("table.showSummary") })} - {comp.children.summaryRows.propertyView({ + {comp.children.showSummary.getView() && + comp.children.summaryRows.propertyView({ label: trans("table.totalSummaryRows"), radioButton: true, })}
+
+ {comp.children.inlineAddNewRow.propertyView({ + label: trans("table.inlineAddNewRow") + })} +
+
{comp.children.toolbar.getPropertyView()}
@@ -550,27 +569,12 @@ export function compTablePropertyView <>
{comp.children.expansion.getPropertyView()} - {comp.children.inlineAddNewRow.propertyView({ - label: trans("table.inlineAddNewRow") - })} - {comp.children.showDataLoadSpinner.propertyView({ - label: trans("table.showDataLoadSpinner"), - })} {comp.children.dynamicColumn.propertyView({ label: trans("table.dynamicColumn") })} {comp.children.dynamicColumn.getView() && comp.children.dynamicColumnConfig.propertyView({ label: trans("table.dynamicColumnConfig"), tooltip: trans("table.dynamicColumnConfigDesc"), })} - {comp.children.editModeClicks.propertyView({ - label: trans("table.editMode"), - radioButton: true, - })} - {comp.children.searchText.propertyView({ - label: trans("table.searchText"), - tooltip: trans("table.searchTextTooltip"), - placeholder: "{{input1.value}}", - })}
)} diff --git a/client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx b/client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx index a6e05f927..67b96cfe9 100644 --- a/client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx +++ b/client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx @@ -562,6 +562,7 @@ export const TableToolbarComp = (function () { filter: stateComp({ stackType: "and", filters: [] }), position: dropdownControl(positionOptions, "below"), columnSeparator: withDefault(StringControl, ','), + showUpdateButtons: withDefault(BoolControl, true), }; return new ControlNodeCompBuilder(childrenMap, (props, dispatch) => { @@ -587,6 +588,7 @@ export const TableToolbarComp = (function () { label: trans("table.fixedToolbar"), tooltip: trans("table.fixedToolbarTooltip") }), + children.showUpdateButtons.propertyView({ label: trans("table.showUpdateButtons")}), children.showFilter.propertyView({ label: trans("table.showFilter") }), children.showRefresh.propertyView({ label: trans("table.showRefresh") }), children.showDownload.propertyView({ label: trans("table.showDownload") }), @@ -816,7 +818,7 @@ export function TableToolbar(props: { } }} /> - {hasChange && ( + {hasChange && toolbar.showUpdateButtons && (