@zat-design/sisyphus-react 3.2.2 → 3.3.0-beta.2

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 (212) 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/components/RenderField/index.js +6 -4
  10. package/es/ProEditTable/index.js +34 -20
  11. package/es/ProEditTable/style/index.less +57 -47
  12. package/es/ProEditTable/utils/config.d.ts +1 -1
  13. package/es/ProEditTable/utils/config.js +3 -3
  14. package/es/ProEnum/style/index.less +3 -0
  15. package/es/ProForm/components/base/DatePicker/index.d.ts +2 -2
  16. package/es/ProForm/components/base/DatePicker/index.js +5 -8
  17. package/es/ProForm/components/base/RangePicker/index.d.ts +3 -2
  18. package/es/ProForm/components/base/RangePicker/index.js +3 -5
  19. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  20. package/es/ProForm/components/base/TextArea/index.less +4 -3
  21. package/es/ProForm/components/base/TimePicker/index.js +3 -3
  22. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  23. package/es/ProForm/components/combination/Container/style/index.less +6 -3
  24. package/es/ProForm/components/combination/FormList/style/index.less +20 -24
  25. package/es/ProForm/components/combination/Group/style/index.less +18 -15
  26. package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  27. package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
  28. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
  29. package/es/ProForm/components/combination/ProModalSelect/index.js +22 -24
  30. package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  31. package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  32. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
  33. package/es/ProForm/components/combination/ProRangeLimit/index.js +6 -6
  34. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +2 -2
  35. package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +2 -2
  36. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  37. package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -4
  38. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  39. package/es/ProForm/components/old/ProCertValidity/index.js +16 -16
  40. package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +4 -4
  41. package/es/ProForm/components/render/RenderFields.js +4 -5
  42. package/es/ProForm/style/index.less +46 -44
  43. package/es/ProIcon/style/index.less +4 -1
  44. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  45. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  46. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  47. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  48. package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
  49. package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
  50. package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
  51. package/es/ProLayout/components/ProFooter/style/index.less +11 -7
  52. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  53. package/es/ProLayout/components/ProHeader/index.js +4 -4
  54. package/es/ProLayout/components/ProHeader/style/index.less +12 -11
  55. package/es/ProLayout/style/index.less +10 -7
  56. package/es/ProSelect/index.less +3 -0
  57. package/es/ProStep/index.js +2 -2
  58. package/es/ProStep/style/index.less +3 -0
  59. package/es/ProTable/index.js +15 -7
  60. package/es/ProTable/style/index.less +76 -54
  61. package/es/ProTable/utils.d.ts +1 -1
  62. package/es/ProTable/utils.js +52 -33
  63. package/es/ProTabs/style/index.less +25 -23
  64. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  65. package/es/ProThemeTools/component/PrdTools/index.js +7 -6
  66. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  67. package/es/ProThemeTools/index.d.ts +1 -1
  68. package/es/ProThemeTools/index.js +7 -2
  69. package/es/ProThemeTools/propsType.d.ts +4 -0
  70. package/es/ProThemeTools/style/index.less +6 -3
  71. package/es/ProThemeTools/utils/index.d.ts +1 -1
  72. package/es/ProThemeTools/utils/index.js +2 -1
  73. package/es/ProTooltip/style/index.less +3 -0
  74. package/es/ProTree/components/CloseIcon.js +2 -4
  75. package/es/ProTree/components/ProTree.js +27 -11
  76. package/es/ProTree/components/Tree.js +1 -1
  77. package/es/ProTree/propsType.d.ts +2 -2
  78. package/es/ProTree/style/index.less +29 -26
  79. package/es/ProTree/utils.d.ts +6 -0
  80. package/es/ProTree/utils.js +11 -0
  81. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  82. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  83. package/es/ProTreeModal/components/Trigger.js +79 -19
  84. package/es/ProTreeModal/index.js +38 -6
  85. package/es/ProTreeModal/propsType.d.ts +5 -2
  86. package/es/ProTreeModal/style/index.less +11 -8
  87. package/es/ProTreeSelect/index.js +6 -4
  88. package/es/ProTreeSelect/propsType.d.ts +2 -0
  89. package/es/ProTreeSelect/style/index.less +25 -22
  90. package/es/ProUpload/components/DragRender.js +7 -4
  91. package/es/ProUpload/components/ImageRender.js +5 -1
  92. package/es/ProUpload/index.js +11 -7
  93. package/es/ProUpload/style/index.less +13 -4
  94. package/es/ProViewer/index.js +3 -1
  95. package/es/ProViewer/style/index.less +6 -3
  96. package/es/locale/en_US.d.ts +4 -0
  97. package/es/locale/en_US.js +5 -1
  98. package/es/locale/index.js +2 -2
  99. package/es/locale/zh_CN.d.ts +4 -0
  100. package/es/locale/zh_CN.js +6 -2
  101. package/es/old/ProCertValidity/index.js +16 -16
  102. package/es/old/ProCertValidity/propsType.d.ts +4 -4
  103. package/es/old/ProEditableTable/utils.d.ts +5 -5
  104. package/es/old/ProEditableTable/utils.js +5 -5
  105. package/es/style/core/compatible.less +6 -6
  106. package/es/style/theme/antd.less +272 -253
  107. package/lib/ProAction/index.less +3 -0
  108. package/lib/ProDownload/index.js +9 -6
  109. package/lib/ProDownload/style/index.less +5 -2
  110. package/lib/ProDrawerForm/index.js +0 -14
  111. package/lib/ProDrawerForm/style/index.less +76 -73
  112. package/lib/ProEditLabel/style/index.less +12 -9
  113. package/lib/ProEditTable/components/RenderField/index.js +6 -4
  114. package/lib/ProEditTable/index.js +32 -18
  115. package/lib/ProEditTable/style/index.less +57 -47
  116. package/lib/ProEditTable/utils/config.d.ts +1 -1
  117. package/lib/ProEditTable/utils/config.js +3 -3
  118. package/lib/ProEnum/style/index.less +3 -0
  119. package/lib/ProForm/components/base/DatePicker/index.d.ts +2 -2
  120. package/lib/ProForm/components/base/DatePicker/index.js +5 -8
  121. package/lib/ProForm/components/base/RangePicker/index.d.ts +3 -2
  122. package/lib/ProForm/components/base/RangePicker/index.js +4 -4
  123. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  124. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  125. package/lib/ProForm/components/base/TimePicker/index.js +3 -3
  126. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  127. package/lib/ProForm/components/combination/Container/style/index.less +6 -3
  128. package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
  129. package/lib/ProForm/components/combination/Group/style/index.less +18 -15
  130. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
  131. package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
  132. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
  133. package/lib/ProForm/components/combination/ProModalSelect/index.js +22 -24
  134. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
  135. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
  136. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
  137. package/lib/ProForm/components/combination/ProRangeLimit/index.js +6 -6
  138. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +2 -2
  139. package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +2 -2
  140. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  141. package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -4
  142. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
  143. package/lib/ProForm/components/old/ProCertValidity/index.js +16 -16
  144. package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +4 -4
  145. package/lib/ProForm/components/render/RenderFields.js +4 -5
  146. package/lib/ProForm/style/index.less +46 -44
  147. package/lib/ProIcon/style/index.less +4 -1
  148. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  149. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
  150. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
  151. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
  152. package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
  153. package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
  154. package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
  155. package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
  156. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
  157. package/lib/ProLayout/components/ProHeader/index.js +4 -4
  158. package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
  159. package/lib/ProLayout/style/index.less +10 -7
  160. package/lib/ProSelect/index.less +3 -0
  161. package/lib/ProStep/index.js +1 -1
  162. package/lib/ProStep/style/index.less +3 -0
  163. package/lib/ProTable/index.js +14 -6
  164. package/lib/ProTable/style/index.less +76 -54
  165. package/lib/ProTable/utils.d.ts +1 -1
  166. package/lib/ProTable/utils.js +52 -33
  167. package/lib/ProTabs/style/index.less +25 -23
  168. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  169. package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
  170. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  171. package/lib/ProThemeTools/index.d.ts +1 -1
  172. package/lib/ProThemeTools/index.js +7 -2
  173. package/lib/ProThemeTools/propsType.d.ts +4 -0
  174. package/lib/ProThemeTools/style/index.less +6 -3
  175. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  176. package/lib/ProThemeTools/utils/index.js +2 -1
  177. package/lib/ProTooltip/style/index.less +3 -0
  178. package/lib/ProTree/components/CloseIcon.js +2 -4
  179. package/lib/ProTree/components/ProTree.js +26 -10
  180. package/lib/ProTree/components/Tree.js +1 -1
  181. package/lib/ProTree/propsType.d.ts +2 -2
  182. package/lib/ProTree/style/index.less +29 -26
  183. package/lib/ProTree/utils.d.ts +6 -0
  184. package/lib/ProTree/utils.js +12 -0
  185. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  186. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  187. package/lib/ProTreeModal/components/Trigger.js +74 -18
  188. package/lib/ProTreeModal/index.js +38 -6
  189. package/lib/ProTreeModal/propsType.d.ts +5 -2
  190. package/lib/ProTreeModal/style/index.less +11 -8
  191. package/lib/ProTreeSelect/index.js +6 -4
  192. package/lib/ProTreeSelect/propsType.d.ts +2 -0
  193. package/lib/ProTreeSelect/style/index.less +25 -22
  194. package/lib/ProUpload/components/DragRender.js +7 -4
  195. package/lib/ProUpload/components/ImageRender.js +5 -1
  196. package/lib/ProUpload/index.js +11 -7
  197. package/lib/ProUpload/style/index.less +13 -4
  198. package/lib/ProViewer/index.js +4 -3
  199. package/lib/ProViewer/style/index.less +6 -3
  200. package/lib/locale/en_US.d.ts +4 -0
  201. package/lib/locale/en_US.js +5 -1
  202. package/lib/locale/index.js +2 -2
  203. package/lib/locale/zh_CN.d.ts +4 -0
  204. package/lib/locale/zh_CN.js +6 -2
  205. package/lib/old/ProCertValidity/index.js +16 -16
  206. package/lib/old/ProCertValidity/propsType.d.ts +4 -4
  207. package/lib/old/ProEditableTable/utils.d.ts +5 -5
  208. package/lib/old/ProEditableTable/utils.js +5 -5
  209. package/lib/style/core/compatible.less +6 -6
  210. package/lib/style/theme/antd.less +272 -253
  211. package/package.json +3 -2
  212. package/typings.d.ts +0 -6
@@ -100,7 +100,8 @@ export default {
100
100
  },
101
101
  ProModalSelect: {
102
102
  checkMsg: 'Please check the box first',
103
- select: 'Please select'
103
+ select: 'Please select',
104
+ total: '{total} items in total'
104
105
  },
105
106
  ProSelect: {
106
107
  checkMsg: 'Please check first',
@@ -147,5 +148,8 @@ export default {
147
148
  tableBorder: 'Table border',
148
149
  tableStripe: 'Table zebra',
149
150
  reset: 'Reset'
151
+ },
152
+ ProViewer: {
153
+ preview: 'preview'
150
154
  }
151
155
  };
@@ -1,4 +1,4 @@
1
- import moment from 'moment';
1
+ import dayjs from 'dayjs';
2
2
  import zhCN from './zh_CN';
3
3
  import enUS from './en_US';
4
4
  var activeLang = localStorage.getItem('locale') || 'zh-CN';
@@ -13,7 +13,7 @@ var langMap = {
13
13
  export var setLanguage = function setLanguage(lang, isReload) {
14
14
  activeLang = lang;
15
15
  localStorage.setItem('locale', lang);
16
- moment.locale(lang.toLowerCase());
16
+ dayjs.locale(lang.toLowerCase());
17
17
  if (isReload) {
18
18
  window.location.reload();
19
19
  }
@@ -101,6 +101,7 @@ declare const _default: {
101
101
  ProModalSelect: {
102
102
  checkMsg: string;
103
103
  select: string;
104
+ total: string;
104
105
  };
105
106
  ProSelect: {
106
107
  checkMsg: string;
@@ -147,5 +148,8 @@ declare const _default: {
147
148
  tableStripe: string;
148
149
  reset: string;
149
150
  };
151
+ ProViewer: {
152
+ preview: string;
153
+ };
150
154
  };
151
155
  export default _default;
@@ -67,7 +67,7 @@ export default {
67
67
  buttonText: '上传文件',
68
68
  draggerSelect: '重新选择',
69
69
  draggerDelete: '删除',
70
- draggerTips: '将文件拖拽到此处,或点击上传',
70
+ draggerTips: '将文件拖拽到此处,或',
71
71
  draggerBtnTxt: '点击上传',
72
72
  draggerFileExt: '支持扩展名',
73
73
  draggerLimitless: '无限制',
@@ -100,7 +100,8 @@ export default {
100
100
  },
101
101
  ProModalSelect: {
102
102
  checkMsg: '请先勾选',
103
- select: '请选择'
103
+ select: '请选择',
104
+ total: '共{total}条'
104
105
  },
105
106
  ProSelect: {
106
107
  checkMsg: '请先勾选',
@@ -146,5 +147,8 @@ export default {
146
147
  tableBorder: '表格边框',
147
148
  tableStripe: '表格斑马纹',
148
149
  reset: '重置'
150
+ },
151
+ ProViewer: {
152
+ preview: '预览'
149
153
  }
150
154
  };
@@ -10,7 +10,7 @@ var _excluded = ["value", "onChange", "disabled", "isRange", "getPopupContainer"
10
10
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  // @ts-nocheck
12
12
 
13
- import moment from 'moment';
13
+ import dayjs from 'dayjs';
14
14
  import { forwardRef, useMemo, useRef } from 'react';
15
15
  var RangePicker = _DatePicker.RangePicker;
16
16
  var defaultFormatDate = 'YYYY-MM-DD';
@@ -50,37 +50,37 @@ export var ProCertValidity = /*#__PURE__*/forwardRef(function (_ref, ref) {
50
50
  forever = _value.forever;
51
51
  if (forever === 'Y') {
52
52
  return {
53
- range: [moment('9999-01-01'), moment('9999-01-01')],
53
+ range: [dayjs('9999-01-01'), dayjs('9999-01-01')],
54
54
  forever: true
55
55
  };
56
56
  }
57
57
  if (startTime && endTime) {
58
- var tempStartDate = moment(startTime).format(defaultFormatDate);
59
- var tempEndDate = moment(endTime).format(defaultFormatDate);
58
+ var tempStartDate = dayjs(startTime).format(defaultFormatDate);
59
+ var tempEndDate = dayjs(endTime).format(defaultFormatDate);
60
60
  if ((!forever || forever === 'N') && !checkIsForever(tempStartDate) && !checkIsForever(tempEndDate)) {
61
61
  return {
62
- range: [moment(startTime), moment(endTime)],
62
+ range: [dayjs(startTime), dayjs(endTime)],
63
63
  forever: false
64
64
  };
65
65
  }
66
66
  if (checkIsForever(tempStartDate) && checkIsForever(tempEndDate) && !isChange.current) {
67
67
  return {
68
- range: [moment('9999-01-01'), moment('9999-01-01')],
68
+ range: [dayjs('9999-01-01'), dayjs('9999-01-01')],
69
69
  forever: true
70
70
  };
71
71
  }
72
72
  }
73
73
  } else {
74
74
  if (typeof value === 'string' || value._isAMomentObject) {
75
- var tempDate = moment(value).format(defaultFormatDate);
75
+ var tempDate = dayjs(value).format(defaultFormatDate);
76
76
  if (tempDate && tempDate === '9999-01-01') {
77
77
  return {
78
- range: moment('9999-01-01'),
78
+ range: dayjs('9999-01-01'),
79
79
  forever: true
80
80
  };
81
81
  }
82
82
  return {
83
- range: moment(value),
83
+ range: dayjs(value),
84
84
  forever: false
85
85
  };
86
86
  }
@@ -89,21 +89,21 @@ export var ProCertValidity = /*#__PURE__*/forwardRef(function (_ref, ref) {
89
89
  _forever = _value2.forever;
90
90
  if (_forever === 'Y') {
91
91
  return {
92
- range: moment('9999-01-01'),
92
+ range: dayjs('9999-01-01'),
93
93
  forever: true
94
94
  };
95
95
  }
96
96
  if (dateTime) {
97
- var _tempDate = moment(dateTime).format(defaultFormatDate);
97
+ var _tempDate = dayjs(dateTime).format(defaultFormatDate);
98
98
  if ((!_forever || _forever === 'N') && _tempDate !== '9999-01-01') {
99
99
  return {
100
- range: moment(dateTime),
100
+ range: dayjs(dateTime),
101
101
  forever: false
102
102
  };
103
103
  }
104
104
  if (_tempDate && _tempDate === '9999-01-01' && !isChange.current) {
105
105
  return {
106
- range: moment('9999-01-01'),
106
+ range: dayjs('9999-01-01'),
107
107
  forever: true
108
108
  };
109
109
  }
@@ -113,8 +113,8 @@ export var ProCertValidity = /*#__PURE__*/forwardRef(function (_ref, ref) {
113
113
  }, [value, (_value3 = value) === null || _value3 === void 0 ? void 0 : _value3.dateTime]);
114
114
  var changeRangeTime = function changeRangeTime(values) {
115
115
  onChange({
116
- startTime: values ? moment(values === null || values === void 0 ? void 0 : values[0]).format(defaultFormatDate) : null,
117
- endTime: values ? moment(values === null || values === void 0 ? void 0 : values[1]).format(defaultFormatDate) : null,
116
+ startTime: values ? dayjs(values === null || values === void 0 ? void 0 : values[0]).format(defaultFormatDate) : null,
117
+ endTime: values ? dayjs(values === null || values === void 0 ? void 0 : values[1]).format(defaultFormatDate) : null,
118
118
  forever: 'N'
119
119
  });
120
120
  };
@@ -142,7 +142,7 @@ export var ProCertValidity = /*#__PURE__*/forwardRef(function (_ref, ref) {
142
142
  if (rangeTime.forever) {
143
143
  _value4 = '长期';
144
144
  } else {
145
- _value4 = rangeTime.range ? moment(rangeTime.range).format(defaultFormatDate) : null;
145
+ _value4 = rangeTime.range ? dayjs(rangeTime.range).format(defaultFormatDate) : null;
146
146
  }
147
147
  return _jsx(_Input, {
148
148
  value: _value4,
@@ -1,12 +1,12 @@
1
1
  import { DatePickerProps, RangePickerProps } from 'antd/es/date-picker';
2
- import moment from 'moment';
2
+ import dayjs from 'dayjs';
3
3
  interface ICertValidityValuePropsType {
4
- dateTime?: moment.Moment | string;
4
+ dateTime?: dayjs.Dayjs | string;
5
5
  forever?: string;
6
6
  }
7
7
  interface ICertValidityRangeValuePropsType {
8
- startTime?: moment.Moment | string;
9
- endTime?: moment.Moment | string;
8
+ startTime?: dayjs.Dayjs | string;
9
+ endTime?: dayjs.Dayjs | string;
10
10
  forever?: string;
11
11
  }
12
12
  interface IProCertValidityExtraPropsType {
@@ -1,7 +1,7 @@
1
- import type { Moment } from 'moment';
1
+ import type { Dayjs } from 'dayjs';
2
2
  import { IRowDataPropsType } from './propsType';
3
3
  export declare const rangePickerTransform: (formatter?: string) => {
4
- normalize: (value: [Moment, Moment]) => {
4
+ normalize: (value: [Dayjs, Dayjs]) => {
5
5
  from?: undefined;
6
6
  to?: undefined;
7
7
  } | {
@@ -13,15 +13,15 @@ export declare const rangePickerTransform: (formatter?: string) => {
13
13
  to: string;
14
14
  }) => {
15
15
  format: string;
16
- value: Moment[];
16
+ value: Dayjs[];
17
17
  };
18
18
  getValueFromEvent: (rawDate?: any) => any;
19
19
  };
20
20
  export declare const datePickerTransform: (formatter?: string) => {
21
- normalize: (value: Moment) => string;
21
+ normalize: (value: Dayjs) => string;
22
22
  getValueProps: (value: string) => {
23
23
  format: string;
24
- value: Moment;
24
+ value: Dayjs;
25
25
  };
26
26
  };
27
27
  export declare const transformColumns: (columns: any[], form: any, disabled: Boolean) => any[];
@@ -20,7 +20,7 @@ import "antd/es/select/style";
20
20
  import _Select from "antd/es/select";
21
21
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
22
22
  import { cloneDeep } from 'lodash';
23
- import moment from 'moment';
23
+ import dayjs from 'dayjs';
24
24
  import { InputRange } from '../../ProForm/components';
25
25
  var Option = _Select.Option;
26
26
  var RangePicker = _DatePicker.RangePicker;
@@ -47,7 +47,7 @@ export var rangePickerTransform = function rangePickerTransform() {
47
47
  to = _ref.to;
48
48
  return {
49
49
  format: formatter,
50
- value: [from ? moment(from) : null, to ? moment(to) : null]
50
+ value: [from ? dayjs(from) : null, to ? dayjs(to) : null]
51
51
  };
52
52
  },
53
53
  getValueFromEvent: function getValueFromEvent() {
@@ -61,13 +61,13 @@ export var datePickerTransform = function datePickerTransform() {
61
61
  var formatter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'YYYY-MM-DD';
62
62
  return {
63
63
  normalize: function normalize(value) {
64
- var _moment;
65
- return value ? (_moment = moment(value)) === null || _moment === void 0 ? void 0 : _moment.format(formatter) : null;
64
+ var _dayjs;
65
+ return value ? (_dayjs = dayjs(value)) === null || _dayjs === void 0 ? void 0 : _dayjs.format(formatter) : null;
66
66
  },
67
67
  getValueProps: function getValueProps(value) {
68
68
  return {
69
69
  format: formatter,
70
- value: value ? moment(value) : null
70
+ value: value ? dayjs(value) : null
71
71
  };
72
72
  }
73
73
  };
@@ -1,27 +1,27 @@
1
- .ant-tabs-nav-list {
1
+ .@{ant-prefix}-tabs-nav-list {
2
2
  overflow: auto;
3
3
  }
4
4
 
5
5
  // 兼容IE11
6
6
  @media screen and(-ms-high-contrast: active),
7
7
  (-ms-high-contrast: none) {
8
- .ant-form-item-control-input-content {
8
+ .@{ant-prefix}-form-item-control-input-content {
9
9
  overflow: hidden;
10
10
  }
11
11
 
12
12
  // 解决popover表单压缩
13
- .ant-popover {
14
- .ant-form-item-control {
13
+ .@{ant-prefix}-popover {
14
+ .@{ant-prefix}-form-item-control {
15
15
  flex: auto;
16
16
  }
17
17
  }
18
18
 
19
- .ant-tabs-tab {
19
+ .@{ant-prefix}-tabs-tab {
20
20
  display: inline-block;
21
21
  }
22
22
 
23
23
  /* IE兼容 */
24
- .ant-space {
24
+ .@{ant-prefix}-space {
25
25
  width: 100% !important;
26
26
  }
27
27