@zat-design/sisyphus-react 3.2.2 → 3.3.0

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 (170) hide show
  1. package/README.md +7 -0
  2. package/dist/index.esm.css +82 -37
  3. package/es/ProAction/index.less +3 -0
  4. package/es/ProDownload/index.js +9 -6
  5. package/es/ProDownload/style/index.less +5 -2
  6. package/es/ProDrawerForm/index.js +1 -15
  7. package/es/ProDrawerForm/style/index.less +76 -73
  8. package/es/ProEditLabel/style/index.less +12 -9
  9. package/es/ProEditTable/index.js +8 -4
  10. package/es/ProEditTable/style/index.less +57 -47
  11. package/es/ProEditTable/utils/config.d.ts +1 -1
  12. package/es/ProEditTable/utils/config.js +3 -3
  13. package/es/ProEnum/style/index.less +3 -0
  14. package/es/ProForm/components/base/DatePicker/index.js +0 -3
  15. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  16. package/es/ProForm/components/base/TextArea/index.less +4 -3
  17. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  18. package/es/ProForm/components/combination/Container/style/index.less +6 -3
  19. package/es/ProForm/components/combination/FormList/style/index.less +20 -24
  20. package/es/ProForm/components/combination/Group/style/index.less +18 -15
  21. package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  22. package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
  23. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
  24. package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  25. package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  26. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  27. package/es/ProForm/components/render/RenderFields.js +4 -5
  28. package/es/ProForm/style/index.less +46 -44
  29. package/es/ProIcon/style/index.less +4 -1
  30. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  31. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  32. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  33. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  34. package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
  35. package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
  36. package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
  37. package/es/ProLayout/components/ProFooter/style/index.less +11 -7
  38. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  39. package/es/ProLayout/components/ProHeader/style/index.less +12 -11
  40. package/es/ProLayout/style/index.less +10 -7
  41. package/es/ProSelect/index.less +3 -0
  42. package/es/ProStep/style/index.less +3 -0
  43. package/es/ProTable/index.js +15 -7
  44. package/es/ProTable/style/index.less +76 -54
  45. package/es/ProTable/utils.d.ts +1 -1
  46. package/es/ProTable/utils.js +38 -19
  47. package/es/ProTabs/style/index.less +25 -23
  48. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  49. package/es/ProThemeTools/component/PrdTools/index.js +7 -6
  50. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  51. package/es/ProThemeTools/index.d.ts +1 -1
  52. package/es/ProThemeTools/index.js +7 -2
  53. package/es/ProThemeTools/propsType.d.ts +4 -0
  54. package/es/ProThemeTools/style/index.less +6 -3
  55. package/es/ProThemeTools/utils/index.d.ts +1 -1
  56. package/es/ProThemeTools/utils/index.js +2 -1
  57. package/es/ProTooltip/style/index.less +3 -0
  58. package/es/ProTree/components/CloseIcon.js +2 -4
  59. package/es/ProTree/components/ProTree.js +27 -11
  60. package/es/ProTree/components/Tree.js +1 -1
  61. package/es/ProTree/propsType.d.ts +2 -2
  62. package/es/ProTree/style/index.less +29 -26
  63. package/es/ProTree/utils.d.ts +6 -0
  64. package/es/ProTree/utils.js +11 -0
  65. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  66. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  67. package/es/ProTreeModal/components/Trigger.js +79 -19
  68. package/es/ProTreeModal/index.js +38 -6
  69. package/es/ProTreeModal/propsType.d.ts +5 -2
  70. package/es/ProTreeModal/style/index.less +11 -8
  71. package/es/ProTreeSelect/index.js +6 -4
  72. package/es/ProTreeSelect/propsType.d.ts +2 -0
  73. package/es/ProTreeSelect/style/index.less +25 -22
  74. package/es/ProUpload/components/DragRender.js +7 -4
  75. package/es/ProUpload/components/ImageRender.js +5 -1
  76. package/es/ProUpload/index.js +11 -7
  77. package/es/ProUpload/style/index.less +13 -4
  78. package/es/ProViewer/index.js +3 -1
  79. package/es/ProViewer/style/index.less +6 -3
  80. package/es/locale/en_US.d.ts +4 -0
  81. package/es/locale/en_US.js +5 -1
  82. package/es/locale/zh_CN.d.ts +4 -0
  83. package/es/locale/zh_CN.js +6 -2
  84. package/es/style/core/compatible.less +6 -6
  85. package/es/style/theme/antd.less +272 -253
  86. package/lib/ProAction/index.less +3 -0
  87. package/lib/ProDownload/index.js +9 -6
  88. package/lib/ProDownload/style/index.less +5 -2
  89. package/lib/ProDrawerForm/index.js +0 -14
  90. package/lib/ProDrawerForm/style/index.less +76 -73
  91. package/lib/ProEditLabel/style/index.less +12 -9
  92. package/lib/ProEditTable/index.js +6 -2
  93. package/lib/ProEditTable/style/index.less +57 -47
  94. package/lib/ProEditTable/utils/config.d.ts +1 -1
  95. package/lib/ProEditTable/utils/config.js +3 -3
  96. package/lib/ProEnum/style/index.less +3 -0
  97. package/lib/ProForm/components/base/DatePicker/index.js +0 -3
  98. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  99. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  100. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  101. package/lib/ProForm/components/combination/Container/style/index.less +6 -3
  102. package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
  103. package/lib/ProForm/components/combination/Group/style/index.less +18 -15
  104. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  105. package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
  106. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
  107. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  108. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  109. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  110. package/lib/ProForm/components/render/RenderFields.js +4 -5
  111. package/lib/ProForm/style/index.less +46 -44
  112. package/lib/ProIcon/style/index.less +4 -1
  113. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  114. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  115. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  116. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  117. package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
  118. package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
  119. package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
  120. package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
  121. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  122. package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
  123. package/lib/ProLayout/style/index.less +10 -7
  124. package/lib/ProSelect/index.less +3 -0
  125. package/lib/ProStep/style/index.less +3 -0
  126. package/lib/ProTable/index.js +14 -6
  127. package/lib/ProTable/style/index.less +76 -54
  128. package/lib/ProTable/utils.d.ts +1 -1
  129. package/lib/ProTable/utils.js +38 -19
  130. package/lib/ProTabs/style/index.less +25 -23
  131. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  132. package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
  133. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  134. package/lib/ProThemeTools/index.d.ts +1 -1
  135. package/lib/ProThemeTools/index.js +7 -2
  136. package/lib/ProThemeTools/propsType.d.ts +4 -0
  137. package/lib/ProThemeTools/style/index.less +6 -3
  138. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  139. package/lib/ProThemeTools/utils/index.js +2 -1
  140. package/lib/ProTooltip/style/index.less +3 -0
  141. package/lib/ProTree/components/CloseIcon.js +2 -4
  142. package/lib/ProTree/components/ProTree.js +26 -10
  143. package/lib/ProTree/components/Tree.js +1 -1
  144. package/lib/ProTree/propsType.d.ts +2 -2
  145. package/lib/ProTree/style/index.less +29 -26
  146. package/lib/ProTree/utils.d.ts +6 -0
  147. package/lib/ProTree/utils.js +12 -0
  148. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  149. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  150. package/lib/ProTreeModal/components/Trigger.js +74 -18
  151. package/lib/ProTreeModal/index.js +38 -6
  152. package/lib/ProTreeModal/propsType.d.ts +5 -2
  153. package/lib/ProTreeModal/style/index.less +11 -8
  154. package/lib/ProTreeSelect/index.js +6 -4
  155. package/lib/ProTreeSelect/propsType.d.ts +2 -0
  156. package/lib/ProTreeSelect/style/index.less +25 -22
  157. package/lib/ProUpload/components/DragRender.js +7 -4
  158. package/lib/ProUpload/components/ImageRender.js +5 -1
  159. package/lib/ProUpload/index.js +11 -7
  160. package/lib/ProUpload/style/index.less +13 -4
  161. package/lib/ProViewer/index.js +4 -3
  162. package/lib/ProViewer/style/index.less +6 -3
  163. package/lib/locale/en_US.d.ts +4 -0
  164. package/lib/locale/en_US.js +5 -1
  165. package/lib/locale/zh_CN.d.ts +4 -0
  166. package/lib/locale/zh_CN.js +6 -2
  167. package/lib/style/core/compatible.less +6 -6
  168. package/lib/style/theme/antd.less +272 -253
  169. package/package.json +1 -1
  170. package/typings.d.ts +0 -6
@@ -20,6 +20,6 @@ export declare const actions: {
20
20
  save: ({ record, editingKeys, setState, form, rowName, virtualRowName, result }: any) => Promise<void>;
21
21
  cancel: ({ name, record, editingKeys, setState, form, virtualRowName, virtualKey }: any) => void;
22
22
  delete: ({ name, record, editingKeys, setState, form, virtualKey, onlyOneLineMsg }: any) => boolean;
23
- add: ({ result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, }: any) => Promise<boolean>;
23
+ add: ({ result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, prefixCls, }: any) => Promise<boolean>;
24
24
  mulDelete: ({ form, name, virtualKey, setState, selectedRowKeys, editingKeys }: any) => void;
25
25
  };
@@ -174,11 +174,11 @@ var actions = exports.actions = {
174
174
  add: function () {
175
175
  var _add = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_ref5) {
176
176
  var _tableRef$current$que, _tableRef$current$que2;
177
- var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, nextData, rowKey, addData, nextEditingKeys;
177
+ var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys;
178
178
  return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
179
179
  while (1) switch (_context2.prev = _context2.next) {
180
180
  case 0:
181
- result = _ref5.result, insertType = _ref5.insertType, editingKeys = _ref5.editingKeys, setState = _ref5.setState, form = _ref5.form, name = _ref5.name, virtualName = _ref5.virtualName, virtualKey = _ref5.virtualKey, onlyOneLineMsg = _ref5.onlyOneLineMsg, tableRef = _ref5.tableRef;
181
+ result = _ref5.result, insertType = _ref5.insertType, editingKeys = _ref5.editingKeys, setState = _ref5.setState, form = _ref5.form, name = _ref5.name, virtualName = _ref5.virtualName, virtualKey = _ref5.virtualKey, onlyOneLineMsg = _ref5.onlyOneLineMsg, tableRef = _ref5.tableRef, _ref5$prefixCls = _ref5.prefixCls, prefixCls = _ref5$prefixCls === void 0 ? 'ant' : _ref5$prefixCls;
182
182
  nextData = (0, _toConsumableArray2.default)(form.getFieldValue(name) || []); // 单行编辑时,需要先保存,才能进行下面的编辑
183
183
  if (!(virtualKey && editingKeys.length >= 1)) {
184
184
  _context2.next = 5;
@@ -197,7 +197,7 @@ var actions = exports.actions = {
197
197
  }
198
198
  insertType === 'before' ? nextData.unshift(addData) : nextData.push(addData);
199
199
  form.setFieldValue(name, nextData);
200
- (_tableRef$current$que = tableRef.current.querySelector('.ant-table-body')) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
200
+ (_tableRef$current$que = tableRef.current.querySelector(".".concat(prefixCls, "-table-body"))) === null || _tableRef$current$que === void 0 ? void 0 : (_tableRef$current$que2 = _tableRef$current$que.scrollTo) === null || _tableRef$current$que2 === void 0 ? void 0 : _tableRef$current$que2.call(_tableRef$current$que, {
201
201
  top: 10000,
202
202
  behavior: 'smooth'
203
203
  });
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-enum {
2
5
  &-tag-root {
3
6
  display: flex;
@@ -52,9 +52,6 @@ var DatePicker = function DatePicker(props) {
52
52
  var _rest = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, rest), {}, {
53
53
  showTime: rest.showTime === undefined && valueType === 'dateTime' || rest.showTime
54
54
  });
55
- if (_rest === null || _rest === void 0 ? void 0 : _rest.placeholder) {
56
- _rest === null || _rest === void 0 ? true : delete _rest.placeholder;
57
- }
58
55
  // 字符串时间格式兼容
59
56
  if ((0, _lodash.isString)(_rest.value)) {
60
57
  _rest.value = (0, _moment.default)(_rest.value);
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .switch-checkbox-view {
2
5
  display : flex;
3
6
  align-items: center;
@@ -1,7 +1,8 @@
1
- .pro-textarea {
2
- }
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
3
4
  div.pro-textarea-view {
4
- .ant-input-disabled {
5
+ .@{ant-prefix}-input-disabled {
5
6
  background: transparent !important;
6
7
  }
7
8
  &::after {
@@ -1,3 +1,6 @@
1
- .ant-picker {
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
4
+ .@{ant-prefix}-picker {
2
5
  display: flex;
3
6
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-container {
2
5
 
3
6
  &.pro-container-diy {
@@ -9,7 +12,7 @@
9
12
  margin-right : -12px;
10
13
  margin-bottom: -22px;
11
14
 
12
- &>.ant-col {
15
+ &>.@{ant-prefix}-col {
13
16
  padding-left : 12px;
14
17
  padding-right: 12px;
15
18
  }
@@ -24,13 +27,13 @@
24
27
  margin-left : -12px;
25
28
  margin-right : -12px;
26
29
 
27
- &>.ant-col {
30
+ &>.@{ant-prefix}-col {
28
31
  padding-left : 12px;
29
32
  padding-right: 12px;
30
33
  }
31
34
  }
32
35
 
33
- .pro-collapse.ant-collapse .pro-collapse-panel {
36
+ .pro-collapse.@{ant-prefix}-collapse .pro-collapse-panel {
34
37
  margin-bottom: 0;
35
38
  }
36
39
  }
@@ -1,28 +1,23 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-form-list-block-title {
2
- height : 14px;
3
- margin : @zaui-space-size-xs 0;
5
+ height: 14px;
6
+ margin: @zaui-space-size-xs 0;
4
7
  padding-left: @zaui-space-size-sm;
5
- font-weight : 600;
6
- line-height : 14px;
7
- border-left : 4px solid @zaui-brand;
8
+ font-weight: 600;
9
+ line-height: 14px;
10
+ border-left: 4px solid @zaui-brand;
8
11
  }
9
12
 
10
13
  .pro-form-list {
11
- display : flex;
14
+ display: flex;
12
15
  padding-bottom: 0;
13
16
 
14
- &.pro-form-list-last {
15
-
16
- .pro-form-list-drag-handle,
17
- .ant-form-item {
18
- margin-bottom: 0 !important;
19
- }
20
- }
21
-
22
17
  .single-delete {
23
- width : 14px !important;
18
+ width: 14px !important;
24
19
  height: 14px !important;
25
- color : @zaui-placeholder;
20
+ color: @zaui-placeholder;
26
21
 
27
22
  &:hover {
28
23
  color: @zaui-aide-text;
@@ -36,24 +31,25 @@
36
31
  .pro-form-list-action {
37
32
  padding-bottom: var(--zaui-height-size-md, 16px);
38
33
 
39
- &>.ant-space-item:first-child>.ant-btn-link {
34
+ & > .@{ant-prefix}-space-item:first-child > .@{ant-prefix}-btn-link {
40
35
  margin-left: @zaui-space-size-sm;
41
36
  }
42
37
  }
43
38
 
44
39
  .pro-form-list-drag-handle {
45
- display : flex;
46
- align-items : center;
47
- height : 32px;
40
+ display: flex;
41
+ align-items: center;
42
+ height: 32px;
48
43
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
49
- padding : 0;
44
+ padding: 0;
50
45
  padding-right: @zaui-space-size-sm;
51
- border : none;
46
+ border: none;
52
47
  }
53
48
  }
54
49
 
55
50
  .pro-form-list-line {
56
51
  padding: var(--zaui-height-size-md, 16px);
52
+ padding-bottom: 0;
57
53
 
58
54
  &:hover {
59
55
  background: rgba(0, 0, 0, 0.018);
@@ -62,11 +58,11 @@
62
58
 
63
59
  .pro-form-list-toolbar,
64
60
  .pro-form-list-action {
65
- .ant-btn-link {
61
+ .@{ant-prefix}-btn-link {
66
62
  padding: @zaui-space-size-xs 0;
67
63
  }
68
64
 
69
- .ant-btn-text:hover {
65
+ .@{ant-prefix}-btn-text:hover {
70
66
  background: transparent;
71
67
  }
72
68
  }
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .border-radius(@start-end: 0, @end-end: 0, @start-start: 0, @end-start: 0) {
2
5
  border-start-end-radius : @start-end;
3
6
  border-end-end-radius : @end-end;
@@ -19,38 +22,38 @@
19
22
  width: unset !important;
20
23
 
21
24
  &.pro-group-diy-width {
22
- .ant-space .ant-space-item {
25
+ .@{ant-prefix}-space .@{ant-prefix}-space-item {
23
26
  width: auto;
24
27
 
25
- .ant-space-item {
28
+ .@{ant-prefix}-space-item {
26
29
  width: auto;
27
30
  }
28
31
  }
29
32
  }
30
33
 
31
- .ant-space {
34
+ .@{ant-prefix}-space {
32
35
  width: 100%;
33
36
 
34
- .ant-space-item {
37
+ .@{ant-prefix}-space-item {
35
38
  width: 100%;
36
39
  }
37
40
 
38
- .ant-form-item {
41
+ .@{ant-prefix}-form-item {
39
42
 
40
43
  margin-bottom: 0 !important;
41
44
  }
42
45
  }
43
46
 
44
- .ant-form-item-label {
47
+ .@{ant-prefix}-form-item-label {
45
48
  display: none;
46
49
  }
47
50
 
48
- .ant-space-compact {
51
+ .@{ant-prefix}-space-compact {
49
52
  align-items: center;
50
53
  flex : auto;
51
54
  width : 100%;
52
55
 
53
- .ant-form-item {
56
+ .@{ant-prefix}-form-item {
54
57
  margin-bottom: 0 !important;
55
58
  }
56
59
 
@@ -62,8 +65,8 @@
62
65
  }
63
66
 
64
67
  // 定制内敛合并样式
65
- .ant-input-affix-wrapper,
66
- .ant-select {
68
+ .@{ant-prefix}-input-affix-wrapper,
69
+ .@{ant-prefix}-select {
67
70
  .border-radius(0, 0, 0, 0);
68
71
 
69
72
  &:nth-child(n+2) {
@@ -79,19 +82,19 @@
79
82
  }
80
83
  }
81
84
 
82
- .ant-select {
83
- .ant-select-selector {
85
+ .@{ant-prefix}-select {
86
+ .@{ant-prefix}-select-selector {
84
87
  .border-radius(0, 0, 0, 0);
85
88
  }
86
89
 
87
90
  &:first-child {
88
- .ant-select-selector {
91
+ .@{ant-prefix}-select-selector {
89
92
  .start-radius()
90
93
  }
91
94
  }
92
95
 
93
96
  &:last-child {
94
- .ant-select-selector {
97
+ .@{ant-prefix}-select-selector {
95
98
  .end-radius()
96
99
  }
97
100
  }
@@ -99,7 +102,7 @@
99
102
  }
100
103
 
101
104
  // 报错样式定制
102
- .ant-input-affix-wrapper-status-error~.group-separator {
105
+ .@{ant-prefix}-input-affix-wrapper-status-error~.group-separator {
103
106
  border-color: var(--ant-error-color);
104
107
  color : var(--ant-error-color);
105
108
  }
@@ -1,8 +1,11 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-address {
2
5
  display: flex;
3
6
  width: 100%;
4
7
 
5
- .ant-cascader {
8
+ .@{ant-prefix}-cascader {
6
9
  width: 50% !important;
7
10
 
8
11
  &.no-detail {
@@ -14,12 +17,12 @@
14
17
  width: 50%;
15
18
  margin-left: 2px;
16
19
 
17
- .ant-input-affix-wrapper {
20
+ .@{ant-prefix}-input-affix-wrapper {
18
21
  width: 100%;
19
22
  }
20
23
  }
21
24
 
22
- .ant-input-affix-wrapper {
25
+ .@{ant-prefix}-input-affix-wrapper {
23
26
  width: 50%;
24
27
  margin-left: 2px;
25
28
  }
@@ -1,4 +1,7 @@
1
- .pro-combination.ant-input-group.ant-input-group-compact {
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
4
+ .pro-combination.@{ant-prefix}-input-group.@{ant-prefix}-input-group-compact {
2
5
  display: flex;
3
6
 
4
7
  & > * {
@@ -9,7 +12,7 @@
9
12
  flex: none;
10
13
  }
11
14
 
12
- & > *:not(.ant-btn) {
15
+ & > *:not(.@{ant-prefix}-btn) {
13
16
  flex: 1;
14
17
  }
15
18
  }
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
5
  Object.defineProperty(exports, "__esModule", {
5
6
  value: true
@@ -13,6 +14,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
13
14
  var _ahooks = require("ahooks");
14
15
  var _lodash = require("lodash");
15
16
  var _react = require("react");
17
+ var _locale = _interopRequireWildcard(require("../../../../../locale"));
16
18
  var defaultPage = {
17
19
  pageNum: 1,
18
20
  pageSize: 10
@@ -136,7 +138,11 @@ function useRequestList(service, options, useRequestOptions) {
136
138
  onShowSizeChange: onChange,
137
139
  hideOnSinglePage: page.pageSize === 10,
138
140
  showTotal: function showTotal(total) {
139
- return "\u5171".concat(total, "\u6761");
141
+ var _locale$ProEditTable;
142
+ if (!total) return;
143
+ return (0, _locale.formatMessage)(_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProEditTable = _locale.default.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
144
+ total: total
145
+ });
140
146
  }
141
147
  } : false
142
148
  });
@@ -1,6 +1,9 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-modal-select,
2
5
  .pro-tree-modal {
3
- .ant-input-group-wrapper {
6
+ .@{ant-prefix}-input-group-wrapper {
4
7
  .close-icon {
5
8
  display: none;
6
9
  }
@@ -32,31 +35,49 @@
32
35
  }
33
36
  }
34
37
  &:hover {
35
- .ant-input,
36
- .ant-input-group-addon {
38
+ .@{ant-prefix}-input,
39
+ .@{ant-prefix}-input-group-addon {
37
40
  border-color: var(--zaui-brand-hover, #3387ff);
38
41
  }
42
+
43
+ .@{ant-prefix}-input-disabled {
44
+ border-color: #d9d9d9;
45
+ }
46
+
47
+ .@{ant-prefix}-input-disabled + span {
48
+ border-color: #d9d9d9;
49
+ .close-icon {
50
+ display: none;
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+ .pro-tree-modal-input-appoint {
57
+ .@{ant-prefix}-input {
58
+ border-top-left-radius: 0;
59
+ border-bottom-left-radius: 0;
39
60
  }
40
61
  }
41
62
 
42
- .ant-input-group-wrapper-status-error {
63
+ .@{ant-prefix}-input-group-wrapper-status-error {
43
64
  &:hover {
44
- .ant-input,
45
- .ant-input-group-addon {
65
+ .@{ant-prefix}-input,
66
+ .@{ant-prefix}-input-group-addon {
46
67
  border-color: var(--ant-error-color, #ff4d4f);
47
68
  }
48
69
  }
49
70
  }
50
- .ant-input-group {
51
- .ant-input {
71
+ .@{ant-prefix}-input-group {
72
+ .@{ant-prefix}-input {
52
73
  padding-right: 26px;
53
74
  }
54
75
  }
55
76
 
56
77
  .trigger-no-hover {
57
78
  &:hover {
58
- .ant-input,
59
- .ant-input-group-addon {
79
+ .@{ant-prefix}-input,
80
+ .@{ant-prefix}-input-group-addon {
60
81
  border-color: @zaui-form-control-line;
61
82
  }
62
83
  }
@@ -72,7 +93,7 @@
72
93
  fill: #c5c7cd;
73
94
  }
74
95
 
75
- .ant-input-group-addon {
96
+ .@{ant-prefix}-input-group-addon {
76
97
  padding: 0px var(--zaui-space-size-sm, 8px);
77
98
  background-color: var(--zaui-base-bg, #ffffff);
78
99
  cursor: pointer;
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-number-range {
2
5
 
3
6
  .range-split {
@@ -8,7 +11,7 @@
8
11
  text-align : center !important;
9
12
  }
10
13
 
11
- .ant-input-status-error {
14
+ .@{ant-prefix}-input-status-error {
12
15
  &.range-split {
13
16
  border-color: @zaui-danger;
14
17
  }
@@ -16,16 +19,16 @@
16
19
 
17
20
 
18
21
 
19
- & .ant-input-rtl.range-right {
22
+ & .@{ant-prefix}-input-rtl.range-right {
20
23
  border-right-width: 0;
21
24
  }
22
25
 
23
- & .ant-input-rtl.range-right:hover,
24
- & .ant-input-rtl.range-right:focus {
26
+ & .@{ant-prefix}-input-rtl.range-right:hover,
27
+ & .@{ant-prefix}-input-rtl.range-right:focus {
25
28
  border-right-width: 1px;
26
29
  }
27
30
 
28
- .ant-form-item {
31
+ .@{ant-prefix}-form-item {
29
32
  margin-bottom: 0;
30
33
  }
31
34
 
@@ -36,13 +39,13 @@
36
39
  }
37
40
 
38
41
  .range-left {
39
- .ant-input-number {
42
+ .@{ant-prefix}-input-number {
40
43
  border-right: none;
41
44
  }
42
45
  }
43
46
 
44
47
  .range-right {
45
- .ant-input-number {
48
+ .@{ant-prefix}-input-number {
46
49
  border-left: none;
47
50
  }
48
51
 
@@ -53,7 +56,7 @@
53
56
  }
54
57
  }
55
58
 
56
- &.ant-input-group.ant-input-group-compact>*:not(:last-child) {
59
+ &.@{ant-prefix}-input-group.@{ant-prefix}-input-group-compact>*:not(:last-child) {
57
60
  margin-right: 0;
58
61
  }
59
62
 
@@ -61,7 +64,7 @@
61
64
  border-top-right-radius : 0 !important;
62
65
  border-bottom-right-radius: 0 !important;
63
66
 
64
- >.ant-select-selector {
67
+ >.@{ant-prefix}-select-selector {
65
68
  border-top-right-radius : 0 !important;
66
69
  border-bottom-right-radius: 0 !important;
67
70
  }
@@ -71,7 +74,7 @@
71
74
  border-top-left-radius : 0 !important;
72
75
  border-bottom-left-radius: 0 !important;
73
76
 
74
- >.ant-select-selector {
77
+ >.@{ant-prefix}-select-selector {
75
78
  border-top-left-radius : 0 !important;
76
79
  border-bottom-left-radius: 0 !important;
77
80
  }
@@ -1,10 +1,13 @@
1
- .ant-form-item-has-error {
2
- .ant-picker-status-error
3
- ~ .forever-checkbox:not(.ant-input-disabled):not(.ant-input-borderless).ant-input {
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
4
+ .@{ant-prefix}-form-item-has-error {
5
+ .@{ant-prefix}-picker-status-error
6
+ ~ .forever-checkbox:not(.@{ant-prefix}-input-disabled):not(.@{ant-prefix}-input-borderless).@{ant-prefix}-input {
4
7
  background: @zaui-base-bg;
5
8
  border-color: var(--ant-error-color);
6
9
  }
7
- .forever-checkbox:not(.ant-input-disabled):not(.ant-input-borderless).ant-input:focus {
10
+ .forever-checkbox:not(.@{ant-prefix}-input-disabled):not(.@{ant-prefix}-input-borderless).@{ant-prefix}-input:focus {
8
11
  border-color: var(--ant-error-color-hover);
9
12
  border-right-width: 1px;
10
13
  outline: 0;
@@ -12,12 +15,12 @@
12
15
  }
13
16
  }
14
17
 
15
- span.ant-input-group-compact {
18
+ span.@{ant-prefix}-input-group-compact {
16
19
  &.pro-time-limit,
17
20
  &.pro-range-limit {
18
21
  display: flex;
19
22
 
20
- .ant-picker {
23
+ .@{ant-prefix}-picker {
21
24
  flex: 1;
22
25
  }
23
26
 
@@ -74,8 +74,7 @@ var RenderFields = function RenderFields(props) {
74
74
  formItemChildProps = _column$formItemChild === void 0 ? {} : _column$formItemChild,
75
75
  _column$fieldProps = column.fieldProps,
76
76
  fieldProps = _column$fieldProps === void 0 ? {} : _column$fieldProps,
77
- _column$disabled = column.disabled,
78
- disabled = _column$disabled === void 0 ? false : _column$disabled,
77
+ disabled = column.disabled,
79
78
  equalWith = column.equalWith,
80
79
  _column$clearNotShow = column.clearNotShow,
81
80
  clearNotShow = _column$clearNotShow === void 0 ? outerClearNotShow : _column$clearNotShow,
@@ -145,10 +144,10 @@ var RenderFields = function RenderFields(props) {
145
144
  _fieldProps.disabled = formDisabled;
146
145
  }
147
146
  var componentProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({
148
- disabledStrictly: true
149
- }, _fieldProps), {}, {
150
- disabled: _disabled,
147
+ disabledStrictly: true,
151
148
  placeholder: _placeholder
149
+ }, _fieldProps), {}, {
150
+ disabled: _disabled
152
151
  });
153
152
  // switch与SwitchCheckbox单独添加valuePropName
154
153
  if (['Switch', 'SwitchCheckbox'].includes(_type)) {