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

z-index: calc(var($zindex-top) + 1) 会被 next 15 编译为 var(3000)1 ? #11496

Open
lizyChy0329 opened this issue Jan 13, 2025 · 0 comments
Open

Comments

@lizyChy0329
Copy link

描述问题:

z-index: calc(var($zindex-top) + 1) 会被 next 15 编译为 var(3000)1

截图或视频:

// ./node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/amis/lib/themes/default.css:41392:17
  41390 |   width: 100vw;
  41391 |   height: 100vh;
> 41392 |   z-index: var(3000)1;
        |                 ^
  41393 | }
  41394 | .cxd-UserSelect-searchBox {
  41395 |   height: 3.25rem;

源码

// _user-select.scss
  &-selectPopup {
    width: 100vw;
    height: 100vh;
    z-index: calc(var($zindex-top) + 1);
  }

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    windows 10
    amis 6.10.0
    pnpm 8.15.7
    node 18+

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.10.0

  3. 粘贴有问题的完整 amis schema 代码:

const defaultSchema: Schema | SchemaObject = {
    type: "page",
    body: "",
    title: "标题",
    regions: ["body"],
  };
  1. 操作步骤
    pnpm dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant