@zat-design/sisyphus-react 3.4.2-beta.3 → 3.4.2-beta.31

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 (132) hide show
  1. package/dist/index.esm.css +136 -64
  2. package/dist/less.esm.css +5025 -0
  3. package/dist/less.esm.js +3 -0
  4. package/es/ProConfigProvider/index.js +2 -1
  5. package/es/ProEditTable/components/RenderField/index.js +20 -10
  6. package/es/ProEditTable/index.js +3 -3
  7. package/es/ProEditTable/propsType.d.ts +1 -1
  8. package/es/ProEditTable/utils/config.js +5 -5
  9. package/es/ProEditTable/utils/index.js +67 -30
  10. package/es/ProEnum/components/Group.d.ts +2 -0
  11. package/es/ProEnum/components/Group.js +26 -8
  12. package/es/ProEnum/index.js +4 -3
  13. package/es/ProEnum/style/index.less +12 -3
  14. package/es/ProForm/components/combination/FormList/index.js +4 -2
  15. package/es/ProForm/components/combination/Group/index.js +11 -4
  16. package/es/ProForm/components/combination/Group/propsType.d.ts +6 -0
  17. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  18. package/es/ProForm/components/render/Render.js +5 -2
  19. package/es/ProForm/components/render/RenderFields.d.ts +1 -1
  20. package/es/ProForm/components/render/RenderFields.js +4 -3
  21. package/es/ProForm/index.js +4 -4
  22. package/es/ProForm/propsType.d.ts +2 -1
  23. package/es/ProForm/style/index.less +17 -7
  24. package/es/ProForm/utils/{contrastOriginal.d.ts → diffOriginal.d.ts} +2 -1
  25. package/es/ProForm/utils/diffOriginal.js +61 -0
  26. package/es/ProForm/utils/index.d.ts +1 -1
  27. package/es/ProForm/utils/index.js +1 -1
  28. package/es/ProForm/utils/transformValue.js +2 -2
  29. package/es/ProForm/utils/useChanged.js +4 -3
  30. package/es/ProForm/utils/useListChanged.d.ts +1 -1
  31. package/es/ProForm/utils/useListChanged.js +5 -3
  32. package/es/ProForm/utils/valueType.d.ts +10 -5
  33. package/es/ProForm/utils/valueType.js +20 -10
  34. package/es/ProIcon/config/index.d.ts +2 -1
  35. package/es/ProIcon/config/index.js +191 -133
  36. package/es/ProIcon/index.d.ts +0 -1
  37. package/es/ProIcon/index.js +17 -36
  38. package/es/ProIcon/propsTypes.d.ts +2 -1
  39. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  40. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -1
  41. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
  42. package/es/ProLayout/components/Layout/Menu/style/index.less +2 -2
  43. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -5
  44. package/es/ProLayout/components/ProCollapse/index.js +22 -6
  45. package/es/ProLayout/components/ProCollapse/style/index.less +24 -27
  46. package/es/ProLayout/components/ProFooter/index.js +1 -1
  47. package/es/ProLayout/components/ProFooter/style/index.less +1 -1
  48. package/es/ProLayout/components/ProHeader/style/index.less +4 -3
  49. package/es/ProLayout/style/index.less +83 -5
  50. package/es/ProStep/components/Item/index.js +2 -1
  51. package/es/ProStep/style/index.less +71 -70
  52. package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
  53. package/es/ProTable/components/RenderColumn/index.js +3 -3
  54. package/es/ProTable/propsType.d.ts +1 -1
  55. package/es/ProTable/utils.js +9 -9
  56. package/es/ProTabs/style/index.less +3 -1
  57. package/es/ProTree/components/ProTreeSelect/index.js +5 -9
  58. package/es/assets/catalog.svg +30 -1
  59. package/es/assets/fold.svg +27 -0
  60. package/es/locale/en_US.d.ts +3 -0
  61. package/es/locale/en_US.js +3 -0
  62. package/es/locale/zh_CN.d.ts +3 -0
  63. package/es/locale/zh_CN.js +3 -0
  64. package/es/style/less.less +2 -0
  65. package/es/style/theme/antd.less +1 -2
  66. package/lib/ProConfigProvider/index.js +2 -1
  67. package/lib/ProEditTable/components/RenderField/index.js +20 -10
  68. package/lib/ProEditTable/index.js +3 -3
  69. package/lib/ProEditTable/propsType.d.ts +1 -1
  70. package/lib/ProEditTable/utils/config.js +5 -5
  71. package/lib/ProEditTable/utils/index.js +67 -30
  72. package/lib/ProEnum/components/Group.d.ts +2 -0
  73. package/lib/ProEnum/components/Group.js +26 -8
  74. package/lib/ProEnum/index.js +4 -3
  75. package/lib/ProEnum/style/index.less +12 -3
  76. package/lib/ProForm/components/combination/FormList/index.js +4 -2
  77. package/lib/ProForm/components/combination/Group/index.js +11 -4
  78. package/lib/ProForm/components/combination/Group/propsType.d.ts +6 -0
  79. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  80. package/lib/ProForm/components/render/Render.js +5 -2
  81. package/lib/ProForm/components/render/RenderFields.d.ts +1 -1
  82. package/lib/ProForm/components/render/RenderFields.js +4 -3
  83. package/lib/ProForm/index.js +4 -4
  84. package/lib/ProForm/propsType.d.ts +2 -1
  85. package/lib/ProForm/style/index.less +17 -7
  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/ProForm/utils/valueType.d.ts +10 -5
  95. package/lib/ProForm/utils/valueType.js +20 -10
  96. package/lib/ProIcon/config/index.d.ts +2 -1
  97. package/lib/ProIcon/config/index.js +191 -133
  98. package/lib/ProIcon/index.d.ts +0 -1
  99. package/lib/ProIcon/index.js +17 -37
  100. package/lib/ProIcon/propsTypes.d.ts +2 -1
  101. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  102. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +0 -1
  103. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +25 -20
  104. package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -2
  105. package/lib/ProLayout/components/ProCollapse/PropTypes.d.ts +5 -5
  106. package/lib/ProLayout/components/ProCollapse/index.js +20 -6
  107. package/lib/ProLayout/components/ProCollapse/style/index.less +24 -27
  108. package/lib/ProLayout/components/ProFooter/index.js +1 -1
  109. package/lib/ProLayout/components/ProFooter/style/index.less +1 -1
  110. package/lib/ProLayout/components/ProHeader/style/index.less +4 -3
  111. package/lib/ProLayout/style/index.less +83 -5
  112. package/lib/ProStep/components/Item/index.js +2 -1
  113. package/lib/ProStep/style/index.less +71 -70
  114. package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
  115. package/lib/ProTable/components/RenderColumn/index.js +3 -3
  116. package/lib/ProTable/propsType.d.ts +1 -1
  117. package/lib/ProTable/utils.js +9 -9
  118. package/lib/ProTabs/style/index.less +3 -1
  119. package/lib/ProTree/components/ProTreeSelect/index.js +5 -9
  120. package/lib/assets/catalog.svg +30 -1
  121. package/lib/assets/fold.svg +27 -0
  122. package/lib/locale/en_US.d.ts +3 -0
  123. package/lib/locale/en_US.js +3 -0
  124. package/lib/locale/zh_CN.d.ts +3 -0
  125. package/lib/locale/zh_CN.js +3 -0
  126. package/lib/style/less.less +2 -0
  127. package/lib/style/theme/antd.less +1 -2
  128. package/package.json +1 -1
  129. package/es/ProForm/utils/contrastOriginal.js +0 -24
  130. package/es/ProIcon/symbolIcon.js +0 -43
  131. package/lib/ProForm/utils/contrastOriginal.js +0 -30
  132. package/lib/ProIcon/symbolIcon.js +0 -45
@@ -2,18 +2,18 @@
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
3
 
4
4
  .pro-layout-sider-menu {
5
- width : 220px;
5
+ width: 220px;
6
6
  background: #fff;
7
7
 
8
8
  h2 {
9
9
  margin-bottom: 0;
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;
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
- color : var(--zaui-text);
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
- &~h2 {
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 : hidden;
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>.@{ant-prefix}-menu-item-only-child,
91
- &.@{ant-prefix}-menu-sub.@{ant-prefix}-menu-inline>.@{ant-prefix}-menu-item {
92
- padding-top : 10px;
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.5s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.5s;
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.25s ease;
132
+ transition: all 0.3s ease;
133
133
  }
134
134
 
135
135
  .pro-layout-menu .pro-layout-menu-collapsed:hover {
@@ -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
  */
@@ -11,6 +11,9 @@ var _jsxRuntime = require("react/jsx-runtime");
11
11
  var _antd = require("antd");
12
12
  var _icons = require("@ant-design/icons");
13
13
  var _classnames = _interopRequireDefault(require("classnames"));
14
+ var _reactSvg = require("react-svg");
15
+ var _lodash = require("lodash");
16
+ var _fold = _interopRequireDefault(require("../../../assets/fold.svg"));
14
17
  var Panel = _antd.Collapse.Panel;
15
18
  var ProCollapse = function ProCollapse(props) {
16
19
  var title = props.title,
@@ -30,13 +33,11 @@ var ProCollapse = function ProCollapse(props) {
30
33
  _props$folding = props.folding,
31
34
  folding = _props$folding === void 0 ? false : _props$folding,
32
35
  collapseProps = props.collapseProps,
33
- _props$mode = props.mode,
34
- mode = _props$mode === void 0 ? 'default' : _props$mode,
35
36
  collapsePanelProps = props.collapsePanelProps,
36
- className = props.className;
37
+ className = props.className,
38
+ icon = props.icon;
37
39
  var cls = (0, _classnames.default)((0, _defineProperty2.default)({
38
40
  'pro-collapse': true,
39
- 'pro-collapse-card': mode === 'card',
40
41
  'pro-collapse-level2': level === '2',
41
42
  'pro-collapse-list': titleList === null || titleList === void 0 ? void 0 : titleList.length,
42
43
  'pro-collapse-no-title': !title
@@ -47,6 +48,7 @@ var ProCollapse = function ProCollapse(props) {
47
48
  children: children
48
49
  });
49
50
  var renderPanel = function renderPanel() {
51
+ var _title = title;
50
52
  if (level === '2') {
51
53
  var level2Panel = (0, _classnames.default)({
52
54
  'pro-collapse-level2-collapse': towCollapse,
@@ -58,7 +60,7 @@ var ProCollapse = function ProCollapse(props) {
58
60
  hasCollapse.collapsible = 'disabled';
59
61
  }
60
62
  return (0, _jsxRuntime.jsx)(Panel, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
61
- header: title,
63
+ header: _title,
62
64
  className: level2Panel,
63
65
  extra: (0, _jsxRuntime.jsx)("div", {
64
66
  className: "extra-info",
@@ -69,8 +71,20 @@ var ProCollapse = function ProCollapse(props) {
69
71
  children: content
70
72
  }), "1");
71
73
  }
74
+ if (icon) {
75
+ _title = (0, _jsxRuntime.jsxs)(_antd.Space, {
76
+ size: 8,
77
+ align: "center",
78
+ children: [(0, _jsxRuntime.jsx)("div", {
79
+ className: "pro-collapse-icon",
80
+ children: (0, _lodash.isBoolean)(icon) ? (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
81
+ src: _fold.default
82
+ }) : icon
83
+ }), title]
84
+ });
85
+ }
72
86
  return (0, _jsxRuntime.jsx)(Panel, (0, _objectSpread2.default)((0, _objectSpread2.default)({
73
- header: title,
87
+ header: _title,
74
88
  className: "pro-collapse-panel",
75
89
  extra: (0, _jsxRuntime.jsx)("div", {
76
90
  className: "extra-info",
@@ -2,34 +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;
19
- }
20
- .pro-collapse-panel{
21
- .@{ant-prefix}-collapse-header{
22
- border-radius: var(--zaui-border-radius, 8px) !important;
23
- }
24
-
5
+ .pro-collapse-icon{
6
+ max-width: 18px;
7
+ min-width: 16px;
8
+ img{
9
+ vertical-align: sub;
25
10
  }
26
11
  }
27
12
 
28
-
29
13
  &.pro-collapse-no-title {
30
14
  .@{ant-prefix}-collapse-header {
31
15
  display: none !important;
32
16
  }
17
+ .pro-collapse-level2{
18
+ .@{ant-prefix}-collapse-header {
19
+ display: block !important;
20
+ }
21
+ }
33
22
  }
34
23
 
35
24
  &.@{ant-prefix}-collapse {
@@ -51,7 +40,7 @@
51
40
  }
52
41
 
53
42
  .@{ant-prefix}-collapse-expand-icon {
54
- color: #c5c7cd;
43
+ color: #999;
55
44
  }
56
45
 
57
46
  &.@{ant-prefix}-collapse-borderless
@@ -73,16 +62,17 @@
73
62
  }
74
63
 
75
64
  &.pro-collapse-level2 {
76
- margin-bottom: 0;
77
65
  background: var(--zaui-base-bg, #ffffff);
78
-
66
+ .pro-collapse-panel{
67
+ margin-bottom: 0;
68
+ }
79
69
  .@{ant-prefix}-collapse-header {
80
70
  padding: 0 !important;
81
71
  background: var(--zaui-base-bg, #ffffff);
82
72
 
83
73
  .@{ant-prefix}-collapse-header-text {
84
74
  position: relative;
85
- padding-left: 12px;
75
+ padding-left: 15px;
86
76
  font-size: var(--zaui-font-size, 14px);
87
77
 
88
78
  &::before {
@@ -106,10 +96,14 @@
106
96
  }
107
97
 
108
98
  .pro-collapse-content {
109
- padding-top: var(--zaui-space-size-sm, 8px) !important;
99
+ padding: var(--zaui-space-size-sm, 8px) 0 !important;
110
100
  }
111
101
 
112
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
+ }
113
107
  .@{ant-prefix}-collapse-header {
114
108
  padding: 0 8px 6px !important;
115
109
  border-bottom: 1px solid #dee0e3;
@@ -163,13 +157,16 @@
163
157
  }
164
158
 
165
159
  &.pro-collapse-list {
160
+ .@{ant-prefix}-descriptions-view{
161
+ margin: 0 -8px;
162
+ }
166
163
  .@{ant-prefix}-descriptions-row > th,
167
164
  .@{ant-prefix}-descriptions-row > td {
168
165
  padding: var(--zaui-space-size-sm, 8px) 0;
169
166
  background: #fafafa;
170
167
 
171
168
  &.@{ant-prefix}-descriptions-item {
172
- padding-left: var(--zaui-space-size-md, 16px);
169
+ padding-left: 23px;
173
170
  }
174
171
  }
175
172
 
@@ -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 ? 101 : _props$zIndex,
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,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 {
@@ -101,11 +102,11 @@
101
102
  &.pro-header-fixed {
102
103
  position: sticky;
103
104
  z-index: 101;
104
- box-shadow: 0px 1px 2px 0px rgba(0, 55, 93, 0.1);
105
+ box-shadow: 0px 2px 4px 0px rgba(0, 55, 93, 0.2);
105
106
  }
106
107
 
107
108
  &.pro-header-shadow {
108
- box-shadow: 0px 1px 2px 0px rgba(0, 55, 93, 0.1);
109
+ box-shadow: 0px 2px 4px 0px rgba(0, 55, 93, 0.2);
109
110
  }
110
111
 
111
112
  .@{ant-prefix}-breadcrumb {
@@ -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 {
@@ -21,7 +21,76 @@
21
21
 
22
22
  // light模式
23
23
  &.pro-layout-light {
24
- .pro-layout-menu-collapsed {
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-space-size-sm, 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: #cacaca !important;
201
+ color: #999 !important;
133
202
  }
134
203
 
135
204
  .pro-layout-row .pro-layout-menu {
@@ -145,10 +214,17 @@
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: 16px;
222
+ }
148
223
  }
149
224
 
150
225
  .pro-layout-open-menu .@{ant-prefix}-menu-item:hover,
151
- .pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover {
226
+ .pro-layout-open-menu .@{ant-prefix}-menu-submenu-title:hover,
227
+ .pro-layout-open-menu .@{ant-prefix}-menu-item-selected{
152
228
  position: relative;
153
229
  background: transparent;
154
230
 
@@ -156,7 +232,8 @@
156
232
  position: absolute;
157
233
  left: var(--zaui-space-size-sm, 8px);
158
234
  width: calc(100% - 16px);
159
- height: 38px;
235
+ min-height: 38px;
236
+ height: 80%;
160
237
  background-color: var(--zaui-brand, #006aff);
161
238
  border-radius: var(--zaui-border-radius, 8px);
162
239
  opacity: 0.08;
@@ -165,6 +242,7 @@
165
242
  }
166
243
 
167
244
  .pro-layout-open-menu .@{ant-prefix}-menu-item-selected {
245
+ padding-right: 16px;
168
246
  &::after {
169
247
  display: none;
170
248
  }
@@ -192,7 +270,7 @@
192
270
  margin-top: 48px;
193
271
  margin-left: 48px;
194
272
  padding: 0 var(--zaui-space-size-lg, 32px);
195
- transition: all 0.3s ease-in-out;
273
+ transition: all 0.24s ease;
196
274
 
197
275
  &.pro-layout-has-notice {
198
276
  min-height: calc(100vh - 80px);
@@ -30,7 +30,8 @@ var _default = exports.default = function _default(_ref) {
30
30
  id: id,
31
31
  children: !register || collapse && collapseItem && title ? (0, _jsxRuntime.jsx)(_ProCollapse.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({
32
32
  id: id,
33
- title: title
33
+ title: title,
34
+ icon: true
34
35
  }, restProps), {}, {
35
36
  children: children
36
37
  })) : children