Skip to content

Commit

Permalink
fix(components): fix css var error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Sep 6, 2022
1 parent bcac384 commit bd5d3bf
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 56 deletions.
2 changes: 1 addition & 1 deletion packages/form/src/layouts/LoginForm/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const genLoginFormStyle: GenerateStyle<LoginFormToken> = (token) => {
minWidth: '328px',
maxWidth: '500px',
margin: '0 auto',
'&-other': { marginBlockStart: '24px', lineHeight: '22px', textAlign: 'left' },
'&-other': { marginBlockStart: '24px', lineHeight: '22px', textAlign: 'start' },
},
},
'@media (min-width: @screen-md-min)': {
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/layouts/LoginFormPage/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const genLoginFormStyle: GenerateStyle<LoginFormToken> = (token) => {
'&-main': {
width: '328px',
margin: '0 auto',
'&-other': { marginBlockStart: '24px', lineHeight: '22px', textAlign: 'left' },
'&-other': { marginBlockStart: '24px', lineHeight: '22px', textAlign: 'start' },
},
},
[`@media (max-width: ${token.screenMDMin}`]: {
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/layouts/QueryFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ const QueryFilterContent: React.FC<{
span={spanSize.span}
offset={offset}
style={{
textAlign: 'right',
textAlign: 'end',
}}
>
<Form.Item label=" " colon={false} className={`${baseClassName}-actions ${hashId}`}>
Expand Down
2 changes: 1 addition & 1 deletion packages/layout/src/demos/error-boundaries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CustomBoundary extends React.Component<
<div
style={{
maxWidth: 620,
textAlign: 'left',
textAlign: 'start',
backgroundColor: 'rgba(255,229,100,0.3)',
borderInlineStartColor: '#ffe564',
borderInlineStartWidth: '9px',
Expand Down
4 changes: 2 additions & 2 deletions packages/provider/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export const ConfigProviderWrap: React.FC<Record<string, unknown>> = ({
autoClearCache = false,
}) => {
const { locale } = useContext(AntdConfigProvider.ConfigContext);
const { hashId } = useToken?.();
const token = useToken?.();
// ε¦‚ζžœ locale 不存在θ‡ͺ动注ε…₯ηš„ AntdConfigProvider
const Provider = locale === undefined ? AntdConfigProvider : React.Fragment;
const proProvide = useContext(ConfigContext);
Expand Down Expand Up @@ -324,7 +324,7 @@ export const ConfigProviderWrap: React.FC<Record<string, unknown>> = ({
</Provider>
);
if (proProvide.isDeps) return provide;
return <div className={`ant-pro ${hashId}`}>{provide}</div>;
return <div className={`ant-pro ${token.hashId}`}>{provide}</div>;
}}
</ConfigConsumer>
);
Expand Down
2 changes: 1 addition & 1 deletion packages/table/src/demos/error-boundaries.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class CustomBoundary extends React.Component<
<div
style={{
maxWidth: 620,
textAlign: 'left',
textAlign: 'start',
backgroundColor: 'rgba(255,229,100,0.3)',
borderInlineStartColor: '#ffe564',
borderInlineStartWidth: '9px',
Expand Down
2 changes: 1 addition & 1 deletion tests/__snapshots__/doc.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ exports[`docs demos πŸ“Έ renders ./docs/demos/customization-value-type.tsx corre
</div>
<div
class="ant-col ant-col-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down
20 changes: 10 additions & 10 deletions tests/form/__snapshots__/demo.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20826,7 +20826,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -21413,7 +21413,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -22010,7 +22010,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-8 ant-col-offset-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -22342,7 +22342,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-6"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -22674,7 +22674,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-6"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -23246,7 +23246,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-8 ant-col-offset-16"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -23848,7 +23848,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-12 ant-col-offset-12"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -24450,7 +24450,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-8 ant-col-offset-16"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -25052,7 +25052,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-4 ant-col-offset-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -25611,7 +25611,7 @@ exports[`form demos πŸ“Έ renders ./packages/form/src/components/QueryFilter/demo
</div>
<div
class="ant-col ant-col-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down
2 changes: 1 addition & 1 deletion tests/list/__snapshots__/demo.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6278,7 +6278,7 @@ exports[`list demos πŸ“Έ renders ./packages/list/src/demos/search.tsx correctly
</div>
<div
class="ant-col ant-col-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down
6 changes: 3 additions & 3 deletions tests/table/__snapshots__/column.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ exports[`Table ColumnSetting 🎏 columns proFieldProps support custom 1`] = `
</div>
<div
class="ant-col ant-col-8 ant-col-offset-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down Expand Up @@ -526,7 +526,7 @@ exports[`Table ColumnSetting 🎏 config provide render 1`] = `
</div>
<div
class="qixian-col qixian-col-8 qixian-col-offset-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="qixian-form-item qixian-pro-query-filter-actions "
Expand Down Expand Up @@ -1319,7 +1319,7 @@ exports[`Table ColumnSetting 🎏 extra columns 1`] = `
</div>
<div
class="ant-col ant-col-8 ant-col-offset-8"
style="padding-left: 12px; padding-right: 12px; text-align: right;"
style="padding-left: 12px; padding-right: 12px; text-align: end;"
>
<div
class="ant-form-item ant-pro-query-filter-actions "
Expand Down
Loading

0 comments on commit bd5d3bf

Please sign in to comment.