We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
希望能和上面input框等宽,这种需求应该是比较常见的
// 获取宽度 const getContentWidth = () => { let rect = useRect(popoverRef.value); if (props.targetId) { rect = useRect(document.querySelector(#${props.targetId}) as Element); } rootRect.value = rect; setTimeout(() => { conentRootRect.value = { height: popoverContentRef.value.clientHeight, width: popoverContentRef.value.clientWidth }; }, 0); };
const getContentWidth = () => { let rect = useRect(popoverRef.value); if (props.targetId) { rect = useRect(document.querySelector(
) as Element); } rootRect.value = rect; setTimeout(() => { conentRootRect.value = { height: popoverContentRef.value.clientHeight, width: popoverContentRef.value.clientWidth }; }, 0); };
新增参数 控制一下 conentRootRect 的宽度是否取rootRect的
The text was updated successfully, but these errors were encountered:
No branches or pull requests
这个功能解决了什么问题?
希望能和上面input框等宽,这种需求应该是比较常见的
你期望的组件设计是怎样的?
// 获取宽度
const getContentWidth = () => { let rect = useRect(popoverRef.value); if (props.targetId) { rect = useRect(document.querySelector(
#${props.targetId}) as Element); } rootRect.value = rect; setTimeout(() => { conentRootRect.value = { height: popoverContentRef.value.clientHeight, width: popoverContentRef.value.clientWidth }; }, 0); };
新增参数 控制一下 conentRootRect 的宽度是否取rootRect的
The text was updated successfully, but these errors were encountered: