Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ujia
/
uj-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6c6d3d3f
authored
Nov 10, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
视觉优化
1 parent
2d03794d
Pipeline
#388
for
6c6d3d3f
failed
in 0 seconds
Changes
29
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
168 additions
and
158 deletions
apps/web/shell/src/layouts/BasicLayout.tsx
apps/web/shell/src/pages/Dashboard/components/Donut.tsx
apps/web/shell/src/theme/design.css
apps/web/subapps/points/.env.example
apps/web/subapps/points/src/features/shared/page.css
apps/web/subapps/store/src/features/store/StoreDetailDrawer.tsx
apps/web/subapps/store/src/features/store/approvalDetail.css
apps/web/subapps/store/src/features/store/approvalPolicy.css
apps/web/subapps/store/src/features/store/listingCost.css
apps/web/subapps/store/src/features/store/listingDetail.css
apps/web/subapps/store/src/features/store/listingHistory.css
apps/web/subapps/store/src/features/store/store.css
apps/web/subapps/store/src/pages/StoreApprove/approveTable.css
apps/web/subapps/store/src/pages/StoreListing/listing.css
apps/web/subapps/store/src/pages/TemplateImport/components/ApprovalChainPreview.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/FailDetailCard.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/ImportInfoCard.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/NoticeSection.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/PageHeader.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/PolicyConfirmTable/index.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/StepsBar.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/SubmitConfirmCard.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/UploadCard.tsx
apps/web/subapps/store/src/pages/TemplateImport/components/ValidationStats.tsx
apps/web/subapps/system/src/pages/RoleManage/components/RoleDetailDrawer.tsx
packages/design-tokens/src/palette.ts
packages/design-tokens/src/themeConfig.ts
packages/design-tokens/src/tokens.css
packages/ui/src/styles/ui.css
apps/web/shell/src/layouts/BasicLayout.tsx
View file @
6c6d3d3
...
@@ -237,7 +237,7 @@ export default function BasicLayout() {
...
@@ -237,7 +237,7 @@ export default function BasicLayout() {
<Sider
<Sider
collapsed={collapsed}
collapsed={collapsed}
trigger={null}
trigger={null}
width={2
32
}
width={2
16
}
collapsedWidth={68}
collapsedWidth={68}
className="uj-sider"
className="uj-sider"
>
>
...
@@ -365,7 +365,7 @@ export default function BasicLayout() {
...
@@ -365,7 +365,7 @@ export default function BasicLayout() {
minHeight: 0,
minHeight: 0,
overflow: 'auto',
overflow: 'auto',
background: 'var(--uj-bg)',
background: 'var(--uj-bg)',
padding:
24
,
padding:
12
,
display: 'flex',
display: 'flex',
flexDirection: 'column',
flexDirection: 'column',
}}
}}
...
...
apps/web/shell/src/pages/Dashboard/components/Donut.tsx
View file @
6c6d3d3
...
@@ -25,7 +25,7 @@ export function Donut() {
...
@@ -25,7 +25,7 @@ export function Donut() {
return el;
return el;
});
});
return (
return (
<div style={{ display: 'flex', alignItems: 'center', gap:
20
}}>
<div style={{ display: 'flex', alignItems: 'center', gap:
12
}}>
<svg width={132} height={132} viewBox="0 0 132 132">
<svg width={132} height={132} viewBox="0 0 132 132">
<circle cx={66} cy={66} r={r} fill="none" stroke="#F0F2F7" strokeWidth="14" />
<circle cx={66} cy={66} r={r} fill="none" stroke="#F0F2F7" strokeWidth="14" />
{circles}
{circles}
...
...
apps/web/shell/src/theme/design.css
View file @
6c6d3d3
This diff is collapsed.
Click to expand it.
apps/web/subapps/points/.env.example
View file @
6c6d3d3
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
# - format = 老系统 sign.format(默认 json)
# - format = 老系统 sign.format(默认 json)
# 必填:scrm-shopmall 网关地址
# 必填:scrm-shopmall 网关地址
VITE_POINTS_GATEWAY_ORIGIN=http://192.168.
2.42:8064
/
VITE_POINTS_GATEWAY_ORIGIN=http://192.168.
1.158:8788
/
# VITE_POINTS_GATEWAY_ORIGIN=http://scrm.test.glsx.com.cn/
# VITE_POINTS_GATEWAY_ORIGIN=http://scrm.test.glsx.com.cn/
# 必填:加签凭据
# 必填:加签凭据
...
...
apps/web/subapps/points/src/features/shared/page.css
View file @
6c6d3d3
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
.uj-points-detail-grid
{
.uj-points-detail-grid
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
3
,
minmax
(
0
,
1
fr
));
grid-template-columns
:
repeat
(
3
,
minmax
(
0
,
1
fr
));
gap
:
4px
1
6
px
;
gap
:
4px
1
2
px
;
}
}
.uj-points-detail-item
{
.uj-points-detail-item
{
display
:
flex
;
display
:
flex
;
...
@@ -41,28 +41,28 @@
...
@@ -41,28 +41,28 @@
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
/* 累计结算金额条:一排等宽浅灰平铺块,对齐老系统的 .statistics / .content-item。
/* 累计结算金额条:一排等宽浅灰平铺块,对齐老系统的 .statistics / .content-item。
老系统是 flex:1 的平铺灰块、无描边、无圆角,这里用
#f7f9fa
一致底色。 */
老系统是 flex:1 的平铺灰块、无描边、无圆角,这里用
surface-2
一致底色。 */
.uj-points-statistics
{
.uj-points-statistics
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
12px
;
gap
:
var
(
--uj-space-2
,
8px
)
;
/* 列表页里统计条只占自己那一行,剩余高度全给表格。 */
/* 列表页里统计条只占自己那一行,剩余高度全给表格。 */
flex
:
none
;
flex
:
none
;
}
}
.uj-points-statistics-item
{
.uj-points-statistics-item
{
flex
:
1
1
20
0px
;
flex
:
1
1
18
0px
;
min-width
:
20
0px
;
min-width
:
18
0px
;
background
:
#f7f9fa
;
background
:
var
(
--uj-surface-2
)
;
border-radius
:
8
px
;
border-radius
:
6
px
;
padding
:
1
6
px
;
padding
:
1
2
px
;
}
}
.uj-points-statistics-label
{
.uj-points-statistics-label
{
color
:
var
(
--uj-text-3
);
color
:
var
(
--uj-text-3
);
font-size
:
1
4
px
;
font-size
:
1
3
px
;
margin-bottom
:
12
px
;
margin-bottom
:
8
px
;
}
}
.uj-points-statistics-value
{
.uj-points-statistics-value
{
font-size
:
2
6
px
;
font-size
:
2
2
px
;
font-weight
:
700
;
font-weight
:
700
;
color
:
var
(
--uj-text-1
);
color
:
var
(
--uj-text-1
);
}
}
...
@@ -86,15 +86,15 @@
...
@@ -86,15 +86,15 @@
/* 统计条容器与标题行:对齐老系统 .statistics(无外框)与 .title(16px 粗体)。 */
/* 统计条容器与标题行:对齐老系统 .statistics(无外框)与 .title(16px 粗体)。 */
.uj-points-statistics-card
{
.uj-points-statistics-card
{
flex
:
none
;
flex
:
none
;
margin-bottom
:
12px
;
margin-bottom
:
var
(
--uj-space-module
,
10px
)
;
}
}
.uj-points-statistics-head
{
.uj-points-statistics-head
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
gap
:
12
px
;
gap
:
8
px
;
margin-bottom
:
12
px
;
margin-bottom
:
8
px
;
font-size
:
1
6
px
;
font-size
:
1
5
px
;
font-weight
:
700
;
font-weight
:
700
;
color
:
var
(
--uj-text-1
);
color
:
var
(
--uj-text-1
);
}
}
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
display
:
block
;
display
:
block
;
width
:
100%
;
width
:
100%
;
border
:
1px
solid
var
(
--uj-border
);
border
:
1px
solid
var
(
--uj-border
);
border-radius
:
8
px
;
border-radius
:
6
px
;
}
}
.uj-points-idcard-empty
{
.uj-points-idcard-empty
{
display
:
flex
;
display
:
flex
;
...
@@ -157,7 +157,7 @@
...
@@ -157,7 +157,7 @@
justify-content
:
center
;
justify-content
:
center
;
height
:
96px
;
height
:
96px
;
border
:
1px
dashed
var
(
--uj-border
);
border
:
1px
dashed
var
(
--uj-border
);
border-radius
:
8
px
;
border-radius
:
6
px
;
color
:
var
(
--uj-text-3
);
color
:
var
(
--uj-text-3
);
}
}
/* 免责协议指向第三方域名,不写尺寸就会被 iframe 默认高度压成一条。 */
/* 免责协议指向第三方域名,不写尺寸就会被 iframe 默认高度压成一条。 */
...
@@ -166,7 +166,7 @@
...
@@ -166,7 +166,7 @@
width
:
100%
;
width
:
100%
;
height
:
60vh
;
height
:
60vh
;
border
:
1px
solid
var
(
--uj-border
);
border
:
1px
solid
var
(
--uj-border
);
border-radius
:
8
px
;
border-radius
:
6
px
;
background
:
var
(
--uj-surface
);
background
:
var
(
--uj-surface
);
}
}
.uj-points-detail
>
.uj-points-detail-grid
{
.uj-points-detail
>
.uj-points-detail-grid
{
...
@@ -180,7 +180,7 @@
...
@@ -180,7 +180,7 @@
margin-bottom
:
12px
;
margin-bottom
:
12px
;
padding
:
6px
10px
;
padding
:
6px
10px
;
border
:
1px
solid
var
(
--uj-border
);
border
:
1px
solid
var
(
--uj-border
);
border-radius
:
8
px
;
border-radius
:
6
px
;
background
:
var
(
--uj-surface-2
,
var
(
--uj-surface
));
background
:
var
(
--uj-surface-2
,
var
(
--uj-surface
));
font-size
:
13px
;
font-size
:
13px
;
}
}
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
}
}
.uj-points-tag-list
{
.uj-points-tag-list
{
margin
:
0
;
margin
:
0
;
padding
:
0
0
0
20
px
;
padding
:
0
0
0
12
px
;
list-style
:
none
;
list-style
:
none
;
}
}
.uj-points-tag-panel
>
.uj-points-tag-list
{
.uj-points-tag-panel
>
.uj-points-tag-list
{
...
@@ -249,13 +249,13 @@
...
@@ -249,13 +249,13 @@
把页面整体收一档。共享令牌(圆角档、阴影、字号档、配色)保持不变。
把页面整体收一档。共享令牌(圆角档、阴影、字号档、配色)保持不变。
改动只落在 points 目录的 page.css,packages 一行没动。 */
改动只落在 points 目录的 page.css,packages 一行没动。 */
/* 页面骨架:整页与各区块之间的 gap,
16 → 12
。 */
/* 页面骨架:整页与各区块之间的 gap,
统一到模块间距令牌(≤10px)
。 */
.uj-points-app
.uj-page
{
.uj-points-app
.uj-page
{
gap
:
12px
;
gap
:
var
(
--uj-space-module
,
10px
)
;
}
}
/* 页头:标题块与右上角动作之间的 gap,
20 → 12;标题降一档字号、收窄下边距
。 */
/* 页头:标题块与右上角动作之间的 gap,
收紧到 8px
。 */
.uj-points-app
.uj-page__header
{
.uj-points-app
.uj-page__header
{
gap
:
12
px
;
gap
:
8
px
;
}
}
.uj-points-app
.uj-page__title
{
.uj-points-app
.uj-page__title
{
margin-bottom
:
4px
;
margin-bottom
:
4px
;
...
@@ -288,21 +288,21 @@
...
@@ -288,21 +288,21 @@
padding
:
8px
12px
;
padding
:
8px
12px
;
}
}
/* 工具条与分页:padding
12/20 → 8/16,内部 gap 12 →
8。 */
/* 工具条与分页:padding
8/12,内部 gap
8。 */
.uj-points-app
.uj-table-toolbar
{
.uj-points-app
.uj-table-toolbar
{
gap
:
8px
;
gap
:
8px
;
padding
:
8px
1
6
px
;
padding
:
8px
1
2
px
;
}
}
.uj-points-app
.uj-table
.ant-table-pagination.ant-pagination
{
.uj-points-app
.uj-table
.ant-table-pagination.ant-pagination
{
padding
:
8px
1
6
px
;
padding
:
8px
1
2
px
;
}
}
/* 卡片圆角 12 → 8:在密集数据页里更利落、更精致(仅 points)。 */
/* 卡片圆角 12 → 8:在密集数据页里更利落、更精致(仅 points)。 */
.uj-points-app
.uj-card
{
.uj-points-app
.uj-card
{
border-radius
:
8
px
;
border-radius
:
6
px
;
}
}
/* 弹窗/抽屉里的表单项默认 24px,收到 16px;页面筛选区已内联 marginBottom:0 不受影响。 */
/* 弹窗/抽屉里的表单项默认 24px,收到 16px;页面筛选区已内联 marginBottom:0 不受影响。 */
.uj-points-app
.ant-form-item
{
.uj-points-app
.ant-form-item
{
margin-bottom
:
16px
;
margin-bottom
:
var
(
--uj-space-module
,
10px
)
;
}
}
apps/web/subapps/store/src/features/store/StoreDetailDrawer.tsx
View file @
6c6d3d3
...
@@ -160,7 +160,7 @@ function DetailContent({
...
@@ -160,7 +160,7 @@ function DetailContent({
type="warning"
type="warning"
title="打回原因"
title="打回原因"
description={detail.rejectReason}
description={detail.rejectReason}
style={{ marginBottom:
16
}}
style={{ marginBottom:
'var(--uj-space-module, 10px)'
}}
/>
/>
)}
)}
<UTabs
<UTabs
...
...
apps/web/subapps/store/src/features/store/approvalDetail.css
View file @
6c6d3d3
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
min-width
:
32px
;
min-width
:
32px
;
height
:
32px
;
height
:
32px
;
padding
:
0
;
padding
:
0
;
border-radius
:
7
px
;
border-radius
:
6
px
;
background
:
var
(
--uj-divider
);
background
:
var
(
--uj-divider
);
color
:
var
(
--uj-text-2
);
color
:
var
(
--uj-text-2
);
font-size
:
18px
;
font-size
:
18px
;
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
}
}
.approval-detail-flow
{
.approval-detail-flow
{
margin-bottom
:
20px
;
margin-bottom
:
var
(
--uj-space-module
,
10px
)
;
}
}
.approval-detail-flow__heading
{
.approval-detail-flow__heading
{
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
gap
:
12px
;
gap
:
12px
;
padding
:
14px
16px
;
padding
:
14px
16px
;
border
:
1px
solid
var
(
--uj-border
);
border
:
1px
solid
var
(
--uj-border
);
border-radius
:
8
px
;
border-radius
:
6
px
;
background
:
var
(
--uj-surface
);
background
:
var
(
--uj-surface
);
}
}
...
...
apps/web/subapps/store/src/features/store/approvalPolicy.css
View file @
6c6d3d3
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
.approval-policy-panel__table
{
.approval-policy-panel__table
{
overflow
:
hidden
;
overflow
:
hidden
;
border
:
1px
solid
var
(
--uj-border
);
border
:
1px
solid
var
(
--uj-border
);
border-radius
:
8
px
;
border-radius
:
6
px
;
background
:
var
(
--uj-surface
);
background
:
var
(
--uj-surface
);
}
}
...
...
apps/web/subapps/store/src/features/store/listingCost.css
View file @
6c6d3d3
...
@@ -67,7 +67,7 @@ strong.listing-cost-panel__amount {
...
@@ -67,7 +67,7 @@ strong.listing-cost-panel__amount {
}
}
.listing-cost-panel__note
{
.listing-cost-panel__note
{
margin
:
22
px
0
0
;
margin
:
10
px
0
0
;
line-height
:
22px
;
line-height
:
22px
;
}
}
...
...
apps/web/subapps/store/src/features/store/listingDetail.css
View file @
6c6d3d3
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
display
:
flex
;
display
:
flex
;
align-items
:
flex-start
;
align-items
:
flex-start
;
justify-content
:
space-between
;
justify-content
:
space-between
;
gap
:
1
6
px
;
gap
:
1
0
px
;
}
}
.listing-detail-header__top
h2
{
.listing-detail-header__top
h2
{
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
min-width
:
32px
;
min-width
:
32px
;
height
:
32px
;
height
:
32px
;
padding
:
0
;
padding
:
0
;
border-radius
:
7
px
;
border-radius
:
6
px
;
background
:
var
(
--uj-divider
);
background
:
var
(
--uj-divider
);
color
:
var
(
--uj-text-2
);
color
:
var
(
--uj-text-2
);
font-size
:
18px
;
font-size
:
18px
;
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
.listing-detail-meta
{
.listing-detail-meta
{
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
8px
20
px
;
gap
:
8px
12
px
;
margin
:
12px
0
0
;
margin
:
12px
0
0
;
font-size
:
14px
;
font-size
:
14px
;
font-weight
:
400
;
font-weight
:
400
;
...
...
apps/web/subapps/store/src/features/store/listingHistory.css
View file @
6c6d3d3
...
@@ -29,12 +29,12 @@
...
@@ -29,12 +29,12 @@
display
:
grid
;
display
:
grid
;
grid-template-columns
:
110px
minmax
(
0
,
1
fr
);
grid-template-columns
:
110px
minmax
(
0
,
1
fr
);
gap
:
12px
;
gap
:
12px
;
padding
:
1
6
px
0
;
padding
:
1
2
px
0
;
border-bottom
:
1px
solid
var
(
--uj-divider
);
border-bottom
:
1px
solid
var
(
--uj-divider
);
}
}
.listing-change-history__version
:first-of-type
{
.listing-change-history__version
:first-of-type
{
padding-top
:
24
px
;
padding-top
:
12
px
;
}
}
.listing-change-history__version-meta
{
.listing-change-history__version-meta
{
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
}
}
.listing-change-history__empty
{
.listing-change-history__empty
{
margin
:
1
6
px
0
;
margin
:
1
0
px
0
;
}
}
@media
(
max-width
:
600px
)
{
@media
(
max-width
:
600px
)
{
...
...
apps/web/subapps/store/src/features/store/store.css
View file @
6c6d3d3
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
.store-confirm-records
{
.store-confirm-records
{
max-height
:
320px
;
max-height
:
320px
;
overflow
:
auto
;
overflow
:
auto
;
margin
:
var
(
--uj-space-
4
,
16
px
)
0
;
margin
:
var
(
--uj-space-
module
,
10
px
)
0
;
border
:
1px
solid
var
(
--uj-border
);
border
:
1px
solid
var
(
--uj-border
);
border-radius
:
var
(
--uj-radius-md
,
8
px
);
border-radius
:
var
(
--uj-radius-md
,
6
px
);
}
}
.store-confirm-record
{
.store-confirm-record
{
padding
:
var
(
--uj-space-3
,
12px
)
var
(
--uj-space-4
,
16px
)
;
padding
:
10px
14px
;
border-bottom
:
1px
solid
var
(
--uj-divider
);
border-bottom
:
1px
solid
var
(
--uj-divider
);
}
}
.store-confirm-record
:last-child
{
.store-confirm-record
:last-child
{
...
...
apps/web/subapps/store/src/pages/StoreApprove/approveTable.css
View file @
6c6d3d3
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
align-items
:
center
;
align-items
:
center
;
height
:
22px
;
height
:
22px
;
padding
:
0
var
(
--uj-space-2
,
8px
);
padding
:
0
var
(
--uj-space-2
,
8px
);
border-radius
:
var
(
--uj-radius-xs
,
4
px
);
border-radius
:
var
(
--uj-radius-xs
,
3
px
);
background
:
var
(
--uj-primary-soft
);
background
:
var
(
--uj-primary-soft
);
color
:
var
(
--uj-primary
);
color
:
var
(
--uj-primary
);
font-size
:
var
(
--uj-font-xs
,
12px
);
font-size
:
var
(
--uj-font-xs
,
12px
);
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
gap
:
5px
;
gap
:
5px
;
height
:
22px
;
height
:
22px
;
padding
:
0
var
(
--uj-space-2
,
8px
);
padding
:
0
var
(
--uj-space-2
,
8px
);
border-radius
:
var
(
--uj-radius-xs
,
4
px
);
border-radius
:
var
(
--uj-radius-xs
,
3
px
);
font-size
:
var
(
--uj-font-xs
,
12px
);
font-size
:
var
(
--uj-font-xs
,
12px
);
font-weight
:
500
;
font-weight
:
500
;
font-variant-numeric
:
var
(
--uj-num
,
tabular-nums
);
font-variant-numeric
:
var
(
--uj-num
,
tabular-nums
);
...
...
apps/web/subapps/store/src/pages/StoreListing/listing.css
View file @
6c6d3d3
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
align-items
:
center
;
align-items
:
center
;
height
:
22px
;
height
:
22px
;
padding
:
0
var
(
--uj-space-2
,
8px
);
padding
:
0
var
(
--uj-space-2
,
8px
);
border-radius
:
var
(
--uj-radius-xs
,
4
px
);
border-radius
:
var
(
--uj-radius-xs
,
3
px
);
background
:
var
(
--uj-primary-soft
);
background
:
var
(
--uj-primary-soft
);
color
:
var
(
--uj-primary
);
color
:
var
(
--uj-primary
);
font-size
:
var
(
--uj-font-xs
,
12px
);
font-size
:
var
(
--uj-font-xs
,
12px
);
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
gap
:
var
(
--uj-space-2
,
8px
);
gap
:
var
(
--uj-space-2
,
8px
);
margin-block
:
var
(
--uj-space-
5
,
2
0px
);
margin-block
:
var
(
--uj-space-
module
,
1
0px
);
}
}
.store-column-option
{
.store-column-option
{
...
@@ -29,5 +29,5 @@
...
@@ -29,5 +29,5 @@
gap
:
var
(
--uj-space-3
,
12px
);
gap
:
var
(
--uj-space-3
,
12px
);
padding
:
var
(
--uj-space-2
,
8px
)
var
(
--uj-space-3
,
12px
);
padding
:
var
(
--uj-space-2
,
8px
)
var
(
--uj-space-3
,
12px
);
border
:
1px
solid
var
(
--uj-border
);
border
:
1px
solid
var
(
--uj-border
);
border-radius
:
var
(
--uj-radius-md
,
8
px
);
border-radius
:
var
(
--uj-radius-md
,
6
px
);
}
}
apps/web/subapps/store/src/pages/TemplateImport/components/ApprovalChainPreview.tsx
View file @
6c6d3d3
...
@@ -91,7 +91,7 @@ function NodeLine({ status }: { status: ChainNodeStatus }) {
...
@@ -91,7 +91,7 @@ function NodeLine({ status }: { status: ChainNodeStatus }) {
height: 2,
height: 2,
background: lineColor(status),
background: lineColor(status),
alignSelf: 'flex-start',
alignSelf: 'flex-start',
marginTop: 1
5
,
marginTop: 1
0
,
}}
}}
/>
/>
);
);
...
@@ -151,8 +151,8 @@ export function ApprovalChainPreview({
...
@@ -151,8 +151,8 @@ export function ApprovalChainPreview({
return (
return (
<UCard
<UCard
styles={{ body: { padding: '
20px 24px 24
px' } }}
styles={{ body: { padding: '
14px 16
px' } }}
style={{ marginBottom:
20
, border: '1px solid var(--uj-border)', borderRadius: 10 }}
style={{ marginBottom:
'var(--uj-space-module, 10px)'
, border: '1px solid var(--uj-border)', borderRadius: 10 }}
title={
title={
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<InfoCircleFilled style={{ color: 'var(--uj-primary)', fontSize: 14 }} />
<InfoCircleFilled style={{ color: 'var(--uj-primary)', fontSize: 14 }} />
...
@@ -160,7 +160,7 @@ export function ApprovalChainPreview({
...
@@ -160,7 +160,7 @@ export function ApprovalChainPreview({
</div>
</div>
}
}
>
>
<div style={{ display: 'flex', padding: '
20
px 8px 8px' }}>
<div style={{ display: 'flex', padding: '
12
px 8px 8px' }}>
{finalNodes.map((n, i) => {
{finalNodes.map((n, i) => {
const prev = finalNodes[i - 1];
const prev = finalNodes[i - 1];
const hasLeft = i > 0;
const hasLeft = i > 0;
...
@@ -186,7 +186,7 @@ export function ApprovalChainPreview({
...
@@ -186,7 +186,7 @@ export function ApprovalChainPreview({
<NodeIcon status={n.status} index={i} />
<NodeIcon status={n.status} index={i} />
<div
<div
style={{
style={{
marginTop: 1
4
,
marginTop: 1
0
,
fontSize: 14,
fontSize: 14,
fontWeight: 600,
fontWeight: 600,
color:
color:
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/FailDetailCard.tsx
View file @
6c6d3d3
...
@@ -88,10 +88,10 @@ export function FailDetailCard({ checkResult, fileSize, onReUpload }: FailDetail
...
@@ -88,10 +88,10 @@ export function FailDetailCard({ checkResult, fileSize, onReUpload }: FailDetail
return (
return (
<UCard
<UCard
styles={{ body: { padding: '1
8px 20px 14
px' } }}
styles={{ body: { padding: '1
4px 16px 12
px' } }}
style={{
style={{
border: '1px solid var(--uj-border)',
border: '1px solid var(--uj-border)',
marginBottom:
20
,
marginBottom:
'var(--uj-space-module, 10px)'
,
borderRadius: 12,
borderRadius: 12,
background: 'var(--uj-surface)',
background: 'var(--uj-surface)',
overflow: 'hidden',
overflow: 'hidden',
...
@@ -140,7 +140,7 @@ export function FailDetailCard({ checkResult, fileSize, onReUpload }: FailDetail
...
@@ -140,7 +140,7 @@ export function FailDetailCard({ checkResult, fileSize, onReUpload }: FailDetail
maxHeight: 360,
maxHeight: 360,
overflowX: 'auto',
overflowX: 'auto',
overflowY: 'auto',
overflowY: 'auto',
marginBottom: 1
4
,
marginBottom: 1
0
,
}}
}}
>
>
<table
<table
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/ImportInfoCard.tsx
View file @
6c6d3d3
...
@@ -12,7 +12,7 @@ export interface ImportInfoValues {
...
@@ -12,7 +12,7 @@ export interface ImportInfoValues {
}
}
const formItemLayout = {
const formItemLayout = {
style: { marginBottom:
18
},
style: { marginBottom:
'var(--uj-space-module, 10px)'
},
};
};
export interface ImportInfoCardProps {
export interface ImportInfoCardProps {
...
@@ -94,8 +94,8 @@ export function ImportInfoCard({ values, checkResult, onChange }: ImportInfoCard
...
@@ -94,8 +94,8 @@ export function ImportInfoCard({ values, checkResult, onChange }: ImportInfoCard
return (
return (
<UCard
<UCard
styles={{ body: { padding:
20
} }}
styles={{ body: { padding:
14
} }}
style={{ marginBottom:
20
, border: '1px solid var(--uj-border)' }}
style={{ marginBottom:
'var(--uj-space-module, 10px)'
, border: '1px solid var(--uj-border)' }}
title={
title={
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<InfoCircleFilled style={{ color: 'var(--uj-primary)', fontSize: 14 }} />
<InfoCircleFilled style={{ color: 'var(--uj-primary)', fontSize: 14 }} />
...
@@ -115,7 +115,7 @@ export function ImportInfoCard({ values, checkResult, onChange }: ImportInfoCard
...
@@ -115,7 +115,7 @@ export function ImportInfoCard({ values, checkResult, onChange }: ImportInfoCard
style={{
style={{
display: 'grid',
display: 'grid',
gridTemplateColumns: '1fr 1fr 1fr',
gridTemplateColumns: '1fr 1fr 1fr',
gap:
2
0,
gap:
1
0,
}}
}}
>
>
<UFormItem
<UFormItem
...
@@ -164,7 +164,7 @@ export function ImportInfoCard({ values, checkResult, onChange }: ImportInfoCard
...
@@ -164,7 +164,7 @@ export function ImportInfoCard({ values, checkResult, onChange }: ImportInfoCard
style={{
style={{
display: 'grid',
display: 'grid',
gridTemplateColumns: '1fr 1fr 1fr',
gridTemplateColumns: '1fr 1fr 1fr',
gap:
2
0,
gap:
1
0,
marginTop: 4,
marginTop: 4,
}}
}}
>
>
...
@@ -180,7 +180,7 @@ export function ImportInfoCard({ values, checkResult, onChange }: ImportInfoCard
...
@@ -180,7 +180,7 @@ export function ImportInfoCard({ values, checkResult, onChange }: ImportInfoCard
</div>
</div>
<UFormItem
<UFormItem
label={<span style={{ marginTop: 1
8
, display: 'inline-block' }}>备注</span>}
label={<span style={{ marginTop: 1
0
, display: 'inline-block' }}>备注</span>}
name="remark"
name="remark"
style={{ marginBottom: 8 }}
style={{ marginBottom: 8 }}
>
>
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/NoticeSection.tsx
View file @
6c6d3d3
...
@@ -12,10 +12,10 @@ export function NoticeSection() {
...
@@ -12,10 +12,10 @@ export function NoticeSection() {
return (
return (
<UCard
<UCard
styles={{
styles={{
body: { padding: '1
6px 20
px' },
body: { padding: '1
2px 14
px' },
}}
}}
style={{
style={{
marginBottom:
20
,
marginBottom:
'var(--uj-space-module, 10px)'
,
border: '1px solid var(--uj-info-border)',
border: '1px solid var(--uj-info-border)',
background: 'var(--uj-primary-soft)',
background: 'var(--uj-primary-soft)',
}}
}}
...
@@ -25,7 +25,7 @@ export function NoticeSection() {
...
@@ -25,7 +25,7 @@ export function NoticeSection() {
display: 'flex',
display: 'flex',
alignItems: 'center',
alignItems: 'center',
gap: 10,
gap: 10,
marginBottom: 1
4
,
marginBottom: 1
0
,
}}
}}
>
>
<span
<span
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/PageHeader.tsx
View file @
6c6d3d3
...
@@ -33,7 +33,7 @@ export function PageHeader() {
...
@@ -33,7 +33,7 @@ export function PageHeader() {
];
];
return (
return (
<div className="uj-page__header" style={{ marginBottom:
20
}}>
<div className="uj-page__header" style={{ marginBottom:
'var(--uj-space-module, 10px)'
}}>
<div>
<div>
<h2 className="uj-page__title">导入门店信息</h2>
<h2 className="uj-page__title">导入门店信息</h2>
<p className="uj-page__desc">
<p className="uj-page__desc">
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/PolicyConfirmTable/index.tsx
View file @
6c6d3d3
...
@@ -108,10 +108,10 @@ export function PolicyConfirmTable({
...
@@ -108,10 +108,10 @@ export function PolicyConfirmTable({
return (
return (
<UCard
<UCard
styles={{ body: { padding: '1
6px 16px 12
px' } }}
styles={{ body: { padding: '1
4px 14px 10
px' } }}
style={{
style={{
border: '1px solid var(--uj-border)',
border: '1px solid var(--uj-border)',
marginBottom:
20
,
marginBottom:
'var(--uj-space-module, 10px)'
,
borderRadius: 10,
borderRadius: 10,
overflow: 'hidden',
overflow: 'hidden',
}}
}}
...
@@ -122,7 +122,7 @@ export function PolicyConfirmTable({
...
@@ -122,7 +122,7 @@ export function PolicyConfirmTable({
</div>
</div>
<div
<div
style={{
style={{
marginTop: 1
2
,
marginTop: 1
0
,
padding: '10px 12px',
padding: '10px 12px',
background: 'var(--uj-surface-2)',
background: 'var(--uj-surface-2)',
borderRadius: 6,
borderRadius: 6,
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/StepsBar.tsx
View file @
6c6d3d3
...
@@ -29,8 +29,8 @@ export function StepsBar({ current = 0 }: StepsBarProps) {
...
@@ -29,8 +29,8 @@ export function StepsBar({ current = 0 }: StepsBarProps) {
style={{
style={{
background: 'var(--uj-surface)',
background: 'var(--uj-surface)',
borderRadius: 10,
borderRadius: 10,
padding: '
20px 32px 12
px',
padding: '
14px 20px 8
px',
marginBottom:
20
,
marginBottom:
'var(--uj-space-module, 10px)'
,
border: '1px solid var(--uj-border)',
border: '1px solid var(--uj-border)',
}}
}}
>
>
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/SubmitConfirmCard.tsx
View file @
6c6d3d3
...
@@ -139,8 +139,8 @@ export function SubmitConfirmCard({
...
@@ -139,8 +139,8 @@ export function SubmitConfirmCard({
return (
return (
<UCard
<UCard
styles={{ body: { padding: '
20px 24
px' } }}
styles={{ body: { padding: '
14px 16
px' } }}
style={{ marginBottom:
20, border: '1px solid var(--uj-border)', borderRadius: 10
}}
style={{ marginBottom:
'var(--uj-space-module, 10px)', border: '1px solid var(--uj-border)', borderRadius: 8
}}
title={
title={
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<InfoCircleFilled style={{ color: 'var(--uj-primary)', fontSize: 14 }} />
<InfoCircleFilled style={{ color: 'var(--uj-primary)', fontSize: 14 }} />
...
@@ -158,7 +158,7 @@ export function SubmitConfirmCard({
...
@@ -158,7 +158,7 @@ export function SubmitConfirmCard({
display: 'flex',
display: 'flex',
alignItems: 'flex-start',
alignItems: 'flex-start',
gap: 8,
gap: 8,
marginBottom: 1
6
,
marginBottom: 1
0
,
}}
}}
>
>
<ExclamationCircleOutlined
<ExclamationCircleOutlined
...
@@ -182,7 +182,7 @@ export function SubmitConfirmCard({
...
@@ -182,7 +182,7 @@ export function SubmitConfirmCard({
padding: '14px 16px',
padding: '14px 16px',
background: 'var(--uj-surface-2)',
background: 'var(--uj-surface-2)',
borderRadius: 8,
borderRadius: 8,
marginBottom: 1
8
,
marginBottom: 1
2
,
}}
}}
>
>
<UCheckbox
<UCheckbox
...
@@ -199,7 +199,7 @@ export function SubmitConfirmCard({
...
@@ -199,7 +199,7 @@ export function SubmitConfirmCard({
</div>
</div>
</div>
</div>
<div style={{ display: 'flex', flexDirection: 'column', gap: 1
4
}}>
<div style={{ display: 'flex', flexDirection: 'column', gap: 1
0
}}>
{infoRows.map((r) => (
{infoRows.map((r) => (
<div key={r.label} style={{ display: 'flex', alignItems: 'flex-start' }}>
<div key={r.label} style={{ display: 'flex', alignItems: 'flex-start' }}>
<span style={labelStyle}>{r.label}</span>
<span style={labelStyle}>{r.label}</span>
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/UploadCard.tsx
View file @
6c6d3d3
...
@@ -214,8 +214,8 @@ export function UploadCard({
...
@@ -214,8 +214,8 @@ export function UploadCard({
return (
return (
<UCard
<UCard
styles={{ body: { padding:
20
} }}
styles={{ body: { padding:
14
} }}
style={{ border: '1px solid var(--uj-border)', marginBottom:
20
}}
style={{ border: '1px solid var(--uj-border)', marginBottom:
'var(--uj-space-module, 10px)'
}}
title={
title={
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
<InfoCircleFilled style={{ color: 'var(--uj-primary)', fontSize: 14 }} />
<InfoCircleFilled style={{ color: 'var(--uj-primary)', fontSize: 14 }} />
...
@@ -231,7 +231,7 @@ export function UploadCard({
...
@@ -231,7 +231,7 @@ export function UploadCard({
>
>
<div style={{ position: 'relative' }}>
<div style={{ position: 'relative' }}>
<UUpload.Dragger ref={uploadRef} {...uploadProps}>
<UUpload.Dragger ref={uploadRef} {...uploadProps}>
<div style={{ padding: '
3
0px 0' }}>
<div style={{ padding: '
2
0px 0' }}>
<div
<div
style={{
style={{
width: 48,
width: 48,
...
@@ -241,7 +241,7 @@ export function UploadCard({
...
@@ -241,7 +241,7 @@ export function UploadCard({
display: 'inline-flex',
display: 'inline-flex',
alignItems: 'center',
alignItems: 'center',
justifyContent: 'center',
justifyContent: 'center',
marginBottom: 1
6
,
marginBottom: 1
2
,
}}
}}
>
>
{uploading ? (
{uploading ? (
...
@@ -306,7 +306,7 @@ export function UploadCard({
...
@@ -306,7 +306,7 @@ export function UploadCard({
{fileList[0] && (
{fileList[0] && (
<div
<div
style={{
style={{
marginTop: 1
6
,
marginTop: 1
2
,
display: 'flex',
display: 'flex',
alignItems: 'center',
alignItems: 'center',
padding: '14px 16px',
padding: '14px 16px',
...
@@ -324,7 +324,7 @@ export function UploadCard({
...
@@ -324,7 +324,7 @@ export function UploadCard({
display: 'inline-flex',
display: 'inline-flex',
alignItems: 'center',
alignItems: 'center',
justifyContent: 'center',
justifyContent: 'center',
marginRight:
12
,
marginRight:
8
,
flex: 'none',
flex: 'none',
}}
}}
>
>
...
...
apps/web/subapps/store/src/pages/TemplateImport/components/ValidationStats.tsx
View file @
6c6d3d3
...
@@ -35,7 +35,7 @@ function StatCard({ item }: StatCardProps) {
...
@@ -35,7 +35,7 @@ function StatCard({ item }: StatCardProps) {
const tone = toneMap[item.tone];
const tone = toneMap[item.tone];
return (
return (
<UCard
<UCard
styles={{ body: { padding: '1
8px 20
px' } }}
styles={{ body: { padding: '1
4px 16
px' } }}
style={{
style={{
borderLeft: `3px solid ${tone.accent}`,
borderLeft: `3px solid ${tone.accent}`,
border: tone.border,
border: tone.border,
...
@@ -139,8 +139,8 @@ export function ValidationStats({ stats, checkResult }: ValidationStatsProps) {
...
@@ -139,8 +139,8 @@ export function ValidationStats({ stats, checkResult }: ValidationStatsProps) {
style={{
style={{
display: 'grid',
display: 'grid',
gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))`,
gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))`,
gap: 1
6
,
gap: 1
0
,
marginBottom:
20
,
marginBottom:
'var(--uj-space-module, 10px)'
,
}}
}}
>
>
{finalStats.map((s) => (
{finalStats.map((s) => (
...
...
apps/web/subapps/system/src/pages/RoleManage/components/RoleDetailDrawer.tsx
View file @
6c6d3d3
...
@@ -282,7 +282,7 @@ const summaryStyle = {
...
@@ -282,7 +282,7 @@ const summaryStyle = {
flexWrap: 'wrap' as const,
flexWrap: 'wrap' as const,
fontSize: 13,
fontSize: 13,
gap: '8px 16px',
gap: '8px 16px',
marginBottom:
18
,
marginBottom:
'var(--uj-space-module, 10px)'
,
};
};
const sectionTitleStyle = {
const sectionTitleStyle = {
alignItems: 'center',
alignItems: 'center',
...
@@ -358,7 +358,7 @@ const legendStyle = {
...
@@ -358,7 +358,7 @@ const legendStyle = {
display: 'flex',
display: 'flex',
flexWrap: 'wrap' as const,
flexWrap: 'wrap' as const,
fontSize: 12,
fontSize: 12,
gap: 1
8
,
gap: 1
0
,
marginTop: 12,
marginTop: 12,
};
};
const legendItemStyle = { alignItems: 'center', display: 'inline-flex', gap: 6 };
const legendItemStyle = { alignItems: 'center', display: 'inline-flex', gap: 6 };
packages/design-tokens/src/palette.ts
View file @
6c6d3d3
...
@@ -17,6 +17,8 @@ export const palette = {
...
@@ -17,6 +17,8 @@ export const palette = {
primarySoft
:
'#EEF3FF'
,
primarySoft
:
'#EEF3FF'
,
deep1
:
'#0B1437'
,
deep1
:
'#0B1437'
,
deep2
:
'#16245A'
,
deep2
:
'#16245A'
,
/** 品牌亮色:深色底(Sider / 登录左栏)上的品牌点缀,primary 的同族提亮档 */
light
:
'#5B8DEF'
,
},
},
/** 表面四层:页面底 / 卡片 / 表头 / hover。卡片之间的层级差主要来自这里,不靠加边框。 */
/** 表面四层:页面底 / 卡片 / 表头 / hover。卡片之间的层级差主要来自这里,不靠加边框。 */
surface
:
{
surface
:
{
...
@@ -64,11 +66,11 @@ export const palette = {
...
@@ -64,11 +66,11 @@ export const palette = {
}
as
const
;
}
as
const
;
export
const
radius
=
{
export
const
radius
=
{
xs
:
4
,
xs
:
3
,
sm
:
6
,
sm
:
4
,
md
:
8
,
md
:
6
,
lg
:
10
,
lg
:
8
,
card
:
1
2
,
card
:
1
0
,
pill
:
999
,
pill
:
999
,
}
as
const
;
}
as
const
;
...
@@ -81,8 +83,9 @@ export const control = {
...
@@ -81,8 +83,9 @@ export const control = {
}
as
const
;
}
as
const
;
export
const
shadow
=
{
export
const
shadow
=
{
/** 与 tokens.css 的 --uj-shadow-* 同值,对账脚本会校验。 */
/** 与 tokens.css 的 --uj-shadow-* 同值,对账脚本会校验。
card
:
'0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -10px rgba(16, 24, 40, 0.12)'
,
* 收干脆:短投射 + 低扩散,卡片「贴」在页面上而不是「漂」在页面上。 */
raise
:
'0 2px 4px rgba(16, 24, 40, 0.05), 0 16px 32px -14px rgba(16, 24, 40, 0.2)'
,
card
:
'0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 6px -2px rgba(16, 24, 40, 0.08)'
,
pop
:
'0 12px 40px -12px rgba(16, 24, 40, 0.2)'
,
raise
:
'0 2px 4px rgba(16, 24, 40, 0.06), 0 8px 20px -12px rgba(16, 24, 40, 0.18)'
,
pop
:
'0 8px 28px -10px rgba(16, 24, 40, 0.24)'
,
}
as
const
;
}
as
const
;
packages/design-tokens/src/themeConfig.ts
View file @
6c6d3d3
...
@@ -86,7 +86,7 @@ export const themeConfig: ThemeConfig = {
...
@@ -86,7 +86,7 @@ export const themeConfig: ThemeConfig = {
components
:
{
components
:
{
Layout
:
{
Layout
:
{
headerBg
:
'#FFFFFF'
,
headerBg
:
'#FFFFFF'
,
headerHeight
:
60
,
headerHeight
:
56
,
headerPadding
:
'0 20px'
,
headerPadding
:
'0 20px'
,
siderBg
:
'transparent'
,
siderBg
:
'transparent'
,
bodyBg
:
palette
.
surface
.
page
,
bodyBg
:
palette
.
surface
.
page
,
...
@@ -102,13 +102,13 @@ export const themeConfig: ThemeConfig = {
...
@@ -102,13 +102,13 @@ export const themeConfig: ThemeConfig = {
darkItemSelectedColor
:
'#FFFFFF'
,
darkItemSelectedColor
:
'#FFFFFF'
,
darkGroupTitleColor
:
'rgba(255,255,255,.32)'
,
darkGroupTitleColor
:
'rgba(255,255,255,.32)'
,
// 折叠态弹出的子菜单底:与 .uj-sider 中段色一致,避免弹出层露出 antd 默认的深蓝黑
// 折叠态弹出的子菜单底:与 .uj-sider 中段色一致,避免弹出层露出 antd 默认的深蓝黑
darkPopupBg
:
'#1
11B3D
'
,
darkPopupBg
:
'#1
4204E
'
,
// —— 几何:全部走 token,不在 design.css 里用 CSS 覆盖组件内部盒模型 ——
// —— 几何:全部走 token,不在 design.css 里用 CSS 覆盖组件内部盒模型 ——
// antd 会用 itemMarginInline 参与折叠态居中计算(paddingInline: calc(50% - 图标宽/2 - itemMarginInline)),
// antd 会用 itemMarginInline 参与折叠态居中计算(paddingInline: calc(50% - 图标宽/2 - itemMarginInline)),
// 所以「胶囊左右留白」必须由这个 token 给,不能用 CSS margin 顶替。
// 所以「胶囊左右留白」必须由这个 token 给,不能用 CSS margin 顶替。
itemMarginInline
:
10
,
itemMarginInline
:
8
,
itemBorderRadius
:
10
,
itemBorderRadius
:
6
,
itemHeight
:
4
4
,
itemHeight
:
4
0
,
iconSize
:
15
,
iconSize
:
15
,
groupTitleFontSize
:
10.5
,
groupTitleFontSize
:
10.5
,
// 必须与 <Sider collapsedWidth={68}> 保持一致:Menu 折叠态有自己的 collapsedWidth,
// 必须与 <Sider collapsedWidth={68}> 保持一致:Menu 折叠态有自己的 collapsedWidth,
...
@@ -117,17 +117,18 @@ export const themeConfig: ThemeConfig = {
...
@@ -117,17 +117,18 @@ export const themeConfig: ThemeConfig = {
},
},
Card
:
{
Card
:
{
borderRadiusLG
:
radius
.
card
,
borderRadiusLG
:
radius
.
card
,
// 卡片靠「浅底 + 无描边 + 柔影」成立;再叠一圈 #e2e8f0 的实描边是原来越来越「硬」的根因。
// 卡片描边取 border(不是 divider):1px 实线勾边 + 干脆短影,边界「立得住」,
colorBorderSecondary
:
palette
.
line
.
divider
,
// 这是「质感」的来源 —— 全靠柔影分层会显得又软又飘。
colorBorderSecondary
:
palette
.
line
.
border
,
headerBg
:
'transparent'
,
headerBg
:
'transparent'
,
headerHeight
:
4
8
,
headerHeight
:
4
4
,
headerHeightSM
:
40
,
headerHeightSM
:
40
,
headerPadding
:
1
4
,
headerPadding
:
1
2
,
headerPaddingSM
:
10
,
headerPaddingSM
:
10
,
headerFontSize
:
15
,
headerFontSize
:
15
,
headerFontSizeSM
:
14
,
headerFontSizeSM
:
14
,
bodyPadding
:
20
,
bodyPadding
:
16
,
bodyPaddingSM
:
1
6
,
bodyPaddingSM
:
1
4
,
actionsBg
:
palette
.
surface
.
raised
,
actionsBg
:
palette
.
surface
.
raised
,
},
},
Button
:
{
Button
:
{
...
@@ -160,7 +161,7 @@ export const themeConfig: ThemeConfig = {
...
@@ -160,7 +161,7 @@ export const themeConfig: ThemeConfig = {
rowHoverBg
:
palette
.
surface
.
raised
,
rowHoverBg
:
palette
.
surface
.
raised
,
rowSelectedBg
:
palette
.
soft
.
info
,
rowSelectedBg
:
palette
.
soft
.
info
,
rowSelectedHoverBg
:
'#E4ECFD'
,
rowSelectedHoverBg
:
'#E4ECFD'
,
cellPaddingBlockMD
:
1
1
,
cellPaddingBlockMD
:
1
0
,
// 左右留白取 antd 的 middle 默认值 16,不再追「与卡片 20px 对齐」:
// 左右留白取 antd 的 middle 默认值 16,不再追「与卡片 20px 对齐」:
// 20px 会把 90~110px 的窄列挤到内容宽不足 4 个汉字,
// 20px 会把 90~110px 的窄列挤到内容宽不足 4 个汉字,
// 表头「变更次数」这类四字标题就换行,整行表头被撑成两倍高。
// 表头「变更次数」这类四字标题就换行,整行表头被撑成两倍高。
...
@@ -192,7 +193,7 @@ export const themeConfig: ThemeConfig = {
...
@@ -192,7 +193,7 @@ export const themeConfig: ThemeConfig = {
fontSize
:
13
,
fontSize
:
13
,
},
},
Form
:
{
Form
:
{
itemMarginBottom
:
1
8
,
itemMarginBottom
:
1
6
,
verticalLabelPadding
:
'0 0 6px'
,
verticalLabelPadding
:
'0 0 6px'
,
labelColor
:
palette
.
text
.
secondary
,
labelColor
:
palette
.
text
.
secondary
,
labelFontSize
:
13
,
labelFontSize
:
13
,
...
...
packages/design-tokens/src/tokens.css
View file @
6c6d3d3
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
--uj-primary-soft
:
#eef3ff
;
/* 选中底、图标容器这类「品牌色但要淡」 */
--uj-primary-soft
:
#eef3ff
;
/* 选中底、图标容器这类「品牌色但要淡」 */
--uj-brand-1
:
#0b1437
;
--uj-brand-1
:
#0b1437
;
--uj-brand-2
:
#16245a
;
--uj-brand-2
:
#16245a
;
--uj-brand-light
:
#5b8def
;
/* 深色底(Sider / 登录左栏)上的品牌点缀 */
/* ---- 表面:四层递进,卡片不再靠「加个边框」区分自己 ---- */
/* ---- 表面:四层递进,卡片不再靠「加个边框」区分自己 ---- */
--uj-bg
:
#f4f6fa
;
/* 页面底 */
--uj-bg
:
#f4f6fa
;
/* 页面底 */
...
@@ -61,10 +62,10 @@
...
@@ -61,10 +62,10 @@
--uj-neutral-soft
:
#f2f4f8
;
--uj-neutral-soft
:
#f2f4f8
;
--uj-neutral-border
:
#e4e8ef
;
--uj-neutral-border
:
#e4e8ef
;
/* ---- 高度:两级静置 + 一级抬起(hover)+ 浮层 ---- */
/* ---- 高度:两级静置 + 一级抬起(hover)+ 浮层
。短投射、低扩散,干脆不飘
---- */
--uj-shadow-card
:
0
1px
2px
rgba
(
16
,
24
,
40
,
0.0
4
),
0
8px
24px
-10px
rgba
(
16
,
24
,
40
,
0.12
);
--uj-shadow-card
:
0
1px
2px
rgba
(
16
,
24
,
40
,
0.0
5
),
0
2px
6px
-2px
rgba
(
16
,
24
,
40
,
0.08
);
--uj-shadow-raise
:
0
2px
4px
rgba
(
16
,
24
,
40
,
0.0
5
),
0
16px
32px
-14px
rgba
(
16
,
24
,
40
,
0.2
);
--uj-shadow-raise
:
0
2px
4px
rgba
(
16
,
24
,
40
,
0.0
6
),
0
8px
20px
-12px
rgba
(
16
,
24
,
40
,
0.18
);
--uj-shadow-pop
:
0
12px
40px
-12px
rgba
(
16
,
24
,
40
,
0.2
);
--uj-shadow-pop
:
0
8px
28px
-10px
rgba
(
16
,
24
,
40
,
0.24
);
/* 聚焦环:控件 focus 一律用它,不要各自写 box-shadow 调 alpha */
/* 聚焦环:控件 focus 一律用它,不要各自写 box-shadow 调 alpha */
--uj-ring
:
0
0
0
3px
rgba
(
43
,
92
,
230
,
0.14
);
--uj-ring
:
0
0
0
3px
rgba
(
43
,
92
,
230
,
0.14
);
...
@@ -77,13 +78,18 @@
...
@@ -77,13 +78,18 @@
--uj-space-6
:
24px
;
--uj-space-6
:
24px
;
--uj-space-8
:
32px
;
--uj-space-8
:
32px
;
/* ---- 圆角:卡片走 lg、控件走 md、标签走 sm;pill 只给胶囊态控件 ---- */
/* ---- 模块间距(统一值):页面里「卡片 ↔ 卡片」「区块 ↔ 区块」的纵向间隔。
--uj-radius-xs
:
4px
;
整站模块间距一律用它,不再出现 16/18/20/22/24 各写各的;上限就是 10px。 ---- */
--uj-radius-sm
:
6px
;
--uj-space-module
:
10px
;
--uj-radius-md
:
8px
;
--uj-radius-lg
:
10px
;
/* ---- 圆角:整体收紧一档(企业级要「利落」不要「圆润」)。
--uj-radius-card
:
12px
;
卡片走 card、控件走 md、标签走 sm;pill 只给胶囊态控件 ---- */
--uj-radius-pill
:
999px
;
--uj-radius-xs
:
3px
;
--uj-radius-sm
:
4px
;
--uj-radius-md
:
6px
;
--uj-radius-lg
:
8px
;
--uj-radius-card
:
10px
;
--uj-radius-pill
:
6px
;
/* ---- 字号:正文 14 是基准,向下只留 13/12 两级说明,不出现 12.5 这种值 ---- */
/* ---- 字号:正文 14 是基准,向下只留 13/12 两级说明,不出现 12.5 这种值 ---- */
--uj-font-xs
:
12px
;
--uj-font-xs
:
12px
;
...
...
packages/ui/src/styles/ui.css
View file @
6c6d3d3
...
@@ -42,7 +42,7 @@ body {
...
@@ -42,7 +42,7 @@ body {
.uj-page
{
.uj-page
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
gap
:
var
(
--uj-space-
4
,
16
px
);
gap
:
var
(
--uj-space-
module
,
10
px
);
min-width
:
0
;
min-width
:
0
;
min-height
:
100%
;
min-height
:
100%
;
}
}
...
@@ -86,63 +86,62 @@ body {
...
@@ -86,63 +86,62 @@ body {
/* 页内分段导航(Tabs / 系统组件 · 滑动药丸风格):
/* 页内分段导航(Tabs / 系统组件 · 滑动药丸风格):
浅灰圆角轨道 + 主色填充滑块,切换时滑块平滑滑动;选中态文字反色(on-primary),
浅灰圆角轨道 + 主色填充滑块,切换时滑块平滑滑动;选中态文字反色(on-primary),
计数角标反转成主色字。size=md 页面级(14px);size=lg 抽屉/详情内放大版(16px)。
计数角标反转成主色字。size=md 页面级(14px);size=lg 抽屉/详情内放大版(16px)。
优先级:antd v6 的 cssinjs 规则与本文件同注 shadowRoot 且顺序在后,
优先级:antd v6 的 cssinjs 规则与本文件同注 shadowRoot 且顺序在后,同特异性时 antd 获胜
平级规则会被 antd 覆盖 —— 这里全部用 .uj-page__tabs.ant-tabs .ant-tabs-nav ... 提权。
(实测:激活文字色 / hover 色 / horizontalItemPadding 都曾被 antd 盖掉)——
颜色同时写在 themeConfig 的 Tabs token 里(官方入口),此处同值兜底。 */
所以这里全部走子选择器链 .uj-page__tabs.ant-tabs > .ant-tabs-nav > .ant-tabs-nav-wrap
> .ant-tabs-nav-list > ... 提到 (0,8,0),保证压过 antd;themeConfig 的 Tabs token 同值兜底。 */
.uj-page__tabs
{
.uj-page__tabs
{
flex
:
none
;
flex
:
none
;
}
}
.uj-page__tabs.ant-tabs
.ant-tabs-nav
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
/* 轨道自带边界,antd 默认的整条底边框去掉。 */
/* 轨道自带边界,antd 默认的整条底边框去掉。 */
.uj-page__tabs.ant-tabs
.ant-tabs-nav
::before
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
::before
{
display
:
none
;
display
:
none
;
}
}
/* 轨道:收缩到内容宽的浅灰胶囊容器,滑块与标签都落在里面。 */
/* 轨道:收缩到内容宽的浅灰胶囊容器,滑块与标签都落在里面;
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-nav-list
{
内描边用 inset box-shadow(不占布局)勾出边界。 */
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
{
position
:
relative
;
position
:
relative
;
display
:
inline-flex
;
display
:
inline-flex
;
flex
:
none
;
width
:
fit-content
;
width
:
fit-content
;
gap
:
var
(
--uj-space-1
,
4px
)
;
gap
:
2px
;
padding
:
var
(
--uj-space-1
,
4px
)
;
padding
:
3px
;
background
:
var
(
--uj-surface-3
);
background
:
var
(
--uj-surface-3
);
box-shadow
:
inset
0
0
0
1px
var
(
--uj-divider
);
border-radius
:
var
(
--uj-radius-pill
,
999px
);
border-radius
:
var
(
--uj-radius-pill
,
999px
);
}
}
/* 标签:透明底浮在轨道上,
圆角与滑块一致;
层级高于滑块,文字才不会被盖住。
/* 标签:透明底浮在轨道上,层级高于滑块,文字才不会被盖住。
hover 先浮出一层白色底,激活后由主色滑块接管。 */
hover 先浮出一层白色底,激活后由主色滑块接管
(激活项不响应 hover)
。 */
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-tab
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
>
.ant-tabs-tab
{
position
:
relative
;
position
:
relative
;
z-index
:
1
;
z-index
:
1
;
margin
:
0
;
margin
:
0
;
padding
:
7px
16
px
;
padding
:
5px
12
px
;
border-radius
:
var
(
--uj-radius-pill
,
999px
);
border-radius
:
var
(
--uj-radius-pill
,
999px
);
color
:
var
(
--uj-text-2
);
color
:
var
(
--uj-text-2
);
font-size
:
var
(
--uj-font-md
,
14px
);
font-size
:
var
(
--uj-font-md
,
14px
);
transition
:
color
0.2s
ease
,
background-color
0.2s
ease
;
transition
:
color
0.2s
ease
,
background-color
0.2s
ease
;
}
}
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-tab
+
.ant-tabs-tab
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
>
.ant-tabs-tab
:hover:not
(
.ant-tabs-tab-active
)
{
margin-left
:
0
;
/* 间距交给轨道 gap */
}
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-tab
:hover:not
(
.ant-tabs-tab-active
)
{
background
:
var
(
--uj-surface
);
background
:
var
(
--uj-surface
);
}
}
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-tab
:hover
.ant-tabs-tab-btn
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
>
.ant-tabs-tab
:hover
>
.ant-tabs-tab-btn
{
color
:
var
(
--uj-text-1
);
color
:
var
(
--uj-text-1
);
}
}
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-tab.ant-tabs-tab-active
.ant-tabs-tab-btn
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
>
.ant-tabs-tab.ant-tabs-tab-active
>
.ant-tabs-tab-btn
{
color
:
var
(
--uj-on-primary
);
color
:
var
(
--uj-on-primary
);
font-weight
:
600
;
font-weight
:
600
;
}
}
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-tab.ant-tabs-tab-disabled
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
>
.ant-tabs-tab.ant-tabs-tab-disabled
{
color
:
var
(
--uj-text-4
);
color
:
var
(
--uj-text-4
);
}
}
/* 滑块:复用 antd ink-bar,从「底部下划线」改为「撑满标签高度的圆角主色背景」,
/* 滑块:复用 antd ink-bar,从「底部下划线」改为「撑满标签高度的圆角主色背景」,
随选中项平滑滑动(z-index 低于标签,文字浮在其上)。 */
随选中项平滑滑动(z-index 低于标签,文字浮在其上)。 */
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-ink-bar
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
>
.ant-tabs-ink-bar
{
top
:
var
(
--uj-space-1
,
4px
)
;
top
:
3px
;
bottom
:
var
(
--uj-space-1
,
4px
)
;
bottom
:
3px
;
height
:
auto
;
height
:
auto
;
background
:
var
(
--uj-primary
);
background
:
var
(
--uj-primary
);
border-radius
:
var
(
--uj-radius-pill
,
999px
);
border-radius
:
var
(
--uj-radius-pill
,
999px
);
...
@@ -153,17 +152,17 @@ body {
...
@@ -153,17 +152,17 @@ body {
width
0.28s
cubic-bezier
(
0.4
,
0
,
0.2
,
1
);
width
0.28s
cubic-bezier
(
0.4
,
0
,
0.2
,
1
);
}
}
/* 键盘聚焦可见:胶囊形聚焦环。 */
/* 键盘聚焦可见:胶囊形聚焦环。 */
.uj-page__tabs.ant-tabs
.ant-tabs-nav
.ant-tabs-tab-btn
:focus-visible
{
.uj-page__tabs.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
>
.ant-tabs-tab
>
.ant-tabs-tab-btn
:focus-visible
{
outline
:
none
;
outline
:
none
;
box-shadow
:
var
(
--uj-ring
);
box-shadow
:
var
(
--uj-ring
);
border-radius
:
var
(
--uj-radius-pill
,
999px
);
border-radius
:
var
(
--uj-radius-pill
,
999px
);
}
}
/* lg:抽屉/详情内放大版(16px,轨道与滑块同步放大)。 */
/* lg:抽屉/详情内放大版(16px,轨道与滑块同步放大)。 */
.uj-page__tabs--lg.ant-tabs
.ant-tabs-nav
{
.uj-page__tabs--lg.ant-tabs
>
.ant-tabs-nav
{
margin-bottom
:
var
(
--uj-space-4
,
16px
);
margin-bottom
:
var
(
--uj-space-4
,
16px
);
}
}
.uj-page__tabs--lg.ant-tabs
.ant-tabs-nav
.ant-tabs-tab
{
.uj-page__tabs--lg.ant-tabs
>
.ant-tabs-nav
>
.ant-tabs-nav-wrap
>
.ant-tabs-nav-list
>
.ant-tabs-tab
{
padding
:
9px
20
px
;
padding
:
6px
16
px
;
font-size
:
var
(
--uj-font-xl
,
16px
);
font-size
:
var
(
--uj-font-xl
,
16px
);
line-height
:
24px
;
line-height
:
24px
;
}
}
...
@@ -206,15 +205,16 @@ body {
...
@@ -206,15 +205,16 @@ body {
min-height
:
0
;
min-height
:
0
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
gap
:
var
(
--uj-space-
4
,
16
px
);
gap
:
var
(
--uj-space-
module
,
10
px
);
}
}
/* ============ 卡片 ============ */
/* ============ 卡片 ============ */
/* 卡片靠浅底 + 柔影分层,不靠描边。阴影取令牌,两级:静置 / hover 抬起。 */
/* 卡片 = 1px 实描边 + 干脆短影:描边立边界,影子给层次。
全靠柔影分层会软;实描边是企业级「质感」的最低成本来源。 */
.uj-card
{
.uj-card
{
border
:
1px
solid
transparent
;
border
:
1px
solid
var
(
--uj-border
,
#e6ebf2
)
;
border-radius
:
var
(
--uj-radius-card
,
1
2
px
);
border-radius
:
var
(
--uj-radius-card
,
1
0
px
);
background
:
var
(
--uj-surface
,
#fff
);
background
:
var
(
--uj-surface
,
#fff
);
box-shadow
:
var
(
--uj-shadow-card
);
box-shadow
:
var
(
--uj-shadow-card
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment