@zat-design/sisyphus-react 3.4.2-beta.6 → 3.4.2-beta.8
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 +84 -36
- package/es/ProEditTable/components/RenderField/index.js +2 -2
- package/es/ProEditTable/utils/index.js +35 -21
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -1
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/es/ProLayout/components/Layout/Menu/style/index.less +2 -2
- package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -5
- package/es/ProLayout/components/ProCollapse/index.js +0 -3
- package/es/ProLayout/components/ProCollapse/style/index.less +9 -27
- package/es/ProLayout/components/ProFooter/index.js +1 -1
- package/es/ProLayout/components/ProFooter/style/index.less +1 -1
- package/es/ProLayout/components/ProHeader/style/index.less +2 -1
- package/es/ProLayout/style/index.less +80 -4
- package/es/style/theme/antd.less +0 -1
- package/lib/ProEditTable/components/RenderField/index.js +1 -1
- package/lib/ProEditTable/utils/index.js +35 -21
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -1
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
- package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -2
- package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +0 -5
- package/lib/ProLayout/components/ProCollapse/index.js +0 -3
- package/lib/ProLayout/components/ProCollapse/style/index.less +9 -27
- package/lib/ProLayout/components/ProFooter/index.js +1 -1
- package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
- package/lib/ProLayout/components/ProHeader/style/index.less +2 -1
- package/lib/ProLayout/style/index.less +80 -4
- package/lib/style/theme/antd.less +0 -1
- package/package.json +1 -1
package/dist/index.esm.css
CHANGED
|
@@ -398,9 +398,6 @@
|
|
|
398
398
|
.pro-layout-open-menu .ant-menu-submenu:hover > .ant-menu-submenu-title > .ant-menu-submenu-expand-icon {
|
|
399
399
|
color: #fff;
|
|
400
400
|
}
|
|
401
|
-
.pro-layout-open-menu .ant-menu-item-selected {
|
|
402
|
-
background: #000 !important;
|
|
403
|
-
}
|
|
404
401
|
.pro-layout-open-menu .ant-menu-item-selected .ant-menu-title-content h2 {
|
|
405
402
|
font-weight: bold !important;
|
|
406
403
|
}
|
|
@@ -447,11 +444,16 @@
|
|
|
447
444
|
overflow-x: hidden;
|
|
448
445
|
overflow-y: auto;
|
|
449
446
|
}
|
|
447
|
+
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu .ant-menu-item-only-child .ant-menu-title-content .pro-layout-open-menu-lv1 h2 {
|
|
448
|
+
padding-right: 0;
|
|
449
|
+
}
|
|
450
450
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu .ant-menu-title-content div h2 {
|
|
451
|
-
color: var(--zaui-text);
|
|
452
451
|
padding: 0;
|
|
452
|
+
padding-right: 12px;
|
|
453
|
+
color: var(--zaui-text);
|
|
453
454
|
}
|
|
454
455
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu .ant-menu-title-content .pro-layout-open-menu-lv1 h2 {
|
|
456
|
+
padding-right: 26px;
|
|
455
457
|
color: var(--zaui-text);
|
|
456
458
|
font-weight: 500;
|
|
457
459
|
}
|
|
@@ -465,8 +467,8 @@
|
|
|
465
467
|
margin-left: var(--zaui-space-size-md, 16px);
|
|
466
468
|
}
|
|
467
469
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu .pro-layout-icon {
|
|
468
|
-
fill: currentColor;
|
|
469
470
|
color: var(--zaui-text, #343434) !important;
|
|
471
|
+
fill: currentColor;
|
|
470
472
|
}
|
|
471
473
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu.ant-menu-sub {
|
|
472
474
|
overflow: hidden;
|
|
@@ -474,8 +476,8 @@
|
|
|
474
476
|
}
|
|
475
477
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu .ant-menu-submenu-title:hover,
|
|
476
478
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu .ant-menu-item:hover {
|
|
477
|
-
background-color: #f2f2f2;
|
|
478
479
|
color: #fff;
|
|
480
|
+
background-color: #f2f2f2;
|
|
479
481
|
}
|
|
480
482
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu .ant-menu-item {
|
|
481
483
|
margin: 0;
|
|
@@ -486,9 +488,9 @@
|
|
|
486
488
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu .ant-menu-submenu-title,
|
|
487
489
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu.ant-menu-root > .ant-menu-item-only-child,
|
|
488
490
|
.pro-layout-sider-menu .pro-layout-open-menu.pro-layout-sider-menu-list .ant-menu.ant-menu-sub.ant-menu-inline > .ant-menu-item {
|
|
491
|
+
min-height: 40px;
|
|
489
492
|
padding-top: 10px;
|
|
490
493
|
padding-bottom: 10px;
|
|
491
|
-
min-height: 40px;
|
|
492
494
|
}
|
|
493
495
|
/** 侧边栏 + 内容区 */
|
|
494
496
|
.pro-layout-row {
|
|
@@ -539,8 +541,8 @@
|
|
|
539
541
|
display: inline-block;
|
|
540
542
|
white-space: nowrap;
|
|
541
543
|
opacity: 0;
|
|
542
|
-
-webkit-transition: opacity 0.
|
|
543
|
-
transition: opacity 0.
|
|
544
|
+
-webkit-transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;
|
|
545
|
+
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;
|
|
544
546
|
}
|
|
545
547
|
.pro-layout-row.pro-layout-menu-collapsed .pro-layout-content {
|
|
546
548
|
margin-left: 220px !important;
|
|
@@ -620,8 +622,8 @@
|
|
|
620
622
|
width: 48px;
|
|
621
623
|
height: 48px;
|
|
622
624
|
background: #292f3b;
|
|
623
|
-
-webkit-transition: all 0.
|
|
624
|
-
transition: all 0.
|
|
625
|
+
-webkit-transition: all 0.3s ease;
|
|
626
|
+
transition: all 0.3s ease;
|
|
625
627
|
}
|
|
626
628
|
.pro-layout-row .pro-layout-menu .pro-layout-menu-collapsed:hover {
|
|
627
629
|
background-color: rgba(185, 185, 189, 0.1);
|
|
@@ -673,22 +675,6 @@
|
|
|
673
675
|
width: 12px;
|
|
674
676
|
margin-right: 0;
|
|
675
677
|
}
|
|
676
|
-
.pro-collapse.pro-collapse-card {
|
|
677
|
-
border-radius: var(--zaui-border-radius, 8px);
|
|
678
|
-
}
|
|
679
|
-
.pro-collapse.pro-collapse-card.pro-collapse-no-title .pro-collapse-content {
|
|
680
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
681
|
-
}
|
|
682
|
-
.pro-collapse.pro-collapse-card .ant-collapse-header {
|
|
683
|
-
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
684
|
-
}
|
|
685
|
-
.pro-collapse.pro-collapse-card .pro-collapse-content {
|
|
686
|
-
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
687
|
-
padding-bottom: var(--zaui-space-size-sm, 8px) !important;
|
|
688
|
-
}
|
|
689
|
-
.pro-collapse.pro-collapse-card .pro-collapse-panel .ant-collapse-header {
|
|
690
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
691
|
-
}
|
|
692
678
|
.pro-collapse.pro-collapse-no-title .ant-collapse-header {
|
|
693
679
|
display: none !important;
|
|
694
680
|
}
|
|
@@ -709,7 +695,7 @@
|
|
|
709
695
|
font-size: var(--zaui-font-size-lg, 16px);
|
|
710
696
|
}
|
|
711
697
|
.pro-collapse .ant-collapse-expand-icon {
|
|
712
|
-
color: #
|
|
698
|
+
color: #999;
|
|
713
699
|
}
|
|
714
700
|
.pro-collapse.ant-collapse-borderless .ant-collapse-item > .ant-collapse-content > .ant-collapse-content-box {
|
|
715
701
|
padding: 0;
|
|
@@ -724,9 +710,12 @@
|
|
|
724
710
|
background: var(--zaui-base-bg, #ffffff);
|
|
725
711
|
}
|
|
726
712
|
.pro-collapse.pro-collapse-level2 {
|
|
727
|
-
margin-
|
|
713
|
+
margin-top: var(--zaui-space-size-md, 16px);
|
|
728
714
|
background: var(--zaui-base-bg, #ffffff);
|
|
729
715
|
}
|
|
716
|
+
.pro-collapse.pro-collapse-level2 .pro-collapse-panel {
|
|
717
|
+
margin-bottom: 0;
|
|
718
|
+
}
|
|
730
719
|
.pro-collapse.pro-collapse-level2 .ant-collapse-header {
|
|
731
720
|
padding: 0 !important;
|
|
732
721
|
background: var(--zaui-base-bg, #ffffff);
|
|
@@ -785,6 +774,9 @@
|
|
|
785
774
|
.pro-collapse .ant-collapse-extra .extra-info {
|
|
786
775
|
margin-right: 24px;
|
|
787
776
|
}
|
|
777
|
+
.pro-collapse.pro-collapse-list .ant-descriptions-view {
|
|
778
|
+
margin: 0 -8px;
|
|
779
|
+
}
|
|
788
780
|
.pro-collapse.pro-collapse-list .ant-descriptions-row > th,
|
|
789
781
|
.pro-collapse.pro-collapse-list .ant-descriptions-row > td {
|
|
790
782
|
padding: var(--zaui-space-size-sm, 8px) 0;
|
|
@@ -792,7 +784,7 @@
|
|
|
792
784
|
}
|
|
793
785
|
.pro-collapse.pro-collapse-list .ant-descriptions-row > th.ant-descriptions-item,
|
|
794
786
|
.pro-collapse.pro-collapse-list .ant-descriptions-row > td.ant-descriptions-item {
|
|
795
|
-
padding-left:
|
|
787
|
+
padding-left: 20px;
|
|
796
788
|
}
|
|
797
789
|
.pro-collapse.pro-collapse-list .ant-descriptions-row td:first-child {
|
|
798
790
|
position: relative;
|
|
@@ -819,7 +811,7 @@
|
|
|
819
811
|
position: fixed;
|
|
820
812
|
right: 0;
|
|
821
813
|
bottom: 0;
|
|
822
|
-
z-index:
|
|
814
|
+
z-index: 98;
|
|
823
815
|
width: 100%;
|
|
824
816
|
padding: calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) var(--zaui-space-size-lg, 32px);
|
|
825
817
|
background: var(--zaui-base-bg, #ffffff);
|
|
@@ -846,6 +838,8 @@
|
|
|
846
838
|
.pro-header {
|
|
847
839
|
padding: 16px 0 0 0 !important;
|
|
848
840
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
841
|
+
-webkit-box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
|
|
842
|
+
box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
|
|
849
843
|
}
|
|
850
844
|
.pro-header.pro-header-no-back.pro-header-has-describe .pro-header-top {
|
|
851
845
|
padding-left: var(--zaui-space-size-md, 16px);
|
|
@@ -1051,7 +1045,7 @@
|
|
|
1051
1045
|
display: -webkit-flex;
|
|
1052
1046
|
display: -ms-flexbox;
|
|
1053
1047
|
display: flex;
|
|
1054
|
-
background: #
|
|
1048
|
+
background: #fafafa;
|
|
1055
1049
|
border-top: 1px solid #f2f2f2;
|
|
1056
1050
|
}
|
|
1057
1051
|
.pro-header .pro-header-nav.pro-header-nav-open .pro-header-fold .pro-header-fold-bg {
|
|
@@ -1201,6 +1195,55 @@
|
|
|
1201
1195
|
.pro-layout .pro-layout-menu-open .pro-layout-open-menu-lv1 h2 {
|
|
1202
1196
|
font-weight: bold;
|
|
1203
1197
|
}
|
|
1198
|
+
.pro-layout.pro-layout-light .pro-collapse {
|
|
1199
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
1200
|
+
}
|
|
1201
|
+
.pro-layout.pro-layout-light .pro-collapse.ant-collapse-borderless {
|
|
1202
|
+
background: #fff;
|
|
1203
|
+
}
|
|
1204
|
+
.pro-layout.pro-layout-light .pro-collapse.pro-collapse-no-title .pro-collapse-content {
|
|
1205
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
1206
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
1207
|
+
}
|
|
1208
|
+
.pro-layout.pro-layout-light .pro-collapse.pro-collapse-no-title .pro-header-no-describe {
|
|
1209
|
+
padding: 0 !important;
|
|
1210
|
+
}
|
|
1211
|
+
.pro-layout.pro-layout-light .pro-collapse .ant-collapse-item-active.pro-collapse-panel .ant-collapse-header {
|
|
1212
|
+
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
1213
|
+
}
|
|
1214
|
+
.pro-layout.pro-layout-light .pro-collapse .pro-collapse-content {
|
|
1215
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
1216
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
1217
|
+
}
|
|
1218
|
+
.pro-layout.pro-layout-light .pro-collapse .pro-collapse-content .pro-form {
|
|
1219
|
+
margin-bottom: 0;
|
|
1220
|
+
}
|
|
1221
|
+
.pro-layout.pro-layout-light .pro-collapse.pro-collapse-level2 .pro-collapse-panel .ant-collapse-header {
|
|
1222
|
+
background: #fff;
|
|
1223
|
+
}
|
|
1224
|
+
.pro-layout.pro-layout-light .pro-collapse.pro-collapse-level2 .pro-collapse-content {
|
|
1225
|
+
padding-bottom: var(--zaui-border-radius, 8px);
|
|
1226
|
+
}
|
|
1227
|
+
.pro-layout.pro-layout-light .pro-collapse .pro-collapse-panel .ant-collapse-header {
|
|
1228
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
1229
|
+
background: #E4F2FE;
|
|
1230
|
+
}
|
|
1231
|
+
.pro-layout.pro-layout-light .pro-header {
|
|
1232
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
1233
|
+
}
|
|
1234
|
+
.pro-layout.pro-layout-light .pro-header.pro-header-no-describe {
|
|
1235
|
+
padding: var(--zaui-space-size-md, 16px) !important;
|
|
1236
|
+
}
|
|
1237
|
+
.pro-layout.pro-layout-light .pro-header.pro-header-no-describe .pro-header-top {
|
|
1238
|
+
padding-bottom: 0;
|
|
1239
|
+
}
|
|
1240
|
+
.pro-layout.pro-layout-light .pro-header.pro-header-has-describe .pro-header-nav-open {
|
|
1241
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
1242
|
+
}
|
|
1243
|
+
.pro-layout.pro-layout-light .pro-layout-content {
|
|
1244
|
+
padding: 0 var(--zaui-space-size-md, 16px);
|
|
1245
|
+
background: #f3f5f8;
|
|
1246
|
+
}
|
|
1204
1247
|
.pro-layout.pro-layout-light .pro-layout-menu-open,
|
|
1205
1248
|
.pro-layout.pro-layout-light .pro-layout-menu {
|
|
1206
1249
|
-webkit-box-shadow: 2px 0px 5px 0px rgba(0, 55, 93, 0.1);
|
|
@@ -1291,7 +1334,7 @@
|
|
|
1291
1334
|
overflow-x: hidden !important;
|
|
1292
1335
|
}
|
|
1293
1336
|
.pro-layout.pro-layout-light .anticon-caret-down {
|
|
1294
|
-
color: #
|
|
1337
|
+
color: #999 !important;
|
|
1295
1338
|
}
|
|
1296
1339
|
.pro-layout.pro-layout-light .pro-layout-row .pro-layout-menu {
|
|
1297
1340
|
background: var(--zaui-base-bg, #ffffff);
|
|
@@ -1301,6 +1344,10 @@
|
|
|
1301
1344
|
}
|
|
1302
1345
|
.pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-title-content div h2 {
|
|
1303
1346
|
color: var(--zaui-text, #343434);
|
|
1347
|
+
padding-right: 26px;
|
|
1348
|
+
}
|
|
1349
|
+
.pro-layout.pro-layout-light .ant-menu-item-only-child .ant-menu-title-content div h2 {
|
|
1350
|
+
padding-right: 0;
|
|
1304
1351
|
}
|
|
1305
1352
|
.pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-item:hover,
|
|
1306
1353
|
.pro-layout.pro-layout-light .pro-layout-open-menu .ant-menu-submenu-title:hover {
|
|
@@ -1312,7 +1359,8 @@
|
|
|
1312
1359
|
position: absolute;
|
|
1313
1360
|
left: var(--zaui-space-size-sm, 8px);
|
|
1314
1361
|
width: calc(100% - 16px);
|
|
1315
|
-
height: 38px;
|
|
1362
|
+
min-height: 38px;
|
|
1363
|
+
height: 80%;
|
|
1316
1364
|
background-color: var(--zaui-brand, #006aff);
|
|
1317
1365
|
border-radius: var(--zaui-border-radius, 8px);
|
|
1318
1366
|
opacity: 0.08;
|
|
@@ -1340,8 +1388,8 @@
|
|
|
1340
1388
|
margin-top: 48px;
|
|
1341
1389
|
margin-left: 48px;
|
|
1342
1390
|
padding: 0 var(--zaui-space-size-lg, 32px);
|
|
1343
|
-
-webkit-transition: all 0.
|
|
1344
|
-
transition: all 0.
|
|
1391
|
+
-webkit-transition: all 0.24s ease;
|
|
1392
|
+
transition: all 0.24s ease;
|
|
1345
1393
|
}
|
|
1346
1394
|
.pro-layout .pro-layout-content.pro-layout-has-notice {
|
|
1347
1395
|
min-height: calc(100vh - 80px);
|
|
@@ -17,7 +17,7 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
17
17
|
/* eslint-disable prefer-const */
|
|
18
18
|
import React, { useCallback, useEffect } from 'react';
|
|
19
19
|
import classNames from 'classnames';
|
|
20
|
-
import { cloneDeep, isEqual, debounce, omit, isFunction } from 'lodash';
|
|
20
|
+
import { cloneDeep, isEqual, debounce, omit, isFunction, get } from 'lodash';
|
|
21
21
|
import valueTypeMap from '../../../ProForm/utils/valueType';
|
|
22
22
|
import transformMap from '../../utils/transform';
|
|
23
23
|
import { getNamePath, difference } from '../../utils/tools';
|
|
@@ -85,7 +85,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
85
85
|
type = ((_type = type) === null || _type === void 0 ? void 0 : (_type$replace = _type.replace) === null || _type$replace === void 0 ? void 0 : _type$replace.call(_type, type[0], type[0].toUpperCase())) || 'Input';
|
|
86
86
|
// 单行正在编辑时,临时生成一套formItem用来存储中间值,点击取消时候重置回上一次状态
|
|
87
87
|
var namePath = getNamePath(name, virtualKey);
|
|
88
|
-
var rowData = form.
|
|
88
|
+
var rowData = get(form.getFieldsValue(), [].concat(_toConsumableArray(namePath), [index])) || record || {};
|
|
89
89
|
var currentValue = dataIndex ? rowData === null || rowData === void 0 ? void 0 : rowData[dataIndex] : null;
|
|
90
90
|
// 第三个参数
|
|
91
91
|
var options = {
|
|
@@ -85,40 +85,54 @@ var getActionColumn = function getActionColumn(config) {
|
|
|
85
85
|
index = tools.calc(firstIndex, '+', index);
|
|
86
86
|
rowName = [].concat(_toConsumableArray(virtualRowName), [index]);
|
|
87
87
|
if (!(type === 'save')) {
|
|
88
|
-
_context.next =
|
|
88
|
+
_context.next = 12;
|
|
89
89
|
break;
|
|
90
90
|
}
|
|
91
|
-
_context.
|
|
91
|
+
_context.prev = 3;
|
|
92
|
+
_context.next = 6;
|
|
92
93
|
return customValidate(validateKeys, form, rowName);
|
|
93
|
-
case
|
|
94
|
+
case 6:
|
|
95
|
+
_context.next = 12;
|
|
96
|
+
break;
|
|
97
|
+
case 8:
|
|
98
|
+
_context.prev = 8;
|
|
99
|
+
_context.t0 = _context["catch"](3);
|
|
100
|
+
setTimeout(function () {
|
|
101
|
+
var errorDom = document.querySelector('.ant-form-item-has-error');
|
|
102
|
+
if (errorDom) {
|
|
103
|
+
errorDom.scrollIntoViewIfNeeded(true);
|
|
104
|
+
}
|
|
105
|
+
}, 0);
|
|
106
|
+
return _context.abrupt("return", Promise.reject(_context.t0));
|
|
107
|
+
case 12:
|
|
94
108
|
// 编辑状态使用自定义form值,非编辑状态直接使用行数据
|
|
95
109
|
_record = (_form$getFieldValue = form.getFieldValue(rowName)) !== null && _form$getFieldValue !== void 0 ? _form$getFieldValue : record; // 新增事件可以设置初始默认值,当做函数的出参导出
|
|
96
110
|
onEvent = onClick || onHandle;
|
|
97
|
-
_context.next =
|
|
111
|
+
_context.next = 16;
|
|
98
112
|
return onEvent === null || onEvent === void 0 ? void 0 : onEvent(_record, index, {
|
|
99
113
|
form: form,
|
|
100
114
|
namePath: virtualRowName
|
|
101
115
|
});
|
|
102
|
-
case
|
|
103
|
-
_context.
|
|
104
|
-
_context.
|
|
105
|
-
if (!_context.
|
|
106
|
-
_context.next =
|
|
116
|
+
case 16:
|
|
117
|
+
_context.t2 = _yield$onEvent = _context.sent;
|
|
118
|
+
_context.t1 = _context.t2 !== null;
|
|
119
|
+
if (!_context.t1) {
|
|
120
|
+
_context.next = 20;
|
|
107
121
|
break;
|
|
108
122
|
}
|
|
109
|
-
_context.
|
|
110
|
-
case
|
|
111
|
-
if (!_context.
|
|
112
|
-
_context.next =
|
|
123
|
+
_context.t1 = _yield$onEvent !== void 0;
|
|
124
|
+
case 20:
|
|
125
|
+
if (!_context.t1) {
|
|
126
|
+
_context.next = 24;
|
|
113
127
|
break;
|
|
114
128
|
}
|
|
115
|
-
_context.
|
|
116
|
-
_context.next =
|
|
129
|
+
_context.t3 = _yield$onEvent;
|
|
130
|
+
_context.next = 25;
|
|
117
131
|
break;
|
|
118
|
-
case
|
|
119
|
-
_context.
|
|
120
|
-
case
|
|
121
|
-
result = _context.
|
|
132
|
+
case 24:
|
|
133
|
+
_context.t3 = true;
|
|
134
|
+
case 25:
|
|
135
|
+
result = _context.t3;
|
|
122
136
|
if (result && type !== 'custom') {
|
|
123
137
|
actions[type](_objectSpread(_objectSpread({}, config), {}, {
|
|
124
138
|
rowName: [].concat(_toConsumableArray(name), [index]),
|
|
@@ -128,11 +142,11 @@ var getActionColumn = function getActionColumn(config) {
|
|
|
128
142
|
validateKeys: validateKeys
|
|
129
143
|
}));
|
|
130
144
|
}
|
|
131
|
-
case
|
|
145
|
+
case 27:
|
|
132
146
|
case "end":
|
|
133
147
|
return _context.stop();
|
|
134
148
|
}
|
|
135
|
-
}, _callee);
|
|
149
|
+
}, _callee, null, [[3, 8]]);
|
|
136
150
|
}));
|
|
137
151
|
return function (_x, _x2) {
|
|
138
152
|
return _ref.apply(this, arguments);
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
4
|
.pro-layout-sider-menu {
|
|
5
|
-
width
|
|
5
|
+
width: 220px;
|
|
6
6
|
background: #fff;
|
|
7
7
|
|
|
8
8
|
h2 {
|
|
9
9
|
margin-bottom: 0;
|
|
10
|
-
padding
|
|
11
|
-
color
|
|
12
|
-
color
|
|
13
|
-
font-weight
|
|
14
|
-
font-size
|
|
15
|
-
line-height
|
|
16
|
-
text-align
|
|
10
|
+
padding: 16px 16px 8px;
|
|
11
|
+
color: var(--zaui-text, #343434);
|
|
12
|
+
color: var(--zaui-text);
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
font-size: var(--zaui-font-size-lg, 16px);
|
|
15
|
+
line-height: inherit;
|
|
16
|
+
text-align: left;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.pro-layout-open-menu {
|
|
@@ -33,15 +33,22 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.@{ant-prefix}-menu {
|
|
36
|
+
.@{ant-prefix}-menu-item-only-child{
|
|
37
|
+
.@{ant-prefix}-menu-title-content .pro-layout-open-menu-lv1 h2{
|
|
38
|
+
padding-right: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
36
41
|
.@{ant-prefix}-menu-title-content {
|
|
37
42
|
div h2 {
|
|
38
|
-
color : var(--zaui-text);
|
|
39
43
|
padding: 0;
|
|
44
|
+
padding-right: 12px;
|
|
45
|
+
color: var(--zaui-text);
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
.pro-layout-open-menu-lv1 {
|
|
43
49
|
h2 {
|
|
44
|
-
|
|
50
|
+
padding-right: 26px;
|
|
51
|
+
color: var(--zaui-text);
|
|
45
52
|
font-weight: 500;
|
|
46
53
|
}
|
|
47
54
|
}
|
|
@@ -53,19 +60,19 @@
|
|
|
53
60
|
&.pro-layout-icon-empty {
|
|
54
61
|
display: none;
|
|
55
62
|
|
|
56
|
-
|
|
63
|
+
& ~ h2 {
|
|
57
64
|
margin-left: var(--zaui-space-size-md, 16px);
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
.pro-layout-icon {
|
|
63
|
-
fill : currentColor;
|
|
64
70
|
color: var(--zaui-text, #343434) !important;
|
|
71
|
+
fill: currentColor;
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
&.@{ant-prefix}-menu-sub {
|
|
68
|
-
overflow
|
|
75
|
+
overflow: hidden;
|
|
69
76
|
background: #fff;
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -74,8 +81,8 @@
|
|
|
74
81
|
|
|
75
82
|
.@{ant-prefix}-menu-submenu-title:hover,
|
|
76
83
|
.@{ant-prefix}-menu-item:hover {
|
|
84
|
+
color: #fff;
|
|
77
85
|
background-color: #f2f2f2;
|
|
78
|
-
color : #fff;
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
.@{ant-prefix}-menu-item {
|
|
@@ -87,15 +94,13 @@
|
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
.@{ant-prefix}-menu-submenu-title,
|
|
90
|
-
&.@{ant-prefix}-menu-root
|
|
91
|
-
&.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline
|
|
92
|
-
|
|
97
|
+
&.@{ant-prefix}-menu-root > .@{ant-prefix}-menu-item-only-child,
|
|
98
|
+
&.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline > .@{ant-prefix}-menu-item {
|
|
99
|
+
min-height: 40px;
|
|
100
|
+
padding-top: 10px;
|
|
93
101
|
padding-bottom: 10px;
|
|
94
|
-
min-height : 40px;
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
106
|
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
display: inline-block;
|
|
45
45
|
white-space: nowrap;
|
|
46
46
|
opacity: 0;
|
|
47
|
-
transition: opacity 0.
|
|
47
|
+
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
width: 48px;
|
|
130
130
|
height: 48px;
|
|
131
131
|
background: #292f3b;
|
|
132
|
-
transition: all 0.
|
|
132
|
+
transition: all 0.3s ease;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.pro-layout-menu .pro-layout-menu-collapsed:hover {
|
|
@@ -26,13 +26,10 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
26
26
|
_props$folding = props.folding,
|
|
27
27
|
folding = _props$folding === void 0 ? false : _props$folding,
|
|
28
28
|
collapseProps = props.collapseProps,
|
|
29
|
-
_props$mode = props.mode,
|
|
30
|
-
mode = _props$mode === void 0 ? 'default' : _props$mode,
|
|
31
29
|
collapsePanelProps = props.collapsePanelProps,
|
|
32
30
|
className = props.className;
|
|
33
31
|
var cls = classNames(_defineProperty({
|
|
34
32
|
'pro-collapse': true,
|
|
35
|
-
'pro-collapse-card': mode === 'card',
|
|
36
33
|
'pro-collapse-level2': level === '2',
|
|
37
34
|
'pro-collapse-list': titleList === null || titleList === void 0 ? void 0 : titleList.length,
|
|
38
35
|
'pro-collapse-no-title': !title
|
|
@@ -2,29 +2,6 @@
|
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
4
|
.pro-collapse {
|
|
5
|
-
|
|
6
|
-
&.pro-collapse-card {
|
|
7
|
-
border-radius: var(--zaui-border-radius, 8px);
|
|
8
|
-
&.pro-collapse-no-title{
|
|
9
|
-
.pro-collapse-content{
|
|
10
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.@{ant-prefix}-collapse-header{
|
|
14
|
-
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
15
|
-
}
|
|
16
|
-
.pro-collapse-content{
|
|
17
|
-
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
18
|
-
padding-bottom: var(--zaui-space-size-sm, 8px) !important;
|
|
19
|
-
}
|
|
20
|
-
.pro-collapse-panel{
|
|
21
|
-
.@{ant-prefix}-collapse-header{
|
|
22
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
5
|
|
|
29
6
|
&.pro-collapse-no-title {
|
|
30
7
|
.@{ant-prefix}-collapse-header {
|
|
@@ -51,7 +28,7 @@
|
|
|
51
28
|
}
|
|
52
29
|
|
|
53
30
|
.@{ant-prefix}-collapse-expand-icon {
|
|
54
|
-
color: #
|
|
31
|
+
color: #999;
|
|
55
32
|
}
|
|
56
33
|
|
|
57
34
|
&.@{ant-prefix}-collapse-borderless
|
|
@@ -73,9 +50,11 @@
|
|
|
73
50
|
}
|
|
74
51
|
|
|
75
52
|
&.pro-collapse-level2 {
|
|
76
|
-
margin-
|
|
53
|
+
margin-top: var(--zaui-space-size-md, 16px);
|
|
77
54
|
background: var(--zaui-base-bg, #ffffff);
|
|
78
|
-
|
|
55
|
+
.pro-collapse-panel{
|
|
56
|
+
margin-bottom: 0;
|
|
57
|
+
}
|
|
79
58
|
.@{ant-prefix}-collapse-header {
|
|
80
59
|
padding: 0 !important;
|
|
81
60
|
background: var(--zaui-base-bg, #ffffff);
|
|
@@ -163,13 +142,16 @@
|
|
|
163
142
|
}
|
|
164
143
|
|
|
165
144
|
&.pro-collapse-list {
|
|
145
|
+
.@{ant-prefix}-descriptions-view{
|
|
146
|
+
margin: 0 -8px;
|
|
147
|
+
}
|
|
166
148
|
.@{ant-prefix}-descriptions-row > th,
|
|
167
149
|
.@{ant-prefix}-descriptions-row > td {
|
|
168
150
|
padding: var(--zaui-space-size-sm, 8px) 0;
|
|
169
151
|
background: #fafafa;
|
|
170
152
|
|
|
171
153
|
&.@{ant-prefix}-descriptions-item {
|
|
172
|
-
padding-left:
|
|
154
|
+
padding-left: 20px;
|
|
173
155
|
}
|
|
174
156
|
}
|
|
175
157
|
|
|
@@ -12,7 +12,7 @@ var ProFooter = function ProFooter(props) {
|
|
|
12
12
|
className = props.className,
|
|
13
13
|
children = props.children,
|
|
14
14
|
_props$zIndex = props.zIndex,
|
|
15
|
-
zIndex = _props$zIndex === void 0 ?
|
|
15
|
+
zIndex = _props$zIndex === void 0 ? 99 : _props$zIndex,
|
|
16
16
|
_props$sideDom = props.sideDom,
|
|
17
17
|
sideDom = _props$sideDom === void 0 ? '.pro-layout-sider-nav' : _props$sideDom,
|
|
18
18
|
_props$contentDom = props.contentDom,
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
.pro-header {
|
|
6
6
|
padding: 16px 0 0 0 !important;
|
|
7
7
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
8
|
+
box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
|
|
8
9
|
|
|
9
10
|
&.pro-header-no-back.pro-header-has-describe {
|
|
10
11
|
.pro-header-top {
|
|
@@ -216,7 +217,7 @@
|
|
|
216
217
|
.pro-header-nav {
|
|
217
218
|
position: relative;
|
|
218
219
|
display: flex;
|
|
219
|
-
background: #
|
|
220
|
+
background: #fafafa;
|
|
220
221
|
border-top: 1px solid #f2f2f2;
|
|
221
222
|
|
|
222
223
|
&.pro-header-nav-open {
|
|
@@ -21,7 +21,76 @@
|
|
|
21
21
|
|
|
22
22
|
// light模式
|
|
23
23
|
&.pro-layout-light {
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
// pro-collapse折叠调整
|
|
26
|
+
.pro-collapse {
|
|
27
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
28
|
+
&.@{ant-prefix}-collapse-borderless{
|
|
29
|
+
background: #fff;
|
|
30
|
+
}
|
|
31
|
+
&.pro-collapse-no-title{
|
|
32
|
+
.pro-collapse-content{
|
|
33
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
34
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
35
|
+
}
|
|
36
|
+
.pro-header-no-describe{
|
|
37
|
+
padding: 0 !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.@{ant-prefix}-collapse-item-active{
|
|
41
|
+
&.pro-collapse-panel{
|
|
42
|
+
.@{ant-prefix}-collapse-header{
|
|
43
|
+
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pro-collapse-content{
|
|
49
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
50
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
51
|
+
|
|
52
|
+
.pro-form{
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&.pro-collapse-level2{
|
|
57
|
+
.pro-collapse-panel .@{ant-prefix}-collapse-header{
|
|
58
|
+
background: #fff;
|
|
59
|
+
}
|
|
60
|
+
.pro-collapse-content{
|
|
61
|
+
padding-bottom: var(--zaui-border-radius, 8px);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pro-collapse-panel{
|
|
66
|
+
.@{ant-prefix}-collapse-header{
|
|
67
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
68
|
+
background: #E4F2FE;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// pro-header调整
|
|
75
|
+
.pro-header{
|
|
76
|
+
&.pro-header-no-describe{
|
|
77
|
+
padding: var(--zaui-space-size-md, 16px) !important;
|
|
78
|
+
.pro-header-top{
|
|
79
|
+
padding-bottom: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&.pro-header-has-describe{
|
|
83
|
+
.pro-header-nav-open{
|
|
84
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
.pro-layout-content {
|
|
92
|
+
padding: 0 var(--zaui-space-size-md, 16px);
|
|
93
|
+
background: #f3f5f8;
|
|
25
94
|
}
|
|
26
95
|
|
|
27
96
|
.pro-layout-menu-open,
|
|
@@ -129,7 +198,7 @@
|
|
|
129
198
|
}
|
|
130
199
|
|
|
131
200
|
.anticon-caret-down {
|
|
132
|
-
color: #
|
|
201
|
+
color: #999 !important;
|
|
133
202
|
}
|
|
134
203
|
|
|
135
204
|
.pro-layout-row .pro-layout-menu {
|
|
@@ -145,6 +214,12 @@
|
|
|
145
214
|
|
|
146
215
|
.pro-layout-open-menu .@{ant-prefix}-menu-title-content div h2 {
|
|
147
216
|
color: var(--zaui-text, #343434);
|
|
217
|
+
padding-right: 26px;
|
|
218
|
+
}
|
|
219
|
+
.@{ant-prefix}-menu-item-only-child{
|
|
220
|
+
.@{ant-prefix}-menu-title-content div h2{
|
|
221
|
+
padding-right: 0;
|
|
222
|
+
}
|
|
148
223
|
}
|
|
149
224
|
|
|
150
225
|
.pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
|
|
@@ -156,7 +231,8 @@
|
|
|
156
231
|
position: absolute;
|
|
157
232
|
left: var(--zaui-space-size-sm, 8px);
|
|
158
233
|
width: calc(100% - 16px);
|
|
159
|
-
height: 38px;
|
|
234
|
+
min-height: 38px;
|
|
235
|
+
height: 80%;
|
|
160
236
|
background-color: var(--zaui-brand, #006aff);
|
|
161
237
|
border-radius: var(--zaui-border-radius, 8px);
|
|
162
238
|
opacity: 0.08;
|
|
@@ -192,7 +268,7 @@
|
|
|
192
268
|
margin-top: 48px;
|
|
193
269
|
margin-left: 48px;
|
|
194
270
|
padding: 0 var(--zaui-space-size-lg, 32px);
|
|
195
|
-
transition: all 0.
|
|
271
|
+
transition: all 0.24s ease;
|
|
196
272
|
|
|
197
273
|
&.pro-layout-has-notice {
|
|
198
274
|
min-height: calc(100vh - 80px);
|
package/es/style/theme/antd.less
CHANGED
|
@@ -88,7 +88,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
88
88
|
type = ((_type = type) === null || _type === void 0 ? void 0 : (_type$replace = _type.replace) === null || _type$replace === void 0 ? void 0 : _type$replace.call(_type, type[0], type[0].toUpperCase())) || 'Input';
|
|
89
89
|
// 单行正在编辑时,临时生成一套formItem用来存储中间值,点击取消时候重置回上一次状态
|
|
90
90
|
var namePath = (0, _tools.getNamePath)(name, virtualKey);
|
|
91
|
-
var rowData = form.
|
|
91
|
+
var rowData = (0, _lodash.get)(form.getFieldsValue(), [].concat((0, _toConsumableArray2.default)(namePath), [index])) || record || {};
|
|
92
92
|
var currentValue = dataIndex ? rowData === null || rowData === void 0 ? void 0 : rowData[dataIndex] : null;
|
|
93
93
|
// 第三个参数
|
|
94
94
|
var options = {
|
|
@@ -89,40 +89,54 @@ var getActionColumn = function getActionColumn(config) {
|
|
|
89
89
|
index = _utils.tools.calc(firstIndex, '+', index);
|
|
90
90
|
rowName = [].concat((0, _toConsumableArray2.default)(virtualRowName), [index]);
|
|
91
91
|
if (!(type === 'save')) {
|
|
92
|
-
_context.next =
|
|
92
|
+
_context.next = 12;
|
|
93
93
|
break;
|
|
94
94
|
}
|
|
95
|
-
_context.
|
|
95
|
+
_context.prev = 3;
|
|
96
|
+
_context.next = 6;
|
|
96
97
|
return (0, _tools.customValidate)(validateKeys, form, rowName);
|
|
97
|
-
case
|
|
98
|
+
case 6:
|
|
99
|
+
_context.next = 12;
|
|
100
|
+
break;
|
|
101
|
+
case 8:
|
|
102
|
+
_context.prev = 8;
|
|
103
|
+
_context.t0 = _context["catch"](3);
|
|
104
|
+
setTimeout(function () {
|
|
105
|
+
var errorDom = document.querySelector('.ant-form-item-has-error');
|
|
106
|
+
if (errorDom) {
|
|
107
|
+
errorDom.scrollIntoViewIfNeeded(true);
|
|
108
|
+
}
|
|
109
|
+
}, 0);
|
|
110
|
+
return _context.abrupt("return", Promise.reject(_context.t0));
|
|
111
|
+
case 12:
|
|
98
112
|
// 编辑状态使用自定义form值,非编辑状态直接使用行数据
|
|
99
113
|
_record = (_form$getFieldValue = form.getFieldValue(rowName)) !== null && _form$getFieldValue !== void 0 ? _form$getFieldValue : record; // 新增事件可以设置初始默认值,当做函数的出参导出
|
|
100
114
|
onEvent = onClick || onHandle;
|
|
101
|
-
_context.next =
|
|
115
|
+
_context.next = 16;
|
|
102
116
|
return onEvent === null || onEvent === void 0 ? void 0 : onEvent(_record, index, {
|
|
103
117
|
form: form,
|
|
104
118
|
namePath: virtualRowName
|
|
105
119
|
});
|
|
106
|
-
case
|
|
107
|
-
_context.
|
|
108
|
-
_context.
|
|
109
|
-
if (!_context.
|
|
110
|
-
_context.next =
|
|
120
|
+
case 16:
|
|
121
|
+
_context.t2 = _yield$onEvent = _context.sent;
|
|
122
|
+
_context.t1 = _context.t2 !== null;
|
|
123
|
+
if (!_context.t1) {
|
|
124
|
+
_context.next = 20;
|
|
111
125
|
break;
|
|
112
126
|
}
|
|
113
|
-
_context.
|
|
114
|
-
case
|
|
115
|
-
if (!_context.
|
|
116
|
-
_context.next =
|
|
127
|
+
_context.t1 = _yield$onEvent !== void 0;
|
|
128
|
+
case 20:
|
|
129
|
+
if (!_context.t1) {
|
|
130
|
+
_context.next = 24;
|
|
117
131
|
break;
|
|
118
132
|
}
|
|
119
|
-
_context.
|
|
120
|
-
_context.next =
|
|
133
|
+
_context.t3 = _yield$onEvent;
|
|
134
|
+
_context.next = 25;
|
|
121
135
|
break;
|
|
122
|
-
case
|
|
123
|
-
_context.
|
|
124
|
-
case
|
|
125
|
-
result = _context.
|
|
136
|
+
case 24:
|
|
137
|
+
_context.t3 = true;
|
|
138
|
+
case 25:
|
|
139
|
+
result = _context.t3;
|
|
126
140
|
if (result && type !== 'custom') {
|
|
127
141
|
_config.actions[type]((0, _objectSpread2.default)((0, _objectSpread2.default)({}, config), {}, {
|
|
128
142
|
rowName: [].concat((0, _toConsumableArray2.default)(name), [index]),
|
|
@@ -132,11 +146,11 @@ var getActionColumn = function getActionColumn(config) {
|
|
|
132
146
|
validateKeys: validateKeys
|
|
133
147
|
}));
|
|
134
148
|
}
|
|
135
|
-
case
|
|
149
|
+
case 27:
|
|
136
150
|
case "end":
|
|
137
151
|
return _context.stop();
|
|
138
152
|
}
|
|
139
|
-
}, _callee);
|
|
153
|
+
}, _callee, null, [[3, 8]]);
|
|
140
154
|
}));
|
|
141
155
|
return function (_x, _x2) {
|
|
142
156
|
return _ref.apply(this, arguments);
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
4
|
.pro-layout-sider-menu {
|
|
5
|
-
width
|
|
5
|
+
width: 220px;
|
|
6
6
|
background: #fff;
|
|
7
7
|
|
|
8
8
|
h2 {
|
|
9
9
|
margin-bottom: 0;
|
|
10
|
-
padding
|
|
11
|
-
color
|
|
12
|
-
color
|
|
13
|
-
font-weight
|
|
14
|
-
font-size
|
|
15
|
-
line-height
|
|
16
|
-
text-align
|
|
10
|
+
padding: 16px 16px 8px;
|
|
11
|
+
color: var(--zaui-text, #343434);
|
|
12
|
+
color: var(--zaui-text);
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
font-size: var(--zaui-font-size-lg, 16px);
|
|
15
|
+
line-height: inherit;
|
|
16
|
+
text-align: left;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.pro-layout-open-menu {
|
|
@@ -33,15 +33,22 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.@{ant-prefix}-menu {
|
|
36
|
+
.@{ant-prefix}-menu-item-only-child{
|
|
37
|
+
.@{ant-prefix}-menu-title-content .pro-layout-open-menu-lv1 h2{
|
|
38
|
+
padding-right: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
36
41
|
.@{ant-prefix}-menu-title-content {
|
|
37
42
|
div h2 {
|
|
38
|
-
color : var(--zaui-text);
|
|
39
43
|
padding: 0;
|
|
44
|
+
padding-right: 12px;
|
|
45
|
+
color: var(--zaui-text);
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
.pro-layout-open-menu-lv1 {
|
|
43
49
|
h2 {
|
|
44
|
-
|
|
50
|
+
padding-right: 26px;
|
|
51
|
+
color: var(--zaui-text);
|
|
45
52
|
font-weight: 500;
|
|
46
53
|
}
|
|
47
54
|
}
|
|
@@ -53,19 +60,19 @@
|
|
|
53
60
|
&.pro-layout-icon-empty {
|
|
54
61
|
display: none;
|
|
55
62
|
|
|
56
|
-
|
|
63
|
+
& ~ h2 {
|
|
57
64
|
margin-left: var(--zaui-space-size-md, 16px);
|
|
58
65
|
}
|
|
59
66
|
}
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
.pro-layout-icon {
|
|
63
|
-
fill : currentColor;
|
|
64
70
|
color: var(--zaui-text, #343434) !important;
|
|
71
|
+
fill: currentColor;
|
|
65
72
|
}
|
|
66
73
|
|
|
67
74
|
&.@{ant-prefix}-menu-sub {
|
|
68
|
-
overflow
|
|
75
|
+
overflow: hidden;
|
|
69
76
|
background: #fff;
|
|
70
77
|
}
|
|
71
78
|
|
|
@@ -74,8 +81,8 @@
|
|
|
74
81
|
|
|
75
82
|
.@{ant-prefix}-menu-submenu-title:hover,
|
|
76
83
|
.@{ant-prefix}-menu-item:hover {
|
|
84
|
+
color: #fff;
|
|
77
85
|
background-color: #f2f2f2;
|
|
78
|
-
color : #fff;
|
|
79
86
|
}
|
|
80
87
|
|
|
81
88
|
.@{ant-prefix}-menu-item {
|
|
@@ -87,15 +94,13 @@
|
|
|
87
94
|
}
|
|
88
95
|
|
|
89
96
|
.@{ant-prefix}-menu-submenu-title,
|
|
90
|
-
&.@{ant-prefix}-menu-root
|
|
91
|
-
&.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline
|
|
92
|
-
|
|
97
|
+
&.@{ant-prefix}-menu-root > .@{ant-prefix}-menu-item-only-child,
|
|
98
|
+
&.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline > .@{ant-prefix}-menu-item {
|
|
99
|
+
min-height: 40px;
|
|
100
|
+
padding-top: 10px;
|
|
93
101
|
padding-bottom: 10px;
|
|
94
|
-
min-height : 40px;
|
|
95
102
|
}
|
|
96
103
|
}
|
|
97
104
|
}
|
|
98
105
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
106
|
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
display: inline-block;
|
|
45
45
|
white-space: nowrap;
|
|
46
46
|
opacity: 0;
|
|
47
|
-
transition: opacity 0.
|
|
47
|
+
transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
width: 48px;
|
|
130
130
|
height: 48px;
|
|
131
131
|
background: #292f3b;
|
|
132
|
-
transition: all 0.
|
|
132
|
+
transition: all 0.3s ease;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.pro-layout-menu .pro-layout-menu-collapsed:hover {
|
|
@@ -30,13 +30,10 @@ var ProCollapse = function ProCollapse(props) {
|
|
|
30
30
|
_props$folding = props.folding,
|
|
31
31
|
folding = _props$folding === void 0 ? false : _props$folding,
|
|
32
32
|
collapseProps = props.collapseProps,
|
|
33
|
-
_props$mode = props.mode,
|
|
34
|
-
mode = _props$mode === void 0 ? 'default' : _props$mode,
|
|
35
33
|
collapsePanelProps = props.collapsePanelProps,
|
|
36
34
|
className = props.className;
|
|
37
35
|
var cls = (0, _classnames.default)((0, _defineProperty2.default)({
|
|
38
36
|
'pro-collapse': true,
|
|
39
|
-
'pro-collapse-card': mode === 'card',
|
|
40
37
|
'pro-collapse-level2': level === '2',
|
|
41
38
|
'pro-collapse-list': titleList === null || titleList === void 0 ? void 0 : titleList.length,
|
|
42
39
|
'pro-collapse-no-title': !title
|
|
@@ -2,29 +2,6 @@
|
|
|
2
2
|
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
3
|
|
|
4
4
|
.pro-collapse {
|
|
5
|
-
|
|
6
|
-
&.pro-collapse-card {
|
|
7
|
-
border-radius: var(--zaui-border-radius, 8px);
|
|
8
|
-
&.pro-collapse-no-title{
|
|
9
|
-
.pro-collapse-content{
|
|
10
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.@{ant-prefix}-collapse-header{
|
|
14
|
-
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
15
|
-
}
|
|
16
|
-
.pro-collapse-content{
|
|
17
|
-
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
18
|
-
padding-bottom: var(--zaui-space-size-sm, 8px) !important;
|
|
19
|
-
}
|
|
20
|
-
.pro-collapse-panel{
|
|
21
|
-
.@{ant-prefix}-collapse-header{
|
|
22
|
-
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
5
|
|
|
29
6
|
&.pro-collapse-no-title {
|
|
30
7
|
.@{ant-prefix}-collapse-header {
|
|
@@ -51,7 +28,7 @@
|
|
|
51
28
|
}
|
|
52
29
|
|
|
53
30
|
.@{ant-prefix}-collapse-expand-icon {
|
|
54
|
-
color: #
|
|
31
|
+
color: #999;
|
|
55
32
|
}
|
|
56
33
|
|
|
57
34
|
&.@{ant-prefix}-collapse-borderless
|
|
@@ -73,9 +50,11 @@
|
|
|
73
50
|
}
|
|
74
51
|
|
|
75
52
|
&.pro-collapse-level2 {
|
|
76
|
-
margin-
|
|
53
|
+
margin-top: var(--zaui-space-size-md, 16px);
|
|
77
54
|
background: var(--zaui-base-bg, #ffffff);
|
|
78
|
-
|
|
55
|
+
.pro-collapse-panel{
|
|
56
|
+
margin-bottom: 0;
|
|
57
|
+
}
|
|
79
58
|
.@{ant-prefix}-collapse-header {
|
|
80
59
|
padding: 0 !important;
|
|
81
60
|
background: var(--zaui-base-bg, #ffffff);
|
|
@@ -163,13 +142,16 @@
|
|
|
163
142
|
}
|
|
164
143
|
|
|
165
144
|
&.pro-collapse-list {
|
|
145
|
+
.@{ant-prefix}-descriptions-view{
|
|
146
|
+
margin: 0 -8px;
|
|
147
|
+
}
|
|
166
148
|
.@{ant-prefix}-descriptions-row > th,
|
|
167
149
|
.@{ant-prefix}-descriptions-row > td {
|
|
168
150
|
padding: var(--zaui-space-size-sm, 8px) 0;
|
|
169
151
|
background: #fafafa;
|
|
170
152
|
|
|
171
153
|
&.@{ant-prefix}-descriptions-item {
|
|
172
|
-
padding-left:
|
|
154
|
+
padding-left: 20px;
|
|
173
155
|
}
|
|
174
156
|
}
|
|
175
157
|
|
|
@@ -18,7 +18,7 @@ var ProFooter = function ProFooter(props) {
|
|
|
18
18
|
className = props.className,
|
|
19
19
|
children = props.children,
|
|
20
20
|
_props$zIndex = props.zIndex,
|
|
21
|
-
zIndex = _props$zIndex === void 0 ?
|
|
21
|
+
zIndex = _props$zIndex === void 0 ? 99 : _props$zIndex,
|
|
22
22
|
_props$sideDom = props.sideDom,
|
|
23
23
|
sideDom = _props$sideDom === void 0 ? '.pro-layout-sider-nav' : _props$sideDom,
|
|
24
24
|
_props$contentDom = props.contentDom,
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
.pro-header {
|
|
6
6
|
padding: 16px 0 0 0 !important;
|
|
7
7
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
8
|
+
box-shadow: 2px 3px 8px 0px rgba(0, 55, 93, 0.1);
|
|
8
9
|
|
|
9
10
|
&.pro-header-no-back.pro-header-has-describe {
|
|
10
11
|
.pro-header-top {
|
|
@@ -216,7 +217,7 @@
|
|
|
216
217
|
.pro-header-nav {
|
|
217
218
|
position: relative;
|
|
218
219
|
display: flex;
|
|
219
|
-
background: #
|
|
220
|
+
background: #fafafa;
|
|
220
221
|
border-top: 1px solid #f2f2f2;
|
|
221
222
|
|
|
222
223
|
&.pro-header-nav-open {
|
|
@@ -21,7 +21,76 @@
|
|
|
21
21
|
|
|
22
22
|
// light模式
|
|
23
23
|
&.pro-layout-light {
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
// pro-collapse折叠调整
|
|
26
|
+
.pro-collapse {
|
|
27
|
+
border-radius: var(--zaui-border-radius, 8px);
|
|
28
|
+
&.@{ant-prefix}-collapse-borderless{
|
|
29
|
+
background: #fff;
|
|
30
|
+
}
|
|
31
|
+
&.pro-collapse-no-title{
|
|
32
|
+
.pro-collapse-content{
|
|
33
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
34
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
35
|
+
}
|
|
36
|
+
.pro-header-no-describe{
|
|
37
|
+
padding: 0 !important;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.@{ant-prefix}-collapse-item-active{
|
|
41
|
+
&.pro-collapse-panel{
|
|
42
|
+
.@{ant-prefix}-collapse-header{
|
|
43
|
+
border-radius: var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px) 0 0 !important;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.pro-collapse-content{
|
|
49
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
50
|
+
padding: var(--zaui-space-size-md, 16px);
|
|
51
|
+
|
|
52
|
+
.pro-form{
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&.pro-collapse-level2{
|
|
57
|
+
.pro-collapse-panel .@{ant-prefix}-collapse-header{
|
|
58
|
+
background: #fff;
|
|
59
|
+
}
|
|
60
|
+
.pro-collapse-content{
|
|
61
|
+
padding-bottom: var(--zaui-border-radius, 8px);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.pro-collapse-panel{
|
|
66
|
+
.@{ant-prefix}-collapse-header{
|
|
67
|
+
border-radius: var(--zaui-border-radius, 8px) !important;
|
|
68
|
+
background: #E4F2FE;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// pro-header调整
|
|
75
|
+
.pro-header{
|
|
76
|
+
&.pro-header-no-describe{
|
|
77
|
+
padding: var(--zaui-space-size-md, 16px) !important;
|
|
78
|
+
.pro-header-top{
|
|
79
|
+
padding-bottom: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&.pro-header-has-describe{
|
|
83
|
+
.pro-header-nav-open{
|
|
84
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
border-radius: 0 0 var(--zaui-border-radius, 8px) var(--zaui-border-radius, 8px);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
.pro-layout-content {
|
|
92
|
+
padding: 0 var(--zaui-space-size-md, 16px);
|
|
93
|
+
background: #f3f5f8;
|
|
25
94
|
}
|
|
26
95
|
|
|
27
96
|
.pro-layout-menu-open,
|
|
@@ -129,7 +198,7 @@
|
|
|
129
198
|
}
|
|
130
199
|
|
|
131
200
|
.anticon-caret-down {
|
|
132
|
-
color: #
|
|
201
|
+
color: #999 !important;
|
|
133
202
|
}
|
|
134
203
|
|
|
135
204
|
.pro-layout-row .pro-layout-menu {
|
|
@@ -145,6 +214,12 @@
|
|
|
145
214
|
|
|
146
215
|
.pro-layout-open-menu .@{ant-prefix}-menu-title-content div h2 {
|
|
147
216
|
color: var(--zaui-text, #343434);
|
|
217
|
+
padding-right: 26px;
|
|
218
|
+
}
|
|
219
|
+
.@{ant-prefix}-menu-item-only-child{
|
|
220
|
+
.@{ant-prefix}-menu-title-content div h2{
|
|
221
|
+
padding-right: 0;
|
|
222
|
+
}
|
|
148
223
|
}
|
|
149
224
|
|
|
150
225
|
.pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
|
|
@@ -156,7 +231,8 @@
|
|
|
156
231
|
position: absolute;
|
|
157
232
|
left: var(--zaui-space-size-sm, 8px);
|
|
158
233
|
width: calc(100% - 16px);
|
|
159
|
-
height: 38px;
|
|
234
|
+
min-height: 38px;
|
|
235
|
+
height: 80%;
|
|
160
236
|
background-color: var(--zaui-brand, #006aff);
|
|
161
237
|
border-radius: var(--zaui-border-radius, 8px);
|
|
162
238
|
opacity: 0.08;
|
|
@@ -192,7 +268,7 @@
|
|
|
192
268
|
margin-top: 48px;
|
|
193
269
|
margin-left: 48px;
|
|
194
270
|
padding: 0 var(--zaui-space-size-lg, 32px);
|
|
195
|
-
transition: all 0.
|
|
271
|
+
transition: all 0.24s ease;
|
|
196
272
|
|
|
197
273
|
&.pro-layout-has-notice {
|
|
198
274
|
min-height: calc(100vh - 80px);
|