Skip to content

Commit

Permalink
datagrid preview meta
Browse files Browse the repository at this point in the history
  • Loading branch information
hotlong committed Jan 18, 2024
1 parent cebdeb5 commit 006abf4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/@steedos-widgets/ag-grid/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const options = {
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
}),
// terser()
terser()
],
};

Expand Down
2 changes: 1 addition & 1 deletion packages/@steedos-widgets/devextreme/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const options = {
replace({
'process.env.NODE_ENV': JSON.stringify('production'),
}),
// terser()
terser()
],
};

Expand Down
16 changes: 16 additions & 0 deletions packages/@steedos-widgets/devextreme/src/metas/DataGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ export default {
},
previewSchema: {
type: config.amis.name,
config: {
// Row Data: The data to be displayed.
dataSource: [
{ id: "Tesla", model: "Model Y", price: 64950, electric: true },
{ id: "Ford", model: "F-Series", price: 33850, electric: false },
{ id: "Toyota", model: "Corolla", price: 29600, electric: false },
],
keyExpr: "id",
// Column Definitions: Defines & controls grid columns.
columns: [
{ dataField: "id", caption: "ID" },
{ dataField: "model" },
{ dataField: "price" },
{ dataField: "electric" }
]
},
},
panelTitle: "设置",
panelControls: [
Expand Down

0 comments on commit 006abf4

Please sign in to comment.