@donglegeyu/company-ui 2.12.0 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/template-components/SmartListTemplate/index.d.ts +4 -3
- package/dist/cjs/template-components/SmartListTemplate/index.js +24 -23
- package/dist/cjs/template-components/SmartListTemplate/index.scss +2 -21
- package/dist/cjs/template-components/StatisticsListPage/index.d.ts +2 -2
- package/dist/cjs/template-components/StatisticsListPage/index.js +4 -4
- package/dist/cjs/template-components/StatisticsListPage/index.scss +0 -15
- package/dist/cjs/template-components/TreeTableTemplate/index.js +2 -2
- package/dist/cjs/template-components/TreeTableTemplate/index.scss +4 -17
- package/dist/es/template-components/SmartListTemplate/index.d.ts +4 -3
- package/dist/es/template-components/SmartListTemplate/index.js +23 -21
- package/dist/es/template-components/SmartListTemplate/index.scss +2 -21
- package/dist/es/template-components/StatisticsListPage/index.d.ts +2 -2
- package/dist/es/template-components/StatisticsListPage/index.js +5 -5
- package/dist/es/template-components/StatisticsListPage/index.scss +0 -15
- package/dist/es/template-components/TreeTableTemplate/index.js +3 -3
- package/dist/es/template-components/TreeTableTemplate/index.scss +4 -17
- package/package.json +1 -1
|
@@ -35,9 +35,8 @@ interface SmartListTemplateProps {
|
|
|
35
35
|
expandedRowKeys: string[];
|
|
36
36
|
}) => void;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* 后续版本将收敛到 `titleExtra`,新代码建议直接使用 `titleExtra`。
|
|
38
|
+
* 标题栏最右侧操作区(如帮助入口「快速上手」;内部映射到 `PageTitle.actions`,
|
|
39
|
+
* 与 `StatisticsListPage` 的 `titleActions` 行为一致,全家族统一只用本 prop)。
|
|
41
40
|
*/
|
|
42
41
|
titleActions?: ReactNode;
|
|
43
42
|
/** 紧跟标题右侧的区域:标题的延伸/补充(如状态标签、计数) */
|
|
@@ -45,6 +44,8 @@ interface SmartListTemplateProps {
|
|
|
45
44
|
/**
|
|
46
45
|
* 标题栏最右侧的独立操作区:与标题解耦(如按钮组、描述+link)
|
|
47
46
|
* (内部映射到 `PageTitle.actions`)。
|
|
47
|
+
* @deprecated 请直接使用 `titleActions`。本 prop 仅做兼容保留(与 `titleActions`
|
|
48
|
+
* 同渲染进 `PageTitle.actions`,`titleActions` 在左),下个大版本移除。
|
|
48
49
|
*/
|
|
49
50
|
titleRightActions?: ReactNode;
|
|
50
51
|
toolbarActions?: ReactNode;
|
|
@@ -391,35 +391,36 @@ function SmartListTemplate({
|
|
|
391
391
|
showQuickJumper: true
|
|
392
392
|
};
|
|
393
393
|
}, [pagination, paginationConfig]);
|
|
394
|
+
const titleRightNode = titleActions || titleRightActions ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
395
|
+
titleActions,
|
|
396
|
+
titleRightActions
|
|
397
|
+
] }) : void 0;
|
|
394
398
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "smart-list-template", children: [
|
|
395
399
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
396
400
|
import_shared_components.PageTitle,
|
|
397
401
|
{
|
|
398
402
|
title,
|
|
399
|
-
titleExtra: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
400
|
-
|
|
401
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
),
|
|
419
|
-
titleActions
|
|
420
|
-
] })
|
|
403
|
+
titleExtra: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
404
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "page-title-divider" }),
|
|
405
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
406
|
+
import_shared_components.ViewSwitcher,
|
|
407
|
+
{
|
|
408
|
+
viewEndpoint,
|
|
409
|
+
fields,
|
|
410
|
+
filterParams: effectiveFilterParams,
|
|
411
|
+
modified: hasModified,
|
|
412
|
+
searched: hasSearched,
|
|
413
|
+
onSchemeChange: handleViewSchemeChange,
|
|
414
|
+
onCurrentSchemeChange: setCurrentScheme,
|
|
415
|
+
onSchemesChange: setFilterSchemes,
|
|
416
|
+
onEditScheme: updateFilterParams,
|
|
417
|
+
onSaved: handleViewSaved,
|
|
418
|
+
onSaveAsOpen: handleViewSaveAsOpen
|
|
419
|
+
}
|
|
420
|
+
),
|
|
421
|
+
titleExtra
|
|
421
422
|
] }),
|
|
422
|
-
actions:
|
|
423
|
+
actions: titleRightNode
|
|
423
424
|
}
|
|
424
425
|
),
|
|
425
426
|
displayFilterItems.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -10,27 +10,8 @@
|
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
background: var(--color-bg-layout);
|
|
12
12
|
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
.sl-title-extra {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
gap: calc(var(--spacing-md, 16) * 1px);
|
|
19
|
-
margin-left: calc(var(--spacing-xs, 8) * 1px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.sl-title-actions {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
gap: calc(var(--spacing-sm, 12) * 1px);
|
|
26
|
-
flex-shrink: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.sl-title-divider {
|
|
30
|
-
width: 1px;
|
|
31
|
-
height: 16px;
|
|
32
|
-
background-color: var(--color-border);
|
|
33
|
-
}
|
|
13
|
+
// 标题右侧区域按组件库 PageTitle 原生插槽来,不自定义包装类:
|
|
14
|
+
// titleExtra 子节点由 .page-title-extra(flex+gap)排版,分割线复用 .page-title-divider,最右操作区由 .page-title-actions 排版
|
|
34
15
|
}
|
|
35
16
|
|
|
36
17
|
.filter-gap {
|
|
@@ -91,9 +91,9 @@ export interface StatisticsListPageProps<T = Record<string, unknown>> {
|
|
|
91
91
|
scrollY?: string | number;
|
|
92
92
|
/** 表格空状态文案 */
|
|
93
93
|
emptyText?: ReactNode;
|
|
94
|
-
/**
|
|
94
|
+
/** 业务按钮插槽:与内置「列设置/密度/刷新」同组,渲染在内置项左侧(搜索框/筛选仍在工具栏最左;命名保留历史,不限于左侧) */
|
|
95
95
|
toolbarLeftExtra?: ReactNode;
|
|
96
|
-
/**
|
|
96
|
+
/** 工具栏右侧轻控件插槽(业务按钮与内置图标之间,如状态切换单选框),不放业务按钮 */
|
|
97
97
|
toolbarRightExtra?: ReactNode;
|
|
98
98
|
/** 视图配置接口地址;传入后页面标题右侧显示视图切换器(带分割线,与 SmartListTemplate 一致) */
|
|
99
99
|
viewEndpoint?: string;
|
|
@@ -471,8 +471,8 @@ var StatisticsListPage = (props) => {
|
|
|
471
471
|
}
|
|
472
472
|
) : null;
|
|
473
473
|
const viewSwitcherNode = !viewSwitcher ? null : viewSwitcherPortalContainer === void 0 ? viewSwitcher : viewSwitcherPortalContainer ? (0, import_react_dom.createPortal)(viewSwitcher, viewSwitcherPortalContainer) : null;
|
|
474
|
-
const titleExtraNode = viewSwitcherNode || extraNode ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
475
|
-
showTitleExtraDivider && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "
|
|
474
|
+
const titleExtraNode = viewSwitcherNode || extraNode ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
475
|
+
showTitleExtraDivider && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "page-title-divider" }),
|
|
476
476
|
viewSwitcherNode,
|
|
477
477
|
extraNode
|
|
478
478
|
] }) : void 0;
|
|
@@ -518,10 +518,10 @@ var StatisticsListPage = (props) => {
|
|
|
518
518
|
filterTags.length > 0 && `(${filterTags.length})`
|
|
519
519
|
]
|
|
520
520
|
}
|
|
521
|
-
)
|
|
522
|
-
toolbarLeftExtra
|
|
521
|
+
)
|
|
523
522
|
] }),
|
|
524
523
|
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "slp-table-header-right", children: [
|
|
524
|
+
toolbarLeftExtra,
|
|
525
525
|
toolbarRightExtra,
|
|
526
526
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
527
527
|
import_ColumnSettingsPanel.default,
|
|
@@ -6,21 +6,6 @@
|
|
|
6
6
|
padding: 0 calc(var(--spacing-sm, 12) * 1px);
|
|
7
7
|
background: var(--color-bg-layout);
|
|
8
8
|
|
|
9
|
-
// 标题区右侧槽位布局(对齐 SmartListTemplate:分割线左右间距对称 16px)
|
|
10
|
-
// 注:PageTitle 内部 .page-title-left 已有 gap:8px,此处补 8px margin-left 凑齐 16px
|
|
11
|
-
.slp-title-extra {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
gap: calc(var(--spacing-md, 16) * 1px);
|
|
15
|
-
margin-left: calc(var(--spacing-xs, 8) * 1px);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.slp-divider {
|
|
19
|
-
width: 1px;
|
|
20
|
-
height: 16px;
|
|
21
|
-
background: var(--color-border, rgba(5, 5, 5, 0.15));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
9
|
// 月份选择器触发按钮:伪装成纯文字,去掉按钮边距与 hover 背景
|
|
25
10
|
// 对齐 SmartListTemplate 的 .dropdown-text-btn 既定模式(antd Button 深度定制场景)
|
|
26
11
|
.slp-month-trigger.ant-btn {
|
|
@@ -159,8 +159,8 @@ var TreeTableTemplate = (props) => {
|
|
|
159
159
|
import_shared_components.PageTitle,
|
|
160
160
|
{
|
|
161
161
|
title,
|
|
162
|
-
titleExtra: titleExtra || viewEndpoint ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
163
|
-
viewEndpoint && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "
|
|
162
|
+
titleExtra: titleExtra || viewEndpoint ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
163
|
+
viewEndpoint && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "page-title-divider" }),
|
|
164
164
|
viewEndpoint && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { ref: setViewSwitcherSlot, className: "ttt-view-switcher-slot" }),
|
|
165
165
|
titleExtra
|
|
166
166
|
] }) : void 0,
|
|
@@ -17,24 +17,11 @@
|
|
|
17
17
|
font-weight: normal;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
//
|
|
21
|
-
.
|
|
22
|
-
|
|
20
|
+
// StatisticsListPage 视图切换器的 portal 挂载位
|
|
21
|
+
// (标题区按 PageTitle 原生插槽排版:子节点由 .page-title-extra 排版,分割线复用 .page-title-divider)
|
|
22
|
+
.ttt-view-switcher-slot {
|
|
23
|
+
display: inline-flex;
|
|
23
24
|
align-items: center;
|
|
24
|
-
gap: calc(var(--spacing-md, 16) * 1px);
|
|
25
|
-
margin-left: calc(var(--spacing-xs, 8) * 1px);
|
|
26
|
-
|
|
27
|
-
.ttt-divider {
|
|
28
|
-
width: 1px;
|
|
29
|
-
height: 16px;
|
|
30
|
-
background: var(--color-border, rgba(5, 5, 5, 0.15));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// StatisticsListPage 视图切换器的 portal 挂载位
|
|
34
|
-
.ttt-view-switcher-slot {
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
}
|
|
38
25
|
}
|
|
39
26
|
|
|
40
27
|
&.ttt-dragging {
|
|
@@ -35,9 +35,8 @@ interface SmartListTemplateProps {
|
|
|
35
35
|
expandedRowKeys: string[];
|
|
36
36
|
}) => void;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* 后续版本将收敛到 `titleExtra`,新代码建议直接使用 `titleExtra`。
|
|
38
|
+
* 标题栏最右侧操作区(如帮助入口「快速上手」;内部映射到 `PageTitle.actions`,
|
|
39
|
+
* 与 `StatisticsListPage` 的 `titleActions` 行为一致,全家族统一只用本 prop)。
|
|
41
40
|
*/
|
|
42
41
|
titleActions?: ReactNode;
|
|
43
42
|
/** 紧跟标题右侧的区域:标题的延伸/补充(如状态标签、计数) */
|
|
@@ -45,6 +44,8 @@ interface SmartListTemplateProps {
|
|
|
45
44
|
/**
|
|
46
45
|
* 标题栏最右侧的独立操作区:与标题解耦(如按钮组、描述+link)
|
|
47
46
|
* (内部映射到 `PageTitle.actions`)。
|
|
47
|
+
* @deprecated 请直接使用 `titleActions`。本 prop 仅做兼容保留(与 `titleActions`
|
|
48
|
+
* 同渲染进 `PageTitle.actions`,`titleActions` 在左),下个大版本移除。
|
|
48
49
|
*/
|
|
49
50
|
titleRightActions?: ReactNode;
|
|
50
51
|
toolbarActions?: ReactNode;
|
|
@@ -24,6 +24,7 @@ import { createActionColumn, DENSITY_CELL_PADDING, TABLE_CELL_INLINE_PADDING } f
|
|
|
24
24
|
import ColumnSettingsPanel from "../ColumnSettingsPanel";
|
|
25
25
|
import "./index.scss";
|
|
26
26
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
28
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
29
|
var nonBusinessFields = ["action", "index", "checkbox", "selection"];
|
|
29
30
|
|
|
@@ -455,32 +456,33 @@ export default function SmartListTemplate(_ref) {
|
|
|
455
456
|
showQuickJumper: true
|
|
456
457
|
});
|
|
457
458
|
}, [pagination, paginationConfig]);
|
|
459
|
+
|
|
460
|
+
// 标题栏右侧统一进 PageTitle.actions;titleRightActions 已废弃,兼容保留(titleActions 在左)
|
|
461
|
+
var titleRightNode = titleActions || titleRightActions ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
462
|
+
children: [titleActions, titleRightActions]
|
|
463
|
+
}) : undefined;
|
|
458
464
|
return /*#__PURE__*/_jsxs("div", {
|
|
459
465
|
className: "smart-list-template",
|
|
460
466
|
children: [/*#__PURE__*/_jsx(PageTitle, {
|
|
461
467
|
title: title,
|
|
462
|
-
titleExtra: /*#__PURE__*/_jsxs(
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
onSaved: handleViewSaved,
|
|
479
|
-
onSaveAsOpen: handleViewSaveAsOpen
|
|
480
|
-
}), titleActions]
|
|
481
|
-
})]
|
|
468
|
+
titleExtra: /*#__PURE__*/_jsxs(_Fragment, {
|
|
469
|
+
children: [/*#__PURE__*/_jsx("span", {
|
|
470
|
+
className: "page-title-divider"
|
|
471
|
+
}), /*#__PURE__*/_jsx(ViewSwitcher, {
|
|
472
|
+
viewEndpoint: viewEndpoint,
|
|
473
|
+
fields: fields,
|
|
474
|
+
filterParams: effectiveFilterParams,
|
|
475
|
+
modified: hasModified,
|
|
476
|
+
searched: hasSearched,
|
|
477
|
+
onSchemeChange: handleViewSchemeChange,
|
|
478
|
+
onCurrentSchemeChange: setCurrentScheme,
|
|
479
|
+
onSchemesChange: setFilterSchemes,
|
|
480
|
+
onEditScheme: updateFilterParams,
|
|
481
|
+
onSaved: handleViewSaved,
|
|
482
|
+
onSaveAsOpen: handleViewSaveAsOpen
|
|
483
|
+
}), titleExtra]
|
|
482
484
|
}),
|
|
483
|
-
actions:
|
|
485
|
+
actions: titleRightNode
|
|
484
486
|
}), displayFilterItems.length > 0 && /*#__PURE__*/_jsx(FilterForm, {
|
|
485
487
|
modelValue: effectiveFilterParams,
|
|
486
488
|
items: displayFilterItems,
|
|
@@ -10,27 +10,8 @@
|
|
|
10
10
|
box-sizing: border-box;
|
|
11
11
|
background: var(--color-bg-layout);
|
|
12
12
|
|
|
13
|
-
//
|
|
14
|
-
//
|
|
15
|
-
.sl-title-extra {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
gap: calc(var(--spacing-md, 16) * 1px);
|
|
19
|
-
margin-left: calc(var(--spacing-xs, 8) * 1px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.sl-title-actions {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
gap: calc(var(--spacing-sm, 12) * 1px);
|
|
26
|
-
flex-shrink: 0;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.sl-title-divider {
|
|
30
|
-
width: 1px;
|
|
31
|
-
height: 16px;
|
|
32
|
-
background-color: var(--color-border);
|
|
33
|
-
}
|
|
13
|
+
// 标题右侧区域按组件库 PageTitle 原生插槽来,不自定义包装类:
|
|
14
|
+
// titleExtra 子节点由 .page-title-extra(flex+gap)排版,分割线复用 .page-title-divider,最右操作区由 .page-title-actions 排版
|
|
34
15
|
}
|
|
35
16
|
|
|
36
17
|
.filter-gap {
|
|
@@ -91,9 +91,9 @@ export interface StatisticsListPageProps<T = Record<string, unknown>> {
|
|
|
91
91
|
scrollY?: string | number;
|
|
92
92
|
/** 表格空状态文案 */
|
|
93
93
|
emptyText?: ReactNode;
|
|
94
|
-
/**
|
|
94
|
+
/** 业务按钮插槽:与内置「列设置/密度/刷新」同组,渲染在内置项左侧(搜索框/筛选仍在工具栏最左;命名保留历史,不限于左侧) */
|
|
95
95
|
toolbarLeftExtra?: ReactNode;
|
|
96
|
-
/**
|
|
96
|
+
/** 工具栏右侧轻控件插槽(业务按钮与内置图标之间,如状态切换单选框),不放业务按钮 */
|
|
97
97
|
toolbarRightExtra?: ReactNode;
|
|
98
98
|
/** 视图配置接口地址;传入后页面标题右侧显示视图切换器(带分割线,与 SmartListTemplate 一致) */
|
|
99
99
|
viewEndpoint?: string;
|
|
@@ -36,6 +36,7 @@ import { createPortal } from "react-dom";
|
|
|
36
36
|
import "./index.scss";
|
|
37
37
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
38
38
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
39
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
39
40
|
var Text = Typography.Text;
|
|
40
41
|
|
|
41
42
|
// Error Boundary:防止脏数据导致整页白屏
|
|
@@ -666,10 +667,9 @@ export var StatisticsListPage = function StatisticsListPage(props) {
|
|
|
666
667
|
// portal 提升:外部模板统一渲染标题栏时(viewSwitcherPortalContainer 非 undefined)渲染到指定容器;
|
|
667
668
|
// 容器未就绪(null)前暂不渲染,避免闪现后重挂;undefined 表示未启用提升,原地渲染在自带标题栏
|
|
668
669
|
var viewSwitcherNode = !viewSwitcher ? null : viewSwitcherPortalContainer === undefined ? viewSwitcher : viewSwitcherPortalContainer ? /*#__PURE__*/createPortal(viewSwitcher, viewSwitcherPortalContainer) : null;
|
|
669
|
-
var titleExtraNode = viewSwitcherNode || extraNode ? /*#__PURE__*/_jsxs(
|
|
670
|
-
className: "slp-title-extra",
|
|
670
|
+
var titleExtraNode = viewSwitcherNode || extraNode ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
671
671
|
children: [showTitleExtraDivider && /*#__PURE__*/_jsx("span", {
|
|
672
|
-
className: "
|
|
672
|
+
className: "page-title-divider"
|
|
673
673
|
}), viewSwitcherNode, extraNode]
|
|
674
674
|
}) : undefined;
|
|
675
675
|
return /*#__PURE__*/_jsx(StatisticsErrorBoundary, {
|
|
@@ -724,10 +724,10 @@ export var StatisticsListPage = function StatisticsListPage(props) {
|
|
|
724
724
|
className: filterTags.length > 0 ? "slp-filter-btn slp-filter-btn-active" : "slp-filter-btn",
|
|
725
725
|
onClick: openFilterDrawer,
|
|
726
726
|
children: ["\u7B5B\u9009", filterTags.length > 0 && "(".concat(filterTags.length, ")")]
|
|
727
|
-
})
|
|
727
|
+
})]
|
|
728
728
|
}), /*#__PURE__*/_jsxs("div", {
|
|
729
729
|
className: "slp-table-header-right",
|
|
730
|
-
children: [toolbarRightExtra, /*#__PURE__*/_jsx(ColumnSettingsPanel, {
|
|
730
|
+
children: [toolbarLeftExtra, toolbarRightExtra, /*#__PURE__*/_jsx(ColumnSettingsPanel, {
|
|
731
731
|
fields: columnFields,
|
|
732
732
|
defaultFields: defaultColumnFields,
|
|
733
733
|
onConfirm: handleColumnSettingsConfirm,
|
|
@@ -6,21 +6,6 @@
|
|
|
6
6
|
padding: 0 calc(var(--spacing-sm, 12) * 1px);
|
|
7
7
|
background: var(--color-bg-layout);
|
|
8
8
|
|
|
9
|
-
// 标题区右侧槽位布局(对齐 SmartListTemplate:分割线左右间距对称 16px)
|
|
10
|
-
// 注:PageTitle 内部 .page-title-left 已有 gap:8px,此处补 8px margin-left 凑齐 16px
|
|
11
|
-
.slp-title-extra {
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
gap: calc(var(--spacing-md, 16) * 1px);
|
|
15
|
-
margin-left: calc(var(--spacing-xs, 8) * 1px);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.slp-divider {
|
|
19
|
-
width: 1px;
|
|
20
|
-
height: 16px;
|
|
21
|
-
background: var(--color-border, rgba(5, 5, 5, 0.15));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
9
|
// 月份选择器触发按钮:伪装成纯文字,去掉按钮边距与 hover 背景
|
|
25
10
|
// 对齐 SmartListTemplate 的 .dropdown-text-btn 既定模式(antd Button 深度定制场景)
|
|
26
11
|
.slp-month-trigger.ant-btn {
|
|
@@ -31,6 +31,7 @@ import "./index.scss";
|
|
|
31
31
|
|
|
32
32
|
/** 组件内部组装产物,结构对齐 antd TreeDataNode */
|
|
33
33
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
34
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
34
35
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
36
|
/** 收集树全部节点 key(受控展开 / 搜索展开用) */
|
|
36
37
|
function collectAllKeys(nodes) {
|
|
@@ -205,10 +206,9 @@ export var TreeTableTemplate = function TreeTableTemplate(props) {
|
|
|
205
206
|
style: style,
|
|
206
207
|
children: [/*#__PURE__*/_jsx(PageTitle, {
|
|
207
208
|
title: title,
|
|
208
|
-
titleExtra: titleExtra || viewEndpoint ? /*#__PURE__*/_jsxs(
|
|
209
|
-
className: "ttt-title-extra",
|
|
209
|
+
titleExtra: titleExtra || viewEndpoint ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
210
210
|
children: [viewEndpoint && /*#__PURE__*/_jsx("span", {
|
|
211
|
-
className: "
|
|
211
|
+
className: "page-title-divider"
|
|
212
212
|
}), viewEndpoint && /*#__PURE__*/_jsx("span", {
|
|
213
213
|
ref: setViewSwitcherSlot,
|
|
214
214
|
className: "ttt-view-switcher-slot"
|
|
@@ -17,24 +17,11 @@
|
|
|
17
17
|
font-weight: normal;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
//
|
|
21
|
-
.
|
|
22
|
-
|
|
20
|
+
// StatisticsListPage 视图切换器的 portal 挂载位
|
|
21
|
+
// (标题区按 PageTitle 原生插槽排版:子节点由 .page-title-extra 排版,分割线复用 .page-title-divider)
|
|
22
|
+
.ttt-view-switcher-slot {
|
|
23
|
+
display: inline-flex;
|
|
23
24
|
align-items: center;
|
|
24
|
-
gap: calc(var(--spacing-md, 16) * 1px);
|
|
25
|
-
margin-left: calc(var(--spacing-xs, 8) * 1px);
|
|
26
|
-
|
|
27
|
-
.ttt-divider {
|
|
28
|
-
width: 1px;
|
|
29
|
-
height: 16px;
|
|
30
|
-
background: var(--color-border, rgba(5, 5, 5, 0.15));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// StatisticsListPage 视图切换器的 portal 挂载位
|
|
34
|
-
.ttt-view-switcher-slot {
|
|
35
|
-
display: inline-flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
}
|
|
38
25
|
}
|
|
39
26
|
|
|
40
27
|
&.ttt-dragging {
|