From d629d8eada8cd6188b60f5859933d84df7a62bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=B7=E4=BA=AE=E8=BE=89?= Date: Wed, 25 Dec 2024 09:03:20 +0800 Subject: [PATCH] =?UTF-8?q?ag-grid=E7=BB=84=E4=BB=B6=E6=94=AF=E6=8C=81styl?= =?UTF-8?q?e=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../@steedos-widgets/ag-grid/src/components/AgGrid.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/@steedos-widgets/ag-grid/src/components/AgGrid.tsx b/packages/@steedos-widgets/ag-grid/src/components/AgGrid.tsx index 8c46b62a6..6ec38c5c9 100644 --- a/packages/@steedos-widgets/ag-grid/src/components/AgGrid.tsx +++ b/packages/@steedos-widgets/ag-grid/src/components/AgGrid.tsx @@ -2,7 +2,7 @@ * @Author: 殷亮辉 yinlianghui@hotoa.com * @Date: 2024-01-18 18:58:37 * @LastEditors: 殷亮辉 yinlianghui@hotoa.com - * @LastEditTime: 2024-12-12 17:36:50 + * @LastEditTime: 2024-12-25 09:02:40 */ import React, { useEffect, useState, useRef } from 'react'; import { AG_GRID_LOCALE_CN } from '@ag-grid-community/locale'; @@ -12,7 +12,8 @@ export const AmisAgGrid = (props: any) => { config: configJSON = null, data: amisData = {}, className, - dataFilter + dataFilter, + style } = props; const initConfig = Object.assign({ localeText: AG_GRID_LOCALE_CN }, configJSON || {}); const [config, setConfig] = useState(initConfig); @@ -59,6 +60,6 @@ export const AmisAgGrid = (props: any) => { } return ( -
+
) };