Cong Zhang
Cong Zhang
动作那么快,支持统一,不过 open 有没有一种动词的感觉,说实话我经常这么写: ``` const [visible, open, close] = useSwitch(false); ``` 突然就尬住了,得改成: ``` const [open, handleOpen, handleClose] = useSwitch(false); ```
在这个作用域里有 open 这个变量,却 `open={visible}`,还是有点蛋疼的。 如果要改的话,我肯定还是选择我的那种方式,多改一些没什么,不要留下犯错的可能性。
话说如果要 break,最好现在 v4 里面 deprecate 一下,这样提前就可能 migrate 了 ``` const {visible, open = visible, ...rest} = props ```
### Some information for css `@layer` maybe this plugin will help:https://github.com/csstools/postcss-plugins/pull/244
这个说法略显激进,className 难道不是 antd 组件提供的 API 么,用 className 不能修改样式,应当认为是一个问题?
Sorry for not reply in time. I agree that `import { Button } from 'antd';` should be the most recommend import pattern. I'm talking about some edge cases which __have...
> 另外,这个问题其实并不关 `antd` 的事,删除 `lib` 目录只留 `es` 目录更是duck不必。 For clarification, in antd@v5, we may drop `lib` and ESM only, https://github.com/ant-design/ant-design/issues/34087. So I'm talking about the further change after we drop...
楼上,他可能说的是对已经拉黑的人,永远不可见。 如果要写的话,大概思路就是首先在 https://www.zhihu.com/settings/filter 得到黑名单的id,然后用 http://www.zhihu.com/question/37293344/answer/71312291 提到的“主页TL关键字屏蔽”,只是把搜关键字变成搜id
@zcyzcy88888 那个答案太长没看到链接。。
顺便关于主题转换工具的想法,这个应该还是可以实现的: 