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
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
266 additions
and
51 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
import { useState } from 'react';
import { useState } from 'react';
import { UCascader, UButton, UDatePicker, UForm, UFormItem, UInput, URadio, USelect } from '@uj/ui';
import {
import type { FieldSchema } from '../formSchema';
UCascader,
UButton,
UDatePicker,
UForm,
UFormItem,
UInput,
UPopover,
URadio,
USelect,
} from '@uj/ui';
import type { FieldOption, FieldSchema } from '../formSchema';
import { DEFAULT_PAGE_SIZE } from '../DataTable';
import { DEFAULT_PAGE_SIZE } from '../DataTable';
export interface SearchPagination {
export interface SearchPagination {
...
@@ -8,6 +18,14 @@ export interface SearchPagination {
...
@@ -8,6 +18,14 @@ export interface SearchPagination {
size: number;
size: number;
}
}
/** 一条已填条件:label/value 是悬浮卡要显示的东西,fieldNames 是移除时要清的字段。 */
interface ActiveCondition<T extends Record<string, unknown>> {
key: string;
label: string;
valueText: string;
fieldNames: (keyof T & string)[];
}
/** 标签列:文字区 96px + 与控件之间 8px,控件因此收窄约 1/3 且左缘对齐。 */
/** 标签列:文字区 96px + 与控件之间 8px,控件因此收窄约 1/3 且左缘对齐。 */
const LABEL_COL = { style: { width: 104, paddingInlineEnd: 8 } };
const LABEL_COL = { style: { width: 104, paddingInlineEnd: 8 } };
...
@@ -53,10 +71,11 @@ export function SearchForm<T extends Record<string, unknown>>({
...
@@ -53,10 +71,11 @@ export function SearchForm<T extends Record<string, unknown>>({
},
},
{ ...initialValues },
{ ...initialValues },
) as Partial<T>;
) as Partial<T>;
// 空数组 = 监听整张表单。用于「收起状态下已设条件」的角标计数:
// 空数组 = 监听整张表单。用于「收起状态下已设条件」的角标计数
与悬浮卡
:
// 收起了不等于没生效,用户必须看得见自己身上还挂着几个条件。
// 收起了不等于没生效,用户必须看得见自己身上还挂着几个条件
、分别是什么
。
const values = UForm.useWatch([], form) as Partial<T> | undefined;
const values = UForm.useWatch([], form) as Partial<T> | undefined;
const [expanded, setExpanded] = useState(defaultExpanded);
const [expanded, setExpanded] = useState(defaultExpanded);
const [activePopoverOpen, setActivePopoverOpen] = useState(false);
const searchPagination: SearchPagination = {
const searchPagination: SearchPagination = {
current: pagination?.current ?? 1,
current: pagination?.current ?? 1,
...
@@ -94,7 +113,74 @@ export function SearchForm<T extends Record<string, unknown>>({
...
@@ -94,7 +113,74 @@ export function SearchForm<T extends Record<string, unknown>>({
// 生效数另外排除与 initialValues 相同的默认值。
// 生效数另外排除与 initialValues 相同的默认值。
const hasExtra = extraFields.length > 0;
const hasExtra = extraFields.length > 0;
const conditionTotal = countConditions(fields);
const conditionTotal = countConditions(fields);
const activeFilterCount = countActiveConditions(fields, values, formInitialValues);
const activeConditions = collectActiveConditions(fields, values, formInitialValues);
const activeFilterCount = activeConditions.length;
/** 清字段时回到初始值;没有初始值的按控件类型回到「未填」的空值。 */
const clearFields = (names: (keyof T & string)[]) => {
const patch: Record<string, unknown> = {};
for (const name of names) {
const field = fields.find((item) => item.name === name);
patch[name] =
formInitialValues?.[name] ??
(field?.type === 'input' || field?.type === 'textarea' ? '' : undefined);
}
form.setFieldsValue(patch as Partial<T>);
};
/** 单条移除:清掉整组字段后直接用剩余条件重新查询,不要求用户再点一次「查询」。 */
const removeCondition = (condition: ActiveCondition<T>) => {
clearFields(condition.fieldNames);
if (activeConditions.length === 1) setActivePopoverOpen(false);
onSearch(form.getFieldsValue() as T, { ...searchPagination, current: 1 });
};
/** 全部清空走 onReset:页面侧把列表过滤条件一起清掉并回到第 1 页。 */
const clearAllConditions = () => {
clearFields(fields.map((field) => field.name));
setActivePopoverOpen(false);
onReset?.(formInitialValues, { ...searchPagination, current: 1 });
};
const activePopoverContent = (
<div className="uj-filter-active">
<div className="uj-filter-active__head">
<span>当前筛选条件</span>
<span className="uj-filter-active__count">{activeFilterCount}</span>
</div>
{activeConditions.length ? (
<>
<div className="uj-filter-active__list">
{activeConditions.map((condition) => (
<div className="uj-filter-active__item" key={condition.key}>
<span className="uj-filter-active__label" title={condition.label}>
{condition.label}
</span>
<span className="uj-filter-active__value" title={condition.valueText}>
{condition.valueText}
</span>
<UButton
type="text"
size="small"
className="uj-filter-active__remove"
onClick={() => removeCondition(condition)}
>
移除
</UButton>
</div>
))}
</div>
<div className="uj-filter-active__foot">
<UButton type="text" size="small" danger onClick={clearAllConditions}>
全部清空
</UButton>
</div>
</>
) : (
<div className="uj-filter-active__empty">当前没有已填写的筛选条件</div>
)}
</div>
);
const control = (field: FieldSchema<T>) => {
const control = (field: FieldSchema<T>) => {
const label = typeof field.label === 'string' ? field.label : '';
const label = typeof field.label === 'string' ? field.label : '';
...
@@ -171,17 +257,21 @@ export function SearchForm<T extends Record<string, unknown>>({
...
@@ -171,17 +257,21 @@ export function SearchForm<T extends Record<string, unknown>>({
<div className="uj-filter-actions">
<div className="uj-filter-actions">
{hasExtra ? (
{hasExtra ? (
<UPopover
trigger="hover"
placement="bottomRight"
open={activePopoverOpen}
onOpenChange={setActivePopoverOpen}
classNames={{ root: 'uj-filter-active-popover' }}
styles={{ content: { padding: 0 } }}
content={activePopoverContent}
>
<UButton
<UButton
type="text"
type="text"
size="small"
size="small"
className="uj-filter-more-btn"
className="uj-filter-more-btn"
onClick={() => setExpanded((open) => !open)}
onClick={() => setExpanded((open) => !open)}
aria-expanded={expanded}
aria-expanded={expanded}
title={
expanded
? `已填写 ${activeFilterCount} 个筛选条件;点击收起`
: `共 ${conditionTotal} 个筛选条件,已填写 ${activeFilterCount} 个;展开可查看或清除收拢条件`
}
aria-label={
aria-label={
expanded
expanded
? `收起:已填写 ${activeFilterCount} 个筛选条件`
? `收起:已填写 ${activeFilterCount} 个筛选条件`
...
@@ -203,22 +293,9 @@ export function SearchForm<T extends Record<string, unknown>>({
...
@@ -203,22 +293,9 @@ export function SearchForm<T extends Record<string, unknown>>({
▾
▾
</span>
</span>
</UButton>
</UButton>
</UPopover>
) : null}
) : null}
<UButton
<UButton type="default" size="small" onClick={clearAllConditions}>
type="default"
size="small"
onClick={() => {
const resetValues = fields.reduce<Record<string, unknown>>((acc, field) => {
const initialValue = formInitialValues?.[field.name];
acc[field.name] =
initialValue ??
(field.type === 'input' || field.type === 'textarea' ? '' : undefined);
return acc;
}, {});
form.setFieldsValue(resetValues);
onReset?.(formInitialValues, searchPagination);
}}
>
重置
重置
</UButton>
</UButton>
<UButton size="small" htmlType="submit">
<UButton size="small" htmlType="submit">
...
@@ -262,33 +339,92 @@ function isUserSet<T extends Record<string, unknown>>(
...
@@ -262,33 +339,92 @@ function isUserSet<T extends Record<string, unknown>>(
}
}
/**
/**
*
整张表的条件总数(含常显字段):同 filterGroup 的字段是同一个业务条件,整组只算 1 个
。
*
把字段按业务条件分组:同 filterGroup 是一组,没标的各自成组(键加前缀,避免和组名撞车)
。
*
没标 filterGroup 的字段各自成组(键加前缀,避免和组名撞车)
。
*
countConditions 与 collectActiveConditions 共用这一份分组,数字和悬浮卡不会各算各的
。
*/
*/
function countConditions<T extends Record<string, unknown>>(fields: FieldSchema<T>[]): number {
function conditionGroups<T extends Record<string, unknown>>(
const groups = new Set<string>();
fields: FieldSchema<T>[],
): Map<string, FieldSchema<T>[]> {
const groups = new Map<string, FieldSchema<T>[]>();
for (const field of fields) {
for (const field of fields) {
if (field.countsAsFilter === false) continue;
if (field.countsAsFilter === false) continue;
groups.add(field.filterGroup ? `group:${field.filterGroup}` : `field:${String(field.name)}`);
const key = field.filterGroup ? `group:${field.filterGroup}` : `field:${String(field.name)}`;
groups.set(key, [...(groups.get(key) ?? []), field]);
}
}
return groups.size;
return groups;
}
/** 整张表的条件总数(含常显字段):一组只算 1 个。 */
function countConditions<T extends Record<string, unknown>>(fields: FieldSchema<T>[]): number {
return conditionGroups(fields).size;
}
/** 下拉/单选/级联:把值换回用户看得懂的选项文案;嵌套选项递归查找。 */
function optionLabel(options: FieldOption[] | undefined, value: unknown): string | undefined {
for (const option of options ?? []) {
if (String(option.value) === String(value) && typeof option.label === 'string') {
return option.label;
}
const nested = option.children ? optionLabel(option.children, value) : undefined;
if (nested) return nested;
}
return undefined;
}
/** 悬浮卡里的值:选项型取 label,日期对象取 YYYY-MM-DD,数组逐项展开用 / 连接。 */
function formatFieldValue<T extends Record<string, unknown>>(
field: FieldSchema<T>,
value: unknown,
): string {
const toText = (item: unknown): string => {
if (item === undefined || item === null || item === '') return '';
if (Array.isArray(item)) return item.map(toText).filter(Boolean).join(' / ');
if (
field.type === 'select' ||
field.type === 'selectMultiple' ||
field.type === 'radio' ||
field.type === 'cascader'
) {
const label = optionLabel(field.options, item);
if (label) return label;
}
if (typeof item === 'object' && typeof (item as { format?: unknown }).format === 'function') {
return String((item as { format: (pattern: string) => string }).format('YYYY-MM-DD'));
}
return String(item);
};
return toText(value);
}
}
/**
/**
* 整张表的
生效条件数:同 filterGroup 的字段是同一个业务条件,整组只算 1 个
。
* 整张表的
已填条件明细:同 filterGroup 的字段合成 1 条,显示时用 / 连接各自的标签和值
。
*
常显字段同样计入,否则角标会少报用户正在用的条件
。
*
fieldNames 收整组字段 —— 移除一条区间条件要把上下界一起清掉,不能只清有值的那一半
。
*/
*/
function co
un
tActiveConditions<T extends Record<string, unknown>>(
function co
llec
tActiveConditions<T extends Record<string, unknown>>(
fields: FieldSchema<T>[],
fields: FieldSchema<T>[],
values: Partial<T> | undefined,
values: Partial<T> | undefined,
initialValues: Partial<T> | undefined,
initialValues: Partial<T> | undefined,
): number {
): ActiveCondition<T>[] {
const groups = new Map<string, boolean>();
const result: ActiveCondition<T>[] = [];
for (const field of fields) {
conditionGroups(fields).forEach((groupFields, key) => {
if (field.countsAsFilter === false) continue;
const activeFields = groupFields.filter((field) =>
const key = field.filterGroup ? `group:${field.filterGroup}` : `field:${String(field.name)}`;
isUserSet(values, initialValues, field.name),
const active = (groups.get(key) ?? false) || isUserSet(values, initialValues, field.name);
);
groups.set(key, active);
if (activeFields.length === 0) return;
}
result.push({
return [...groups.values()].filter(Boolean).length;
key,
label: activeFields
.map((field) =>
typeof field.label === 'string' || typeof field.label === 'number'
? String(field.label)
: String(field.name),
)
.join(' / '),
valueText: activeFields
.map((field) => formatFieldValue(field, values?.[field.name]))
.join(' / '),
fieldNames: groupFields.map((field) => field.name),
});
});
return result;
}
}
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