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: support dropdownStyle and merge dropdownMenuColumnStyle to styles prop #413

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

Conversation

BoyYangzai
Copy link
Contributor

测试 rc 与 antd 所有 test都通过
合并后补充 antd pr

@vercel
Copy link

vercel bot commented Jun 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cascader ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 21, 2023 8:20am

@codecov
Copy link

codecov bot commented Jun 5, 2023

Codecov Report

Merging #413 (48fe8cf) into master (6ba06e9) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 48fe8cf differs from pull request most recent head 8dd950a. Consider uploading reports for the commit 8dd950a to get more accurate results

@@           Coverage Diff           @@
##           master     #413   +/-   ##
=======================================
  Coverage   99.81%   99.81%           
=======================================
  Files          19       19           
  Lines         550      554    +4     
  Branches      154      157    +3     
=======================================
+ Hits          549      553    +4     
  Misses          1        1           
Impacted Files Coverage Δ
src/Cascader.tsx 100.00% <100.00%> (ø)
src/utils/warningPropsUtil.ts 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

src/Cascader.tsx Outdated Show resolved Hide resolved
@MadCcc
Copy link
Member

MadCcc commented Jun 5, 2023

styles: { dropdown: React.CSSProperties }

现在的 API 应该这么设计了

@MadCcc
Copy link
Member

MadCcc commented Jun 5, 2023

feature 分支吧 看成 antd 了

@BoyYangzai BoyYangzai changed the title feat: support dropdownStyle feat: support dropdownStyle and merge dropdownMenuColumnStyle to styles prop Jun 5, 2023
@MadCcc
Copy link
Member

MadCcc commented Jun 7, 2023

styles 的测试需要加一下

tests/index.spec.tsx Outdated Show resolved Hide resolved
tests/index.spec.tsx Outdated Show resolved Hide resolved
@97702573
Copy link

@BoyYangzai 请问下已经发布线上了吗,antd版本是多少,现在可以使用吗

src/Cascader.tsx Outdated Show resolved Hide resolved
src/Cascader.tsx Outdated Show resolved Hide resolved
src/Cascader.tsx Outdated Show resolved Hide resolved
@@ -97,8 +97,15 @@ interface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOptionTyp
/** @deprecated Use `dropdownClassName` instead */
popupClassName?: string;
dropdownClassName?: string;
/** @deprecated Use `styles.popupColumn` instead */
Copy link
Member

Choose a reason for hiding this comment

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

上面的 popupClassName dropdownClassName 备注也更新一下~

@@ -17,6 +17,10 @@ function warningProps(props: InternalCascaderProps) {
popupPlacement === undefined,
'`popupPlacement` is deprecated. Please use `placement` instead.',
);
warning(
Copy link
Member

Choose a reason for hiding this comment

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

上面还有 popupXX 废弃请用 dropdown 的wanring 也需要清理掉

@yoyo837
Copy link
Member

yoyo837 commented Aug 16, 2023

ping

@97702573
Copy link

@BoyYangzai 嗨 请问什么时候解决下冲突 然后合并代码呀。

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.

Cascader组件添加下拉菜单的 style API
7 participants