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

新增Toast和Dialog组件 #15

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open

Conversation

NeverEllipsis
Copy link
Collaborator

这个 PR 做了什么?
新增Toast和Dialog组件,扩展弹层相关组件

这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 重构
  • 代码风格优化
  • 测试用例
  • 工作流程

这个变动涉及以下渠道:

  • 所有渠道
  • 微信小程序
  • 支付宝小程序
  • 抖音小程序
  • Web 平台(H5)

附加信息(可选)

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ NeverEllipsis
❌ jellyshuang
You have signed the CLA already but the status is still pending? Let us recheck it.

@@ -181,7 +181,7 @@ export default () => {
<br />
<Button onClick={multiplyTwo}>数量乘2(通过DOM操作value有效)</Button>
<br />
<Input inputRef={reduceRef} defaultValue={defaultValue} />
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Input的两处改动应还原

/**
* 自定义内容
*/
desc?: Render;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

命名保持统一:description

/**
* 是否显示
*/
visible?: boolean;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

扩展了ModalProps,可以直接使用open,不需要再新增一个visible

/**
* 内部<input>标签的标准属性
*/
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

React not defined

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