Skip to content

Commit

Permalink
feat: 更改token命名规范
Browse files Browse the repository at this point in the history
  • Loading branch information
hms181231 committed May 25, 2023
1 parent 67b733e commit 62ec5bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/divider/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { genComponentStyleHook, mergeToken } from '../../theme/internal';
/** Component only token. Which will handle additional calculation of alias token */
export interface ComponentToken {
sizePaddingEdgeHorizontal: number;
dividerVerticalGutterMargin: number;
verticalGutterMargin: number;
}

interface DividerToken extends FullToken<'Divider'> {
Expand All @@ -29,7 +29,7 @@ const genSharedDividerStyle: GenerateStyle<DividerToken> = (token): CSSObject =>
top: '-0.06em',
display: 'inline-block',
height: '0.9em',
margin: `0 ${token.dividerVerticalGutterMargin}px`,
margin: `0 ${token.verticalGutterMargin}px`,
verticalAlign: 'middle',
borderTop: 0,
borderInlineStart: `${lineWidth}px solid ${colorSplit}`,
Expand Down Expand Up @@ -161,7 +161,7 @@ export default genComponentStyleHook(
return [genSharedDividerStyle(dividerToken)];
},
(token) => ({
dividerVerticalGutterMargin: token.marginXS,
verticalGutterMargin: token.marginXS,
sizePaddingEdgeHorizontal: 0,
}),
);

0 comments on commit 62ec5bf

Please sign in to comment.