Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 「页面设计器」Page组件支持组件静态数据配置 #8750

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

igrowp
Copy link
Collaborator

@igrowp igrowp commented Nov 15, 2023

What

【问题】页面设计器本地启动时添加静态数据不太方便还需要写schema
【修改】放开page组件的静态数据配置,在saas重写了pageData的tpl,做了隐藏配置项的处理

Why

How

🤖 Generated by Copilot at 14e66a7

  • Extract the common logic for the page component's static data into a new schema template pageData in common.tsx (link)
  • Replace the commented out code for the combo-container schema template in Page.tsx with a call to getSchemaTpl('pageData') to use the new template (link)

@github-actions github-actions bot added the fix label Nov 15, 2023
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@2betop 2betop merged commit ef13612 into baidu:master Nov 15, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants