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

fix(Menu): 修复 Menu 使用 React.StrictMode 报错 #758

Merged
merged 55 commits into from Apr 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
a196114
feat(Table): Table 新增树形数据结构展示功能 #539
cuilanxin Mar 16, 2022
ba4173c
Merge branch 'master' of github.com:uiwjs/uiw
cuilanxin Mar 17, 2022
a9b9b5f
feat(Table): Table 新增支持 align 属性 className属性 #682
cuilanxin Mar 17, 2022
03bb855
Merge branch 'master' of github.com:uiwjs/uiw
cuilanxin Mar 17, 2022
ccf7d16
Merge branch 'master' of github.com:uiwjs/uiw
cuilanxin Mar 18, 2022
8a06082
feat(Table): Table 添加 scroll 属性,解决表格冗余 div #687
cuilanxin Mar 18, 2022
a11db86
feat(Table): Table 添加 scroll 属性,解决表格冗余 div #687
cuilanxin Mar 18, 2022
f064884
Merge branch 'uiwjs:master' into master
cuilanxin Mar 20, 2022
e0dded3
Merge branch 'uiwjs:master' into master
cuilanxin Mar 21, 2022
2bb39f9
feat(Table): Table 新增固定列属性
cuilanxin Mar 21, 2022
a86201e
feat(Table): Table 新增固定列属性
cuilanxin Mar 21, 2022
e825768
Merge branch 'master' of github.com:uiwjs/uiw
cuilanxin Mar 21, 2022
35816f7
doc(Table): Update README.md
cuilanxin Mar 21, 2022
86699f6
Merge branch 'master' of github.com:uiwjs/uiw
cuilanxin Mar 22, 2022
68f8262
update(Table): Table 支持树形数据显示和可展开同时出现
cuilanxin Mar 22, 2022
90b101f
Merge branch 'uiwjs:master' into master
cuilanxin Mar 22, 2022
a9d6ba7
Merge branch 'uiwjs:master' into master
cuilanxin Mar 23, 2022
fab96bd
fix(Table): 修复Table indentSize 传递0失效问题
cuilanxin Mar 23, 2022
fe440e6
Merge branch 'uiwjs:master' into master
cuilanxin Mar 23, 2022
343aef7
Merge branch 'uiwjs:master' into master
cuilanxin Mar 25, 2022
5a5bbdd
fix(Table): 修复 table fixed 不能对表头分组使用
cuilanxin Mar 25, 2022
2bab0b6
Merge branch 'uiwjs:master' into master
cuilanxin Mar 25, 2022
85bcab1
Merge branch 'uiwjs:master' into master
cuilanxin Mar 28, 2022
b5a2a04
Merge branch 'uiwjs:master' into master
cuilanxin Mar 28, 2022
980e4ec
Merge branch 'uiwjs:master' into master
cuilanxin Mar 30, 2022
2c9f85f
fix(Table): 修复table fix 在表头分组中fixed固定位置错误问题
cuilanxin Mar 30, 2022
f7d8831
fix(Table): 修复table fix 在表头分组中fixed固定位置错误问题
cuilanxin Mar 30, 2022
64da40d
fix(Table): 修复table fix 在表头分组中fixed固定位置错误问题
cuilanxin Mar 30, 2022
4ce3935
Merge branch 'uiwjs:master' into master
cuilanxin Apr 1, 2022
c6dd9b2
doc(Table): 增加Table可编辑,可编辑行例子
cuilanxin Apr 1, 2022
74d7bec
Merge branch 'uiwjs:master' into master
cuilanxin Apr 2, 2022
eb632e9
doc(Table): 更新table组件文档 可编辑行例子的错误
cuilanxin Apr 2, 2022
0cbe904
Merge branch 'uiwjs:master' into master
cuilanxin Apr 2, 2022
ac9facd
Merge branch 'uiwjs:master' into master
cuilanxin Apr 6, 2022
74f1b0c
Merge branch 'uiwjs:master' into master
cuilanxin Apr 6, 2022
e5dccf7
feat(Modal) fix(Overlay): 新增Modal.show()快速使用弹框功能,修复Overlay首次打开没有动画问题
cuilanxin Apr 6, 2022
a980dd8
feat(Modal) fix(Overlay): 新增Modal.show()快速使用弹框功能,修复Overlay首次打开没有动画问题
cuilanxin Apr 6, 2022
365dd47
feat(Modal) fix(Overlay): 新增Modal.show()快速使用弹框功能,修复Overlay首次打开没有动画问题
cuilanxin Apr 6, 2022
175344c
feat(Modal) fix(Overlay): 新增Modal.show()快速使用弹框功能,修复Overlay首次打开没有动画问题
cuilanxin Apr 6, 2022
05a9cd0
feat(Modal) fix(Overlay): 新增Modal.show()快速使用弹框功能,修复Overlay首次打开没有动画问题
cuilanxin Apr 6, 2022
4368c4c
Merge branch 'uiwjs:master' into master
cuilanxin Apr 6, 2022
fbd4e17
Merge branch 'uiwjs:master' into master
cuilanxin Apr 7, 2022
7cbd9b4
Merge branch 'uiwjs:master' into master
cuilanxin Apr 8, 2022
d6e3006
feat(Popover): 新增 Confirm 用法
cuilanxin Apr 8, 2022
18cdc9b
Merge branch 'uiwjs:master' into master
cuilanxin Apr 8, 2022
2870701
reactor(Table,Modal): 移除Table中使用的即将废弃的api, 优化Modal.show代码
cuilanxin Apr 8, 2022
3664370
reactor(Table): 移除Table中使用的即将废弃的api
cuilanxin Apr 8, 2022
72bb731
reactor(Modal): 优化 Modal.show 代码
cuilanxin Apr 8, 2022
82b2a93
reactor(Modal): 优化 Modal.show 代码
cuilanxin Apr 8, 2022
8c61c86
Merge branch 'uiwjs:master' into master
cuilanxin Apr 8, 2022
d0ecaf2
reactor(Modal): 优化 Modal.show 代码
cuilanxin Apr 8, 2022
4ae90d1
Merge branch 'uiwjs:master' into master
cuilanxin Apr 8, 2022
13a50b2
Merge branch 'uiwjs:master' into master
cuilanxin Apr 11, 2022
1909517
Merge branch 'uiwjs:master' into master
cuilanxin Apr 11, 2022
8a75b28
fix(Menu): 修复Menu 使用 React.StrictMode 报错问题
cuilanxin Apr 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/react-menu/src/SubMenu.tsx
Expand Up @@ -88,21 +88,21 @@ export const SubMenu = React.forwardRef(function <Tag extends TagType = 'a'>(
}
}
function onExit(node: HTMLElement) {
node.style.height = `${node.scrollHeight}px`;
node && (node.style.height = `${node.scrollHeight}px`);
setIsOpen(false);
}
function onExiting(node: HTMLElement) {
node.style.height = '0px';
node && (node.style.height = '0px');
}
function onEnter(node: HTMLElement) {
node.style.height = '1px';
node && (node.style.height = '1px');
setIsOpen(true);
}
function onEntering(node: HTMLElement) {
node.style.height = `${node.scrollHeight}px`;
node && (node.style.height = `${node.scrollHeight}px`);
}
function onEntered(node: HTMLElement) {
node.style.height = 'initial';
node && (node.style.height = 'initial');
}

if (!collapse) {
Expand Down
3 changes: 2 additions & 1 deletion packages/react-overlay/src/index.tsx
Expand Up @@ -65,7 +65,7 @@ export default function Overlay(props: OverlayProps) {
// const [isOpen, setIsOpen] = useState(props.isOpen || false);
const [visible, setVisible] = useState(false);
const container = useRef<HTMLDivElement>(null);
const overlay = useRef<HTMLDivElement>(null);
const overlay = useRef(null);
useEffect(() => {
if (isOpen !== props.isOpen && props.isOpen) {
setVisible(true);
Expand Down Expand Up @@ -138,6 +138,7 @@ export default function Overlay(props: OverlayProps) {
onEntered={onOpened}
onExiting={onClosing}
onExited={handleClosed}
nodeRef={overlay}
{...otherProps}
>
{(status) => {
Expand Down