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: ConditionBuilder使用公式输入时支持设定输入框类型 #7102

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

lurunze1226
Copy link
Collaborator

@lurunze1226 lurunze1226 commented Jun 7, 2023

What

🤖 Generated by Copilot at 6fa5a69

This pull request adds a new feature to the amis-ui package, which is the ability to customize the input schema for the formula editor component. It also improves the appearance and alignment of the formula picker and the related input components, and fixes some minor issues and warnings. Additionally, it updates the locale files and the documentation for the formula editor and the condition builder components.

🤖 Generated by Copilot at 6fa5a69

inputSchema prop
enhances formula editor
autumn of features

Why

How

🤖 Generated by Copilot at 6fa5a69

  • Add a new formula input component that can handle different types of input fields based on the input schema, such as text, number, boolean, date, time, datetime, and select (link)
  • Modify the formula picker component to accept an inputSchema prop and use the formula input component when in input-group mode (link, link, link, link, link, link, link, link, link, link, link, link, link, link)
  • Modify the input formula renderer to pass the inputSchema prop to the formula picker component (link, link, link, link)
  • Modify the condition builder value component to pass the inputSchema prop to the formula picker component (link)
  • Add a new SCSS variable and some styles for the input formula input schema height and padding (link, link, link, link)
  • Add a new schema example to the documentation of the condition builder component (link)
  • Add new locale strings for the formula editor invalid value error message and the formula input true and false labels (link, link, link, link, link, link)
  • Remove the useMobileUI prop from the date picker and result box components, as it is not needed and causes a warning (link, link)
  • Replace the double slash comments with asterisk comments in the SCSS file, to follow the style convention (link)

@github-actions github-actions bot added the feat label Jun 7, 2023
@github-actions
Copy link

github-actions bot commented Jun 7, 2023

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

Please review the labels and make any necessary changes.

@lurunze1226 lurunze1226 force-pushed the feat-cb-formula branch 3 times, most recently from ce18510 to b48f373 Compare June 8, 2023 02:11
Copy link
Collaborator

@2betop 2betop left a comment

Choose a reason for hiding this comment

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

inputSchema 改成 inputSettings,文档需要补充更多的说明

@hsm-lv hsm-lv merged commit f64b988 into baidu:master Jul 12, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants