@zat-design/sisyphus-react 3.4.0-beta.2 → 3.4.0-beta.4

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 (60) hide show
  1. package/dist/index.esm.css +43 -61
  2. package/es/ProEditTable/components/DndWrapper/index.d.ts +1 -1
  3. package/es/ProEditTable/components/DndWrapper/index.js +5 -5
  4. package/es/ProEditTable/index.js +15 -9
  5. package/es/ProEditTable/style/index.less +36 -55
  6. package/es/ProEditTable/utils/index.js +2 -2
  7. package/es/ProEnum/components/Group.d.ts +7 -0
  8. package/es/ProEnum/components/Group.js +42 -0
  9. package/es/ProEnum/index.js +9 -0
  10. package/es/ProEnum/propsType.d.ts +2 -2
  11. package/es/ProEnum/style/index.less +49 -0
  12. package/es/ProForm/components/base/InputNumber/index.js +2 -2
  13. package/es/ProForm/components/combination/FormList/components/LineFields.js +1 -0
  14. package/es/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
  15. package/es/ProForm/components/render/ConfirmWrapper.js +53 -0
  16. package/es/ProForm/components/render/Render.js +10 -1
  17. package/es/ProForm/components/render/RenderFields.js +3 -1
  18. package/es/ProForm/components/render/propsType.d.ts +6 -2
  19. package/es/ProForm/utils/valueType.js +37 -3
  20. package/es/ProIcon/index.d.ts +0 -1
  21. package/es/ProIcon/index.js +6 -4
  22. package/es/ProIcon/style/index.less +4 -6
  23. package/es/ProIcon/symbolIcon.js +20 -20
  24. package/es/ProTable/components/RenderColumn/index.js +1 -2
  25. package/es/ProTable/propsType.d.ts +1 -1
  26. package/es/ProTable/style/index.less +196 -99
  27. package/es/ProTable/utils.js +1 -1
  28. package/es/ProTreeModal/components/SortableItem.js +5 -7
  29. package/es/ProTreeModal/style/index.less +0 -6
  30. package/es/style/core/mixins.less +12 -5
  31. package/lib/ProEditTable/components/DndWrapper/index.d.ts +1 -1
  32. package/lib/ProEditTable/components/DndWrapper/index.js +5 -5
  33. package/lib/ProEditTable/index.js +13 -7
  34. package/lib/ProEditTable/style/index.less +36 -55
  35. package/lib/ProEditTable/utils/index.js +2 -2
  36. package/lib/ProEnum/components/Group.d.ts +7 -0
  37. package/lib/ProEnum/components/Group.js +49 -0
  38. package/lib/ProEnum/index.js +9 -0
  39. package/lib/ProEnum/propsType.d.ts +2 -2
  40. package/lib/ProEnum/style/index.less +49 -0
  41. package/lib/ProForm/components/base/InputNumber/index.js +2 -2
  42. package/lib/ProForm/components/combination/FormList/components/LineFields.js +1 -0
  43. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
  44. package/lib/ProForm/components/render/ConfirmWrapper.js +59 -0
  45. package/lib/ProForm/components/render/Render.js +10 -1
  46. package/lib/ProForm/components/render/RenderFields.js +3 -1
  47. package/lib/ProForm/components/render/propsType.d.ts +6 -2
  48. package/lib/ProForm/utils/valueType.js +37 -3
  49. package/lib/ProIcon/index.d.ts +0 -1
  50. package/lib/ProIcon/index.js +6 -4
  51. package/lib/ProIcon/style/index.less +4 -6
  52. package/lib/ProIcon/symbolIcon.js +20 -20
  53. package/lib/ProTable/components/RenderColumn/index.js +1 -2
  54. package/lib/ProTable/propsType.d.ts +1 -1
  55. package/lib/ProTable/style/index.less +196 -99
  56. package/lib/ProTable/utils.js +1 -1
  57. package/lib/ProTreeModal/components/SortableItem.js +5 -7
  58. package/lib/ProTreeModal/style/index.less +0 -6
  59. package/lib/style/core/mixins.less +12 -5
  60. package/package.json +1 -1
@@ -10,10 +10,8 @@ var _jsxRuntime = require("react/jsx-runtime");
10
10
  var _antd = require("antd");
11
11
  var _sortable = require("@dnd-kit/sortable");
12
12
  var _utilities = require("@dnd-kit/utilities");
13
- var _reactSvg = require("react-svg");
13
+ var _ProIcon = _interopRequireDefault(require("../../ProIcon"));
14
14
  var _index = require("../../index");
15
- var _disabled = _interopRequireDefault(require("../../assets/disabled.svg"));
16
- var _drag = _interopRequireDefault(require("../../assets/drag.svg"));
17
15
  var SortableItem = function SortableItem(props) {
18
16
  var drag = props.drag,
19
17
  label = props.label,
@@ -49,12 +47,12 @@ var SortableItem = function SortableItem(props) {
49
47
  onClose: function onClose(e) {
50
48
  return _onClose(e);
51
49
  },
52
- children: [drag ? item.disabled || disabled ? (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, {
50
+ children: [drag ? item.disabled || disabled ? (0, _jsxRuntime.jsx)(_ProIcon.default, {
53
51
  className: "disabled-icon",
54
- src: _disabled.default
55
- }) : (0, _jsxRuntime.jsx)(_reactSvg.ReactSVG, (0, _objectSpread2.default)({
52
+ type: "lock"
53
+ }) : (0, _jsxRuntime.jsx)(_ProIcon.default, (0, _objectSpread2.default)({
56
54
  className: "drag-icon",
57
- src: _drag.default
55
+ type: "drag"
58
56
  }, listeners)) : null, (0, _jsxRuntime.jsx)(_index.ProTooltip, {
59
57
  mode: "auto",
60
58
  line: 1,
@@ -240,12 +240,6 @@
240
240
  border: none;
241
241
  border-radius: var(--zaui-border-radius, 4px);
242
242
 
243
- .drag-icon {
244
- height: 20px;
245
- margin-right: var(--zaui-space-size-xs, 4px);
246
- cursor: move;
247
- }
248
-
249
243
  .pro-tooltip {
250
244
  flex: 1;
251
245
  max-width: calc(100% - 42px);
@@ -2,8 +2,8 @@
2
2
  .clearfix() {
3
3
  &:before,
4
4
  &:after {
5
- content: ' ';
6
5
  display: table;
6
+ content: ' ';
7
7
  }
8
8
 
9
9
  &:after {
@@ -14,8 +14,8 @@
14
14
  // 水平居中
15
15
  .center-block() {
16
16
  display: block;
17
- margin-left: auto;
18
17
  margin-right: auto;
18
+ margin-left: auto;
19
19
  }
20
20
 
21
21
  // 尺码助手
@@ -30,17 +30,17 @@
30
30
 
31
31
  // 可调整大小的文本区域
32
32
  .resizable(@direction: both) {
33
- // Options: horizontal, vertical, both
34
- resize: @direction;
35
33
  // Safari fix
36
34
  overflow: auto;
35
+ // Options: horizontal, vertical, both
36
+ resize: @direction;
37
37
  }
38
38
 
39
39
  // 截断文本
40
40
  .text-truncate() {
41
41
  overflow: hidden;
42
- text-overflow: ellipsis;
43
42
  white-space: nowrap;
43
+ text-overflow: ellipsis;
44
44
  }
45
45
 
46
46
  // mixins函数
@@ -68,3 +68,10 @@
68
68
  .set-sm-text-size() {
69
69
  font-size: calc(@zaui-font-size - 2px);
70
70
  }
71
+
72
+ .pro-icon.drag-icon {
73
+ // height: 20px;
74
+ // width: 20px;
75
+ margin-right: var(--zaui-space-size-xs, 4px);
76
+ cursor: move;
77
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.4.0-beta.2",
3
+ "version": "3.4.0-beta.4",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",