Skip to content

Commit

Permalink
fix(design): TS type error for AlertToken
Browse files Browse the repository at this point in the history
  • Loading branch information
dengfuping committed Sep 12, 2023
1 parent ef26bcb commit e409190
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/design/src/alert/style/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { CSSObject } from '@ant-design/cssinjs';
import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
import type { ComponentToken } from 'antd/es/alert/style';
import { genComponentStyleHook } from '../../_util/genComponentStyleHook';

export type AlertToken = FullToken<'Alert'>;
export type AlertToken = FullToken<'Alert'> & ComponentToken;

const genTypeStyle = (color: string, token: AlertToken): CSSObject => {
// 左侧颜色条宽度设置为 8px,但还需要绕 Y 轴旋转 60deg,因此最后的投影宽度实际为 4px
Expand Down

0 comments on commit e409190

Please sign in to comment.