mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-17 06:00:20 +02:00
add grid card row config
This commit is contained in:
@@ -122,14 +122,15 @@ export const ListConfigMenu = (props: ListConfigMenuProps) => {
|
||||
|
||||
const Config = ({
|
||||
displayType,
|
||||
tableColumnsData,
|
||||
...props
|
||||
}: ListConfigMenuProps & { displayType: ListDisplayType }) => {
|
||||
switch (displayType) {
|
||||
case ListDisplayType.GRID:
|
||||
return <GridConfig {...props} />;
|
||||
return <GridConfig {...props} gridRowsData={tableColumnsData} />;
|
||||
|
||||
case ListDisplayType.TABLE:
|
||||
return <TableConfig {...props} />;
|
||||
return <TableConfig {...props} tableColumnsData={tableColumnsData} />;
|
||||
|
||||
default:
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user