diff --git a/packages/@steedos-widgets/ag-grid/rollup.config.ts b/packages/@steedos-widgets/ag-grid/rollup.config.ts index 927767b2b..86216b1d4 100644 --- a/packages/@steedos-widgets/ag-grid/rollup.config.ts +++ b/packages/@steedos-widgets/ag-grid/rollup.config.ts @@ -53,7 +53,7 @@ const options = { replace({ 'process.env.NODE_ENV': JSON.stringify('production'), }), - // terser() + terser() ], }; diff --git a/packages/@steedos-widgets/devextreme/rollup.config.ts b/packages/@steedos-widgets/devextreme/rollup.config.ts index 87c78c4c8..ff49d9e39 100644 --- a/packages/@steedos-widgets/devextreme/rollup.config.ts +++ b/packages/@steedos-widgets/devextreme/rollup.config.ts @@ -53,7 +53,7 @@ const options = { replace({ 'process.env.NODE_ENV': JSON.stringify('production'), }), - // terser() + terser() ], }; diff --git a/packages/@steedos-widgets/devextreme/src/metas/DataGrid.ts b/packages/@steedos-widgets/devextreme/src/metas/DataGrid.ts index 551474f8d..5217c5b48 100644 --- a/packages/@steedos-widgets/devextreme/src/metas/DataGrid.ts +++ b/packages/@steedos-widgets/devextreme/src/metas/DataGrid.ts @@ -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: [