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 0e9e73a4
authored
Nov 16, 2026
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
再次发布
1 parent
815f47d9
Pipeline
#477
for
0e9e73a4
failed
in 0 seconds
Changes
11
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
87 additions
and
8 deletions
apps/web/shell/package.json
apps/web/subapps/finance/package.json
apps/web/subapps/points/package.json
apps/web/subapps/store/package.json
apps/web/subapps/system/package.json
apps/web/subapps/usedcar/package.json
docs/PORT_CONVERSION.md
packages/biz/src/components/SearchForm/index.tsx
packages/ui/src/components/Popover/index.tsx
packages/ui/src/index.ts
packages/ui/src/styles/ui.css
apps/web/shell/package.json
View file @
0e9e73a
{
{
"name"
:
"@uj/web-shell"
,
"name"
:
"@uj/web-shell"
,
"version"
:
"0.0.
9
"
,
"version"
:
"0.0.
10
"
,
"private"
:
true
,
"private"
:
true
,
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
...
...
apps/web/subapps/finance/package.json
View file @
0e9e73a
{
{
"name"
:
"@uj/web-finance"
,
"name"
:
"@uj/web-finance"
,
"version"
:
"0.0.
3
"
,
"version"
:
"0.0.
4
"
,
"private"
:
true
,
"private"
:
true
,
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
...
...
apps/web/subapps/points/package.json
View file @
0e9e73a
{
{
"name"
:
"@uj/web-points"
,
"name"
:
"@uj/web-points"
,
"version"
:
"0.0.
4
"
,
"version"
:
"0.0.
5
"
,
"private"
:
true
,
"private"
:
true
,
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
...
...
apps/web/subapps/store/package.json
View file @
0e9e73a
{
{
"name"
:
"@uj/web-store"
,
"name"
:
"@uj/web-store"
,
"version"
:
"0.0.
4
"
,
"version"
:
"0.0.
5
"
,
"private"
:
true
,
"private"
:
true
,
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
...
...
apps/web/subapps/system/package.json
View file @
0e9e73a
{
{
"name"
:
"@uj/web-system"
,
"name"
:
"@uj/web-system"
,
"version"
:
"0.0.
4
"
,
"version"
:
"0.0.
5
"
,
"private"
:
true
,
"private"
:
true
,
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
...
...
apps/web/subapps/usedcar/package.json
View file @
0e9e73a
{
{
"name"
:
"@uj/web-usedcar"
,
"name"
:
"@uj/web-usedcar"
,
"version"
:
"0.0.
5
"
,
"version"
:
"0.0.
6
"
,
"private"
:
true
,
"private"
:
true
,
"type"
:
"module"
,
"type"
:
"module"
,
"scripts"
:
{
"scripts"
:
{
...
...
docs/PORT_CONVERSION.md
View file @
0e9e73a
...
@@ -149,9 +149,9 @@ UResult UEmpty USteps UTimeline UDropdown UDatePicker URadio USwit
...
@@ -149,9 +149,9 @@ UResult UEmpty USteps UTimeline UDropdown UDatePicker URadio USwit
-
全都不标
`essential`
→
非日期字段全部常显(锚点);
-
全都不标
`essential`
→
非日期字段全部常显(锚点);
-
**
时间区间
`dateRange`
默认进「更多筛选」
**
(区间要跨
2
列才完整);例外:轻量表单(常显非日期
≤
2
且整页条件
≤
3
,如「积分详情」只有积分类型
+
积分变化时间)或显式
`essential:true`
的区间会常显。阈值在组件内
`lightForm`
启发式,
**
不要改页面去手调
**
。
-
**
时间区间
`dateRange`
默认进「更多筛选」
**
(区间要跨
2
列才完整);例外:轻量表单(常显非日期
≤
2
且整页条件
≤
3
,如「积分详情」只有积分类型
+
积分变化时间)或显式
`essential:true`
的区间会常显。阈值在组件内
`lightForm`
启发式,
**
不要改页面去手调
**
。
-
收起区是
CSS
隐藏而非卸载(避免
Form
.
Item
卸载丢值),这点组件已处理,页面只管传字段。
-
收起区是
CSS
隐藏而非卸载(避免
Form
.
Item
卸载丢值),这点组件已处理,页面只管传字段。
-
**
「更多筛选」双数角标
**
(组件统一处理,页面不要自己算数):按钮文案右上角的
**
无背景上标
**
是
**
整张表的筛选条件总数
**
(含常显字段,按
`filterGroup`
归并、排除
`countsAsFilter:false`
),主色实心角标是
**
整张表已填写的条件数
**
,两者语义不同。总数不随填写变化、只作说明,所以不带底色
/
边框、不占按钮宽度;主色角标是唯一带底色的强调。计数口径:与
`initialValues`
相同的默认值不算用户设的条件(如
finance
页
`dateType:'payment'`
、
`paymentMethod:'全部'`
);两个角标都只在收起态显示,展开时条件都在眼前就都消失。
-
**
「更多筛选」双数角标
**
(组件统一处理,页面不要自己算数):按钮文案右上角的
**
无背景上标
**
是
**
整张表的筛选条件总数
**
(含常显字段,按
`filterGroup`
归并、排除
`countsAsFilter:false`
),主色实心角标是
**
整张表已填写的条件数
**
,两者语义不同。总数不随填写变化、只作说明,所以不带底色
/
边框、不占按钮宽度;主色角标是唯一带底色的强调。计数口径:与
`initialValues`
相同的默认值不算用户设的条件(如
finance
页
`dateType:'payment'`
、
`paymentMethod:'全部'`
);两个角标都只在收起态显示,展开时条件都在眼前就都消失。
hover
「更多筛选」按钮(数字在其内)弹出已填条件卡:逐条显示条件标签与值,行内「移除」按
`filterGroup`
清整组并立即用剩余条件重查,底部「全部清空」走
`onReset`
。
-
**
组合字段用
`filterGroup`
归并
**
:一个业务条件拆成多个平铺字段时(金额区间
`amtMin`
/
`amtMax`
、日期类型
+
区间
`dateType`
/
`dateValue`
),给同组字段标同一个
`filterGroup`
,角标里整组只算
1
个条件;不标就按字段各自计。字段表是唯一真源,不要在页面里另写一份计数。组合控件里只起辅助作用、单独变化不产生查询参数的字段(如
`dateType`
)标
`countsAsFilter: false`
,不参与计数。
-
**
组合字段用
`filterGroup`
归并
**
:一个业务条件拆成多个平铺字段时(金额区间
`amtMin`
/
`amtMax`
、日期类型
+
区间
`dateType`
/
`dateValue`
),给同组字段标同一个
`filterGroup`
,角标里整组只算
1
个条件;不标就按字段各自计。字段表是唯一真源,不要在页面里另写一份计数。组合控件里只起辅助作用、单独变化不产生查询参数的字段(如
`dateType`
)标
`countsAsFilter: false`
,不参与计数。
-
hover
按钮的
`title`
与
`aria-label`
会同时报出「共
N
个
/
已填
M
个」,语义自解释;展开态只报已填数,不再提示「展开可查看」;
页面不需要传任何计数参数。
-
按钮的
`aria-label`
会报出「共
N
个
/
已填
M
个」供读屏使用;不再挂原生
`title`
,避免与悬浮卡叠两层提示;展开态只报已填数,
页面不需要传任何计数参数。
---
---
...
...
packages/biz/src/components/SearchForm/index.tsx
View file @
0e9e73a
This diff is collapsed.
Click to expand it.
packages/ui/src/components/Popover/index.tsx
0 → 100644
View file @
0e9e73a
import { Popover } from 'antd';
/** 项目统一悬浮卡,透传 antd Popover。可交互内容(按钮、输入)用它,不用 Tooltip。 */
export const UPopover = Popover;
export default UPopover;
packages/ui/src/index.ts
View file @
0e9e73a
...
@@ -64,6 +64,7 @@ export type { UTabsProps, UTabsSize, TabLabelOptions } from './components/Tabs';
...
@@ -64,6 +64,7 @@ export type { UTabsProps, UTabsSize, TabLabelOptions } from './components/Tabs';
export
{
UCheckbox
}
from
'./components/Checkbox'
;
export
{
UCheckbox
}
from
'./components/Checkbox'
;
export
{
UList
}
from
'./components/List'
;
export
{
UList
}
from
'./components/List'
;
export
{
UTooltip
}
from
'./components/Tooltip'
;
export
{
UTooltip
}
from
'./components/Tooltip'
;
export
{
UPopover
}
from
'./components/Popover'
;
export
{
UResult
}
from
'./components/Result'
;
export
{
UResult
}
from
'./components/Result'
;
export
{
UEmpty
}
from
'./components/Empty'
;
export
{
UEmpty
}
from
'./components/Empty'
;
export
type
{
UEmptyProps
}
from
'./components/Empty'
;
export
type
{
UEmptyProps
}
from
'./components/Empty'
;
...
...
packages/ui/src/styles/ui.css
View file @
0e9e73a
...
@@ -438,6 +438,78 @@ html body {
...
@@ -438,6 +438,78 @@ html body {
transform
:
rotate
(
180deg
);
transform
:
rotate
(
180deg
);
}
}
/* ============ 筛选条件悬浮卡 ============
hover「更多筛选」数字,逐条看已填条件与值,行内移除 / 底部清空。
antd 6 的 Popover 内容挂在 portal,样式靠根类穿透;
padding 由组件 styles.content 收成 0,这里只管内部排版。 */
.uj-filter-active
{
width
:
320px
;
max-width
:
calc
(
100vw
-
32px
);
}
.uj-filter-active__head
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
8px
12px
;
border-bottom
:
1px
solid
var
(
--uj-divider
);
color
:
var
(
--uj-text-2
);
font-size
:
12px
;
}
.uj-filter-active__count
{
color
:
var
(
--uj-text-3
);
font-variant-numeric
:
var
(
--uj-num
,
tabular-nums
);
}
.uj-filter-active__list
{
max-height
:
240px
;
overflow-y
:
auto
;
padding
:
4px
0
;
}
.uj-filter-active__item
{
display
:
flex
;
align-items
:
baseline
;
gap
:
8px
;
padding
:
6px
12px
;
line-height
:
18px
;
}
.uj-filter-active__item
:hover
{
background
:
var
(
--uj-surface-3
);
}
.uj-filter-active__label
{
flex
:
none
;
min-width
:
72px
;
max-width
:
104px
;
overflow
:
hidden
;
color
:
var
(
--uj-text-3
);
font-size
:
12px
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.uj-filter-active__value
{
flex
:
1
;
min-width
:
0
;
overflow
:
hidden
;
color
:
var
(
--uj-text-1
);
font-size
:
13px
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
.uj-filter-active__remove
{
flex
:
none
;
height
:
auto
;
padding
:
0
2px
;
}
.uj-filter-active__foot
{
display
:
flex
;
justify-content
:
flex-end
;
padding
:
6px
12px
;
border-top
:
1px
solid
var
(
--uj-divider
);
}
.uj-filter-active__empty
{
padding
:
14px
12px
;
color
:
var
(
--uj-text-3
);
font-size
:
13px
;
}
/* 超窄屏:auto-fit 仍会保留右侧 220px 动作列、字段挤成单列,
/* 超窄屏:auto-fit 仍会保留右侧 220px 动作列、字段挤成单列,
故在此让字段单列堆叠、按钮整行沉底,避免字段被压成 160px 以下的细条。 */
故在此让字段单列堆叠、按钮整行沉底,避免字段被压成 160px 以下的细条。 */
@media
(
max-width
:
640px
)
{
@media
(
max-width
:
640px
)
{
...
...
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