@zat-design/sisyphus-react 3.1.4 → 3.1.5-beta.10

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 (174) hide show
  1. package/.dumi/theme/builtins/Alert.tsx +19 -0
  2. package/.dumi/theme/builtins/Previewer.tsx +232 -0
  3. package/.dumi/theme/builtins/SourceCode.tsx +64 -0
  4. package/.dumi/theme/hooks/useCodeSandbox.tsx +197 -0
  5. package/.dumi/theme/hooks/useTheme.tsx +707 -0
  6. package/.dumi/theme/layouts/BasicLayout.tsx +88 -0
  7. package/.dumi/theme/layouts/components/Dark.less +157 -0
  8. package/.dumi/theme/layouts/components/Dark.tsx +78 -0
  9. package/.dumi/theme/layouts/components/Navbar.tsx +83 -0
  10. package/.dumi/theme/layouts/components/SideMenu.tsx +61 -0
  11. package/.dumi/theme/layouts/index.tsx +26 -0
  12. package/.dumi/theme/layouts/layout.less +87 -0
  13. package/.dumi/theme/typings.d.ts +7 -0
  14. package/dist/index.esm.css +122 -249
  15. package/es/ProAction/index.less +3 -2
  16. package/es/ProConfigProvider/index.d.ts +2 -0
  17. package/es/ProConfigProvider/index.js +18 -2
  18. package/es/ProDrawerForm/index.js +5 -3
  19. package/es/ProDrawerForm/style/index.less +15 -11
  20. package/es/ProEditLabel/style/index.less +2 -2
  21. package/es/ProEditTable/style/index.less +15 -8
  22. package/es/ProEditTable/utils/config.js +11 -4
  23. package/es/ProEnum/style/index.less +1 -1
  24. package/es/ProForm/components/base/RangePicker/index.js +0 -3
  25. package/es/ProForm/components/base/TextArea/index.less +1 -1
  26. package/es/ProForm/components/combination/Container/style/index.less +0 -1
  27. package/es/ProForm/components/combination/FormList/style/index.less +20 -19
  28. package/es/ProForm/components/combination/Group/index.js +2 -2
  29. package/es/ProForm/components/combination/ProAddressBar/index.js +81 -61
  30. package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
  31. package/es/ProForm/components/combination/ProModalSelect/index.js +75 -13
  32. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
  33. package/es/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
  34. package/es/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
  35. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
  36. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
  37. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  38. package/es/ProForm/components/old/EnumSelect/style/index.less +7 -8
  39. package/es/ProForm/components/render/RenderFields.js +10 -5
  40. package/es/ProForm/components/render/propsType.d.ts +5 -4
  41. package/es/ProForm/index.js +5 -0
  42. package/es/ProForm/style/index.less +55 -169
  43. package/es/ProForm/utils/useShouldUpdate.js +16 -16
  44. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
  45. package/es/ProLayout/components/ProCollapse/style/index.less +4 -4
  46. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  47. package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  48. package/es/ProLayout/components/ProHeader/components/index.js +2 -1
  49. package/es/ProLayout/components/ProHeader/index.js +4 -2
  50. package/es/ProLayout/components/ProHeader/style/index.less +16 -7
  51. package/es/ProStep/style/index.less +0 -1
  52. package/es/ProTable/components/RenderColumn/index.d.ts +5 -5
  53. package/es/ProTable/components/RenderColumn/index.js +41 -25
  54. package/es/ProTable/index.js +3 -2
  55. package/es/ProTable/propsType.d.ts +2 -0
  56. package/es/ProTable/style/index.less +14 -1
  57. package/es/ProTable/utils.d.ts +1 -1
  58. package/es/ProTable/utils.js +258 -201
  59. package/es/ProTabs/style/index.less +1 -1
  60. package/es/ProThemeTools/component/PrdTools/index.js +1 -1
  61. package/es/ProThemeTools/component/PrdTools/style/index.less +3 -3
  62. package/es/ProThemeTools/index.d.ts +2 -2
  63. package/es/ProThemeTools/index.js +24 -17
  64. package/es/ProThemeTools/propsType.d.ts +8 -6
  65. package/es/ProThemeTools/style/index.less +2 -2
  66. package/es/ProThemeTools/utils/index.d.ts +7 -0
  67. package/es/ProThemeTools/utils/index.js +19 -1
  68. package/es/ProTree/components/ProTree.js +1 -1
  69. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  70. package/es/ProTree/components/SearchTitle.js +11 -1
  71. package/es/ProTree/components/Tree.js +6 -1
  72. package/es/ProTree/style/index.less +193 -141
  73. package/es/ProTreeModal/style/index.less +2 -6
  74. package/es/ProUpload/style/index.less +41 -39
  75. package/es/index.d.ts +2 -1
  76. package/es/index.js +2 -1
  77. package/es/locale/en_US.d.ts +69 -0
  78. package/es/locale/en_US.js +68 -0
  79. package/es/locale/index.d.ts +7 -0
  80. package/es/locale/index.js +21 -0
  81. package/es/locale/zh_CN.d.ts +69 -0
  82. package/es/locale/zh_CN.js +68 -0
  83. package/es/old/ProEditableTable/style/index.less +1 -2
  84. package/es/style/components.less +0 -1
  85. package/es/style/core/normalize.less +1 -1
  86. package/es/style/theme/antd.less +3 -4
  87. package/es/style/theme/index.less +80 -79
  88. package/es/style/theme/tokens.less +1 -0
  89. package/lib/ProAction/index.less +3 -2
  90. package/lib/ProConfigProvider/index.d.ts +2 -0
  91. package/lib/ProConfigProvider/index.js +17 -2
  92. package/lib/ProDrawerForm/index.js +5 -3
  93. package/lib/ProDrawerForm/style/index.less +15 -11
  94. package/lib/ProEditLabel/style/index.less +2 -2
  95. package/lib/ProEditTable/style/index.less +15 -8
  96. package/lib/ProEditTable/utils/config.js +11 -4
  97. package/lib/ProEnum/style/index.less +1 -1
  98. package/lib/ProForm/components/base/RangePicker/index.js +0 -3
  99. package/lib/ProForm/components/base/TextArea/index.less +1 -1
  100. package/lib/ProForm/components/combination/Container/style/index.less +0 -1
  101. package/lib/ProForm/components/combination/FormList/style/index.less +20 -19
  102. package/lib/ProForm/components/combination/Group/index.js +2 -2
  103. package/lib/ProForm/components/combination/ProAddressBar/index.js +76 -58
  104. package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
  105. package/lib/ProForm/components/combination/ProModalSelect/index.js +75 -13
  106. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
  107. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
  108. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
  109. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
  110. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
  111. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  112. package/lib/ProForm/components/old/EnumSelect/style/index.less +7 -8
  113. package/lib/ProForm/components/render/RenderFields.js +9 -4
  114. package/lib/ProForm/components/render/propsType.d.ts +5 -4
  115. package/lib/ProForm/index.js +5 -0
  116. package/lib/ProForm/style/index.less +55 -169
  117. package/lib/ProForm/utils/useShouldUpdate.js +16 -16
  118. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
  119. package/lib/ProLayout/components/ProCollapse/style/index.less +4 -4
  120. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  121. package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  122. package/lib/ProLayout/components/ProHeader/components/index.js +8 -1
  123. package/lib/ProLayout/components/ProHeader/index.js +4 -2
  124. package/lib/ProLayout/components/ProHeader/style/index.less +16 -7
  125. package/lib/ProStep/style/index.less +0 -1
  126. package/lib/ProTable/components/RenderColumn/index.d.ts +5 -5
  127. package/lib/ProTable/components/RenderColumn/index.js +38 -24
  128. package/lib/ProTable/index.js +3 -2
  129. package/lib/ProTable/propsType.d.ts +2 -0
  130. package/lib/ProTable/style/index.less +14 -1
  131. package/lib/ProTable/utils.d.ts +1 -1
  132. package/lib/ProTable/utils.js +258 -201
  133. package/lib/ProTabs/style/index.less +1 -1
  134. package/lib/ProThemeTools/component/PrdTools/index.js +1 -1
  135. package/lib/ProThemeTools/component/PrdTools/style/index.less +3 -3
  136. package/lib/ProThemeTools/index.d.ts +2 -2
  137. package/lib/ProThemeTools/index.js +23 -16
  138. package/lib/ProThemeTools/propsType.d.ts +8 -6
  139. package/lib/ProThemeTools/style/index.less +2 -2
  140. package/lib/ProThemeTools/utils/index.d.ts +7 -0
  141. package/lib/ProThemeTools/utils/index.js +20 -2
  142. package/lib/ProTree/components/ProTree.js +1 -1
  143. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  144. package/lib/ProTree/components/SearchTitle.js +11 -1
  145. package/lib/ProTree/components/Tree.js +6 -1
  146. package/lib/ProTree/style/index.less +193 -141
  147. package/lib/ProTreeModal/style/index.less +2 -6
  148. package/lib/ProUpload/style/index.less +41 -39
  149. package/lib/index.d.ts +2 -1
  150. package/lib/index.js +13 -1
  151. package/lib/locale/en_US.d.ts +69 -0
  152. package/lib/locale/en_US.js +74 -0
  153. package/lib/locale/index.d.ts +7 -0
  154. package/lib/locale/index.js +28 -0
  155. package/lib/locale/zh_CN.d.ts +69 -0
  156. package/lib/locale/zh_CN.js +74 -0
  157. package/lib/old/ProEditableTable/style/index.less +1 -2
  158. package/lib/style/components.less +0 -1
  159. package/lib/style/core/normalize.less +1 -1
  160. package/lib/style/theme/antd.less +3 -4
  161. package/lib/style/theme/index.less +80 -79
  162. package/lib/style/theme/tokens.less +1 -0
  163. package/package.json +2 -2
  164. package/typings.d.ts +2 -0
  165. package/es/old/ProBackBtn/style/index.less +0 -19
  166. package/lib/old/ProBackBtn/style/index.less +0 -19
  167. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  168. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +0 -0
  169. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  170. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
  171. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  172. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +0 -0
  173. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  174. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
package/lib/index.d.ts CHANGED
@@ -21,7 +21,8 @@ export { default as ProUpload } from './ProUpload';
21
21
  export { default as ProThemeTools } from './ProThemeTools';
22
22
  export { default as ProAction } from './ProAction';
23
23
  export * from './ProConfigProvider';
24
- export { default as ProBackBtn } from './old/ProBackBtn';
24
+ export * from './locale';
25
+ export { default as ProBackBtn } from './ProLayout/components/ProHeader/components/ProBackBtn';
25
26
  export { default as ProEditableTable } from './old/ProEditableTable';
26
27
  export { default as ProCertValidity } from './old/ProCertValidity';
27
28
  export * from './ProForm/propsType';
package/lib/index.js CHANGED
@@ -214,7 +214,19 @@ Object.keys(_ProConfigProvider).forEach(function (key) {
214
214
  var _ProUpload = _interopRequireDefault(require("./ProUpload"));
215
215
  var _ProThemeTools = _interopRequireDefault(require("./ProThemeTools"));
216
216
  var _ProAction = _interopRequireDefault(require("./ProAction"));
217
- var _ProBackBtn = _interopRequireDefault(require("./old/ProBackBtn"));
217
+ var _locale = require("./locale");
218
+ Object.keys(_locale).forEach(function (key) {
219
+ if (key === "default" || key === "__esModule") return;
220
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
221
+ if (key in exports && exports[key] === _locale[key]) return;
222
+ Object.defineProperty(exports, key, {
223
+ enumerable: true,
224
+ get: function get() {
225
+ return _locale[key];
226
+ }
227
+ });
228
+ });
229
+ var _ProBackBtn = _interopRequireDefault(require("./ProLayout/components/ProHeader/components/ProBackBtn"));
218
230
  var _ProEditableTable = _interopRequireDefault(require("./old/ProEditableTable"));
219
231
  var _ProCertValidity = _interopRequireDefault(require("./old/ProCertValidity"));
220
232
  var _propsType = require("./ProForm/propsType");
@@ -0,0 +1,69 @@
1
+ declare const _default: {
2
+ common: {
3
+ save: string;
4
+ cancel: string;
5
+ };
6
+ demo: {
7
+ openDrawer: string;
8
+ openModal: string;
9
+ };
10
+ search: {
11
+ search: string;
12
+ reset: string;
13
+ collapsed: string;
14
+ expand: string;
15
+ };
16
+ dialog: {
17
+ modeAdd: string;
18
+ modeUpdate: string;
19
+ modeDetail: string;
20
+ modeCustom: string;
21
+ close: string;
22
+ confirm: string;
23
+ };
24
+ extra: {
25
+ refresh: string;
26
+ density: string;
27
+ densityLarger: string;
28
+ densityMiddle: string;
29
+ densitySmall: string;
30
+ fullScreen: string;
31
+ exitFullScreen: string;
32
+ moveUp: string;
33
+ moveDown: string;
34
+ rename: string;
35
+ columnSetting: string;
36
+ };
37
+ action: {
38
+ success: string;
39
+ deleteConfirm: string;
40
+ deleteSuccess: string;
41
+ noSelection: string;
42
+ deleteConfirmTitle: string;
43
+ deleteConfirmBefore: string;
44
+ deleteConfirmAfter: string;
45
+ deleteConfirmBatchSuccess: string;
46
+ };
47
+ tagGroup: {
48
+ all: string;
49
+ };
50
+ table: {
51
+ totalBefore: string;
52
+ totalAfter: string;
53
+ selectedTitle: string;
54
+ selectedBefore: string;
55
+ selectedAfter: string;
56
+ selectedClear: string;
57
+ };
58
+ form: {
59
+ pleaseInput: string;
60
+ pleaseInputAfter: string;
61
+ pleaseSelect: string;
62
+ pleaseSelectAfter: string;
63
+ requiredText: string;
64
+ startDate: string;
65
+ endDate: string;
66
+ dateTo: string;
67
+ };
68
+ };
69
+ export default _default;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ common: {
9
+ save: 'save',
10
+ cancel: 'cancel'
11
+ },
12
+ demo: {
13
+ openDrawer: 'open drawer',
14
+ openModal: 'open modal'
15
+ },
16
+ search: {
17
+ search: 'Search',
18
+ reset: 'Reset',
19
+ collapsed: 'More',
20
+ expand: 'Close'
21
+ },
22
+ dialog: {
23
+ modeAdd: 'Add',
24
+ modeUpdate: 'Update',
25
+ modeDetail: 'Detail',
26
+ modeCustom: 'Custom',
27
+ close: ' Close',
28
+ confirm: 'Confirm'
29
+ },
30
+ extra: {
31
+ refresh: 'refresh',
32
+ density: 'density',
33
+ densityLarger: 'default',
34
+ densityMiddle: 'middle',
35
+ densitySmall: 'small',
36
+ fullScreen: 'full screen',
37
+ exitFullScreen: 'exit full screen',
38
+ moveUp: 'move up',
39
+ moveDown: 'move down',
40
+ rename: 'new name',
41
+ columnSetting: 'column setting'
42
+ },
43
+ action: {
44
+ success: 'Successful',
45
+ deleteConfirm: 'Are you sure you want to delete this row?',
46
+ deleteSuccess: 'Deleted successfully',
47
+ noSelection: 'Please select a row',
48
+ deleteConfirmTitle: 'Confirm',
49
+ deleteConfirmBefore: 'You have selected ',
50
+ deleteConfirmAfter: 'rows, are you sure you want to delete them?',
51
+ deleteConfirmBatchSuccess: 'Batch delete successfully'
52
+ },
53
+ tagGroup: {
54
+ all: 'All'
55
+ },
56
+ table: {
57
+ totalBefore: 'Total',
58
+ totalAfter: 'items',
59
+ selectedTitle: 'Selection',
60
+ selectedBefore: 'Selected: ',
61
+ selectedAfter: 'items',
62
+ selectedClear: 'Remove All'
63
+ },
64
+ form: {
65
+ pleaseInput: 'input ',
66
+ pleaseInputAfter: '',
67
+ pleaseSelect: 'select ',
68
+ pleaseSelectAfter: '',
69
+ requiredText: '',
70
+ startDate: 'Start Date',
71
+ endDate: 'End date',
72
+ dateTo: 'To'
73
+ }
74
+ };
@@ -0,0 +1,7 @@
1
+ /** 设置语言
2
+ * lang当前语言
3
+ * isReload 切换语言后是否刷新页面,一般在项目上使用都需要刷新
4
+ */
5
+ export declare const setLanguage: (lang: string, isReload?: boolean) => void;
6
+ declare const _default: any;
7
+ export default _default;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.setLanguage = exports.default = void 0;
8
+ var _moment = _interopRequireDefault(require("moment"));
9
+ var _zh_CN = _interopRequireDefault(require("./zh_CN"));
10
+ var _en_US = _interopRequireDefault(require("./en_US"));
11
+ var activeLang = localStorage.getItem('locale') || 'zh-CN';
12
+ var langMap = {
13
+ 'zh-CN': _zh_CN.default,
14
+ 'en-US': _en_US.default // en-US
15
+ };
16
+ /** 设置语言
17
+ * lang当前语言
18
+ * isReload 切换语言后是否刷新页面,一般在项目上使用都需要刷新
19
+ */
20
+ var setLanguage = exports.setLanguage = function setLanguage(lang, isReload) {
21
+ activeLang = lang;
22
+ localStorage.setItem('locale', lang);
23
+ _moment.default.locale(lang.toLowerCase());
24
+ if (isReload) {
25
+ window.location.reload();
26
+ }
27
+ };
28
+ var _default = exports.default = langMap[activeLang];
@@ -0,0 +1,69 @@
1
+ declare const _default: {
2
+ common: {
3
+ save: string;
4
+ cancel: string;
5
+ };
6
+ demo: {
7
+ openDrawer: string;
8
+ openModal: string;
9
+ };
10
+ search: {
11
+ search: string;
12
+ reset: string;
13
+ collapsed: string;
14
+ expand: string;
15
+ };
16
+ dialog: {
17
+ modeAdd: string;
18
+ modeUpdate: string;
19
+ modeDetail: string;
20
+ modeCustom: string;
21
+ close: string;
22
+ confirm: string;
23
+ };
24
+ extra: {
25
+ refresh: string;
26
+ density: string;
27
+ densityLarger: string;
28
+ densityMiddle: string;
29
+ densitySmall: string;
30
+ fullScreen: string;
31
+ exitFullScreen: string;
32
+ moveUp: string;
33
+ moveDown: string;
34
+ rename: string;
35
+ columnSetting: string;
36
+ };
37
+ action: {
38
+ success: string;
39
+ deleteConfirm: string;
40
+ deleteSuccess: string;
41
+ noSelection: string;
42
+ deleteConfirmTitle: string;
43
+ deleteConfirmBefore: string;
44
+ deleteConfirmAfter: string;
45
+ deleteConfirmBatchSuccess: string;
46
+ };
47
+ tagGroup: {
48
+ all: string;
49
+ };
50
+ table: {
51
+ totalBefore: string;
52
+ totalAfter: string;
53
+ selectedTitle: string;
54
+ selectedBefore: string;
55
+ selectedAfter: string;
56
+ selectedClear: string;
57
+ };
58
+ form: {
59
+ pleaseInput: string;
60
+ pleaseInputAfter: string;
61
+ pleaseSelect: string;
62
+ pleaseSelectAfter: string;
63
+ requiredText: string;
64
+ startDate: string;
65
+ endDate: string;
66
+ dateTo: string;
67
+ };
68
+ };
69
+ export default _default;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = exports.default = {
8
+ common: {
9
+ save: '保存',
10
+ cancel: '取消'
11
+ },
12
+ demo: {
13
+ openDrawer: '打开抽屉',
14
+ openModal: '打开弹框'
15
+ },
16
+ search: {
17
+ search: '查询',
18
+ reset: '重置',
19
+ collapsed: '展开',
20
+ expand: '收起'
21
+ },
22
+ dialog: {
23
+ modeAdd: '新增',
24
+ modeUpdate: '编辑',
25
+ modeDetail: '详情',
26
+ modeCustom: '自定义',
27
+ close: '关闭',
28
+ confirm: '确定'
29
+ },
30
+ extra: {
31
+ refresh: '刷新',
32
+ density: '密度',
33
+ densityLarger: '默认',
34
+ densityMiddle: '中等',
35
+ densitySmall: '紧凑',
36
+ fullScreen: '全屏',
37
+ exitFullScreen: '退出全屏',
38
+ moveUp: '上移',
39
+ moveDown: '下移',
40
+ rename: '请输入别名',
41
+ columnSetting: '设置展示列'
42
+ },
43
+ action: {
44
+ success: '成功',
45
+ deleteConfirm: '你确定要删除此行吗?',
46
+ deleteSuccess: '删除成功',
47
+ noSelection: '请选择一条数据',
48
+ deleteConfirmTitle: '确定',
49
+ deleteConfirmBefore: '您勾选了',
50
+ deleteConfirmAfter: '个,确定要删除吗?',
51
+ deleteConfirmBatchSuccess: '批量删除成功'
52
+ },
53
+ tagGroup: {
54
+ all: '全部'
55
+ },
56
+ table: {
57
+ totalBefore: '共',
58
+ totalAfter: '条',
59
+ selectedTitle: '已经选中的选项',
60
+ selectedBefore: '已选择:',
61
+ selectedAfter: '条',
62
+ selectedClear: '清空'
63
+ },
64
+ form: {
65
+ pleaseInput: '请输入',
66
+ pleaseInputAfter: '',
67
+ pleaseSelect: '请选择',
68
+ pleaseSelectAfter: '',
69
+ requiredText: '',
70
+ startDate: '开始日期',
71
+ endDate: '结束日期',
72
+ dateTo: '至'
73
+ }
74
+ };
@@ -4,8 +4,7 @@
4
4
  display : inline-block;
5
5
  margin-right: 4px;
6
6
  color : #ff5050;
7
- font-size : 14px;
8
- font-family : SimSun, sans-serif;
7
+ font-size : var(--zaui-font-size, 14px);
9
8
  line-height : 1;
10
9
  content : '*';
11
10
  }
@@ -29,5 +29,4 @@
29
29
 
30
30
 
31
31
  // old 待废弃
32
- @import '../old/ProBackBtn/style/index';
33
32
  @import '../old/ProEditableTable/style/index';
@@ -243,4 +243,4 @@ button,
243
243
  input[type='button'] {
244
244
  width : auto;
245
245
  overflow: visible;
246
- }
246
+ }
@@ -55,8 +55,7 @@
55
55
  &>.ant-form-item-required::after {
56
56
  margin-top : 1px;
57
57
  color : #ff4d4f;
58
- font-size : 14px;
59
- font-family: SimSun, sans-serif;
58
+ font-size : var(--zaui-font-size, 14px);
60
59
  line-height: 1;
61
60
  content : '*';
62
61
  }
@@ -86,7 +85,7 @@
86
85
  }
87
86
 
88
87
  .ant-form-item {
89
- margin-bottom: 22px !important;
88
+ margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1)) !important;
90
89
  }
91
90
  }
92
91
 
@@ -332,7 +331,7 @@
332
331
  }
333
332
 
334
333
  .ant-tabs-nav {
335
- margin-bottom: var(--zaui-space-size-md, 16px)
334
+ margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
336
335
  }
337
336
 
338
337
  .ant-tabs-nav .ant-tabs-tab-btn {
@@ -3,85 +3,86 @@
3
3
 
4
4
  /* 兼容IE11 默认会生成2个值,默认值,var值。IE11下读取默认值 */
5
5
  :root {
6
- --zaui-global-bg: #ffffff;
7
- --zaui-base-bg: #ffffff;
8
- --zaui-brand: #006aff;
9
- --zaui-brand-hover: #3387ff;
10
- --zaui-brand-active: #005ad9;
11
- --zaui-brand-disabled: #99c3ff;
12
- --zaui-text: #343434;
13
- --zaui-text-weak: #616161;
14
- --zaui-aide-text: #909090;
15
- --zaui-placeholder: #a0a0a0;
16
- --zaui-link: var(--zaui-brand);
17
- --zaui-link-light-active: var(--zaui-brand-active);
18
- --zaui-line: #dcdcdc;
19
- --zaui-dividing-line: #dcdcdc;
20
- --zaui-area: #fafafa;
21
- --zaui-shadow: rgba(56, 56, 56, 0.15);
22
- --zaui-form-control-line: var(--zaui-line);
23
- --zaui-form-control-line-hover: var(--zaui-brand-hover);
24
- --zaui-form-control-line-active: var(--zaui-brand-active);
25
- --zaui-list-item-active-bg: var(--zaui-brand);
26
- --zaui-list-item-active-hover-bg: var(--zaui-brand);
27
- --zaui-list-item-selected-bg: var(--zaui-brand);
6
+ --zaui-global-bg : #ffffff;
7
+ --zaui-base-bg : #ffffff;
8
+ --zaui-brand : #006aff;
9
+ --zaui-brand-hover : #3387ff;
10
+ --zaui-brand-active : #005ad9;
11
+ --zaui-brand-disabled : #99c3ff;
12
+ --zaui-text : #343434;
13
+ --zaui-text-weak : #616161;
14
+ --zaui-aide-text : #909090;
15
+ --zaui-placeholder : #a0a0a0;
16
+ --zaui-link : var(--zaui-brand);
17
+ --zaui-link-light-active : var(--zaui-brand-active);
18
+ --zaui-line : #dcdcdc;
19
+ --zaui-dividing-line : #dcdcdc;
20
+ --zaui-area : #fafafa;
21
+ --zaui-shadow : rgba(56, 56, 56, 0.15);
22
+ --zaui-form-control-line : var(--zaui-line);
23
+ --zaui-form-control-line-hover : var(--zaui-brand-hover);
24
+ --zaui-form-control-line-active : var(--zaui-brand-active);
25
+ --zaui-list-item-active-bg : var(--zaui-brand);
26
+ --zaui-list-item-active-hover-bg : var(--zaui-brand);
27
+ --zaui-list-item-selected-bg : var(--zaui-brand);
28
28
  --zaui-list-item-selected-hover-bg: var(--zaui-brand);
29
- --zaui-disabled-bg: #f2f2f2;
30
- --zaui-disabled-text: #333333;
31
- --zaui-feedback-overlay-bg: rgba(0, 0, 0, 0.7);
32
- --zaui-feedback-overlay-text: #343434;
33
- --zaui-primary: var(--zaui-brand);
34
- --zaui-primary-hover: var(--zaui-brand-hover);
35
- --zaui-primary-active: var(--zaui-brand-active);
36
- --zaui-danger-line: var(--zaui-line);
37
- --zaui-danger-bg: #fff2f0;
38
- --zaui-warning-line: var(--zaui-line);
39
- --zaui-warning-bg: #fffbe6;
40
- --zaui-info-line: var(--zaui-line);
41
- --zaui-info-bg: #e6f7ff;
42
- --zaui-success-line: var(--zaui-line);
43
- --zaui-success-bg: #f6ffed;
44
- --zaui-danger: #ff5050;
45
- --zaui-warning: #ec9131;
46
- --zaui-success: #00ae4d;
47
- --zaui-menu-top-bg: #ffffff;
48
- --zaui-menu-left-bg: #1a202d;
49
- --zaui-menu-second-bg: #ffffff;
50
- --zaui-form-align: left;
51
- --zaui-table-header-bg: #f2f3f5;
52
- --zaui-table-strip-bg: #fafafa;
53
- --zaui-table-hover-bg: #fafafa;
54
- --zaui-table-selected-bg: var(--zaui-table-hover-bg); // 默认同悬停
55
- --zaui-table-selected-hover-bg: var(--zaui-table-hover-bg); // 默认同悬停
56
- --zaui-table-nested-bg: #fafcfe;
57
- --zaui-form-label-width: 130px; // 8个全角字符宽度
58
- --zaui-border-radius: 4px;
59
- --zaui-border-radius-card: 2px;
60
- --zaui-font-size-title: 16px;
61
- --zaui-font-size-card-title: var(--zaui-font-size-title);
62
- --zaui-font-size: 14px;
63
- --zaui-font-size-sm: 12px;
64
- --zaui-font-size-md: var(--zaui-font-size);
65
- --zaui-font-size-lg: 16px;
66
- --zaui-font-size-xl: 18px;
67
- --zaui-font-size-xxl: 20px;
68
- --zaui-font-size-lg-title: 24px;
69
- --zaui-height-border: var(--zaui-height-size-md);
70
- --zaui-height-card: var(--zaui-height-size-lg);
71
- --zaui-height-size-xs: 4px;
72
- --zaui-height-size-sm: 8px;
73
- --zaui-height-size-md: 16px;
74
- --zaui-height-size-lg: 32px;
75
- --zaui-height-size-xl: 64px;
76
- --zaui-space-border: var(--zaui-space-size-md); // 兼容1.1.35一下版本 变量
77
- --zaui-space-card: var(--zaui-space-size-lg);
78
- --zaui-space-size-xs: 4px;
79
- --zaui-space-size-sm: 8px;
80
- --zaui-space-size-md: 16px;
81
- --zaui-space-size-lg: 32px;
82
- --zaui-space-size-xl: 64px;
29
+ --zaui-disabled-bg : #f2f2f2;
30
+ --zaui-disabled-text : #333333;
31
+ --zaui-feedback-overlay-bg : rgba(0, 0, 0, 0.7);
32
+ --zaui-feedback-overlay-text : #343434;
33
+ --zaui-primary : var(--zaui-brand);
34
+ --zaui-primary-hover : var(--zaui-brand-hover);
35
+ --zaui-primary-active : var(--zaui-brand-active);
36
+ --zaui-danger-line : var(--zaui-line);
37
+ --zaui-danger-bg : #fff2f0;
38
+ --zaui-warning-line : var(--zaui-line);
39
+ --zaui-warning-bg : #fffbe6;
40
+ --zaui-info-line : var(--zaui-line);
41
+ --zaui-info-bg : #e6f7ff;
42
+ --zaui-success-line : var(--zaui-line);
43
+ --zaui-success-bg : #f6ffed;
44
+ --zaui-danger : #ff5050;
45
+ --zaui-warning : #ec9131;
46
+ --zaui-success : #00ae4d;
47
+ --zaui-menu-top-bg : #ffffff;
48
+ --zaui-menu-left-bg : #1a202d;
49
+ --zaui-menu-second-bg : #ffffff;
50
+ --zaui-form-align : left;
51
+ --zaui-table-header-bg : #f2f3f5;
52
+ --zaui-table-strip-bg : #fafafa;
53
+ --zaui-table-hover-bg : #fafafa;
54
+ --zaui-table-selected-bg : var(--zaui-table-hover-bg); // 默认同悬停
55
+ --zaui-table-selected-hover-bg : var(--zaui-table-hover-bg); // 默认同悬停
56
+ --zaui-table-nested-bg : #fafcfe;
57
+ --zaui-contract-bg : #fffaa1; // 对比背景色
58
+ --zaui-form-label-width : 130px; // 8个全角字符宽度
59
+ --zaui-border-radius : 4px;
60
+ --zaui-border-radius-card : 2px;
61
+ --zaui-font-size-title : 16px;
62
+ --zaui-font-size-card-title : var(--zaui-font-size-title);
63
+ --zaui-font-size : 14px;
64
+ --zaui-font-size-sm : 12px;
65
+ --zaui-font-size-md : var(--zaui-font-size);
66
+ --zaui-font-size-lg : 16px;
67
+ --zaui-font-size-xl : 18px;
68
+ --zaui-font-size-xxl : 20px;
69
+ --zaui-font-size-lg-title : 24px;
70
+ --zaui-height-border : var(--zaui-height-size-md);
71
+ --zaui-height-card : var(--zaui-height-size-lg);
72
+ --zaui-height-size-xs : 4px;
73
+ --zaui-height-size-sm : 8px;
74
+ --zaui-height-size-md : 16px;
75
+ --zaui-height-size-lg : 32px;
76
+ --zaui-height-size-xl : 64px;
77
+ --zaui-space-border : var(--zaui-space-size-md); // 兼容1.1.35一下版本 变量
78
+ --zaui-space-card : var(--zaui-space-size-lg);
79
+ --zaui-space-size-xs : 4px;
80
+ --zaui-space-size-sm : 8px;
81
+ --zaui-space-size-md : 16px;
82
+ --zaui-space-size-lg : 32px;
83
+ --zaui-space-size-xl : 64px;
83
84
 
84
85
  --zaui-line-height-base: 1.5;
85
- --zaui-size: 1;
86
- --zaui-base-font-size: 0px;
87
- }
86
+ --zaui-size : 1;
87
+ --zaui-base-font-size : 0px;
88
+ }
@@ -52,6 +52,7 @@
52
52
  @zaui-table-selected-bg: var(--zaui-table-hover-bg #fafafa);
53
53
  @zaui-table-selected-hover-bg: var(--zaui-table-hover-bg #fafafa);
54
54
  @zaui-table-nested-bg: var(--zaui-table-nested-bg #FAFCFE);
55
+ @zaui-contract-bg: var(--zaui-contract-bg; #fffaa1); // 对比背景色
55
56
  @zaui-form-required-after: var(--zaui-form-required-after; inline);
56
57
  @zaui-form-required-before: var(--zaui-form-required-before; none);
57
58
  @zaui-form-label-width: var(--zaui-form-label-width; 130px);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.1.4",
3
+ "version": "3.1.5-beta.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -58,7 +58,7 @@
58
58
  "@dnd-kit/sortable": "^7.0.2",
59
59
  "@dnd-kit/utilities": "^3.2.1",
60
60
  "@pansy/react-watermark": "^3.1.13",
61
- "@zat-design/utils": "^1.1.15",
61
+ "@zat-design/utils": "^1.1.16",
62
62
  "ahooks": "3.7.4",
63
63
  "antd": "4.24.8",
64
64
  "big.js": "^6.2.1",
package/typings.d.ts CHANGED
@@ -19,3 +19,5 @@ declare interface EventCenter {
19
19
  declare interface Window {
20
20
  eventCenter: EventCenter;
21
21
  }
22
+
23
+ type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
@@ -1,19 +0,0 @@
1
- .back-button-container {
2
- color : var(--zaui-aide-text);
3
- font-weight: 400;
4
- background : var(--zaui-disabled-bg);
5
- border : none;
6
-
7
- &:hover {
8
- color : var(--zaui-aide-text);
9
- background: var(--zaui-disabled-bg);
10
- border : none;
11
- }
12
-
13
- &:active,
14
- &:focus {
15
- color : var(--zaui-aide-text);
16
- font-weight: 400;
17
- background : var(--zaui-disabled-bg);
18
- }
19
- }
@@ -1,19 +0,0 @@
1
- .back-button-container {
2
- color : var(--zaui-aide-text);
3
- font-weight: 400;
4
- background : var(--zaui-disabled-bg);
5
- border : none;
6
-
7
- &:hover {
8
- color : var(--zaui-aide-text);
9
- background: var(--zaui-disabled-bg);
10
- border : none;
11
- }
12
-
13
- &:active,
14
- &:focus {
15
- color : var(--zaui-aide-text);
16
- font-weight: 400;
17
- background : var(--zaui-disabled-bg);
18
- }
19
- }