Skip to content

Commit

Permalink
feat: 修复link、img、text组件click事件参数名对不上, table组件支持折叠按钮
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoqingb committed Dec 5, 2024
1 parent e8eddbb commit 906591e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/editor/src/packages/Scene/MarsTable/MarsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ const MarsTable = ({ id, type, config, elements, onCheckedChange }: ComponentTyp
</Button>
);
});
// 配置了折叠功能,且存在需要折叠的按钮
if (moreActionIndex && btns.slice(moreActionIndex - 1).length) {
const content = <div style={{
display: 'flex',
Expand Down
1 change: 1 addition & 0 deletions packages/materials/Scene/MarsTable/MarsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ const MarsTable = ({ config, elements, onCheckedChange }: ComponentType<IConfig>
})
// 过滤掉空按钮
.filter((i: any) => i)
// 配置了折叠功能,且存在需要折叠的按钮
if (moreActionIndex && btns.slice(moreActionIndex - 1).length) {
const content = <div style={{
display: 'flex',
Expand Down

0 comments on commit 906591e

Please sign in to comment.