mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:55:50 +00:00
chore: make e2e tests pass
This commit is contained in:
parent
436b001c9b
commit
a84a22c140
@ -18,7 +18,7 @@ export function useSetAriaLabelForDrawer(visible: boolean) {
|
|||||||
if (visible) {
|
if (visible) {
|
||||||
// 因为 Action 是点击后渲染内容,所以需要延迟一下
|
// 因为 Action 是点击后渲染内容,所以需要延迟一下
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
const wrappers = [...document.querySelectorAll('.ant-drawer-wrapper-body')];
|
const wrappers = [...document.querySelectorAll('.ant-drawer-content-wrapper')];
|
||||||
const masks = [...document.querySelectorAll('.ant-drawer-mask')];
|
const masks = [...document.querySelectorAll('.ant-drawer-mask')];
|
||||||
// 如果存在多个 mask,最后一个 mask 为当前打开的 mask;wrapper 也是同理
|
// 如果存在多个 mask,最后一个 mask 为当前打开的 mask;wrapper 也是同理
|
||||||
const currentMask = masks[masks.length - 1];
|
const currentMask = masks[masks.length - 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user