@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.
- package/dist/index.esm.css +43 -61
- package/es/ProEditTable/components/DndWrapper/index.d.ts +1 -1
- package/es/ProEditTable/components/DndWrapper/index.js +5 -5
- package/es/ProEditTable/index.js +15 -9
- package/es/ProEditTable/style/index.less +36 -55
- package/es/ProEditTable/utils/index.js +2 -2
- package/es/ProEnum/components/Group.d.ts +7 -0
- package/es/ProEnum/components/Group.js +42 -0
- package/es/ProEnum/index.js +9 -0
- package/es/ProEnum/propsType.d.ts +2 -2
- package/es/ProEnum/style/index.less +49 -0
- package/es/ProForm/components/base/InputNumber/index.js +2 -2
- package/es/ProForm/components/combination/FormList/components/LineFields.js +1 -0
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
- package/es/ProForm/components/render/ConfirmWrapper.js +53 -0
- package/es/ProForm/components/render/Render.js +10 -1
- package/es/ProForm/components/render/RenderFields.js +3 -1
- package/es/ProForm/components/render/propsType.d.ts +6 -2
- package/es/ProForm/utils/valueType.js +37 -3
- package/es/ProIcon/index.d.ts +0 -1
- package/es/ProIcon/index.js +6 -4
- package/es/ProIcon/style/index.less +4 -6
- package/es/ProIcon/symbolIcon.js +20 -20
- package/es/ProTable/components/RenderColumn/index.js +1 -2
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +196 -99
- package/es/ProTable/utils.js +1 -1
- package/es/ProTreeModal/components/SortableItem.js +5 -7
- package/es/ProTreeModal/style/index.less +0 -6
- package/es/style/core/mixins.less +12 -5
- package/lib/ProEditTable/components/DndWrapper/index.d.ts +1 -1
- package/lib/ProEditTable/components/DndWrapper/index.js +5 -5
- package/lib/ProEditTable/index.js +13 -7
- package/lib/ProEditTable/style/index.less +36 -55
- package/lib/ProEditTable/utils/index.js +2 -2
- package/lib/ProEnum/components/Group.d.ts +7 -0
- package/lib/ProEnum/components/Group.js +49 -0
- package/lib/ProEnum/index.js +9 -0
- package/lib/ProEnum/propsType.d.ts +2 -2
- package/lib/ProEnum/style/index.less +49 -0
- package/lib/ProForm/components/base/InputNumber/index.js +2 -2
- package/lib/ProForm/components/combination/FormList/components/LineFields.js +1 -0
- package/lib/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
- package/lib/ProForm/components/render/ConfirmWrapper.js +59 -0
- package/lib/ProForm/components/render/Render.js +10 -1
- package/lib/ProForm/components/render/RenderFields.js +3 -1
- package/lib/ProForm/components/render/propsType.d.ts +6 -2
- package/lib/ProForm/utils/valueType.js +37 -3
- package/lib/ProIcon/index.d.ts +0 -1
- package/lib/ProIcon/index.js +6 -4
- package/lib/ProIcon/style/index.less +4 -6
- package/lib/ProIcon/symbolIcon.js +20 -20
- package/lib/ProTable/components/RenderColumn/index.js +1 -2
- package/lib/ProTable/propsType.d.ts +1 -1
- package/lib/ProTable/style/index.less +196 -99
- package/lib/ProTable/utils.js +1 -1
- package/lib/ProTreeModal/components/SortableItem.js +5 -7
- package/lib/ProTreeModal/style/index.less +0 -6
- package/lib/style/core/mixins.less +12 -5
- 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
|
|
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)(
|
|
50
|
+
children: [drag ? item.disabled || disabled ? (0, _jsxRuntime.jsx)(_ProIcon.default, {
|
|
53
51
|
className: "disabled-icon",
|
|
54
|
-
|
|
55
|
-
}) : (0, _jsxRuntime.jsx)(
|
|
52
|
+
type: "lock"
|
|
53
|
+
}) : (0, _jsxRuntime.jsx)(_ProIcon.default, (0, _objectSpread2.default)({
|
|
56
54
|
className: "drag-icon",
|
|
57
|
-
|
|
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
|
+
}
|