@zat-design/sisyphus-react 4.6.5-beta.6 → 4.7.0-beta.1
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/index.esm.css +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProEditTable/components/Summary/index.js +6 -9
- package/es/ProForm/components/combination/Group/component/ComRender.js +7 -4
- package/es/ProForm/index.js +13 -4
- package/es/ProForm/style/index.less +6 -0
- package/es/ProLayout/components/Layout/Menu/FoldMenu/index.js +8 -11
- package/es/ProLayout/components/Layout/Menu/NormalMenuSelection.d.ts +8 -0
- package/es/ProLayout/components/Layout/Menu/NormalMenuSelection.js +29 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +20 -21
- package/es/ProLayout/components/Layout/Menu/index.d.ts +6 -2
- package/es/ProLayout/components/Layout/Menu/index.js +5 -2
- package/es/ProLayout/index.d.ts +2 -0
- package/es/ProLayout/index.js +2 -1
- package/es/ProLayout/utils/index.d.ts +0 -11
- package/es/ProLayout/utils/index.js +16 -100
- package/es/ProTable/components/RenderTableHeader/index.js +13 -10
- package/es/ProTable/index.js +4 -4
- package/es/ProTable/style/index.less +26 -24
- package/es/assets/refresh.svg +4 -0
- package/es/assets/settings.svg +4 -0
- package/package.json +1 -1
package/es/ProTable/index.js
CHANGED
|
@@ -12,8 +12,8 @@ import useAntdTable, { SELECTION_ALL, CURRENT_PAGE, UNCHECK_ALL } from "./hooks/
|
|
|
12
12
|
import { BaseTable, DraggableTable } from "./components/RcTable";
|
|
13
13
|
import { formatColumn } from "./components/FormatColumn";
|
|
14
14
|
import empty from "../assets/empty.png";
|
|
15
|
-
import
|
|
16
|
-
import
|
|
15
|
+
import refreshSvg from "../assets/refresh.svg";
|
|
16
|
+
import settingsSvg from "../assets/settings.svg";
|
|
17
17
|
import { filterVisibleColumns, getColumnDataIndex, getRowKey } from "./utils";
|
|
18
18
|
import {
|
|
19
19
|
baseStorage,
|
|
@@ -360,13 +360,13 @@ const ProTable = forwardRef((props, tableRef) => {
|
|
|
360
360
|
headerRender,
|
|
361
361
|
columnConfig,
|
|
362
362
|
resizeColumn,
|
|
363
|
-
resetSvg,
|
|
363
|
+
resetSvg: refreshSvg,
|
|
364
364
|
resetColumnWidth,
|
|
365
365
|
locale,
|
|
366
366
|
customColumns,
|
|
367
367
|
checkColumns,
|
|
368
368
|
handleColumnConfig,
|
|
369
|
-
customColumnSvg
|
|
369
|
+
customColumnSvg: settingsSvg
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
),
|
|
@@ -254,21 +254,36 @@
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
.column-config .right-actions
|
|
257
|
+
.column-config .right-actions .table-header-icon-btn {
|
|
258
|
+
display: inline-flex;
|
|
259
|
+
align-items: flex-end;
|
|
260
|
+
justify-content: center;
|
|
261
|
+
width: 28px;
|
|
262
|
+
height: 32px;
|
|
263
|
+
border: 0;
|
|
264
|
+
box-shadow: none;
|
|
265
|
+
padding: 0;
|
|
266
|
+
|
|
258
267
|
&:hover,
|
|
259
268
|
&:visited,
|
|
260
269
|
&:focus {
|
|
261
270
|
color: #333 !important;
|
|
262
|
-
background:
|
|
263
|
-
border:
|
|
271
|
+
background: transparent !important;
|
|
272
|
+
border: 0 !important;
|
|
264
273
|
}
|
|
265
|
-
}
|
|
266
274
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
275
|
+
&:focus-visible {
|
|
276
|
+
outline: 2px solid var(--zaui-brand, #006aff);
|
|
277
|
+
outline-offset: 2px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.anticon > * {
|
|
281
|
+
line-height: 0;
|
|
282
|
+
}
|
|
283
|
+
.anticon svg {
|
|
284
|
+
display: block;
|
|
285
|
+
width: 20px;
|
|
286
|
+
height: 20px;
|
|
272
287
|
}
|
|
273
288
|
}
|
|
274
289
|
|
|
@@ -424,25 +439,12 @@
|
|
|
424
439
|
.column-config {
|
|
425
440
|
display: flex;
|
|
426
441
|
justify-content: space-between;
|
|
427
|
-
margin-bottom: calc(var(--zaui-space-size-md;
|
|
442
|
+
margin-bottom: calc(var(--zaui-space-size-md; 14px) * var(--zaui-size; 1));
|
|
428
443
|
|
|
429
444
|
.right-actions {
|
|
430
445
|
display: flex;
|
|
446
|
+
gap: 0;
|
|
431
447
|
align-items: center;
|
|
432
|
-
|
|
433
|
-
> .@{ant-prefix}-btn {
|
|
434
|
-
&:hover,
|
|
435
|
-
&:visited,
|
|
436
|
-
&:focus {
|
|
437
|
-
color: unset;
|
|
438
|
-
background: unset;
|
|
439
|
-
border: 1px solid #d9d9d9;
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.custom-column-btn {
|
|
444
|
-
margin-left: var(--zaui-space-size-sm, 8px);
|
|
445
|
-
}
|
|
446
448
|
}
|
|
447
449
|
}
|
|
448
450
|
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="#343434" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
|
|
2
|
+
<path d="M8.25 2h3.5l.5 2 1.5.87 2-.57 1.75 3.03L16 8.8v2.4l1.5 1.47-1.75 3.03-2-.57-1.5.87-.5 2h-3.5l-.5-2-1.5-.87-2 .57-1.75-3.03L4 11.2V8.8L2.5 7.33 4.25 4.3l2 .57L7.75 4z" />
|
|
3
|
+
<circle cx="10" cy="10" r="2.5" />
|
|
4
|
+
</svg>
|