@zat-design/sisyphus-react 3.4.2-beta.2 → 3.4.2-beta.21

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.
Files changed (128) hide show
  1. package/dist/index.esm.css +257 -127
  2. package/dist/less.esm.css +5028 -0
  3. package/dist/less.esm.js +3 -0
  4. package/es/ProEditTable/components/RenderField/index.js +13 -15
  5. package/es/ProEditTable/index.js +3 -3
  6. package/es/ProEditTable/propsType.d.ts +1 -1
  7. package/es/ProEditTable/utils/config.js +5 -5
  8. package/es/ProEditTable/utils/index.js +67 -30
  9. package/es/ProEditTable/utils/tools.js +3 -1
  10. package/es/ProEnum/components/Group.d.ts +1 -0
  11. package/es/ProEnum/components/Group.js +21 -8
  12. package/es/ProEnum/index.js +4 -2
  13. package/es/ProEnum/style/index.less +12 -3
  14. package/es/ProForm/components/combination/Group/index.js +8 -9
  15. package/es/ProForm/components/combination/Group/propsType.d.ts +1 -0
  16. package/es/ProForm/components/combination/Group/style/index.less +4 -4
  17. package/es/ProForm/components/combination/Group/utils.d.ts +2 -0
  18. package/es/ProForm/components/combination/Group/utils.js +10 -0
  19. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  20. package/es/ProForm/components/render/Render.js +2 -2
  21. package/es/ProForm/components/render/RenderFields.d.ts +1 -1
  22. package/es/ProForm/components/render/RenderFields.js +2 -2
  23. package/es/ProForm/index.js +4 -4
  24. package/es/ProForm/propsType.d.ts +1 -1
  25. package/es/ProForm/style/index.less +16 -2
  26. package/es/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
  27. package/es/ProForm/utils/diffOriginal.js +61 -0
  28. package/es/ProForm/utils/index.d.ts +1 -1
  29. package/es/ProForm/utils/index.js +1 -1
  30. package/es/ProForm/utils/transformValue.js +2 -2
  31. package/es/ProForm/utils/useChanged.js +4 -3
  32. package/es/ProForm/utils/useListChanged.d.ts +1 -1
  33. package/es/ProForm/utils/useListChanged.js +5 -3
  34. package/es/ProIcon/index.d.ts +0 -1
  35. package/es/ProIcon/index.js +7 -29
  36. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  37. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
  38. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
  39. package/es/ProLayout/components/Layout/Menu/style/index.less +52 -56
  40. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -5
  41. package/es/ProLayout/components/ProCollapse/index.js +22 -6
  42. package/es/ProLayout/components/ProCollapse/style/index.less +24 -21
  43. package/es/ProLayout/components/ProFooter/index.js +1 -1
  44. package/es/ProLayout/components/ProFooter/style/index.less +1 -1
  45. package/es/ProLayout/components/ProHeader/style/index.less +2 -1
  46. package/es/ProLayout/style/index.less +176 -88
  47. package/es/ProStep/components/Item/index.js +2 -1
  48. package/es/ProStep/style/index.less +71 -70
  49. package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
  50. package/es/ProTable/components/RenderColumn/index.js +3 -3
  51. package/es/ProTable/propsType.d.ts +1 -1
  52. package/es/ProTable/utils.js +9 -9
  53. package/es/ProTabs/style/index.less +3 -1
  54. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  55. package/es/ProThemeTools/component/PrdTools/index.js +2 -2
  56. package/es/ProThemeTools/index.js +21 -28
  57. package/es/ProThemeTools/propsType.d.ts +1 -1
  58. package/es/ProThemeTools/style/index.less +25 -8
  59. package/es/assets/catalog.svg +30 -1
  60. package/es/assets/fold.svg +27 -0
  61. package/es/assets/setting.svg +14 -0
  62. package/es/style/less.less +2 -0
  63. package/es/style/theme/antd.less +0 -1
  64. package/lib/ProEditTable/components/RenderField/index.js +12 -14
  65. package/lib/ProEditTable/index.js +3 -3
  66. package/lib/ProEditTable/propsType.d.ts +1 -1
  67. package/lib/ProEditTable/utils/config.js +5 -5
  68. package/lib/ProEditTable/utils/index.js +67 -30
  69. package/lib/ProEditTable/utils/tools.js +3 -1
  70. package/lib/ProEnum/components/Group.d.ts +1 -0
  71. package/lib/ProEnum/components/Group.js +21 -8
  72. package/lib/ProEnum/index.js +4 -2
  73. package/lib/ProEnum/style/index.less +12 -3
  74. package/lib/ProForm/components/combination/Group/index.js +6 -7
  75. package/lib/ProForm/components/combination/Group/propsType.d.ts +1 -0
  76. package/lib/ProForm/components/combination/Group/style/index.less +4 -4
  77. package/lib/ProForm/components/combination/Group/utils.d.ts +2 -0
  78. package/lib/ProForm/components/combination/Group/utils.js +11 -1
  79. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  80. package/lib/ProForm/components/render/Render.js +2 -2
  81. package/lib/ProForm/components/render/RenderFields.d.ts +1 -1
  82. package/lib/ProForm/components/render/RenderFields.js +2 -2
  83. package/lib/ProForm/index.js +4 -4
  84. package/lib/ProForm/propsType.d.ts +1 -1
  85. package/lib/ProForm/style/index.less +16 -2
  86. package/lib/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
  87. package/lib/ProForm/utils/diffOriginal.js +68 -0
  88. package/lib/ProForm/utils/index.d.ts +1 -1
  89. package/lib/ProForm/utils/index.js +2 -2
  90. package/lib/ProForm/utils/transformValue.js +1 -1
  91. package/lib/ProForm/utils/useChanged.js +4 -3
  92. package/lib/ProForm/utils/useListChanged.d.ts +1 -1
  93. package/lib/ProForm/utils/useListChanged.js +5 -3
  94. package/lib/ProIcon/index.d.ts +0 -1
  95. package/lib/ProIcon/index.js +7 -30
  96. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  97. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +58 -55
  98. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
  99. package/lib/ProLayout/components/Layout/Menu/style/index.less +52 -56
  100. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -5
  101. package/lib/ProLayout/components/ProCollapse/index.js +20 -6
  102. package/lib/ProLayout/components/ProCollapse/style/index.less +24 -21
  103. package/lib/ProLayout/components/ProFooter/index.js +1 -1
  104. package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
  105. package/lib/ProLayout/components/ProHeader/style/index.less +2 -1
  106. package/lib/ProLayout/style/index.less +176 -88
  107. package/lib/ProStep/components/Item/index.js +2 -1
  108. package/lib/ProStep/style/index.less +71 -70
  109. package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
  110. package/lib/ProTable/components/RenderColumn/index.js +3 -3
  111. package/lib/ProTable/propsType.d.ts +1 -1
  112. package/lib/ProTable/utils.js +9 -9
  113. package/lib/ProTabs/style/index.less +3 -1
  114. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  115. package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
  116. package/lib/ProThemeTools/index.js +19 -27
  117. package/lib/ProThemeTools/propsType.d.ts +1 -1
  118. package/lib/ProThemeTools/style/index.less +25 -8
  119. package/lib/assets/catalog.svg +30 -1
  120. package/lib/assets/fold.svg +27 -0
  121. package/lib/assets/setting.svg +14 -0
  122. package/lib/style/less.less +2 -0
  123. package/lib/style/theme/antd.less +0 -1
  124. package/package.json +1 -1
  125. package/es/ProForm/utils/contrastOriginal.js +0 -24
  126. package/es/ProIcon/symbolIcon.js +0 -43
  127. package/lib/ProForm/utils/contrastOriginal.js +0 -30
  128. package/lib/ProIcon/symbolIcon.js +0 -45
@@ -1,36 +1,35 @@
1
1
  @root-entry-name: 'default';
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
- @import "../FoldMenu/style/index.less";
4
- @import "../OpenMenu/style/index.less";
5
- @import "../SideMenu/style/index.less";
3
+ @import '../FoldMenu/style/index.less';
4
+ @import '../OpenMenu/style/index.less';
5
+ @import '../SideMenu/style/index.less';
6
6
 
7
7
  /** 侧边栏 + 内容区 */
8
8
  .pro-layout-row {
9
9
  flex-direction: column;
10
10
 
11
-
12
11
  .pro-layout-menu-open {
13
- .pro-layout-arrow {
12
+ .pro-layout-arrow {
14
13
  transform: rotate(225deg);
15
14
  }
16
15
  }
17
16
 
18
17
  .pro-layout-arrow {
19
- width : 10px;
20
- height : 10px;
18
+ width: 10px;
19
+ height: 10px;
20
+ margin-left: -5px;
21
21
  background-color: transparent;
22
22
  /* 模块背景为透明 */
23
- border-color : #fff;
24
- border-style : solid;
25
- border-width : 2px 2px 0 0;
26
- margin-left : -5px;
27
- transform : rotate(45deg);
23
+ border-color: #fff;
24
+ border-style: solid;
25
+ border-width: 2px 2px 0 0;
26
+ transform: rotate(45deg);
28
27
  }
29
28
 
30
29
  &.pro-layout-menu-no-collapsed {
31
30
  .pro-layout-menu-fold-li {
32
- display : flex;
33
- align-items : center;
31
+ display: flex;
32
+ align-items: center;
34
33
  justify-content: center;
35
34
 
36
35
  div {
@@ -42,11 +41,10 @@
42
41
  }
43
42
 
44
43
  h2 {
45
- display : inline-block;
44
+ display: inline-block;
46
45
  white-space: nowrap;
47
- opacity : 0;
48
- transition : opacity 0.5s cubic-bezier(0.645, 0.045, 0.355, 1),
49
- color 0.5s;
46
+ opacity: 0;
47
+ transition: opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s;
50
48
  }
51
49
  }
52
50
  }
@@ -81,18 +79,18 @@
81
79
  }
82
80
 
83
81
  .pro-layout-menu {
84
- position : fixed;
85
- top : 48px;
86
- left : 0;
87
- z-index : 99;
88
- width : 48px;
89
- height : 100vh;
90
- min-height : 100%;
91
- padding : 0;
92
- overflow-x : hidden;
93
- overflow-y : auto;
82
+ position: fixed;
83
+ top: 48px;
84
+ left: 0;
85
+ z-index: 99;
86
+ width: 48px;
87
+ height: 100vh;
88
+ min-height: 100%;
89
+ padding: 0;
90
+ overflow-x: hidden;
91
+ overflow-y: auto;
94
92
  background-color: #1a202d;
95
- transition : background .3s, width .3s cubic-bezier(.2, 0, 0, 1) 0s;
93
+ transition: background 0.3s, width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;
96
94
 
97
95
  &.pro-layout-menu-open {
98
96
  width: 220px;
@@ -101,52 +99,50 @@
101
99
 
102
100
  /** 内容区 */
103
101
  .pro-layout-content {
104
- flex : auto;
102
+ z-index: 1;
103
+ flex: auto;
104
+ flex: auto;
105
+ min-height: calc(100vh - 48px);
106
+ margin-top: 48px;
105
107
  margin-left: 48px;
106
- padding : 0 var(--zaui-space-size-md, 16px);
107
- transition : all 0.3s ease-in-out;
108
- z-index : 1;
109
- flex : auto;
110
- min-height : calc(100vh - 48px);
111
- margin-top : 48px;
108
+ padding: 0 var(--zaui-space-size-md, 16px);
109
+ transition: all 0.3s ease-in-out;
112
110
  }
113
111
 
114
-
115
-
116
112
  .pro-layout-menu.pro-layout-menu-open .pro-layout-menu-collapsed {
117
- left : 0;
118
- width: 220px
113
+ left: 0;
114
+ width: 220px;
119
115
  }
120
116
 
121
117
  .pro-layout-menu.pro-layout-menu-open .pro-layout-menu-collapsed img {
122
- transform: rotate(-180deg)
118
+ transform: rotate(-180deg);
123
119
  }
124
120
 
125
121
  .pro-layout-menu .pro-layout-menu-collapsed {
126
- position : fixed;
127
- bottom : 0;
128
- left : 0;
129
- z-index : 2;
130
- display : flex;
131
- align-items : center;
122
+ position: fixed;
123
+ bottom: 0;
124
+ left: 0;
125
+ z-index: 2;
126
+ display: flex;
127
+ align-items: center;
132
128
  justify-content: center;
133
- width : 48px;
134
- height : 48px;
135
- transition : all .25s ease;
136
- background : #292f3b
129
+ width: 48px;
130
+ height: 48px;
131
+ background: #292f3b;
132
+ transition: all 0.3s ease;
137
133
  }
138
134
 
139
135
  .pro-layout-menu .pro-layout-menu-collapsed:hover {
140
- background-color: rgba(185, 185, 189, .1)
136
+ background-color: rgba(185, 185, 189, 0.1);
141
137
  }
142
138
 
143
139
  .pro-layout-menu .pro-layout-menu-collapsed img {
144
140
  display: inline-block;
145
- width : 20px;
146
- height : 20px
141
+ width: 20px;
142
+ height: 20px;
147
143
  }
148
144
 
149
- .pro-layout-menu-open~.pro-layout-content {
150
- margin-left: 220px !important
145
+ .pro-layout-menu-open ~ .pro-layout-content {
146
+ margin-left: 220px !important;
151
147
  }
152
148
  }
@@ -15,16 +15,16 @@ export interface TitleListProps {
15
15
  }
16
16
  export interface ProCollapseProps {
17
17
  /**
18
- * @description 折叠头部模式
19
- * @default default
20
- */
21
- mode?: 'default' | 'card';
22
- /**
23
18
  * @description 折叠头部标题
24
19
  * @default -
25
20
  */
26
21
  title?: string | React.ReactNode;
27
22
  /**
23
+ * @description 标题前图标
24
+ * @default -
25
+ */
26
+ icon?: React.ReactNode | Boolean;
27
+ /**
28
28
  * @description 折叠头部多个标题
29
29
  * @default []
30
30
  */
@@ -1,5 +1,7 @@
1
1
  import "antd/es/descriptions/style";
2
2
  import _Descriptions from "antd/es/descriptions";
3
+ import "antd/es/space/style";
4
+ import _Space from "antd/es/space";
3
5
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
6
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
7
  import "antd/es/collapse/style";
@@ -7,6 +9,9 @@ import _Collapse from "antd/es/collapse";
7
9
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
10
  import { CaretRightOutlined } from '@ant-design/icons';
9
11
  import classNames from 'classnames';
12
+ import { ReactSVG } from 'react-svg';
13
+ import { isBoolean } from 'lodash';
14
+ import foldSvg from '../../../assets/fold.svg';
10
15
  var Panel = _Collapse.Panel;
11
16
  var ProCollapse = function ProCollapse(props) {
12
17
  var title = props.title,
@@ -26,13 +31,11 @@ var ProCollapse = function ProCollapse(props) {
26
31
  _props$folding = props.folding,
27
32
  folding = _props$folding === void 0 ? false : _props$folding,
28
33
  collapseProps = props.collapseProps,
29
- _props$mode = props.mode,
30
- mode = _props$mode === void 0 ? 'default' : _props$mode,
31
34
  collapsePanelProps = props.collapsePanelProps,
32
- className = props.className;
35
+ className = props.className,
36
+ icon = props.icon;
33
37
  var cls = classNames(_defineProperty({
34
38
  'pro-collapse': true,
35
- 'pro-collapse-card': mode === 'card',
36
39
  'pro-collapse-level2': level === '2',
37
40
  'pro-collapse-list': titleList === null || titleList === void 0 ? void 0 : titleList.length,
38
41
  'pro-collapse-no-title': !title
@@ -43,6 +46,7 @@ var ProCollapse = function ProCollapse(props) {
43
46
  children: children
44
47
  });
45
48
  var renderPanel = function renderPanel() {
49
+ var _title = title;
46
50
  if (level === '2') {
47
51
  var level2Panel = classNames({
48
52
  'pro-collapse-level2-collapse': towCollapse,
@@ -54,7 +58,7 @@ var ProCollapse = function ProCollapse(props) {
54
58
  hasCollapse.collapsible = 'disabled';
55
59
  }
56
60
  return _jsx(Panel, _objectSpread(_objectSpread(_objectSpread({
57
- header: title,
61
+ header: _title,
58
62
  className: level2Panel,
59
63
  extra: _jsx("div", {
60
64
  className: "extra-info",
@@ -65,8 +69,20 @@ var ProCollapse = function ProCollapse(props) {
65
69
  children: content
66
70
  }), "1");
67
71
  }
72
+ if (icon) {
73
+ _title = _jsxs(_Space, {
74
+ size: 8,
75
+ align: "center",
76
+ children: [_jsx("div", {
77
+ className: "pro-collapse-icon",
78
+ children: isBoolean(icon) ? _jsx(ReactSVG, {
79
+ src: foldSvg
80
+ }) : icon
81
+ }), title]
82
+ });
83
+ }
68
84
  return _jsx(Panel, _objectSpread(_objectSpread({
69
- header: title,
85
+ header: _title,
70
86
  className: "pro-collapse-panel",
71
87
  extra: _jsx("div", {
72
88
  className: "extra-info",
@@ -2,28 +2,23 @@
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;
5
+ .pro-collapse-icon{
6
+ max-width: 18px;
7
+ min-width: 16px;
8
+ img{
9
+ vertical-align: sub;
19
10
  }
20
11
  }
21
12
 
22
-
23
13
  &.pro-collapse-no-title {
24
14
  .@{ant-prefix}-collapse-header {
25
15
  display: none !important;
26
16
  }
17
+ .pro-collapse-level2{
18
+ .@{ant-prefix}-collapse-header {
19
+ display: block !important;
20
+ }
21
+ }
27
22
  }
28
23
 
29
24
  &.@{ant-prefix}-collapse {
@@ -45,7 +40,7 @@
45
40
  }
46
41
 
47
42
  .@{ant-prefix}-collapse-expand-icon {
48
- color: #c5c7cd;
43
+ color: #999;
49
44
  }
50
45
 
51
46
  &.@{ant-prefix}-collapse-borderless
@@ -67,16 +62,17 @@
67
62
  }
68
63
 
69
64
  &.pro-collapse-level2 {
70
- margin-bottom: 0;
71
65
  background: var(--zaui-base-bg, #ffffff);
72
-
66
+ .pro-collapse-panel{
67
+ margin-bottom: 0;
68
+ }
73
69
  .@{ant-prefix}-collapse-header {
74
70
  padding: 0 !important;
75
71
  background: var(--zaui-base-bg, #ffffff);
76
72
 
77
73
  .@{ant-prefix}-collapse-header-text {
78
74
  position: relative;
79
- padding-left: 12px;
75
+ padding-left: 15px;
80
76
  font-size: var(--zaui-font-size, 14px);
81
77
 
82
78
  &::before {
@@ -104,9 +100,13 @@
104
100
  }
105
101
 
106
102
  .pro-collapse-level2-collapse {
103
+ margin-bottom: var(--zaui-space-size-md, 16px);
104
+ &.@{ant-prefix}-collapse-item-active{
105
+ margin-bottom: 0;
106
+ }
107
107
  .@{ant-prefix}-collapse-header {
108
108
  padding: 0 8px 6px !important;
109
- border-bottom: 2px solid #dee0e3;
109
+ border-bottom: 1px solid #dee0e3;
110
110
  margin: 0 -8px;
111
111
  .@{ant-prefix}-collapse-arrow{
112
112
  right: 8px;
@@ -157,13 +157,16 @@
157
157
  }
158
158
 
159
159
  &.pro-collapse-list {
160
+ .@{ant-prefix}-descriptions-view{
161
+ margin: 0 -8px;
162
+ }
160
163
  .@{ant-prefix}-descriptions-row > th,
161
164
  .@{ant-prefix}-descriptions-row > td {
162
165
  padding: var(--zaui-space-size-sm, 8px) 0;
163
166
  background: #fafafa;
164
167
 
165
168
  &.@{ant-prefix}-descriptions-item {
166
- padding-left: var(--zaui-space-size-md, 16px);
169
+ padding-left: 23px;
167
170
  }
168
171
  }
169
172
 
@@ -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 ? 101 : _props$zIndex,
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,7 +5,7 @@
5
5
  position: fixed;
6
6
  right: 0;
7
7
  bottom: 0;
8
- z-index: 101;
8
+ z-index: 98;
9
9
  width: 100%;
10
10
  padding: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1))
11
11
  var(--zaui-space-size-lg, 32px);
@@ -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: #f7f9fc;
220
+ background: #fafafa;
220
221
  border-top: 1px solid #f2f2f2;
221
222
 
222
223
  &.pro-header-nav-open {