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

主题 Token Typescript 类型 HeightMapToken 缺少值 #39752

Closed
zynyy opened this issue Dec 23, 2022 · 2 comments · Fixed by #39754
Closed

主题 Token Typescript 类型 HeightMapToken 缺少值 #39752

zynyy opened this issue Dec 23, 2022 · 2 comments · Fixed by #39754
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it

Comments

@zynyy
Copy link

zynyy commented Dec 23, 2022

Reproduction link

Edit on CodeSandbox

Steps to reproduce


import { genComponentStyleHook } from "antd/es/theme/internal";

export default genComponentStyleHook("DatePicker", (token) => {
  const { controlHeightSM, antCls, controlHeight } = token || {};

  return {
    [`${antCls}-demo`]: {
      height: controlHeightSM || controlHeight * 0.75
    }
  };
});

What is expected?

export interface HeightMapToken {
  controlHeightXS: number;
  controlHeightSM: number;
  controlHeightLG: number;
}

What is actually happening?

export interface HeightMapToken {

}
Environment Info
antd 5.1.0
React 18.2.0
System mac
Browser Google Chrome 108.0.5359.124
@github-actions
Copy link
Contributor

You may look for issues:

  1. 52% 5.0.0-alpha.2 样式丢失 vite react #37991

🤖 By issues-similarity-analysis

@MadCcc MadCcc added 🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it labels Dec 23, 2022
@MadCcc
Copy link
Member

MadCcc commented Dec 23, 2022

这些被打了 internal flag,编译之后省略了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Ant Design Team had proved that this is a bug. 👷🏻‍♂️ Someone working on it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants