InputFormula 公式编辑器 添加clearDefaultFormula 属性,可清除默认函数 #8035
Analysis complete
Summary
Added a new feature to the input-formula component and its documentation. The feature allows users to clear the default functions from the formula editor and picker. The feature can be configured in the schema or in the component props. The feature required a new dependency rc-component
and a modification of the test case.
Walkthrough
-
Removed the unnecessary
scope="body"
attribute from the schema code blocks in the documentation filedocs/zh-CN/components/form/input-formula.md
(link, link, link, link, link, link, link, link) -
Added a new
clearDefaultFormula
property to the input-formula component, which allows to clear the default functions and use only the custom ones defined in thefunctions
property (link, link, link, link, link, link, link, link, link, link, link, link, link) -
Added a new dependency
rc-component
to thepackage.json
file, which is required for the input-formula component (link)Poem
We're coding up a storm, me hearties, with
rc-component
We're adding and removing props, to make the formula perfect
Heave ho, and clear the default, on the count of three
We're building a fine input-formula, for all to see
Emoji
🆕🧹📝
Include these descriptions in your pull request description by including the following marker tags:
copilot:all
: all the content, in one gocopilot:summary
: a one paragraph summary of the code changescopilot:walkthrough
: a step by step walkthrough of the code changescopilot:poem
: a poem about the code changes!copilot:emoji
: three emoji that capture the changes
Feedback is welcome. Simply add a comment to this PR of the form /copilot feedback [your comments here]
.
Details
Copilot for PRs is a limited technical preview from GitHub Next.
It's aim is to make it easier to write pull request descriptions by providing automatically generated suggestions based on the code changes.
To find out more go to https://githubnext.com/projects/copilot-for-pull-requests or come and chat with us on Discord
File | Status | Duration |
---|---|---|
Summary & Walkthrough | ✅ Finished | 67.7 seconds |
docs/zh-CN/components/form/input-formula.md | ✅ Finished | 57.8 seconds |
package.json | ✅ Finished | 55.7 seconds |
packages/amis-formula/src/doc.ts | 🤷♂️ Skipped (change too big) | 0 seconds |
packages/amis-ui/src/components/formula/Editor.tsx | ✅ Finished | 57 seconds |
packages/amis-ui/src/components/formula/Picker.tsx | ✅ Finished | 57.4 seconds |
packages/amis/tests/renderers/Form/inputFormula.test.tsx | ✅ Finished | 55.7 seconds |
packages/amis/src/renderers/Form/InputFormula.tsx | ✅ Finished | 57.6 seconds |
packages/amis-formula/src/doc.ts
was skipped. 2032 lines were added or removed, with the largest change updating 400 lines.