hans000

Results 19 issues of hans000

The mainfest.json version is 3, it just support 88 or higher version.

### What problem does this feature solve? 现在的api使用起来不方便,希望提供chidren render props或者单独提供一个配置项 ### What does the proposed API look like? ``` { (item, index) => { return {index} } } ```

Inactive
unconfirmed

提问前先看看: https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md ### 🐛 bug 描述 把添加按钮禁用,还会保留一个控件的高度 ### 📷 复现步骤 []}> ### 🏞 期望结果 - 希望没有这个空元素 - 能否提供一个render当空列表时渲染,类似Table的 ### 💻 复现代码 ### © 版本信息 - ProComponents 版本: [e.g. 4.0.0] -...

🎖️ featrue
👏🏻 Welcome pr

v4.5+ can not support umd

业务场景 有两个按钮分别是【暂存】【提交】,点击【暂存】时要求只校验部分规则(如:字符长度,选择数量,不做必填校验)点击【提交】时全部规则校验。 一般实现这个功能可能要借助一个flag去判断,这使得业务代码看着挺乱的。 现在希望添加Rule 增加 groupId 字段用于给规则分组,添加validateFieldsByGroupIds(['groupId1', 'groupId2'])去校验对应的规则 或者改造增强validateFields方法,给一个predicate去断言

https://codesandbox.io/p/sandbox/nice-modal-pl4l62?file=%2Fsrc%2FApp.tsx%3A13%2C44

## 问题描述 对电话号码的中间4位做脱敏处理,例如:1881234578 -> 188****5678 ## 解决方案 ``` function desensitize(phoneNumber) { return phoneNumber.replace(/^(\d{3}).+(\d{4})$/, '$1****$2') } ``` ## 参考链接 列出方案的具体原理

js
regexp

|标题|分类| |:--|---| |[锚点定位被顶部固定导航栏遮住(仅CSS)](https://github.com/hans000/javascript-note/issues/41)|layout| |[取消浏览器对页面滚动条位置的记录](https://github.com/hans000/javascript-note/issues/40)|css| |[flex内容溢出问题](https://github.com/hans000/javascript-note/issues/39)|css| |[处理全屏后select、dropdown组件弹出层的层级问题](https://github.com/hans000/javascript-note/issues/43)|css|

content

## 问题描述 处理全屏后select、dropdown组件弹出层的层级问题。主要原因是使用requestFullscreen API会把目标元素全屏,无视其他元素的层级,目标元素是最高的(如果其他元素再次使用requestFullscreen会顶替当前的元素) ## 解决方案 - 把弹出层设置到元素下面(如果条件允许) - 设置body为全屏,然后设置目标元素的样式使其撑满页面

layout
work scene