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

fixed: 组件面板搜索功能优化 #8586

Merged
merged 1 commit into from
Nov 3, 2023
Merged

Conversation

yinchunyu
Copy link
Contributor

@yinchunyu yinchunyu commented Nov 2, 2023

What

🤖 Generated by Copilot at e81e76b

This pull request adds or updates the docLink property for several editor plugins to link to the corresponding documentation pages for the AMIS components. It also improves the appearance and functionality of some editor plugins, such as the Layout_fixed and the FlexPluginBase. It removes some unnecessary CSS rules from _renderers.scss.

🤖 Generated by Copilot at e81e76b

Oh we're the crew of the AMIS ship, and we sail the web so free
We add the docLink to every plugin, so the users can learn and see
We fix the layout and the preview, and we polish the CSS
We heave and ho on the count of three, and we make the editor the best

Why

How

🤖 Generated by Copilot at e81e76b

  • Added docLink properties to various plugin classes to specify the documentation URLs for the corresponding components in the AMIS framework (link, link, link, link, link, link, link, link, link, link, link, link)
  • Updated the docLink property of the TextControlPlugin class to match the correct documentation URL for the input text component (link)
  • Modified the body property of the defaultFlexColumnSchema function in Layout/FlexPluginBase.tsx to include a template component that renders the title of the flex column (link)
  • Corrected the description property of the Layout_fixed class in Layout/Layout_fixed.tsx to use the term "CSS Fixed" instead of "CSS Flex" (link)
  • Added the previewSchema property to the Layout_fixed class in Layout/Layout_fixed.tsx to define the schema of the component that is rendered in the preview mode of the editor (link)
  • Commented out the min-height property of the .ae-RendererThumb class in _renderers.scss to avoid unnecessary vertical space for the thumbnails of the renderers in the editor (link)
  • Commented out the overflow property of the .ae-RendererThumb .ae-RendererThumb-body class in _renderers.scss to allow the content of the thumbnails to be fully visible without clipping or scrolling (link)

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

github-actions bot commented Nov 2, 2023

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

Please review the labels and make any necessary changes.

@@ -16,7 +16,18 @@ import type {
export const defaultFlexColumnSchema = (title?: string) => {
return {
type: 'container',
body: [],
body: [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接改这里会影响组件拖入后的初始内容,用户如果不需要还得删除每列中的tpl组件

@@ -244,7 +244,7 @@
// 左侧组件面板/info提示弹窗
.ae-RendererThumb {
max-width: 328px;
min-height: 120px;
// min-height: 120px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

保留最小高度,可以设置个小点值

@hsm-lv hsm-lv merged commit 2e7d1a5 into baidu:master Nov 3, 2023
3 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.

None yet

3 participants