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

feat(amis-editor;amis):时间范围组件快捷键自定义支持固定值的配置 + 设计器快捷键配置功能 #7119

Merged
merged 1 commit into from
Jun 9, 2023

Conversation

yangwei9012
Copy link
Collaborator

@yangwei9012 yangwei9012 commented Jun 8, 2023

What

🤖 Generated by Copilot at c8f47e4

This pull request improves the style and functionality of the date range picker and the right panel in the AMIS editor. It uses CSS variables and mixins to adjust the font size and layout of the UI elements, and fixes some bugs and schema issues in the date range control plugin. It also imports the amis-ui style sheet to reuse the common variables and mixins.

🤖 Generated by Copilot at c8f47e4

We're sailing on the AMIS editor
We're styling up the panel and the picker
We're using CSS variables and mixins
We're heaving on the code on the count of three

Why

How

🤖 Generated by Copilot at c8f47e4

  • Simplify the panel-sm-content mixin by inheriting common CSS variables from :root and overriding specific ones (link)
  • Add a CSS rule for the links class inside the panel-sm-content class to set the font size to 14px (link)
  • Replace hard-coded font size for tabs in the right panel with CSS variables that can be customized by the theme (link)
  • Modify the style of the date shortcut control to make the layout more flexible and consistent with the input control (link, link)
  • Import the amis-ui components style sheet into the editor style sheet to use the common CSS variables and mixins (link)
  • Fix bugs in the date range control plugin by deleting ranges and shortcuts props when using static values for min and max dates (link, link)
  • Update the schema of the date range control plugin by changing the shortcuts prop from an object with two sub-objects to an object with two arrays (link)
  • Improve the compatibility of the date range picker component by adding type checks and parsing for the startDate and endDate props of the shortcut (link, link)

@github-actions
Copy link

github-actions bot commented Jun 8, 2023

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

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the feat label Jun 8, 2023
@yangwei9012 yangwei9012 merged commit 7b8bf51 into baidu:master Jun 9, 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.

None yet

3 participants