diff --git a/packages/core/client/src/global-theme/type.ts b/packages/core/client/src/global-theme/type.ts index ada711a918..d41b7ffee1 100644 --- a/packages/core/client/src/global-theme/type.ts +++ b/packages/core/client/src/global-theme/type.ts @@ -47,10 +47,6 @@ export interface CustomToken extends AliasToken { marginBlock: number; /** 区块的圆角 */ borderRadiusBlock: number; - /** 区块的 boxShadow */ - boxShadowBlock: string; - /** 区块的下边框 */ - borderBottomBlock: string; } export interface ThemeConfig extends _ThemeConfig { diff --git a/packages/core/client/src/schema-component/antd/card-item/style.ts b/packages/core/client/src/schema-component/antd/card-item/style.ts index db0948111a..ee7be96f5c 100644 --- a/packages/core/client/src/schema-component/antd/card-item/style.ts +++ b/packages/core/client/src/schema-component/antd/card-item/style.ts @@ -15,10 +15,6 @@ const useStyles = genStyleHook('nb-card-item', (token) => { return { [componentCls]: { marginBottom: token.marginBlock, - '> .ant-card': { - boxShadow: token.boxShadowBlock, - borderBottom: token.borderBottomBlock, - }, }, }; }); diff --git a/packages/plugins/@nocobase/plugin-mobile/src/client/mobile/Mobile.tsx b/packages/plugins/@nocobase/plugin-mobile/src/client/mobile/Mobile.tsx index ffe39d81ad..b9e25282a8 100644 --- a/packages/plugins/@nocobase/plugin-mobile/src/client/mobile/Mobile.tsx +++ b/packages/plugins/@nocobase/plugin-mobile/src/client/mobile/Mobile.tsx @@ -52,7 +52,7 @@ export const Mobile = () => { token: { marginBlock: 18, borderRadiusBlock: 0, - boxShadowBlock: 'none', + boxShadowTertiary: 'none', }, }} > diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts index ebc5ad6366..04ec2621e6 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/meta/category.ts @@ -262,7 +262,7 @@ const category: TokenTree = [ nameEn: 'Shadow', desc: '', descEn: '', - mapToken: ['boxShadow', 'boxShadowSecondary', 'boxShadowBlock'], + mapToken: ['boxShadow', 'boxShadowSecondary'], }, ], }, diff --git a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json index 782fdbc46c..86978d2a49 100644 --- a/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json +++ b/packages/plugins/@nocobase/plugin-theme-editor/src/client/antd-token-previewer/token-panel-pro/token-meta.json @@ -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" } }