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

InputFormula 公式编辑器 添加clearDefaultFormula 属性,可清除默认函数 #8035

Open
wants to merge 29 commits into
base: master
Choose a base branch
from

Conversation

lengqingfeng
Copy link
Contributor

@lengqingfeng lengqingfeng commented Sep 7, 2023

What

🤖 Generated by Copilot at c666796

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.

🤖 Generated by Copilot at c666796

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

Why

How

🤖 Generated by Copilot at c666796

  • Removed the unnecessary scope="body" attribute from the schema code blocks in the documentation file docs/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 the functions property (link, link, link, link, link, link, link, link, link, link, link, link, link)
  • Added a new dependency rc-component to the package.json file, which is required for the input-formula component (link)

srleng and others added 29 commits May 23, 2022 13:58
… fix-order

* 'fix-order' of https://github.com/lengqingfeng/amis: (282 commits)
  去掉字段
  outputVar中增加数据
  修改测试用例
  修改测试用例
  feat:ajax动作返回数据格式调整
  test: 补全table selectable&itemCheckableOn属性单测 test: CRUD +  quickEdit & quickSaveApi & quickSaveItemApi & saveImmediately
  fix: InputTag组件placeholder属性不生效问题 (baidu#4933)
  style: Card组件按钮区图标文字间隔 (fix baidu#4901) (baidu#4931)
  fix: baidu#4828 Select组件搜索时输入空格错误关闭下拉框,关闭快捷键改为组合键 (baidu#4930)
  chore: 修复编译 warnning
  fix: Service组件Unmount方法缺失问题 (baidu#4954)
  fix: transfer tree 右侧无法滚动  (baidu#4686)
  fix: 公式编辑器高亮问题 (baidu#4945)
  feat: Property 的 title 等属性支持自动变量解析 Closes baidu#4900
  修改
  修改
  fix: input-tag max 属性bug修复
  fix: input-tag max 属性bug修复
  fix: TreeSelect多选选中后没有清空input搜索内容 (baidu#4843)
  docs: 补充 mapping 渲染其它 amis 组件的示例
  ...
@2betop
Copy link
Collaborator

2betop commented Dec 18, 2023

感谢提供 pr,但是目前 ci 是挂的,影响后续流程。辛苦处理以下问题

  1. doc.ts 目前有冲突,需要解决代码冲突
  2. clearDefaultFormula 改名为 showDefaultFormula ,配置成 false 时不显示自带的公式列表

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants