fix: remove theme token (#4947)
Some checks are pending
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run

This commit is contained in:
jack zhang 2024-07-26 15:20:30 +08:00 committed by GitHub
parent 49cc5eda62
commit a460b1f1f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2 additions and 26 deletions

View File

@ -47,10 +47,6 @@ export interface CustomToken extends AliasToken {
marginBlock: number;
/** 区块的圆角 */
borderRadiusBlock: number;
/** 区块的 boxShadow */
boxShadowBlock: string;
/** 区块的下边框 */
borderBottomBlock: string;
}
export interface ThemeConfig extends _ThemeConfig {

View File

@ -15,10 +15,6 @@ const useStyles = genStyleHook('nb-card-item', (token) => {
return {
[componentCls]: {
marginBottom: token.marginBlock,
'> .ant-card': {
boxShadow: token.boxShadowBlock,
borderBottom: token.borderBottomBlock,
},
},
};
});

View File

@ -52,7 +52,7 @@ export const Mobile = () => {
token: {
marginBlock: 18,
borderRadiusBlock: 0,
boxShadowBlock: 'none',
boxShadowTertiary: 'none',
},
}}
>

View File

@ -262,7 +262,7 @@ const category: TokenTree<keyof AliasToken | string> = [
nameEn: 'Shadow',
desc: '',
descEn: '',
mapToken: ['boxShadow', 'boxShadowSecondary', 'boxShadowBlock'],
mapToken: ['boxShadow', 'boxShadowSecondary'],
},
],
},

View File

@ -1759,21 +1759,5 @@
"descEn": "Used to set the radius of the block",
"type": "number",
"source": "map"
},
"boxShadowBlock": {
"name": "区块的阴影",
"nameEn": "Shadow of block",
"desc": "用于设置区块的阴影",
"descEn": "Used to set the shadow of the block",
"type": "string",
"source": "map"
},
"borderBottomBlock": {
"name": "区块的底边框",
"nameEn": "Bottom border of block",
"desc": "用于设置区块的底边框",
"descEn": "Used to set the bottom border of the block",
"type": "string",
"source": "map"
}
}