@zat-design/sisyphus-react 3.1.5 → 3.2.0
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 +176 -250
- package/es/ProAction/index.js +7 -5
- package/es/ProAction/index.less +3 -2
- package/es/ProConfigProvider/index.d.ts +2 -0
- package/es/ProConfigProvider/index.js +23 -2
- package/es/ProDownload/utils.js +6 -3
- package/es/ProDrawerForm/components/ProDrawer/index.js +6 -4
- package/es/ProDrawerForm/index.js +5 -3
- package/es/ProDrawerForm/style/index.less +15 -11
- package/es/ProEditLabel/style/index.less +2 -2
- package/es/ProEditTable/components/ActionButton/index.js +3 -2
- package/es/ProEditTable/components/RenderField/index.js +2 -1
- package/es/ProEditTable/index.js +7 -6
- package/es/ProEditTable/style/index.less +15 -8
- package/es/ProEditTable/utils/config.d.ts +8 -8
- package/es/ProEditTable/utils/config.js +20 -12
- package/es/ProEditTable/utils/index.js +3 -2
- package/es/ProEnum/hooks/useEnumRequest.js +17 -10
- package/es/ProEnum/index.js +9 -4
- package/es/ProEnum/style/index.less +1 -1
- package/es/ProForm/components/FormFooter/index.js +16 -20
- package/es/ProForm/components/base/Input/index.js +4 -3
- package/es/ProForm/components/base/InputNumber/index.js +4 -3
- package/es/ProForm/components/base/RangePicker/index.js +0 -3
- package/es/ProForm/components/base/Select/index.js +2 -1
- package/es/ProForm/components/base/Switch/index.js +9 -5
- package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -1
- package/es/ProForm/components/base/TextArea/index.js +4 -2
- package/es/ProForm/components/base/TextArea/index.less +1 -1
- package/es/ProForm/components/combination/Container/style/index.less +0 -1
- package/es/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
- package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
- package/es/ProForm/components/combination/FormList/style/index.less +20 -19
- package/es/ProForm/components/combination/Group/index.js +2 -2
- package/es/ProForm/components/combination/ProAddressBar/index.js +83 -63
- package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
- package/es/ProForm/components/combination/ProModalSelect/index.js +76 -15
- package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
- package/es/ProForm/components/combination/ProNumberRange/index.js +3 -2
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProRangeLimit/index.js +3 -7
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
- package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -11
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
- package/es/ProForm/components/old/EnumSelect/style/index.less +7 -8
- package/es/ProForm/components/render/Render.js +4 -2
- package/es/ProForm/components/render/RenderFields.js +10 -6
- package/es/ProForm/components/render/propsType.d.ts +5 -4
- package/es/ProForm/index.js +14 -2
- package/es/ProForm/style/index.less +77 -169
- package/es/ProForm/utils/index.d.ts +1 -1
- package/es/ProForm/utils/index.js +7 -2
- package/es/ProForm/utils/rulesCreator.js +2 -1
- package/es/ProForm/utils/useRules.js +4 -3
- package/es/ProForm/utils/useShouldUpdate.js +16 -16
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
- package/es/ProLayout/components/Layout/Notice/index.js +3 -2
- package/es/ProLayout/components/ProCollapse/style/index.less +4 -4
- package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
- package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +2 -1
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
- package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
- package/es/ProLayout/components/ProHeader/components/index.js +2 -1
- package/es/ProLayout/components/ProHeader/index.js +9 -6
- package/es/ProLayout/components/ProHeader/style/index.less +16 -7
- package/es/ProLayout/utils/index.js +1 -1
- package/es/ProSelect/index.d.ts +3 -3
- package/es/ProSelect/index.js +4 -2
- package/es/ProStep/components/Step/index.js +3 -1
- package/es/ProStep/style/index.less +0 -1
- package/es/ProTable/components/RenderColumn/index.d.ts +5 -5
- package/es/ProTable/components/RenderColumn/index.js +41 -25
- package/es/ProTable/index.js +10 -8
- package/es/ProTable/propsType.d.ts +2 -0
- package/es/ProTable/style/index.less +14 -1
- package/es/ProTable/useAntdTable.d.ts +12 -4
- package/es/ProTable/useAntdTable.js +18 -6
- package/es/ProTable/utils.d.ts +1 -1
- package/es/ProTable/utils.js +258 -201
- package/es/ProTabs/style/index.less +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +1 -1
- package/es/ProThemeTools/component/PrdTools/style/index.less +3 -3
- package/es/ProThemeTools/index.d.ts +2 -2
- package/es/ProThemeTools/index.js +24 -17
- package/es/ProThemeTools/propsType.d.ts +8 -6
- package/es/ProThemeTools/style/index.less +2 -2
- package/es/ProThemeTools/utils/index.d.ts +7 -0
- package/es/ProThemeTools/utils/index.js +19 -1
- package/es/ProTree/components/ProTree.js +6 -5
- package/es/ProTree/components/SearchTitle.d.ts +2 -2
- package/es/ProTree/components/SearchTitle.js +11 -1
- package/es/ProTree/components/Tree.js +9 -2
- package/es/ProTree/style/index.less +193 -141
- package/es/ProTreeModal/components/List.js +0 -14
- package/es/ProTreeModal/components/Trigger.js +9 -3
- package/es/ProTreeModal/index.js +29 -13
- package/es/ProTreeModal/style/index.less +2 -6
- package/es/ProUpload/components/ButtonRender.js +5 -2
- package/es/ProUpload/components/DragRender.js +8 -8
- package/es/ProUpload/components/Example.js +3 -1
- package/es/ProUpload/components/ImageRender.js +8 -6
- package/es/ProUpload/index.js +8 -6
- package/es/ProUpload/style/index.less +41 -39
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/es/locale/en_US.d.ts +138 -0
- package/es/locale/en_US.js +137 -0
- package/es/locale/index.d.ts +13 -0
- package/es/locale/index.js +32 -0
- package/es/locale/zh_CN.d.ts +137 -0
- package/es/locale/zh_CN.js +136 -0
- package/es/old/ProEditableTable/style/index.less +1 -2
- package/es/style/components.less +0 -1
- package/es/style/core/normalize.less +1 -2
- package/es/style/theme/antd.less +3 -4
- package/es/style/theme/index.less +80 -79
- package/es/style/theme/tokens.less +1 -0
- package/lib/ProAction/index.js +7 -5
- package/lib/ProAction/index.less +3 -2
- package/lib/ProConfigProvider/index.d.ts +2 -0
- package/lib/ProConfigProvider/index.js +22 -2
- package/lib/ProDownload/utils.js +4 -3
- package/lib/ProDrawerForm/components/ProDrawer/index.js +6 -4
- package/lib/ProDrawerForm/index.js +5 -3
- package/lib/ProDrawerForm/style/index.less +15 -11
- package/lib/ProEditLabel/style/index.less +2 -2
- package/lib/ProEditTable/components/ActionButton/index.js +3 -2
- package/lib/ProEditTable/components/RenderField/index.js +4 -1
- package/lib/ProEditTable/index.js +7 -6
- package/lib/ProEditTable/style/index.less +15 -8
- package/lib/ProEditTable/utils/config.d.ts +8 -8
- package/lib/ProEditTable/utils/config.js +20 -12
- package/lib/ProEditTable/utils/index.js +3 -2
- package/lib/ProEnum/hooks/useEnumRequest.js +17 -10
- package/lib/ProEnum/index.js +9 -4
- package/lib/ProEnum/style/index.less +1 -1
- package/lib/ProForm/components/FormFooter/index.js +16 -19
- package/lib/ProForm/components/base/Input/index.js +4 -3
- package/lib/ProForm/components/base/InputNumber/index.js +4 -3
- package/lib/ProForm/components/base/RangePicker/index.js +1 -4
- package/lib/ProForm/components/base/Select/index.js +2 -1
- package/lib/ProForm/components/base/Switch/index.js +8 -5
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -1
- package/lib/ProForm/components/base/TextArea/index.js +4 -2
- package/lib/ProForm/components/base/TextArea/index.less +1 -1
- package/lib/ProForm/components/combination/Container/style/index.less +0 -1
- package/lib/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
- package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
- package/lib/ProForm/components/combination/FormList/style/index.less +20 -19
- package/lib/ProForm/components/combination/Group/index.js +2 -2
- package/lib/ProForm/components/combination/ProAddressBar/index.js +78 -60
- package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
- package/lib/ProForm/components/combination/ProModalSelect/index.js +76 -15
- package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
- package/lib/ProForm/components/combination/ProNumberRange/index.js +3 -2
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +3 -7
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -11
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
- package/lib/ProForm/components/old/EnumSelect/style/index.less +7 -8
- package/lib/ProForm/components/old/InputRange/index.js +0 -1
- package/lib/ProForm/components/old/ProCertValidity/index.js +1 -1
- package/lib/ProForm/components/render/Render.js +5 -2
- package/lib/ProForm/components/render/RenderFields.js +9 -5
- package/lib/ProForm/components/render/propsType.d.ts +5 -4
- package/lib/ProForm/index.js +14 -2
- package/lib/ProForm/style/index.less +77 -169
- package/lib/ProForm/utils/index.d.ts +1 -1
- package/lib/ProForm/utils/index.js +7 -2
- package/lib/ProForm/utils/rulesCreator.js +2 -1
- package/lib/ProForm/utils/useRules.js +4 -3
- package/lib/ProForm/utils/useShouldUpdate.js +16 -16
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
- package/lib/ProLayout/components/Layout/Notice/index.js +3 -2
- package/lib/ProLayout/components/ProCollapse/style/index.less +4 -4
- package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
- package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +3 -1
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
- package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
- package/lib/ProLayout/components/ProHeader/components/index.js +8 -1
- package/lib/ProLayout/components/ProHeader/index.js +9 -6
- package/lib/ProLayout/components/ProHeader/style/index.less +16 -7
- package/lib/ProLayout/utils/index.js +1 -1
- package/lib/ProSelect/index.d.ts +3 -3
- package/lib/ProSelect/index.js +4 -2
- package/lib/ProStep/components/Step/index.js +3 -1
- package/lib/ProStep/style/index.less +0 -1
- package/lib/ProTable/components/RenderColumn/index.d.ts +5 -5
- package/lib/ProTable/components/RenderColumn/index.js +38 -24
- package/lib/ProTable/components/TableResizable/index.js +8 -0
- package/lib/ProTable/index.js +10 -8
- package/lib/ProTable/propsType.d.ts +2 -0
- package/lib/ProTable/style/index.less +14 -1
- package/lib/ProTable/useAntdTable.d.ts +12 -4
- package/lib/ProTable/useAntdTable.js +19 -6
- package/lib/ProTable/utils.d.ts +1 -1
- package/lib/ProTable/utils.js +258 -201
- package/lib/ProTabs/index.js +1 -0
- package/lib/ProTabs/style/index.less +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +1 -1
- package/lib/ProThemeTools/component/PrdTools/style/index.less +3 -3
- package/lib/ProThemeTools/index.d.ts +2 -2
- package/lib/ProThemeTools/index.js +24 -16
- package/lib/ProThemeTools/propsType.d.ts +8 -6
- package/lib/ProThemeTools/style/index.less +2 -2
- package/lib/ProThemeTools/utils/index.d.ts +7 -0
- package/lib/ProThemeTools/utils/index.js +20 -2
- package/lib/ProTree/components/ProTree.js +6 -5
- package/lib/ProTree/components/SearchTitle.d.ts +2 -2
- package/lib/ProTree/components/SearchTitle.js +11 -1
- package/lib/ProTree/components/Tree.js +16 -2
- package/lib/ProTree/index.js +0 -1
- package/lib/ProTree/style/index.less +193 -141
- package/lib/ProTreeModal/components/List.js +0 -14
- package/lib/ProTreeModal/components/Tree.js +1 -0
- package/lib/ProTreeModal/components/Trigger.js +10 -3
- package/lib/ProTreeModal/index.js +29 -13
- package/lib/ProTreeModal/style/index.less +2 -6
- package/lib/ProUpload/components/ButtonRender.js +5 -2
- package/lib/ProUpload/components/DragRender.js +8 -8
- package/lib/ProUpload/components/Example.js +3 -1
- package/lib/ProUpload/components/ImageRender.js +8 -6
- package/lib/ProUpload/index.js +14 -5
- package/lib/ProUpload/style/index.less +41 -39
- package/lib/index.d.ts +2 -1
- package/lib/index.js +13 -1
- package/lib/locale/en_US.d.ts +138 -0
- package/lib/locale/en_US.js +143 -0
- package/lib/locale/index.d.ts +13 -0
- package/lib/locale/index.js +41 -0
- package/lib/locale/zh_CN.d.ts +137 -0
- package/lib/locale/zh_CN.js +142 -0
- package/lib/old/ProCertValidity/index.js +1 -1
- package/lib/old/ProEditableTable/style/index.less +1 -2
- package/lib/style/components.less +0 -1
- package/lib/style/core/normalize.less +1 -2
- package/lib/style/theme/antd.less +3 -4
- package/lib/style/theme/index.less +80 -79
- package/lib/style/theme/tokens.less +1 -0
- package/package.json +1 -1
- package/typings.d.ts +2 -0
- package/es/old/ProBackBtn/style/index.less +0 -19
- package/lib/old/ProBackBtn/style/index.less +0 -19
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
- /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
- /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
|
@@ -1,59 +1,73 @@
|
|
|
1
1
|
.pro-tree {
|
|
2
2
|
height: 100%; // tree auto css
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
.ant-spin-nested-loading {
|
|
4
5
|
height: 100%; // tree auto css
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
.ant-spin-container {
|
|
6
8
|
height: 100%; // tree auto css
|
|
7
9
|
}
|
|
8
10
|
}
|
|
11
|
+
|
|
9
12
|
&-placeholder {
|
|
10
13
|
color: #939499;
|
|
11
14
|
}
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
|
|
16
|
+
.pro-tree-search {
|
|
17
|
+
margin-bottom: calc(var(--zaui-space-size-sm; 8px) * var(--zaui-size; 1));
|
|
14
18
|
}
|
|
19
|
+
|
|
15
20
|
&-content {
|
|
16
|
-
display: flex; // tree auto css
|
|
21
|
+
display : flex; // tree auto css
|
|
17
22
|
flex-direction: column; // tree auto css
|
|
18
|
-
height: 100%;
|
|
23
|
+
height : 100%;
|
|
24
|
+
|
|
19
25
|
// overflow-y: scroll;
|
|
20
|
-
.pro-tree-header-box,
|
|
21
|
-
|
|
26
|
+
.pro-tree-header-box,
|
|
27
|
+
.pro-tree-footer-box {
|
|
28
|
+
display : inline-flex;
|
|
22
29
|
flex-direction: column;
|
|
23
30
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
31
|
+
|
|
32
|
+
.pro-tree-tree-warp {
|
|
33
|
+
height : 100%;
|
|
34
|
+
flex : 1 1;
|
|
27
35
|
overflow-y: auto;
|
|
28
36
|
overflow-x: auto;
|
|
29
37
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
38
|
+
|
|
39
|
+
.tree-title-box {
|
|
40
|
+
display : flex;
|
|
41
|
+
padding-top : 10px;
|
|
33
42
|
justify-content: space-between;
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
|
|
44
|
+
.tree-title-text {
|
|
45
|
+
font-size : var(--zaui-font-size-lg);
|
|
36
46
|
margin-bottom: var(--zaui-space-size-xs);
|
|
37
|
-
font-weight: 500;
|
|
38
|
-
padding-left: 2px;
|
|
47
|
+
font-weight : 500;
|
|
48
|
+
padding-left : 2px;
|
|
39
49
|
}
|
|
40
|
-
|
|
50
|
+
|
|
51
|
+
.expand-button {
|
|
41
52
|
padding-left: var(--zaui-space-size-sm);
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: baseline;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
display : flex;
|
|
54
|
+
align-items : baseline;
|
|
55
|
+
cursor : pointer;
|
|
56
|
+
&.expand {
|
|
57
|
+
.expand-icon {
|
|
58
|
+
.anticon-caret-down {
|
|
47
59
|
transform: rotate(180deg);
|
|
48
60
|
}
|
|
49
61
|
}
|
|
50
62
|
}
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
|
|
64
|
+
.expand-icon {
|
|
65
|
+
font-size : var(--zaui-font-size-sm, 12px);
|
|
53
66
|
margin-right: var(--zaui-space-size-xs);
|
|
54
67
|
}
|
|
55
68
|
}
|
|
56
69
|
}
|
|
70
|
+
|
|
57
71
|
.ant-tree-checkbox {
|
|
58
72
|
margin-top: 11px;
|
|
59
73
|
}
|
|
@@ -61,37 +75,42 @@
|
|
|
61
75
|
.ant-tree-switcher {
|
|
62
76
|
line-height: 44px;
|
|
63
77
|
}
|
|
64
|
-
|
|
78
|
+
|
|
79
|
+
.ant-tree-switcher-leaf-line {
|
|
65
80
|
display: none;
|
|
66
81
|
}
|
|
67
82
|
|
|
68
83
|
.ant-tree-treenode {
|
|
69
84
|
align-items: flex-start;
|
|
70
|
-
width: 100%;
|
|
71
|
-
padding: 0;
|
|
72
|
-
color: var(--zaui-text);
|
|
73
|
-
font-size: var(--zaui-font-size);
|
|
85
|
+
width : 100%;
|
|
86
|
+
padding : 0;
|
|
87
|
+
color : var(--zaui-text);
|
|
88
|
+
font-size : var(--zaui-font-size);
|
|
74
89
|
}
|
|
75
90
|
|
|
76
91
|
.ant-tree-node-content-wrapper {
|
|
77
|
-
min-height: var(--zaui-font-size-xxl);
|
|
92
|
+
min-height : var(--zaui-font-size-xxl);
|
|
78
93
|
line-height: var(--zaui-font-size-xxl);
|
|
79
94
|
}
|
|
80
95
|
|
|
81
96
|
.ant-tree-node-content-wrapper {
|
|
82
97
|
width: 100%;
|
|
83
|
-
|
|
98
|
+
|
|
99
|
+
.ant-tree-title {
|
|
84
100
|
display: block;
|
|
85
|
-
width: 100%;
|
|
101
|
+
width : 100%;
|
|
86
102
|
}
|
|
87
103
|
}
|
|
104
|
+
|
|
88
105
|
// 只读状态下,是否隐藏未勾选行
|
|
89
|
-
.hide-disable-node{
|
|
90
|
-
.ant-tree-treenode.ant-tree-treenode-disabled{
|
|
106
|
+
.hide-disable-node {
|
|
107
|
+
.ant-tree-treenode.ant-tree-treenode-disabled {
|
|
91
108
|
display: none;
|
|
92
109
|
}
|
|
93
|
-
|
|
94
|
-
|
|
110
|
+
|
|
111
|
+
.ant-tree-treenode-checkbox-indeterminate,
|
|
112
|
+
.ant-tree-treenode-checkbox-checked {
|
|
113
|
+
&.ant-tree-treenode-disabled {
|
|
95
114
|
display: flex;
|
|
96
115
|
}
|
|
97
116
|
}
|
|
@@ -99,173 +118,203 @@
|
|
|
99
118
|
}
|
|
100
119
|
|
|
101
120
|
&-tree-node {
|
|
102
|
-
display: flex;
|
|
121
|
+
display : flex;
|
|
103
122
|
flex-direction: row;
|
|
104
|
-
padding: 9px var(--zaui-space-size-sm);
|
|
105
|
-
margin-left: -8px;
|
|
106
|
-
border-radius: var(--zaui-space-size-xs);
|
|
107
|
-
|
|
123
|
+
padding : 9px var(--zaui-space-size-sm);
|
|
124
|
+
margin-left : -8px;
|
|
125
|
+
border-radius : var(--zaui-space-size-xs);
|
|
126
|
+
|
|
127
|
+
&:hover {
|
|
108
128
|
background: #F7F9FC;
|
|
109
129
|
}
|
|
130
|
+
|
|
110
131
|
&:last-child {
|
|
111
132
|
flex: 1;
|
|
112
133
|
}
|
|
113
|
-
|
|
134
|
+
|
|
135
|
+
&.checked {
|
|
114
136
|
position: relative;
|
|
115
|
-
z-index: 1;
|
|
116
|
-
color: var(--zaui-brand);
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
137
|
+
z-index : 1;
|
|
138
|
+
color : var(--zaui-brand);
|
|
139
|
+
|
|
140
|
+
.brand-bg-opa-ten {
|
|
141
|
+
position : absolute;
|
|
142
|
+
width : 100%;
|
|
143
|
+
height : 100%;
|
|
144
|
+
top : 0px;
|
|
145
|
+
left : 0px;
|
|
123
146
|
background-color: var(--zaui-brand);
|
|
124
|
-
opacity: 0.1;
|
|
125
|
-
z-index:
|
|
126
|
-
border-radius: var(--zaui-space-size-xs);
|
|
147
|
+
opacity : 0.1;
|
|
148
|
+
z-index : -1;
|
|
149
|
+
border-radius : var(--zaui-space-size-xs);
|
|
127
150
|
}
|
|
128
151
|
}
|
|
129
|
-
|
|
130
|
-
|
|
152
|
+
|
|
153
|
+
.tree-node-show-text {
|
|
154
|
+
display : flex;
|
|
131
155
|
flex-direction: row;
|
|
132
|
-
width: 100%;
|
|
133
|
-
|
|
134
|
-
|
|
156
|
+
width : 100%;
|
|
157
|
+
|
|
158
|
+
.tree-node-show-text-label {
|
|
159
|
+
flex : 1;
|
|
135
160
|
overflow: hidden;
|
|
136
|
-
|
|
161
|
+
|
|
162
|
+
span {
|
|
137
163
|
width: 100%;
|
|
138
164
|
}
|
|
139
|
-
|
|
140
|
-
|
|
165
|
+
|
|
166
|
+
span.ellipse {
|
|
167
|
+
display : block;
|
|
141
168
|
text-overflow: ellipsis;
|
|
142
|
-
overflow: hidden;
|
|
143
|
-
height: 20px;
|
|
144
|
-
word-break: keep-all;
|
|
145
|
-
white-space: nowrap;
|
|
169
|
+
overflow : hidden;
|
|
170
|
+
height : 20px;
|
|
171
|
+
word-break : keep-all;
|
|
172
|
+
white-space : nowrap;
|
|
146
173
|
}
|
|
147
174
|
}
|
|
148
175
|
}
|
|
149
|
-
|
|
176
|
+
|
|
177
|
+
.operate-tree-node-btns {
|
|
150
178
|
display: flex;
|
|
151
179
|
z-index: 3;
|
|
152
|
-
|
|
180
|
+
|
|
181
|
+
.icon-item {
|
|
153
182
|
transition-delay: 10s;
|
|
154
|
-
width: 100%;
|
|
155
|
-
margin-left: var(--zaui-space-size-xs);
|
|
183
|
+
width : 100%;
|
|
184
|
+
margin-left : var(--zaui-space-size-xs);
|
|
156
185
|
}
|
|
157
|
-
|
|
158
|
-
|
|
186
|
+
|
|
187
|
+
.icon-add {
|
|
188
|
+
font-size: var(--zaui-font-size-sm, 12px);
|
|
159
189
|
}
|
|
160
|
-
|
|
190
|
+
|
|
191
|
+
.svg-icon-expand {
|
|
161
192
|
margin-bottom: -2px;
|
|
162
193
|
}
|
|
163
194
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
195
|
+
|
|
196
|
+
.operate-tree-node-btns-absolute {
|
|
197
|
+
visibility: visible;
|
|
198
|
+
position : absolute;
|
|
199
|
+
right : 0px;
|
|
168
200
|
}
|
|
169
201
|
}
|
|
202
|
+
|
|
170
203
|
&-tree-node-tag {
|
|
171
|
-
display: flex;
|
|
172
|
-
align-items: center;
|
|
204
|
+
display : flex;
|
|
205
|
+
align-items : center;
|
|
173
206
|
justify-content: center;
|
|
174
|
-
height: 20px;
|
|
175
|
-
margin-right: var(--zaui-space-size-sm);
|
|
176
|
-
padding: 0 var(--zaui-space-size-xs);
|
|
177
|
-
font-weight: 400;
|
|
178
|
-
line-height: 24px;
|
|
179
|
-
white-space: nowrap;
|
|
180
|
-
border-radius:
|
|
207
|
+
height : 20px;
|
|
208
|
+
margin-right : var(--zaui-space-size-sm);
|
|
209
|
+
padding : 0 var(--zaui-space-size-xs);
|
|
210
|
+
font-weight : 400;
|
|
211
|
+
line-height : 24px;
|
|
212
|
+
white-space : nowrap;
|
|
213
|
+
border-radius : var(--zaui-border-radius-card);
|
|
181
214
|
|
|
182
215
|
span {
|
|
183
|
-
font-size: 12px;
|
|
216
|
+
font-size : var(--zaui-font-size-sm, 12px);
|
|
184
217
|
line-height: 20px;
|
|
185
|
-
text-align: center;
|
|
186
|
-
transform: scale(0.83, 0.83);
|
|
218
|
+
text-align : center;
|
|
219
|
+
transform : scale(0.83, 0.83);
|
|
187
220
|
}
|
|
188
221
|
}
|
|
222
|
+
|
|
189
223
|
// 连接线、箭头宽度
|
|
190
|
-
.ant-tree-show-line .ant-tree-indent-unit{
|
|
224
|
+
.ant-tree-show-line .ant-tree-indent-unit {
|
|
191
225
|
width: 20px;
|
|
192
226
|
}
|
|
193
|
-
|
|
194
|
-
|
|
227
|
+
|
|
228
|
+
.ant-tree-switcher {
|
|
229
|
+
width : 20px;
|
|
195
230
|
align-self: flex-start;
|
|
196
231
|
margin-top: -4px;
|
|
197
232
|
}
|
|
198
|
-
|
|
233
|
+
|
|
234
|
+
.ant-tree-show-line .ant-tree-indent-unit::before {
|
|
199
235
|
right: 9px;
|
|
200
236
|
}
|
|
237
|
+
|
|
201
238
|
// 底部样式
|
|
202
|
-
.pro-tree-footer-box{
|
|
203
|
-
z-index: 4;
|
|
204
|
-
padding: var(--zaui-space-size-md) var(--zaui-space-size-md) var(--zaui-space-size-md) var(--zaui-space-size-sm);
|
|
205
|
-
position: relative;
|
|
206
|
-
box-shadow:0 -20px 5px -21px rgba(151,151,151,0.32);
|
|
239
|
+
.pro-tree-footer-box {
|
|
240
|
+
z-index : 4;
|
|
241
|
+
padding : var(--zaui-space-size-md) var(--zaui-space-size-md) var(--zaui-space-size-md) var(--zaui-space-size-sm);
|
|
242
|
+
position : relative;
|
|
243
|
+
box-shadow: 0 -20px 5px -21px rgba(151, 151, 151, 0.32);
|
|
207
244
|
}
|
|
245
|
+
|
|
208
246
|
// 去除antd白色背景
|
|
209
|
-
.ant-tree-show-line .ant-tree-switcher,
|
|
247
|
+
.ant-tree-show-line .ant-tree-switcher,
|
|
248
|
+
.ant-tree {
|
|
210
249
|
background-color: transparent;
|
|
211
250
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
251
|
+
|
|
252
|
+
.empty-tree {
|
|
253
|
+
color : #939599;
|
|
254
|
+
height : 100%;
|
|
255
|
+
text-align : center;
|
|
256
|
+
display : flex;
|
|
257
|
+
align-items : center;
|
|
218
258
|
justify-content: center;
|
|
219
259
|
}
|
|
220
260
|
}
|
|
261
|
+
|
|
221
262
|
// 操作按钮样式
|
|
222
|
-
.pro-tree-operate-container{
|
|
263
|
+
.pro-tree-operate-container {
|
|
223
264
|
padding-top: 0px;
|
|
224
|
-
min-width: 120px;
|
|
225
|
-
|
|
265
|
+
min-width : 120px;
|
|
266
|
+
|
|
267
|
+
.ant-popover-inner-content {
|
|
226
268
|
padding: 0px;
|
|
227
|
-
width: 100%;
|
|
269
|
+
width : 100%;
|
|
228
270
|
}
|
|
229
|
-
|
|
271
|
+
|
|
272
|
+
.ant-popover-arrow {
|
|
230
273
|
display: none;
|
|
231
274
|
}
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
275
|
+
|
|
276
|
+
.pro-tree-operate-btn-popover {
|
|
277
|
+
.icon-item {
|
|
278
|
+
position : relative;
|
|
279
|
+
z-index : 1;
|
|
280
|
+
cursor : pointer;
|
|
237
281
|
padding-left: var(--zaui-space-size-md);
|
|
238
|
-
width: 100%;
|
|
239
|
-
height: 32px;
|
|
240
|
-
line-height: 32px;
|
|
282
|
+
width : 100%;
|
|
283
|
+
height : 32px;
|
|
284
|
+
line-height : 32px;
|
|
241
285
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
286
|
+
|
|
287
|
+
.icon-item:hover {
|
|
288
|
+
&:after {
|
|
289
|
+
position : absolute;
|
|
290
|
+
display : block;
|
|
291
|
+
z-index : 0;
|
|
292
|
+
left : 0;
|
|
293
|
+
top : 0;
|
|
294
|
+
content : '';
|
|
295
|
+
width : 120px;
|
|
296
|
+
height : 32px;
|
|
252
297
|
background-color: var(--zaui-brand);
|
|
253
|
-
opacity: 0.08;
|
|
298
|
+
opacity : 0.08;
|
|
254
299
|
}
|
|
255
300
|
}
|
|
256
301
|
}
|
|
257
302
|
}
|
|
258
|
-
|
|
259
|
-
|
|
303
|
+
|
|
304
|
+
.ant-tree .ant-tree-treenode-disabled {
|
|
305
|
+
.ant-tree-node-content-wrapper {
|
|
260
306
|
color: var(--zaui-text);
|
|
261
307
|
}
|
|
262
|
-
|
|
308
|
+
|
|
309
|
+
.pro-tree-tree-node.checked {
|
|
263
310
|
color: var(--zaui-text);
|
|
264
311
|
}
|
|
265
|
-
|
|
312
|
+
|
|
313
|
+
.pro-tree-tree-node.checked .brand-bg-opa-ten {
|
|
266
314
|
background-color: inherit;
|
|
267
315
|
}
|
|
268
316
|
}
|
|
317
|
+
|
|
269
318
|
// 中意全局样式覆盖
|
|
270
319
|
// .pro-form.pro-form-view .ant-form-item * {
|
|
271
320
|
// line-height: 1!important;
|
|
@@ -274,16 +323,19 @@
|
|
|
274
323
|
// }
|
|
275
324
|
// 重置ant-form view模式样式ant-tree样式
|
|
276
325
|
.pro-form.pro-form-view .ant-form-item .pro-tree * {
|
|
277
|
-
line-height: 1!important;
|
|
278
|
-
height: auto!important;
|
|
279
|
-
min-height: auto!important;
|
|
326
|
+
line-height: 1 !important;
|
|
327
|
+
height : auto !important;
|
|
328
|
+
min-height : auto !important;
|
|
280
329
|
}
|
|
281
|
-
|
|
330
|
+
|
|
331
|
+
.pro-form.pro-form-view .ant-form-item .pro-tree .ant-tree-checkbox {
|
|
282
332
|
margin-top: var(--zaui-space-size-sm);
|
|
283
333
|
}
|
|
284
|
-
|
|
334
|
+
|
|
335
|
+
.pro-form.pro-form-view .ant-form-item .pro-tree .ant-tree-switcher {
|
|
285
336
|
padding-top: var(--zaui-font-size-sm);
|
|
286
337
|
}
|
|
338
|
+
|
|
287
339
|
.pro-form.pro-form-view .ant-form-item .pro-tree .ant-tree-checkbox * {
|
|
288
|
-
height: 16px!important;
|
|
289
|
-
}
|
|
340
|
+
height: 16px !important;
|
|
341
|
+
}
|
|
@@ -53,20 +53,6 @@ function List(props, ref) {
|
|
|
53
53
|
setState({
|
|
54
54
|
checkedList: treeData
|
|
55
55
|
});
|
|
56
|
-
// if (!span) {
|
|
57
|
-
// setState({
|
|
58
|
-
// checkedList: treeData,
|
|
59
|
-
// });
|
|
60
|
-
// }
|
|
61
|
-
// // 数组长度一样不需要重新 filter、这种情况下属于右侧位置拖动
|
|
62
|
-
// else if (flatTreeData?.length && checkedList.length !== treeData.length) {
|
|
63
|
-
// // 如果开启 span 不用管之前的位置顺序、直接按原数据源的顺序来即可
|
|
64
|
-
// setState({
|
|
65
|
-
// checkedList: flatTreeData.filter((item) =>
|
|
66
|
-
// treeData.find((data) => data[fieldNameValue] === item[fieldNameValue]),
|
|
67
|
-
// ),
|
|
68
|
-
// });
|
|
69
|
-
// }
|
|
70
56
|
}, [treeData]);
|
|
71
57
|
var _useMemo = useMemo(function () {
|
|
72
58
|
var min = -1;
|
|
@@ -5,8 +5,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
5
5
|
import classNames from 'classnames';
|
|
6
6
|
import { CloseOutlined } from '@ant-design/icons';
|
|
7
7
|
import { ReactSVG } from 'react-svg';
|
|
8
|
+
import locale, { formatMessage } from '../../locale';
|
|
8
9
|
import viewSvg from '../../assets/view.svg';
|
|
9
10
|
function Trigger(props) {
|
|
11
|
+
var _locale$ProTreeModal, _locale$ProTreeModal2, _locale$ProTreeModal3;
|
|
10
12
|
var checkedValues = props.checkedValues,
|
|
11
13
|
handleClick = props.handleClick,
|
|
12
14
|
handleClearAll = props.handleClearAll,
|
|
@@ -19,7 +21,9 @@ function Trigger(props) {
|
|
|
19
21
|
children: [isView ? _jsxs("div", {
|
|
20
22
|
className: "pro-tree-modal-isView",
|
|
21
23
|
children: [_jsx("div", {
|
|
22
|
-
children: checkedValues.length === 0 ? '-' : checkAll ?
|
|
24
|
+
children: checkedValues.length === 0 ? '-' : checkAll ? locale === null || locale === void 0 ? void 0 : locale.ProTreeModal.checkAll : formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal = locale.ProTreeModal) === null || _locale$ProTreeModal === void 0 ? void 0 : _locale$ProTreeModal.checkNumber, {
|
|
25
|
+
num: checkedValues.length
|
|
26
|
+
})
|
|
23
27
|
}), _jsx("div", {
|
|
24
28
|
className: "pro-enum-input-addonAfter",
|
|
25
29
|
children: _jsx(ReactSVG, {
|
|
@@ -31,7 +35,9 @@ function Trigger(props) {
|
|
|
31
35
|
}) : _jsx(_Input, {
|
|
32
36
|
className: classNames(disabled ? 'trigger-no-hover' : ''),
|
|
33
37
|
onClick: handleClick,
|
|
34
|
-
value: checkedValues.length === 0 ? null : checkAll ?
|
|
38
|
+
value: checkedValues.length === 0 ? null : checkAll ? locale === null || locale === void 0 ? void 0 : locale.ProTreeModal.checkAll : formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal2 = locale.ProTreeModal) === null || _locale$ProTreeModal2 === void 0 ? void 0 : _locale$ProTreeModal2.checkNumber, {
|
|
39
|
+
num: checkedValues.length
|
|
40
|
+
}),
|
|
35
41
|
addonAfter: _jsxs("div", {
|
|
36
42
|
className: "pro-enum-input-addonAfter",
|
|
37
43
|
children: [checkedValues.length > 0 && !disabled && _jsx("span", {
|
|
@@ -45,7 +51,7 @@ function Trigger(props) {
|
|
|
45
51
|
onClick: handleClick
|
|
46
52
|
})]
|
|
47
53
|
}),
|
|
48
|
-
placeholder:
|
|
54
|
+
placeholder: locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal3 = locale.ProTreeModal) === null || _locale$ProTreeModal3 === void 0 ? void 0 : _locale$ProTreeModal3.select,
|
|
49
55
|
disabled: disabled,
|
|
50
56
|
style: _objectSpread({}, triggerStyle)
|
|
51
57
|
}), _jsx(_Input, {
|