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

可不可以在设置data-s和data-m的时候同时设置一个css var为当前最大的z-index值,这样在css里也可以直接动态使用 #2

Open
rex-ll opened this issue Aug 20, 2024 · 2 comments
Labels
realized This function has been implemented

Comments

@rex-ll
Copy link

rex-ll commented Aug 20, 2024

或者加一个可全局监听的事件,其实目的就是想直接在css中使用,但目前没想到其他办法

@rex-ll rex-ll changed the title 可不可以在设置data-s和data-m的时候同时设置一个css var为当前最大的z-index值,这样在css里也可以直接动态控制 可不可以在设置data-s和data-m的时候同时设置一个css var为当前最大的z-index值,这样在css里也可以直接动态使用 Aug 20, 2024
@rex-ll
Copy link
Author

rex-ll commented Aug 20, 2024

目前是用的import { useMutationObserver } from '@vueuse/core'监听的,但总感觉怪怪的,希望插件本身能提供

xuliangzhan added a commit that referenced this issue Aug 26, 2024
@xuliangzhan xuliangzhan added the realized This function has been implemented label Aug 26, 2024
@xuliangzhan
Copy link
Contributor

已支持 css 变量

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
realized This function has been implemented
Projects
None yet
Development

No branches or pull requests

2 participants