Skip to content

Commit

Permalink
fix: generator popover add popover error and group style error
Browse files Browse the repository at this point in the history
  • Loading branch information
helloqian12138 committed Nov 14, 2024
1 parent 01f7c47 commit ea90d79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function GroupCell<
empty: !itemColumnSchema,
})}
style={{
...itemColumn && 'style' in itemColumn && 'schema' in itemColumn ? itemColumn.style : {},
...itemColumn && 'style' in itemColumn && 'schema' in itemColumn && typeof itemColumn.style === 'object' ? itemColumn.style : {},
minWidth: `${100 / colLength}%`,
justifyContent: options.horizontalAlign,
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ ExtraOptions extends Partial<DripTableExtraOptions> = never,
showFilter={props.showFilter}
floatPanel
value={popoverConfig?.['ui:type']}
options={components.map(item => ({
options={components.filter(item => item['ui:type'] !== 'popover').map(item => ({
label: item.title,
value: item['ui:type'],
group: item.group,
Expand All @@ -149,7 +149,7 @@ ExtraOptions extends Partial<DripTableExtraOptions> = never,
showFilter={props.showFilter}
floatPanel
value={contentConfig?.['ui:type']}
options={components.map(item => ({
options={components.filter(item => item['ui:type'] !== 'popover').map(item => ({
label: item.title,
value: item['ui:type'],
group: item.group,
Expand Down

0 comments on commit ea90d79

Please sign in to comment.