@zat-design/sisyphus-react 3.4.2-beta.13 → 3.4.2-beta.15

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.
@@ -732,7 +732,7 @@
732
732
  }
733
733
  .pro-collapse.pro-collapse-level2 .ant-collapse-header .ant-collapse-header-text {
734
734
  position: relative;
735
- padding-left: 12px;
735
+ padding-left: 15px;
736
736
  font-size: var(--zaui-font-size, 14px);
737
737
  }
738
738
  .pro-collapse.pro-collapse-level2 .ant-collapse-header .ant-collapse-header-text::before {
@@ -794,7 +794,7 @@
794
794
  }
795
795
  .pro-collapse.pro-collapse-list .ant-descriptions-row > th.ant-descriptions-item,
796
796
  .pro-collapse.pro-collapse-list .ant-descriptions-row > td.ant-descriptions-item {
797
- padding-left: 20px;
797
+ padding-left: 23px;
798
798
  }
799
799
  .pro-collapse.pro-collapse-list .ant-descriptions-row td:first-child {
800
800
  position: relative;
@@ -2109,7 +2109,6 @@ div.pro-textarea-view::after {
2109
2109
  background: transparent;
2110
2110
  }
2111
2111
  .ant-form-item-has-error .ant-picker-status-error ~ .forever-checkbox:not(.ant-input-disabled):not( .ant-input-borderless).ant-input {
2112
- background: var(--zaui-base-bg, #ffffff);
2113
2112
  border-color: var(--ant-error-color);
2114
2113
  }
2115
2114
  .ant-form-item-has-error .forever-checkbox:not(.ant-input-disabled):not( .ant-input-borderless).ant-input:focus {
@@ -2698,7 +2697,14 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
2698
2697
  background: var(--zaui-contract-bg, #fffaa1);
2699
2698
  border-radius: 4px;
2700
2699
  }
2701
- .pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > span,
2700
+ .pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-select-selector,
2701
+ .pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-affix-wrapper,
2702
+ .pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .pro-address .ant-input-disabled {
2703
+ background: var(--zaui-contract-bg, #fffaa1);
2704
+ }
2705
+ .pro-form .ant-form-item.pro-form-item-changed .ant-form-item-control-input-content > .ant-input-group .forever-checkbox {
2706
+ background: var(--zaui-contract-bg, #fffaa1);
2707
+ }
2702
2708
  .pro-form .ant-form-item.pro-form-item-changed .pro-form-view-container {
2703
2709
  padding: 4px 8px;
2704
2710
  background: var(--zaui-contract-bg, #fffaa1);
@@ -22,6 +22,7 @@ var Group = function Group(props) {
22
22
  } : _props$space,
23
23
  id = props.id,
24
24
  value = props.value,
25
+ isView = props.isView,
25
26
  onFieldChange = props.onFieldChange;
26
27
  var _ref = ProForm.useFieldProps() || {},
27
28
  names = _ref.names,
@@ -36,6 +37,7 @@ var Group = function Group(props) {
36
37
  return _objectSpread(_objectSpread({
37
38
  disabled: Boolean(props === null || props === void 0 ? void 0 : props.disabled)
38
39
  }, item), {}, {
40
+ isView: isView !== null && isView !== void 0 ? isView : item.isView,
39
41
  noStyle: (space === null || space === void 0 ? void 0 : space.compact) || (space === null || space === void 0 ? void 0 : space.separator),
40
42
  parentNames: id
41
43
  });
@@ -23,6 +23,7 @@ export interface GroupProps {
23
23
  value?: any;
24
24
  id?: string;
25
25
  disabled?: boolean | (() => void);
26
+ isView?: boolean;
26
27
  onFieldChange?: (value: any[] | null, record: any, { form, }: {
27
28
  form: FormInstance;
28
29
  }) => any;
@@ -6,7 +6,7 @@
6
6
  ~ .forever-checkbox:not(.@{ant-prefix}-input-disabled):not(
7
7
  .@{ant-prefix}-input-borderless
8
8
  ).@{ant-prefix}-input {
9
- background: @zaui-base-bg;
9
+ // background: @zaui-base-bg;
10
10
  border-color: var(--ant-error-color);
11
11
  }
12
12
  .forever-checkbox:not(.@{ant-prefix}-input-disabled):not(
@@ -147,8 +147,22 @@
147
147
  border-radius: 4px;
148
148
  }
149
149
 
150
- // 查看模式 修改容器样式
151
- .@{ant-prefix}-form-item-control-input-content > span, // 地址组件
150
+ // 地址组件
151
+ .@{ant-prefix}-form-item-control-input-content {
152
+ & > .pro-address {
153
+ .ant-select-selector,
154
+ .ant-input-affix-wrapper,
155
+ .ant-input-disabled {
156
+ background: @zaui-contract-bg;
157
+ }
158
+ }
159
+ & > .ant-input-group {
160
+ .forever-checkbox {
161
+ background: @zaui-contract-bg;
162
+ }
163
+ }
164
+ }
165
+
152
166
  .pro-form-view-container {
153
167
  padding: 4px 8px;
154
168
  background: @zaui-contract-bg;
@@ -73,7 +73,7 @@
73
73
 
74
74
  .@{ant-prefix}-collapse-header-text {
75
75
  position: relative;
76
- padding-left: 12px;
76
+ padding-left: 15px;
77
77
  font-size: var(--zaui-font-size, 14px);
78
78
 
79
79
  &::before {
@@ -163,7 +163,7 @@
163
163
  background: #fafafa;
164
164
 
165
165
  &.@{ant-prefix}-descriptions-item {
166
- padding-left: 20px;
166
+ padding-left: 23px;
167
167
  }
168
168
  }
169
169
 
@@ -26,6 +26,7 @@ var Group = function Group(props) {
26
26
  } : _props$space,
27
27
  id = props.id,
28
28
  value = props.value,
29
+ isView = props.isView,
29
30
  onFieldChange = props.onFieldChange;
30
31
  var _ref = _ProForm.default.useFieldProps() || {},
31
32
  names = _ref.names,
@@ -40,6 +41,7 @@ var Group = function Group(props) {
40
41
  return (0, _objectSpread2.default)((0, _objectSpread2.default)({
41
42
  disabled: Boolean(props === null || props === void 0 ? void 0 : props.disabled)
42
43
  }, item), {}, {
44
+ isView: isView !== null && isView !== void 0 ? isView : item.isView,
43
45
  noStyle: (space === null || space === void 0 ? void 0 : space.compact) || (space === null || space === void 0 ? void 0 : space.separator),
44
46
  parentNames: id
45
47
  });
@@ -23,6 +23,7 @@ export interface GroupProps {
23
23
  value?: any;
24
24
  id?: string;
25
25
  disabled?: boolean | (() => void);
26
+ isView?: boolean;
26
27
  onFieldChange?: (value: any[] | null, record: any, { form, }: {
27
28
  form: FormInstance;
28
29
  }) => any;
@@ -6,7 +6,7 @@
6
6
  ~ .forever-checkbox:not(.@{ant-prefix}-input-disabled):not(
7
7
  .@{ant-prefix}-input-borderless
8
8
  ).@{ant-prefix}-input {
9
- background: @zaui-base-bg;
9
+ // background: @zaui-base-bg;
10
10
  border-color: var(--ant-error-color);
11
11
  }
12
12
  .forever-checkbox:not(.@{ant-prefix}-input-disabled):not(
@@ -147,8 +147,22 @@
147
147
  border-radius: 4px;
148
148
  }
149
149
 
150
- // 查看模式 修改容器样式
151
- .@{ant-prefix}-form-item-control-input-content > span, // 地址组件
150
+ // 地址组件
151
+ .@{ant-prefix}-form-item-control-input-content {
152
+ & > .pro-address {
153
+ .ant-select-selector,
154
+ .ant-input-affix-wrapper,
155
+ .ant-input-disabled {
156
+ background: @zaui-contract-bg;
157
+ }
158
+ }
159
+ & > .ant-input-group {
160
+ .forever-checkbox {
161
+ background: @zaui-contract-bg;
162
+ }
163
+ }
164
+ }
165
+
152
166
  .pro-form-view-container {
153
167
  padding: 4px 8px;
154
168
  background: @zaui-contract-bg;
@@ -73,7 +73,7 @@
73
73
 
74
74
  .@{ant-prefix}-collapse-header-text {
75
75
  position: relative;
76
- padding-left: 12px;
76
+ padding-left: 15px;
77
77
  font-size: var(--zaui-font-size, 14px);
78
78
 
79
79
  &::before {
@@ -163,7 +163,7 @@
163
163
  background: #fafafa;
164
164
 
165
165
  &.@{ant-prefix}-descriptions-item {
166
- padding-left: 20px;
166
+ padding-left: 23px;
167
167
  }
168
168
  }
169
169
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.2-beta.13",
3
+ "version": "3.4.2-beta.15",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",