Skip to content

Commit

Permalink
Merge pull request #3707 from illacloud/beta
Browse files Browse the repository at this point in the history
Fix/list page bug
  • Loading branch information
Wangtaofeng authored Feb 19, 2024
2 parents 8cc2b71 + e74ec1e commit 8914814
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"author": "ILLA Cloud <[email protected]>",
"license": "Apache-2.0",
"version": "4.5.4",
"version": "4.5.5",
"scripts": {
"dev": "vite --strictPort --force",
"build-cloud": "NODE_OPTIONS=--max-old-space-size=12288 vite build --mode cloud",
Expand Down
8 changes: 4 additions & 4 deletions apps/builder/src/widgetLibrary/DataGridWidget/panelConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ export const DATA_GRID_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-totalRowCount`,
labelName: i18n.t("editor.inspect.setter_label.table.total_row_count"),
attrName: "totalRowCount",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
isSetterSingleRow: true,
expectedType: VALIDATION_TYPES.NUMBER,
bindAttrName: ["enablePagination", "enableServerSidePagination"],
Expand All @@ -864,7 +864,7 @@ export const DATA_GRID_PANEL_CONFIG: PanelConfig[] = [
labelName: i18n.t("editor.inspect.setter_label.pageSize"),
placeholder: "{{30}}",
attrName: "pageSize",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
bindAttrName: ["enablePagination"],
shown: (enablePagination) => enablePagination,
expectedType: VALIDATION_TYPES.NUMBER,
Expand All @@ -874,7 +874,7 @@ export const DATA_GRID_PANEL_CONFIG: PanelConfig[] = [
labelName: i18n.t("editor.inspect.setter_label.page"),
placeholder: "{{0}}",
attrName: "page",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
bindAttrName: ["enablePagination"],
shown: (enablePagination) => enablePagination,
expectedType: VALIDATION_TYPES.NUMBER,
Expand All @@ -884,7 +884,7 @@ export const DATA_GRID_PANEL_CONFIG: PanelConfig[] = [
labelName: i18n.t("editor.inspect.setter_label.page_size_options"),
placeholder: "{{[5, 10, 25]}}",
attrName: "pageSizeOptions",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
bindAttrName: ["enablePagination"],
shown: (enablePagination) => enablePagination,
isSetterSingleRow: true,
Expand Down
8 changes: 4 additions & 4 deletions apps/builder/src/widgetLibrary/GridListWidget/panelConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const GRID_LIST_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-totalRowCount`,
labelName: i18n.t("editor.inspect.setter_label.table.total_row_count"),
attrName: "totalRowCount",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
isSetterSingleRow: true,
expectedType: VALIDATION_TYPES.NUMBER,
bindAttrName: [
Expand All @@ -135,7 +135,7 @@ export const GRID_LIST_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-previousCursor`,
labelName: i18n.t("editor.inspect.setter_label.previous_cursor"),
attrName: "previousCursor",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
expectedType: VALIDATION_TYPES.STRING,
bindAttrName: [
"enablePagination",
Expand All @@ -151,7 +151,7 @@ export const GRID_LIST_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-nextCursor`,
labelName: i18n.t("editor.inspect.setter_label.table.next_cursor"),
attrName: "nextCursor",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
expectedType: VALIDATION_TYPES.STRING,
bindAttrName: [
"enablePagination",
Expand All @@ -167,7 +167,7 @@ export const GRID_LIST_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-hasNextPage`,
labelName: i18n.t("editor.inspect.setter_label.table.has_next_page"),
attrName: "hasNextPage",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
expectedType: VALIDATION_TYPES.BOOLEAN,
bindAttrName: [
"enablePagination",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const GRID_LIST_WIDGET_CONFIG: WidgetConfig = {
resizeDirection: RESIZE_DIRECTION.ALL,
numberOfColumns: "{{3}}",
minColumnWidth: "{{240}}",
page: 0,
page: "{{0}}",
offset: 0,
itemBorderRadius: "4px",
itemShadow: "medium",
Expand Down
8 changes: 4 additions & 4 deletions apps/builder/src/widgetLibrary/ListWidget/panelConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const LIST_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-totalRowCount`,
labelName: i18n.t("editor.inspect.setter_label.table.total_row_count"),
attrName: "totalRowCount",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
isSetterSingleRow: true,
expectedType: VALIDATION_TYPES.NUMBER,
bindAttrName: [
Expand All @@ -131,7 +131,7 @@ export const LIST_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-previousCursor`,
labelName: i18n.t("editor.inspect.setter_label.previous_cursor"),
attrName: "previousCursor",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
expectedType: VALIDATION_TYPES.STRING,
bindAttrName: [
"enablePagination",
Expand All @@ -147,7 +147,7 @@ export const LIST_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-nextCursor`,
labelName: i18n.t("editor.inspect.setter_label.table.next_cursor"),
attrName: "nextCursor",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
expectedType: VALIDATION_TYPES.STRING,
bindAttrName: [
"enablePagination",
Expand All @@ -163,7 +163,7 @@ export const LIST_PANEL_CONFIG: PanelConfig[] = [
id: `${baseWidgetName}-basic-hasNextPage`,
labelName: i18n.t("editor.inspect.setter_label.table.has_next_page"),
attrName: "hasNextPage",
setterType: "DATA_GRID_MAPPED_INPUT_SETTER",
setterType: "INPUT_SETTER",
expectedType: VALIDATION_TYPES.BOOLEAN,
bindAttrName: [
"enablePagination",
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/src/widgetLibrary/ListWidget/widgetConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const LIST_WIDGET_CONFIG: WidgetConfig = {
}}`,
dynamicHeight: "fixed",
resizeDirection: RESIZE_DIRECTION.ALL,
page: 0,
page: "{{0}}",
offset: 0,
itemBorderRadius: "4px",
itemPadding: {
Expand Down

0 comments on commit 8914814

Please sign in to comment.