@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.
- package/README.md +7 -0
- package/dist/index.esm.css +82 -37
- package/es/ProAction/index.less +3 -0
- package/es/ProDownload/index.js +9 -6
- package/es/ProDownload/style/index.less +5 -2
- package/es/ProDrawerForm/index.js +1 -15
- package/es/ProDrawerForm/style/index.less +76 -73
- package/es/ProEditLabel/style/index.less +12 -9
- package/es/ProEditTable/components/RenderField/index.js +6 -4
- package/es/ProEditTable/index.js +34 -20
- package/es/ProEditTable/style/index.less +57 -47
- package/es/ProEditTable/utils/config.d.ts +1 -1
- package/es/ProEditTable/utils/config.js +3 -3
- package/es/ProEnum/style/index.less +3 -0
- package/es/ProForm/components/base/DatePicker/index.d.ts +2 -2
- package/es/ProForm/components/base/DatePicker/index.js +5 -8
- package/es/ProForm/components/base/RangePicker/index.d.ts +3 -2
- package/es/ProForm/components/base/RangePicker/index.js +3 -5
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
- package/es/ProForm/components/base/TextArea/index.less +4 -3
- package/es/ProForm/components/base/TimePicker/index.js +3 -3
- package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
- package/es/ProForm/components/combination/Container/style/index.less +6 -3
- package/es/ProForm/components/combination/FormList/style/index.less +20 -24
- package/es/ProForm/components/combination/Group/style/index.less +18 -15
- package/es/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
- package/es/ProForm/components/combination/ProCombination/style/index.less +5 -2
- package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +6 -1
- package/es/ProForm/components/combination/ProModalSelect/index.js +22 -24
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProRangeLimit/index.js +6 -6
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +2 -2
- package/es/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +2 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -4
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
- package/es/ProForm/components/old/ProCertValidity/index.js +16 -16
- package/es/ProForm/components/old/ProCertValidity/propsType.d.ts +4 -4
- package/es/ProForm/components/render/RenderFields.js +4 -5
- package/es/ProForm/style/index.less +46 -44
- package/es/ProIcon/style/index.less +4 -1
- package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
- package/es/ProLayout/components/Layout/Menu/style/index.less +2 -0
- package/es/ProLayout/components/Layout/Notice/style/index.less +3 -0
- package/es/ProLayout/components/ProCollapse/style/index.less +27 -24
- package/es/ProLayout/components/ProFooter/style/index.less +11 -7
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
- package/es/ProLayout/components/ProHeader/index.js +4 -4
- package/es/ProLayout/components/ProHeader/style/index.less +12 -11
- package/es/ProLayout/style/index.less +10 -7
- package/es/ProSelect/index.less +3 -0
- package/es/ProStep/index.js +2 -2
- package/es/ProStep/style/index.less +3 -0
- package/es/ProTable/index.js +15 -7
- package/es/ProTable/style/index.less +76 -54
- package/es/ProTable/utils.d.ts +1 -1
- package/es/ProTable/utils.js +52 -33
- package/es/ProTabs/style/index.less +25 -23
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +7 -6
- package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.js +7 -2
- package/es/ProThemeTools/propsType.d.ts +4 -0
- package/es/ProThemeTools/style/index.less +6 -3
- package/es/ProThemeTools/utils/index.d.ts +1 -1
- package/es/ProThemeTools/utils/index.js +2 -1
- package/es/ProTooltip/style/index.less +3 -0
- package/es/ProTree/components/CloseIcon.js +2 -4
- package/es/ProTree/components/ProTree.js +27 -11
- package/es/ProTree/components/Tree.js +1 -1
- package/es/ProTree/propsType.d.ts +2 -2
- package/es/ProTree/style/index.less +29 -26
- package/es/ProTree/utils.d.ts +6 -0
- package/es/ProTree/utils.js +11 -0
- package/es/ProTreeModal/components/CloseIcon.js +2 -4
- package/es/ProTreeModal/components/Trigger.d.ts +3 -0
- package/es/ProTreeModal/components/Trigger.js +79 -19
- package/es/ProTreeModal/index.js +38 -6
- package/es/ProTreeModal/propsType.d.ts +5 -2
- package/es/ProTreeModal/style/index.less +11 -8
- package/es/ProTreeSelect/index.js +6 -4
- package/es/ProTreeSelect/propsType.d.ts +2 -0
- package/es/ProTreeSelect/style/index.less +25 -22
- package/es/ProUpload/components/DragRender.js +7 -4
- package/es/ProUpload/components/ImageRender.js +5 -1
- package/es/ProUpload/index.js +11 -7
- package/es/ProUpload/style/index.less +13 -4
- package/es/ProViewer/index.js +3 -1
- package/es/ProViewer/style/index.less +6 -3
- package/es/locale/en_US.d.ts +4 -0
- package/es/locale/en_US.js +5 -1
- package/es/locale/index.js +2 -2
- package/es/locale/zh_CN.d.ts +4 -0
- package/es/locale/zh_CN.js +6 -2
- package/es/old/ProCertValidity/index.js +16 -16
- package/es/old/ProCertValidity/propsType.d.ts +4 -4
- package/es/old/ProEditableTable/utils.d.ts +5 -5
- package/es/old/ProEditableTable/utils.js +5 -5
- package/es/style/core/compatible.less +6 -6
- package/es/style/theme/antd.less +272 -253
- package/lib/ProAction/index.less +3 -0
- package/lib/ProDownload/index.js +9 -6
- package/lib/ProDownload/style/index.less +5 -2
- package/lib/ProDrawerForm/index.js +0 -14
- package/lib/ProDrawerForm/style/index.less +76 -73
- package/lib/ProEditLabel/style/index.less +12 -9
- package/lib/ProEditTable/components/RenderField/index.js +6 -4
- package/lib/ProEditTable/index.js +32 -18
- package/lib/ProEditTable/style/index.less +57 -47
- package/lib/ProEditTable/utils/config.d.ts +1 -1
- package/lib/ProEditTable/utils/config.js +3 -3
- package/lib/ProEnum/style/index.less +3 -0
- package/lib/ProForm/components/base/DatePicker/index.d.ts +2 -2
- package/lib/ProForm/components/base/DatePicker/index.js +5 -8
- package/lib/ProForm/components/base/RangePicker/index.d.ts +3 -2
- package/lib/ProForm/components/base/RangePicker/index.js +4 -4
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
- package/lib/ProForm/components/base/TextArea/index.less +4 -3
- package/lib/ProForm/components/base/TimePicker/index.js +3 -3
- package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
- package/lib/ProForm/components/combination/Container/style/index.less +6 -3
- package/lib/ProForm/components/combination/FormList/style/index.less +20 -24
- package/lib/ProForm/components/combination/Group/style/index.less +18 -15
- package/lib/ProForm/components/combination/ProAddressBar/style/index.less +6 -3
- package/lib/ProForm/components/combination/ProCombination/style/index.less +5 -2
- package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +7 -1
- package/lib/ProForm/components/combination/ProModalSelect/index.js +22 -24
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +32 -11
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +13 -10
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +6 -6
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.d.ts +2 -2
- package/lib/ProForm/components/combination/ProTimeLimit/hooks/useControlled.js +2 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -4
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +9 -6
- package/lib/ProForm/components/old/ProCertValidity/index.js +16 -16
- package/lib/ProForm/components/old/ProCertValidity/propsType.d.ts +4 -4
- package/lib/ProForm/components/render/RenderFields.js +4 -5
- package/lib/ProForm/style/index.less +46 -44
- package/lib/ProIcon/style/index.less +4 -1
- package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
- package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +10 -7
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +31 -28
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +14 -11
- package/lib/ProLayout/components/Layout/Menu/style/index.less +2 -0
- package/lib/ProLayout/components/Layout/Notice/style/index.less +3 -0
- package/lib/ProLayout/components/ProCollapse/style/index.less +27 -24
- package/lib/ProLayout/components/ProFooter/style/index.less +11 -7
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +4 -1
- package/lib/ProLayout/components/ProHeader/index.js +4 -4
- package/lib/ProLayout/components/ProHeader/style/index.less +12 -11
- package/lib/ProLayout/style/index.less +10 -7
- package/lib/ProSelect/index.less +3 -0
- package/lib/ProStep/index.js +1 -1
- package/lib/ProStep/style/index.less +3 -0
- package/lib/ProTable/index.js +14 -6
- package/lib/ProTable/style/index.less +76 -54
- package/lib/ProTable/utils.d.ts +1 -1
- package/lib/ProTable/utils.js +52 -33
- package/lib/ProTabs/style/index.less +25 -23
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
- package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.js +7 -2
- package/lib/ProThemeTools/propsType.d.ts +4 -0
- package/lib/ProThemeTools/style/index.less +6 -3
- package/lib/ProThemeTools/utils/index.d.ts +1 -1
- package/lib/ProThemeTools/utils/index.js +2 -1
- package/lib/ProTooltip/style/index.less +3 -0
- package/lib/ProTree/components/CloseIcon.js +2 -4
- package/lib/ProTree/components/ProTree.js +26 -10
- package/lib/ProTree/components/Tree.js +1 -1
- package/lib/ProTree/propsType.d.ts +2 -2
- package/lib/ProTree/style/index.less +29 -26
- package/lib/ProTree/utils.d.ts +6 -0
- package/lib/ProTree/utils.js +12 -0
- package/lib/ProTreeModal/components/CloseIcon.js +2 -4
- package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
- package/lib/ProTreeModal/components/Trigger.js +74 -18
- package/lib/ProTreeModal/index.js +38 -6
- package/lib/ProTreeModal/propsType.d.ts +5 -2
- package/lib/ProTreeModal/style/index.less +11 -8
- package/lib/ProTreeSelect/index.js +6 -4
- package/lib/ProTreeSelect/propsType.d.ts +2 -0
- package/lib/ProTreeSelect/style/index.less +25 -22
- package/lib/ProUpload/components/DragRender.js +7 -4
- package/lib/ProUpload/components/ImageRender.js +5 -1
- package/lib/ProUpload/index.js +11 -7
- package/lib/ProUpload/style/index.less +13 -4
- package/lib/ProViewer/index.js +4 -3
- package/lib/ProViewer/style/index.less +6 -3
- package/lib/locale/en_US.d.ts +4 -0
- package/lib/locale/en_US.js +5 -1
- package/lib/locale/index.js +2 -2
- package/lib/locale/zh_CN.d.ts +4 -0
- package/lib/locale/zh_CN.js +6 -2
- package/lib/old/ProCertValidity/index.js +16 -16
- package/lib/old/ProCertValidity/propsType.d.ts +4 -4
- package/lib/old/ProEditableTable/utils.d.ts +5 -5
- package/lib/old/ProEditableTable/utils.js +5 -5
- package/lib/style/core/compatible.less +6 -6
- package/lib/style/theme/antd.less +272 -253
- package/package.json +3 -2
- package/typings.d.ts +0 -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
|
-
|
|
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
|
-
|
|
30
|
+
&>.@{ant-prefix}-col {
|
|
28
31
|
padding-left : 12px;
|
|
29
32
|
padding-right: 12px;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
.pro-collapse
|
|
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
|
|
3
|
-
margin
|
|
5
|
+
height: 14px;
|
|
6
|
+
margin: @zaui-space-size-xs 0;
|
|
4
7
|
padding-left: @zaui-space-size-sm;
|
|
5
|
-
font-weight
|
|
6
|
-
line-height
|
|
7
|
-
border-left
|
|
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
|
|
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
|
|
18
|
+
width: 14px !important;
|
|
24
19
|
height: 14px !important;
|
|
25
|
-
color
|
|
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
|
-
|
|
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
|
|
46
|
-
align-items
|
|
47
|
-
height
|
|
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
|
|
44
|
+
padding: 0;
|
|
50
45
|
padding-right: @zaui-space-size-sm;
|
|
51
|
-
border
|
|
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
|
-
|
|
61
|
+
.@{ant-prefix}-btn-link {
|
|
66
62
|
padding: @zaui-space-size-xs 0;
|
|
67
63
|
}
|
|
68
64
|
|
|
69
|
-
|
|
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
|
-
|
|
25
|
+
.@{ant-prefix}-space .@{ant-prefix}-space-item {
|
|
23
26
|
width: auto;
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
.@{ant-prefix}-space-item {
|
|
26
29
|
width: auto;
|
|
27
30
|
}
|
|
28
31
|
}
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
.@{ant-prefix}-space {
|
|
32
35
|
width: 100%;
|
|
33
36
|
|
|
34
|
-
|
|
37
|
+
.@{ant-prefix}-space-item {
|
|
35
38
|
width: 100%;
|
|
36
39
|
}
|
|
37
40
|
|
|
38
|
-
|
|
41
|
+
.@{ant-prefix}-form-item {
|
|
39
42
|
|
|
40
43
|
margin-bottom: 0 !important;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
|
|
44
|
-
|
|
47
|
+
.@{ant-prefix}-form-item-label {
|
|
45
48
|
display: none;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
|
|
51
|
+
.@{ant-prefix}-space-compact {
|
|
49
52
|
align-items: center;
|
|
50
53
|
flex : auto;
|
|
51
54
|
width : 100%;
|
|
52
55
|
|
|
53
|
-
|
|
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
|
-
|
|
66
|
-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
-
|
|
91
|
+
.@{ant-prefix}-select-selector {
|
|
89
92
|
.start-radius()
|
|
90
93
|
}
|
|
91
94
|
}
|
|
92
95
|
|
|
93
96
|
&:last-child {
|
|
94
|
-
|
|
97
|
+
.@{ant-prefix}-select-selector {
|
|
95
98
|
.end-radius()
|
|
96
99
|
}
|
|
97
100
|
}
|
|
@@ -99,7 +102,7 @@
|
|
|
99
102
|
}
|
|
100
103
|
|
|
101
104
|
// 报错样式定制
|
|
102
|
-
|
|
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
|
-
|
|
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
|
-
|
|
20
|
+
.@{ant-prefix}-input-affix-wrapper {
|
|
18
21
|
width: 100%;
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
.@{ant-prefix}-input-affix-wrapper {
|
|
23
26
|
width: 50%;
|
|
24
27
|
margin-left: 2px;
|
|
25
28
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
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(
|
|
15
|
+
& > *:not(.@{ant-prefix}-btn) {
|
|
13
16
|
flex: 1;
|
|
14
17
|
}
|
|
15
18
|
}
|
|
@@ -5,6 +5,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
5
5
|
import { useDebounceFn, usePrevious, useRequest } from 'ahooks';
|
|
6
6
|
import { isEqual } from 'lodash';
|
|
7
7
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
8
|
+
import locale, { formatMessage } from '../../../../../locale';
|
|
8
9
|
var defaultPage = {
|
|
9
10
|
pageNum: 1,
|
|
10
11
|
pageSize: 10
|
|
@@ -128,7 +129,11 @@ export function useRequestList(service, options, useRequestOptions) {
|
|
|
128
129
|
onShowSizeChange: onChange,
|
|
129
130
|
hideOnSinglePage: page.pageSize === 10,
|
|
130
131
|
showTotal: function showTotal(total) {
|
|
131
|
-
|
|
132
|
+
var _locale$ProEditTable;
|
|
133
|
+
if (!total) return;
|
|
134
|
+
return formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProEditTable = locale.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
135
|
+
total: total
|
|
136
|
+
});
|
|
132
137
|
}
|
|
133
138
|
} : false
|
|
134
139
|
});
|
|
@@ -419,19 +419,9 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
419
419
|
useRequest.initParams = useRequest === null || useRequest === void 0 ? void 0 : useRequest.initParams(value, contentForm === null || contentForm === void 0 ? void 0 : (_contentForm$getField = contentForm.getFieldsValue) === null || _contentForm$getField === void 0 ? void 0 : _contentForm$getField.call(contentForm));
|
|
420
420
|
}
|
|
421
421
|
if (!((useRequest === null || useRequest === void 0 ? void 0 : useRequest.initParams) || defaultOne)) {
|
|
422
|
-
_context4.next =
|
|
422
|
+
_context4.next = 10;
|
|
423
423
|
break;
|
|
424
424
|
}
|
|
425
|
-
if (readOnly) {
|
|
426
|
-
_context4.next = 5;
|
|
427
|
-
break;
|
|
428
|
-
}
|
|
429
|
-
setState({
|
|
430
|
-
_value: value,
|
|
431
|
-
isInit: false
|
|
432
|
-
});
|
|
433
|
-
return _context4.abrupt("return");
|
|
434
|
-
case 5:
|
|
435
425
|
queryBean = _objectSpread(_objectSpread({}, useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options2 = useRequest.options) === null || _useRequest$options2 === void 0 ? void 0 : _useRequest$options2.defaultParams), (useRequest === null || useRequest === void 0 ? void 0 : useRequest.initParams) || {});
|
|
436
426
|
page = _objectSpread({
|
|
437
427
|
pageNum: 1,
|
|
@@ -441,9 +431,9 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
441
431
|
queryBean: queryBean !== null && queryBean !== void 0 ? queryBean : {}
|
|
442
432
|
}) : queryBean;
|
|
443
433
|
params = transformParams ? transformParams(params) : params;
|
|
444
|
-
_context4.next =
|
|
434
|
+
_context4.next = 8;
|
|
445
435
|
return runAsync(params);
|
|
446
|
-
case
|
|
436
|
+
case 8:
|
|
447
437
|
res = _context4.sent;
|
|
448
438
|
if (res === null || res === void 0 ? void 0 : res.data) {
|
|
449
439
|
list = [];
|
|
@@ -453,19 +443,27 @@ var ProModalSelect = function ProModalSelect(props, ref) {
|
|
|
453
443
|
list = withPagination ? res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list : res === null || res === void 0 ? void 0 : res.data;
|
|
454
444
|
}
|
|
455
445
|
_data2 = isMultiple ? list : (_list = list) === null || _list === void 0 ? void 0 : _list[0];
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
446
|
+
if (_data2) {
|
|
447
|
+
nextSelectRowKeys = isMultiple ? value : [value];
|
|
448
|
+
if (labelInValue) {
|
|
449
|
+
onChange(_data2);
|
|
450
|
+
}
|
|
451
|
+
// 更新内部展示值
|
|
452
|
+
setState({
|
|
453
|
+
_value: _data2,
|
|
454
|
+
isInit: false,
|
|
455
|
+
selectedRows: list,
|
|
456
|
+
selectedRowKeys: nextSelectRowKeys
|
|
457
|
+
});
|
|
458
|
+
} else if (!readOnly) {
|
|
459
|
+
// 当传入initParams且文本框非只读时,不调用接口获取初始化数据
|
|
460
|
+
setState({
|
|
461
|
+
_value: value,
|
|
462
|
+
isInit: false
|
|
463
|
+
});
|
|
459
464
|
}
|
|
460
|
-
// 更新内部展示值
|
|
461
|
-
setState({
|
|
462
|
-
_value: _data2,
|
|
463
|
-
isInit: false,
|
|
464
|
-
selectedRows: list,
|
|
465
|
-
selectedRowKeys: nextSelectRowKeys
|
|
466
|
-
});
|
|
467
465
|
}
|
|
468
|
-
case
|
|
466
|
+
case 10:
|
|
469
467
|
case "end":
|
|
470
468
|
return _context4.stop();
|
|
471
469
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
36
|
-
|
|
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
|
-
|
|
63
|
+
.@{ant-prefix}-input-group-wrapper-status-error {
|
|
43
64
|
&:hover {
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
51
|
-
|
|
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
|
-
|
|
59
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
&
|
|
22
|
+
& .@{ant-prefix}-input-rtl.range-right {
|
|
20
23
|
border-right-width: 0;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
&
|
|
24
|
-
&
|
|
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
|
-
|
|
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
|
-
|
|
42
|
+
.@{ant-prefix}-input-number {
|
|
40
43
|
border-right: none;
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
.range-right {
|
|
45
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
77
|
+
>.@{ant-prefix}-select-selector {
|
|
75
78
|
border-top-left-radius : 0 !important;
|
|
76
79
|
border-bottom-left-radius: 0 !important;
|
|
77
80
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { RangePickerProps } from 'antd/es/date-picker';
|
|
3
|
-
import {
|
|
3
|
+
import { Dayjs } from 'dayjs';
|
|
4
4
|
export type Props = Omit<RangePickerProps, 'value' | 'onChange' | 'format' | 'separator' | 'mode'> & {
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
foreverText?: string;
|
|
@@ -12,7 +12,7 @@ export type Props = Omit<RangePickerProps, 'value' | 'onChange' | 'format' | 'se
|
|
|
12
12
|
separator?: any;
|
|
13
13
|
isView?: boolean;
|
|
14
14
|
};
|
|
15
|
-
type Value = [
|
|
15
|
+
type Value = [Dayjs?, Dayjs?, boolean?];
|
|
16
16
|
type ValueStr = [string?, string?, string?];
|
|
17
17
|
type HandleChange = (value: ValueStr | null, valueStr: Value | null) => void;
|
|
18
18
|
declare const ProRangeLimit: React.FC<Props>;
|
|
@@ -12,12 +12,12 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
12
12
|
import { useMemo, useState } from 'react';
|
|
13
13
|
import { omit } from 'lodash';
|
|
14
14
|
import classNames from 'classnames';
|
|
15
|
-
import
|
|
15
|
+
import dayjs from 'dayjs';
|
|
16
16
|
import { useProConfig } from '../../../../ProConfigProvider';
|
|
17
17
|
import Container from '../../Container';
|
|
18
18
|
import locale from '../../../../locale';
|
|
19
19
|
import ProForm from '../../../../ProForm';
|
|
20
|
-
var defaultPickerValue = [
|
|
20
|
+
var defaultPickerValue = [dayjs(), dayjs()];
|
|
21
21
|
var useControlled = function useControlled(props) {
|
|
22
22
|
var _useState = useState(),
|
|
23
23
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -25,7 +25,7 @@ var useControlled = function useControlled(props) {
|
|
|
25
25
|
setValue = _useState2[1];
|
|
26
26
|
if ('value' in props) {
|
|
27
27
|
var _props$value, _props$value2;
|
|
28
|
-
var internalValue = [((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value[0]) &&
|
|
28
|
+
var internalValue = [((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value[0]) && dayjs(props.value[0], props.format), ((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2[1]) && dayjs(props.value[1], props.format)];
|
|
29
29
|
var handleChange = function handleChange(value, other) {
|
|
30
30
|
var _value = _slicedToArray(value, 2),
|
|
31
31
|
start = _value[0],
|
|
@@ -74,10 +74,10 @@ var ProRangeLimit = function ProRangeLimit(props) {
|
|
|
74
74
|
'forever-checkbox': true
|
|
75
75
|
});
|
|
76
76
|
var _isForever = useMemo(function () {
|
|
77
|
-
return
|
|
77
|
+
return dayjs(foreverDate, format).isSame(endDate);
|
|
78
78
|
}, [value]);
|
|
79
79
|
var foreverMoment = useMemo(function () {
|
|
80
|
-
return
|
|
80
|
+
return dayjs(foreverDate, format);
|
|
81
81
|
}, [foreverDate, format]);
|
|
82
82
|
if (isView) {
|
|
83
83
|
var _props$value3, _props$value4;
|
|
@@ -115,7 +115,7 @@ var ProRangeLimit = function ProRangeLimit(props) {
|
|
|
115
115
|
start = _ref9[0],
|
|
116
116
|
end = _ref9[1];
|
|
117
117
|
if (e.target.checked) {
|
|
118
|
-
start = start ||
|
|
118
|
+
start = start || dayjs().startOf('day');
|
|
119
119
|
end = foreverMoment;
|
|
120
120
|
} else {
|
|
121
121
|
start = undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
2
2
|
interface Props<T = any> {
|
|
3
3
|
value?: T;
|
|
4
4
|
onChange?: (value: T, ...rest: any[]) => void;
|
|
5
5
|
format?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const useControlled: (props: Props) => [
|
|
7
|
+
declare const useControlled: (props: Props) => [dayjs.Dayjs, (value: Dayjs | undefined) => void];
|
|
8
8
|
export default useControlled;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
|
-
import
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
var useControlled = function useControlled(props) {
|
|
5
5
|
var value = props.value,
|
|
@@ -18,7 +18,7 @@ var useControlled = function useControlled(props) {
|
|
|
18
18
|
onChange(_value, value);
|
|
19
19
|
};
|
|
20
20
|
if ('value' in props) {
|
|
21
|
-
return [value &&
|
|
21
|
+
return [value && dayjs(value, format).startOf('day'), handleChange];
|
|
22
22
|
}
|
|
23
23
|
return [valueState, handleChange];
|
|
24
24
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { DatePickerProps } from 'antd';
|
|
2
|
-
import {
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { ProFormOtherProps } from '../../../propsType';
|
|
5
5
|
import { Props as ProRangeLimitProps } from '../ProRangeLimit';
|
|
6
6
|
export type DateType = DatePickerProps['value'];
|
|
7
7
|
export type ProTimeLimitProps = DistributiveOmit<DatePickerProps, 'value' | 'onChange' | 'mode'> & {
|
|
8
8
|
value?: string;
|
|
9
|
-
onChange?: (value: ProTimeLimitProps['value'] | null, valueData:
|
|
9
|
+
onChange?: (value: ProTimeLimitProps['value'] | null, valueData: Dayjs) => void;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
foreverTime?: string;
|
|
12
12
|
foreverText?: string;
|
|
@@ -12,7 +12,7 @@ var _excluded = ["format", "disabled", "foreverTime", "foreverText", "valueType"
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import classNames from 'classnames';
|
|
14
14
|
import { omit } from 'lodash';
|
|
15
|
-
import
|
|
15
|
+
import dayjs, { isDayjs } from 'dayjs';
|
|
16
16
|
import { useMemo } from 'react';
|
|
17
17
|
import { useProConfig } from '../../../../ProConfigProvider';
|
|
18
18
|
import Container from '../../Container';
|
|
@@ -37,7 +37,7 @@ export var ProTimeLimit = function ProTimeLimit(props) {
|
|
|
37
37
|
viewEmpty = _ref.viewEmpty;
|
|
38
38
|
var isView = typeof props.isView === 'boolean' ? props.isView : isViewCon; // 组件可直接接收isView参数, 优先级高
|
|
39
39
|
var _useMemo = useMemo(function () {
|
|
40
|
-
var foreverMoment = foreverTime ?
|
|
40
|
+
var foreverMoment = foreverTime ? dayjs(foreverTime, format) : dayjs('9999-01-01', 'YYYY-MM-DD');
|
|
41
41
|
var foreverString = foreverTime || foreverMoment.format(format);
|
|
42
42
|
return [foreverString, foreverMoment];
|
|
43
43
|
}, [format, foreverTime]),
|
|
@@ -53,7 +53,7 @@ export var ProTimeLimit = function ProTimeLimit(props) {
|
|
|
53
53
|
onChange = _useControlled2[1];
|
|
54
54
|
var initialConfig = useProConfig('ProTimeLimit');
|
|
55
55
|
var isForever = useMemo(function () {
|
|
56
|
-
if (
|
|
56
|
+
if (isDayjs(value)) {
|
|
57
57
|
return foreverMoment.format(format) === value.format(format);
|
|
58
58
|
}
|
|
59
59
|
return false;
|
|
@@ -61,7 +61,7 @@ export var ProTimeLimit = function ProTimeLimit(props) {
|
|
|
61
61
|
var foreverChange = function foreverChange(e) {
|
|
62
62
|
var checkedForever = e.target.checked;
|
|
63
63
|
if (checkedForever) {
|
|
64
|
-
onChange(
|
|
64
|
+
onChange(dayjs(foreverString, format));
|
|
65
65
|
} else {
|
|
66
66
|
onChange(null);
|
|
67
67
|
}
|