@zat-design/sisyphus-react 3.2.1 → 3.2.2-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.
- package/README.md +7 -0
- package/dist/index.esm.css +106 -39
- 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/style/index.less +76 -73
- package/es/ProEditLabel/style/index.less +12 -9
- package/es/ProEditTable/components/RenderField/index.js +66 -21
- package/es/ProEditTable/index.js +18 -7
- package/es/ProEditTable/propsType.d.ts +11 -1
- package/es/ProEditTable/style/index.less +50 -42
- 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/Checkbox/index.d.ts +1 -0
- package/es/ProForm/components/base/Checkbox/index.js +5 -3
- package/es/ProForm/components/base/DatePicker/index.js +3 -5
- package/es/ProForm/components/base/Input/index.js +4 -2
- package/es/ProForm/components/base/Input/propsType.d.ts +1 -0
- package/es/ProForm/components/base/InputNumber/index.d.ts +1 -0
- package/es/ProForm/components/base/InputNumber/index.js +5 -3
- package/es/ProForm/components/base/ProCascader/index.js +6 -6
- package/es/ProForm/components/base/Radio/index.d.ts +1 -0
- package/es/ProForm/components/base/Radio/index.js +4 -2
- package/es/ProForm/components/base/RangePicker/index.d.ts +1 -0
- package/es/ProForm/components/base/RangePicker/index.js +5 -3
- package/es/ProForm/components/base/Select/index.d.ts +1 -0
- package/es/ProForm/components/base/Select/index.js +4 -2
- package/es/ProForm/components/base/Switch/index.d.ts +1 -0
- package/es/ProForm/components/base/Switch/index.js +4 -2
- package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -0
- package/es/ProForm/components/base/SwitchCheckbox/index.js +4 -2
- package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
- package/es/ProForm/components/base/TextArea/index.d.ts +1 -0
- package/es/ProForm/components/base/TextArea/index.js +4 -3
- package/es/ProForm/components/base/TextArea/index.less +4 -3
- package/es/ProForm/components/base/TimePicker/index.d.ts +1 -0
- package/es/ProForm/components/base/TimePicker/index.js +4 -2
- package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
- package/es/ProForm/components/combination/Container/index.js +7 -5
- package/es/ProForm/components/combination/Container/style/index.less +3 -3
- package/es/ProForm/components/combination/FormList/index.js +6 -5
- package/es/ProForm/components/combination/FormList/style/index.less +17 -24
- package/es/ProForm/components/combination/Group/index.js +6 -3
- package/es/ProForm/components/combination/Group/style/index.less +15 -15
- package/es/ProForm/components/combination/ProAddressBar/index.js +29 -30
- package/es/ProForm/components/combination/ProAddressBar/style/index.less +3 -3
- package/es/ProForm/components/combination/ProCombination/index.js +11 -11
- package/es/ProForm/components/combination/ProCombination/style/index.less +2 -2
- package/es/ProForm/components/combination/ProModalSelect/index.js +4 -5
- package/es/ProForm/components/combination/ProModalSelect/style/index.less +30 -12
- package/es/ProForm/components/combination/ProNumberRange/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProNumberRange/index.js +7 -7
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +10 -10
- package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -0
- package/es/ProForm/components/combination/ProRangeLimit/index.js +4 -2
- package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -0
- package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -2
- package/es/ProForm/components/combination/ProTimeLimit/style/index.less +6 -6
- package/es/ProForm/components/render/Render.js +54 -20
- package/es/ProForm/components/render/RenderFields.d.ts +1 -0
- package/es/ProForm/components/render/RenderFields.js +13 -12
- package/es/ProForm/index.js +5 -2
- package/es/ProForm/propsType.d.ts +1 -0
- package/es/ProForm/style/index.less +89 -80
- package/es/ProForm/utils/contrastOriginal.d.ts +10 -1
- package/es/ProForm/utils/contrastOriginal.js +15 -18
- package/es/ProForm/utils/useChanged.d.ts +15 -1
- package/es/ProForm/utils/useChanged.js +27 -8
- 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 +7 -7
- package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +28 -28
- package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +11 -11
- package/es/ProLayout/components/ProCollapse/style/index.less +24 -24
- package/es/ProLayout/components/ProFooter/style/index.less +8 -7
- package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +1 -1
- package/es/ProLayout/components/ProHeader/index.js +1 -0
- package/es/ProLayout/components/ProHeader/style/index.less +17 -11
- package/es/ProLayout/style/index.less +10 -7
- package/es/ProSelect/index.js +6 -3
- package/es/ProSelect/index.less +3 -0
- package/es/ProStep/components/Item/index.js +1 -4
- package/es/ProStep/style/index.less +3 -0
- package/es/ProTable/components/RenderColumn/index.js +1 -1
- package/es/ProTable/index.js +3 -3
- package/es/ProTable/style/index.less +72 -52
- package/es/ProTabs/style/index.less +26 -24
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +28 -26
- package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.js +9 -3
- 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/Tree.js +43 -42
- package/es/ProTree/style/index.less +29 -32
- 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 +3 -2
- package/es/ProTreeSelect/style/index.less +25 -22
- package/es/ProUpload/components/DragRender.js +7 -4
- package/es/ProUpload/index.js +11 -7
- package/es/ProUpload/style/index.less +7 -4
- package/es/ProViewer/index.js +3 -1
- package/es/ProViewer/style/index.less +6 -3
- package/es/locale/en_US.d.ts +18 -1
- package/es/locale/en_US.js +20 -3
- package/es/locale/zh_CN.d.ts +18 -1
- package/es/locale/zh_CN.js +19 -2
- package/es/style/core/compatible.less +6 -6
- package/es/style/theme/antd.less +277 -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/style/index.less +76 -73
- package/lib/ProEditLabel/style/index.less +12 -9
- package/lib/ProEditTable/components/RenderField/index.js +61 -20
- package/lib/ProEditTable/index.js +17 -5
- package/lib/ProEditTable/propsType.d.ts +11 -1
- package/lib/ProEditTable/style/index.less +50 -42
- 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/Checkbox/index.d.ts +1 -0
- package/lib/ProForm/components/base/Checkbox/index.js +5 -3
- package/lib/ProForm/components/base/DatePicker/index.js +3 -5
- package/lib/ProForm/components/base/Input/index.js +4 -2
- package/lib/ProForm/components/base/Input/propsType.d.ts +1 -0
- package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -0
- package/lib/ProForm/components/base/InputNumber/index.js +5 -3
- package/lib/ProForm/components/base/ProCascader/index.js +6 -6
- package/lib/ProForm/components/base/Radio/index.d.ts +1 -0
- package/lib/ProForm/components/base/Radio/index.js +4 -2
- package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -0
- package/lib/ProForm/components/base/RangePicker/index.js +5 -3
- package/lib/ProForm/components/base/Select/index.d.ts +1 -0
- package/lib/ProForm/components/base/Select/index.js +4 -2
- package/lib/ProForm/components/base/Switch/index.d.ts +1 -0
- package/lib/ProForm/components/base/Switch/index.js +4 -2
- package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -0
- package/lib/ProForm/components/base/SwitchCheckbox/index.js +4 -2
- package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
- package/lib/ProForm/components/base/TextArea/index.d.ts +1 -0
- package/lib/ProForm/components/base/TextArea/index.js +4 -3
- package/lib/ProForm/components/base/TextArea/index.less +4 -3
- package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -0
- package/lib/ProForm/components/base/TimePicker/index.js +4 -2
- package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
- package/lib/ProForm/components/combination/Container/index.js +7 -5
- package/lib/ProForm/components/combination/Container/style/index.less +3 -3
- package/lib/ProForm/components/combination/FormList/index.js +6 -5
- package/lib/ProForm/components/combination/FormList/style/index.less +17 -24
- package/lib/ProForm/components/combination/Group/index.js +6 -3
- package/lib/ProForm/components/combination/Group/style/index.less +15 -15
- package/lib/ProForm/components/combination/ProAddressBar/index.js +29 -30
- package/lib/ProForm/components/combination/ProAddressBar/style/index.less +3 -3
- package/lib/ProForm/components/combination/ProCombination/index.js +11 -11
- package/lib/ProForm/components/combination/ProCombination/style/index.less +2 -2
- package/lib/ProForm/components/combination/ProModalSelect/index.js +4 -5
- package/lib/ProForm/components/combination/ProModalSelect/style/index.less +30 -12
- package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProNumberRange/index.js +7 -7
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +10 -10
- package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -0
- package/lib/ProForm/components/combination/ProRangeLimit/index.js +4 -2
- package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -0
- package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -2
- package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +6 -6
- package/lib/ProForm/components/render/Render.js +53 -21
- package/lib/ProForm/components/render/RenderFields.d.ts +1 -0
- package/lib/ProForm/components/render/RenderFields.js +13 -12
- package/lib/ProForm/index.js +5 -2
- package/lib/ProForm/propsType.d.ts +1 -0
- package/lib/ProForm/style/index.less +89 -80
- package/lib/ProForm/utils/contrastOriginal.d.ts +10 -1
- package/lib/ProForm/utils/contrastOriginal.js +14 -17
- package/lib/ProForm/utils/useChanged.d.ts +15 -1
- package/lib/ProForm/utils/useChanged.js +27 -8
- 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 +7 -7
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +28 -28
- package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +11 -11
- package/lib/ProLayout/components/ProCollapse/style/index.less +24 -24
- package/lib/ProLayout/components/ProFooter/style/index.less +8 -7
- package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +1 -1
- package/lib/ProLayout/components/ProHeader/index.js +1 -0
- package/lib/ProLayout/components/ProHeader/style/index.less +17 -11
- package/lib/ProLayout/style/index.less +10 -7
- package/lib/ProSelect/index.js +6 -3
- package/lib/ProSelect/index.less +3 -0
- package/lib/ProStep/components/Item/index.js +1 -4
- package/lib/ProStep/style/index.less +3 -0
- package/lib/ProTable/components/RenderColumn/index.js +1 -1
- package/lib/ProTable/index.js +3 -3
- package/lib/ProTable/style/index.less +72 -52
- package/lib/ProTabs/style/index.less +26 -24
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +28 -26
- package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.js +9 -3
- 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/Tree.js +42 -41
- package/lib/ProTree/style/index.less +29 -32
- 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 +3 -2
- package/lib/ProTreeSelect/style/index.less +25 -22
- package/lib/ProUpload/components/DragRender.js +7 -4
- package/lib/ProUpload/index.js +11 -7
- package/lib/ProUpload/style/index.less +7 -4
- package/lib/ProViewer/index.js +4 -3
- package/lib/ProViewer/style/index.less +6 -3
- package/lib/locale/en_US.d.ts +18 -1
- package/lib/locale/en_US.js +20 -3
- package/lib/locale/zh_CN.d.ts +18 -1
- package/lib/locale/zh_CN.js +19 -2
- package/lib/style/core/compatible.less +6 -6
- package/lib/style/theme/antd.less +277 -253
- package/package.json +1 -1
|
@@ -1,38 +1,41 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
1
4
|
.pro-table {
|
|
2
5
|
&.pro-table-bordered {
|
|
3
|
-
|
|
6
|
+
.@{ant-prefix}-table .@{ant-prefix}-table-thead>tr>th {
|
|
4
7
|
border-bottom: 1px solid #f0f0f0
|
|
5
8
|
}
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table,
|
|
11
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table {
|
|
9
12
|
border-top: 1px solid rgba(0, 0, 0, 0.06);
|
|
10
13
|
}
|
|
11
14
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>thead>tr>th,
|
|
16
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>thead>tr>th,
|
|
17
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>thead>tr>th,
|
|
18
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>thead>tr>th,
|
|
19
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tbody>tr>td,
|
|
20
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tbody>tr>td,
|
|
21
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tbody>tr>td,
|
|
22
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tbody>tr>td,
|
|
23
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tfoot>tr>th,
|
|
24
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tfoot>tr>th,
|
|
25
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tfoot>tr>th,
|
|
26
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tfoot>tr>th,
|
|
27
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-content>table>tfoot>tr>td,
|
|
28
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-header>table>tfoot>tr>td,
|
|
29
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-body>table>tfoot>tr>td,
|
|
30
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container>.@{ant-prefix}-table-summary>table>tfoot>tr>td {
|
|
28
31
|
border-right: 1px solid rgba(0, 0, 0, 0.06);
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
|
|
34
|
+
.@{ant-prefix}-table .@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
|
|
32
35
|
border-bottom: 1px solid #f0f0f0;
|
|
33
36
|
}
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
.@{ant-prefix}-table>.@{ant-prefix}-table-container {
|
|
36
39
|
border-left: 1px solid rgba(0, 0, 0, 0.06);
|
|
37
40
|
}
|
|
38
41
|
}
|
|
@@ -54,8 +57,14 @@
|
|
|
54
57
|
}
|
|
55
58
|
}
|
|
56
59
|
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
.@{ant-prefix}-table-tbody {
|
|
61
|
+
.@{ant-prefix}-table-cell-fix-left, .@{ant-prefix}-table-cell-fix-right {
|
|
62
|
+
background: unset !important;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.@{ant-prefix}-table-body {
|
|
67
|
+
.@{ant-prefix}-table-cell .varied-cell {
|
|
59
68
|
margin-left: -8px;
|
|
60
69
|
background: var(--zaui-contract-bg, #fffaa1);
|
|
61
70
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
@@ -70,7 +79,7 @@
|
|
|
70
79
|
.copyable-table-cell {
|
|
71
80
|
|
|
72
81
|
|
|
73
|
-
|
|
82
|
+
.@{ant-prefix}-typography {
|
|
74
83
|
margin-bottom: 0;
|
|
75
84
|
display : flex;
|
|
76
85
|
align-items : center;
|
|
@@ -83,7 +92,7 @@
|
|
|
83
92
|
}
|
|
84
93
|
}
|
|
85
94
|
|
|
86
|
-
|
|
95
|
+
.@{ant-prefix}-typography-copy-success {
|
|
87
96
|
svg {
|
|
88
97
|
fill: var(--zaui-success, #00ae4d);
|
|
89
98
|
}
|
|
@@ -98,14 +107,14 @@
|
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
&.pro-table-no-stripe {
|
|
101
|
-
|
|
110
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal .@{ant-prefix}-table-tbody .@{ant-prefix}-table-row:nth-child(n)>td {
|
|
102
111
|
background: var(--zaui-base-bg, #ffffff);
|
|
103
112
|
}
|
|
104
113
|
}
|
|
105
114
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
115
|
+
.@{ant-prefix}-table-thead {
|
|
116
|
+
.@{ant-prefix}-dropdown-trigger {
|
|
117
|
+
&.@{ant-prefix}-dropdown-open {
|
|
109
118
|
|
|
110
119
|
.anticon-down {
|
|
111
120
|
transition: transform 0.3s;
|
|
@@ -128,7 +137,7 @@
|
|
|
128
137
|
}
|
|
129
138
|
}
|
|
130
139
|
|
|
131
|
-
|
|
140
|
+
.@{ant-prefix}-table-thead {
|
|
132
141
|
tr th {
|
|
133
142
|
&:last-child {
|
|
134
143
|
.react-resizable-handle {
|
|
@@ -138,11 +147,11 @@
|
|
|
138
147
|
}
|
|
139
148
|
}
|
|
140
149
|
|
|
141
|
-
|
|
150
|
+
.@{ant-prefix}-space {
|
|
142
151
|
gap: var(--zaui-space-size-sm, 8px) !important;
|
|
143
152
|
}
|
|
144
153
|
|
|
145
|
-
|
|
154
|
+
.@{ant-prefix}-btn-link {
|
|
146
155
|
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
147
156
|
|
|
148
157
|
&:first-child {
|
|
@@ -159,7 +168,7 @@
|
|
|
159
168
|
display : flex;
|
|
160
169
|
align-items: center;
|
|
161
170
|
|
|
162
|
-
|
|
171
|
+
>.@{ant-prefix}-btn {
|
|
163
172
|
|
|
164
173
|
&:hover,
|
|
165
174
|
&:visited,
|
|
@@ -176,11 +185,22 @@
|
|
|
176
185
|
}
|
|
177
186
|
}
|
|
178
187
|
|
|
179
|
-
.
|
|
180
|
-
|
|
188
|
+
.pro-table-empty {
|
|
189
|
+
margin: var(--zaui-space-size-lg, 32px) 0;
|
|
190
|
+
color: rgba(0, 0, 0, 0.25);
|
|
191
|
+
font-size: var(--zaui-font-size-md, 14px);
|
|
192
|
+
text-align: center;
|
|
193
|
+
|
|
194
|
+
.empty-image {
|
|
195
|
+
height: 80px;
|
|
196
|
+
|
|
197
|
+
img {
|
|
198
|
+
height: 100%;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
181
201
|
}
|
|
182
202
|
|
|
183
|
-
|
|
203
|
+
.@{ant-prefix}-table .@{ant-prefix}-table-thead>tr>th {
|
|
184
204
|
border-bottom: 0;
|
|
185
205
|
white-space : nowrap;
|
|
186
206
|
background : var(--zaui-table-header-bg, #f2f3f5);
|
|
@@ -223,29 +243,29 @@
|
|
|
223
243
|
}
|
|
224
244
|
}
|
|
225
245
|
|
|
226
|
-
|
|
227
|
-
|
|
246
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-bordered {
|
|
247
|
+
.@{ant-prefix}-table-thead>tr>th {
|
|
228
248
|
border-bottom: 1px solid #f0f0f0;
|
|
229
249
|
}
|
|
230
250
|
|
|
231
|
-
|
|
251
|
+
.@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
|
|
232
252
|
border-bottom: 1px solid #f0f0f0;
|
|
233
253
|
}
|
|
234
254
|
|
|
235
|
-
|
|
255
|
+
.@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
|
|
236
256
|
border-bottom: 1px solid #f0f0f0;
|
|
237
257
|
}
|
|
238
258
|
}
|
|
239
259
|
|
|
240
|
-
|
|
260
|
+
.@{ant-prefix}-table-tbody .@{ant-prefix}-table-placeholder {
|
|
241
261
|
background: var(--zaui-base-bg, #ffffff) !important;
|
|
242
262
|
}
|
|
243
263
|
|
|
244
|
-
|
|
264
|
+
.@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
|
|
245
265
|
border-bottom: 0;
|
|
246
266
|
}
|
|
247
267
|
|
|
248
|
-
|
|
268
|
+
.@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
|
|
249
269
|
border-bottom: 0;
|
|
250
270
|
}
|
|
251
271
|
|
|
@@ -253,7 +273,7 @@
|
|
|
253
273
|
position : relative;
|
|
254
274
|
background-clip: padding-box;
|
|
255
275
|
|
|
256
|
-
|
|
276
|
+
.@{ant-prefix}-table-filter-trigger {
|
|
257
277
|
margin-right: 0;
|
|
258
278
|
}
|
|
259
279
|
}
|
|
@@ -289,20 +309,20 @@
|
|
|
289
309
|
}
|
|
290
310
|
}
|
|
291
311
|
|
|
292
|
-
|
|
312
|
+
.@{ant-prefix}-table-tbody tr td .@{ant-prefix}-checkbox-wrapper-checked.checkbox-disabled {
|
|
293
313
|
pointer-events: none;
|
|
294
314
|
cursor : not-allowed;
|
|
295
315
|
opacity : 0.5;
|
|
296
316
|
}
|
|
297
317
|
|
|
298
|
-
|
|
318
|
+
.@{ant-prefix}-pagination-options-quick-jumper input {
|
|
299
319
|
border : unset;
|
|
300
320
|
background: #FAFAFA;
|
|
301
321
|
min-width : 32px;
|
|
302
322
|
height : 32px;
|
|
303
323
|
}
|
|
304
324
|
|
|
305
|
-
|
|
325
|
+
.@{ant-prefix}-pagination .@{ant-prefix}-pagination-item-active a {
|
|
306
326
|
color : #ffffff;
|
|
307
327
|
background : var(--zaui-brand, #006aff) !important;
|
|
308
328
|
border-radius: var(--zaui-border-radius, 4px);
|
|
@@ -318,10 +338,10 @@
|
|
|
318
338
|
}
|
|
319
339
|
}
|
|
320
340
|
|
|
321
|
-
|
|
341
|
+
.@{ant-prefix}-table-summary {
|
|
322
342
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
323
343
|
|
|
324
|
-
|
|
344
|
+
.@{ant-prefix}-table-cell {
|
|
325
345
|
font-weight : 500;
|
|
326
346
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
327
347
|
border : none;
|
|
@@ -329,10 +349,10 @@
|
|
|
329
349
|
}
|
|
330
350
|
}
|
|
331
351
|
|
|
332
|
-
|
|
333
|
-
|
|
352
|
+
.@{ant-prefix}-dropdown-placement-bottomLeft {
|
|
353
|
+
.@{ant-prefix}-dropdown-menu-vertical.@{ant-prefix}-dropdown-menu-light {
|
|
334
354
|
|
|
335
|
-
|
|
355
|
+
.@{ant-prefix}-dropdown-menu-item-only-child {
|
|
336
356
|
&:hover {
|
|
337
357
|
background: rgba(0, 106, 255, 0.08);
|
|
338
358
|
}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
@root-entry-name: 'default';
|
|
2
|
+
@import (reference) '~antd/es/style/themes/index.less';
|
|
3
|
+
|
|
1
4
|
.pro-tabs {
|
|
2
|
-
|
|
3
|
-
padding: 0;
|
|
5
|
+
.@{ant-prefix}-tabs .@{ant-prefix}-tabs-nav-list .@{ant-prefix}-tabs-tab {
|
|
6
|
+
padding: 0 !important;
|
|
4
7
|
}
|
|
5
8
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
.@{ant-prefix}-tabs-top > .@{ant-prefix}-tabs-nav::before,
|
|
10
|
+
.@{ant-prefix}-tabs-bottom > .@{ant-prefix}-tabs-nav::before,
|
|
11
|
+
.@{ant-prefix}-tabs-top > div > .@{ant-prefix}-tabs-nav::before,
|
|
12
|
+
.@{ant-prefix}-tabs-bottom > div > .@{ant-prefix}-tabs-nav::before {
|
|
10
13
|
border: none;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
.ant-tabs-tab {
|
|
16
|
+
.@{ant-prefix}-tabs-nav-list {
|
|
17
|
+
.@{ant-prefix}-tabs-tab {
|
|
16
18
|
&:first-child {
|
|
17
19
|
.pro-tabs-card {
|
|
18
20
|
border-left: 1px solid var(--zaui-line, #dddddd);
|
|
@@ -21,37 +23,37 @@
|
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
|
|
26
|
+
.@{ant-prefix}-tabs-tab-active {
|
|
25
27
|
.pro-tabs-card {
|
|
26
28
|
background: var(--ant-primary-color-active-deprecated-f-30, rgba(230, 247, 255, 0.3));
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
|
|
31
|
-
top
|
|
32
|
+
.@{ant-prefix}-tabs-ink-bar {
|
|
33
|
+
top: 0;
|
|
32
34
|
height: 3px !important;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
.pro-tabs-card {
|
|
36
|
-
width
|
|
37
|
-
padding
|
|
38
|
-
border
|
|
38
|
+
width: 200px;
|
|
39
|
+
padding: calc(9px * var(--zaui-size; 1)) 16px calc(9px * var(--zaui-size; 1)) 24px;
|
|
40
|
+
border: 1px solid var(--zaui-line, #dddddd);
|
|
39
41
|
border-left: none;
|
|
40
42
|
|
|
41
43
|
.pro-tabs-card-left {
|
|
42
|
-
width
|
|
44
|
+
width: 104px;
|
|
43
45
|
text-shadow: none;
|
|
44
46
|
|
|
45
47
|
.pro-tabs-card-left-total {
|
|
46
|
-
|
|
48
|
+
color: var(--zaui-text, #343434);
|
|
47
49
|
font-weight: 600;
|
|
48
|
-
|
|
50
|
+
font-size: var(--zaui-font-size-lg-title, 24px);
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
.pro-tabs-card-left-label {
|
|
52
|
-
|
|
54
|
+
color: var(--aui-text, #343434);
|
|
53
55
|
font-weight: 400;
|
|
54
|
-
|
|
56
|
+
font-size: var(--zaui-font-size, 14px);
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
|
|
@@ -67,13 +69,13 @@
|
|
|
67
69
|
|
|
68
70
|
.pro-tabs-tab {
|
|
69
71
|
.pro-tabs-card {
|
|
70
|
-
|
|
72
|
+
.@{ant-prefix}-tag {
|
|
73
|
+
margin-right: 0;
|
|
74
|
+
padding: 0 var(--zaui-space-size-xs, 4px);
|
|
71
75
|
border-radius: 10px;
|
|
72
|
-
padding : 0 var(--zaui-space-size-xs, 4px);
|
|
73
|
-
margin-right : 0;
|
|
74
76
|
}
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
.@{ant-prefix}-space-item {
|
|
77
79
|
display: flex;
|
|
78
80
|
}
|
|
79
81
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { DevToolsPropsType } from '../../propsType';
|
|
2
|
-
declare const PrdTools: ({ onReset, onClose, setState, visible, state, tableBorder, tableStripe, }: DevToolsPropsType) => JSX.Element;
|
|
2
|
+
declare const PrdTools: ({ onReset, onClose, setState, visible, state, tableBorder, tableStripe, prefixCls, }: DevToolsPropsType) => JSX.Element;
|
|
3
3
|
export default PrdTools;
|
|
@@ -12,6 +12,7 @@ var _icons = require("@ant-design/icons");
|
|
|
12
12
|
var _antd = require("antd");
|
|
13
13
|
var _react = require("react");
|
|
14
14
|
var _index = require("../../utils/index");
|
|
15
|
+
var _locale = _interopRequireDefault(require("../../../locale"));
|
|
15
16
|
var connect = function connect(Component) {
|
|
16
17
|
var ComponentWrapper = function ComponentWrapper(props) {
|
|
17
18
|
return (0, _jsxRuntime.jsx)(Component, (0, _objectSpread2.default)({}, props));
|
|
@@ -26,7 +27,8 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
26
27
|
visible = _ref.visible,
|
|
27
28
|
state = _ref.state,
|
|
28
29
|
tableBorder = _ref.tableBorder,
|
|
29
|
-
tableStripe = _ref.tableStripe
|
|
30
|
+
tableStripe = _ref.tableStripe,
|
|
31
|
+
prefixCls = _ref.prefixCls;
|
|
30
32
|
var _useState = (0, _react.useState)([{
|
|
31
33
|
color: '#006AFF',
|
|
32
34
|
active: true
|
|
@@ -62,8 +64,8 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
62
64
|
}, []);
|
|
63
65
|
return (0, _jsxRuntime.jsxs)(NewDrawer, {
|
|
64
66
|
className: "pro-theme-prd-tools-drawer",
|
|
65
|
-
width:
|
|
66
|
-
title: "
|
|
67
|
+
width: 400,
|
|
68
|
+
title: "".concat(_locale.default.ProThemeTools.title),
|
|
67
69
|
placement: "right",
|
|
68
70
|
onClose: onClose,
|
|
69
71
|
open: visible,
|
|
@@ -77,7 +79,7 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
77
79
|
}), (0, _jsxRuntime.jsxs)("div", {
|
|
78
80
|
className: "pro-theme-tools-space",
|
|
79
81
|
children: [(0, _jsxRuntime.jsx)("p", {
|
|
80
|
-
children: "
|
|
82
|
+
children: "".concat(_locale.default.ProThemeTools.themeColor)
|
|
81
83
|
}), (0, _jsxRuntime.jsx)("ul", {
|
|
82
84
|
className: "pro-theme-color",
|
|
83
85
|
children: active.map(function (item, index) {
|
|
@@ -108,7 +110,7 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
108
110
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
109
111
|
className: "pro-theme-tools-item",
|
|
110
112
|
children: (0, _jsxRuntime.jsx)("p", {
|
|
111
|
-
children: "
|
|
113
|
+
children: "".concat(_locale.default.ProThemeTools.layout)
|
|
112
114
|
})
|
|
113
115
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
114
116
|
className: "pro-theme-tools-item",
|
|
@@ -124,13 +126,13 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
124
126
|
},
|
|
125
127
|
children: [(0, _jsxRuntime.jsx)(_antd.Radio.Button, {
|
|
126
128
|
value: 0.5,
|
|
127
|
-
children: "
|
|
129
|
+
children: "".concat(_locale.default.ProThemeTools.layoutMode[0])
|
|
128
130
|
}), (0, _jsxRuntime.jsx)(_antd.Radio.Button, {
|
|
129
131
|
value: 1,
|
|
130
|
-
children: "
|
|
132
|
+
children: "".concat(_locale.default.ProThemeTools.layoutMode[1])
|
|
131
133
|
}), (0, _jsxRuntime.jsx)(_antd.Radio.Button, {
|
|
132
134
|
value: 1.5,
|
|
133
|
-
children: "
|
|
135
|
+
children: "".concat(_locale.default.ProThemeTools.layoutMode[2])
|
|
134
136
|
})]
|
|
135
137
|
})
|
|
136
138
|
})]
|
|
@@ -139,7 +141,7 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
139
141
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
140
142
|
className: "pro-theme-tools-item",
|
|
141
143
|
children: (0, _jsxRuntime.jsx)("p", {
|
|
142
|
-
children: "
|
|
144
|
+
children: "".concat(_locale.default.ProThemeTools.formLabel)
|
|
143
145
|
})
|
|
144
146
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
145
147
|
className: "pro-theme-tools-item",
|
|
@@ -149,18 +151,18 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
149
151
|
var after = e.target.value === 'left' ? 'inline' : 'none';
|
|
150
152
|
var before = e.target.value === 'right' ? 'inline' : 'none';
|
|
151
153
|
// 遍历添加className
|
|
152
|
-
var formItemLabels = document.querySelectorAll(
|
|
154
|
+
var formItemLabels = document.querySelectorAll(".".concat(prefixCls, "-form-item-label"));
|
|
153
155
|
// 遍历元素列表,为每个元素添加新的 class
|
|
154
156
|
formItemLabels.forEach(function (label) {
|
|
155
157
|
var _label$classList, _label$classList$valu, _label$classList2, _label$classList2$val;
|
|
156
158
|
if (!label) {
|
|
157
159
|
return false;
|
|
158
160
|
}
|
|
159
|
-
if (e.target.value === 'left' && !((_label$classList = label.classList) === null || _label$classList === void 0 ? void 0 : (_label$classList$valu = _label$classList.value) === null || _label$classList$valu === void 0 ? void 0 : _label$classList$valu.includes(
|
|
160
|
-
label.classList.add(
|
|
161
|
+
if (e.target.value === 'left' && !((_label$classList = label.classList) === null || _label$classList === void 0 ? void 0 : (_label$classList$valu = _label$classList.value) === null || _label$classList$valu === void 0 ? void 0 : _label$classList$valu.includes("".concat(prefixCls, "-form-item-label-left")))) {
|
|
162
|
+
label.classList.add("".concat(prefixCls, "-form-item-label-left"));
|
|
161
163
|
}
|
|
162
|
-
if (e.target.value === 'right' && ((_label$classList2 = label.classList) === null || _label$classList2 === void 0 ? void 0 : (_label$classList2$val = _label$classList2.value) === null || _label$classList2$val === void 0 ? void 0 : _label$classList2$val.includes(
|
|
163
|
-
label.classList.remove(
|
|
164
|
+
if (e.target.value === 'right' && ((_label$classList2 = label.classList) === null || _label$classList2 === void 0 ? void 0 : (_label$classList2$val = _label$classList2.value) === null || _label$classList2$val === void 0 ? void 0 : _label$classList2$val.includes("".concat(prefixCls, "-form-item-label-left")))) {
|
|
165
|
+
label.classList.remove("".concat(prefixCls, "-form-item-label-left"));
|
|
164
166
|
}
|
|
165
167
|
});
|
|
166
168
|
setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
@@ -176,10 +178,10 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
176
178
|
},
|
|
177
179
|
children: [(0, _jsxRuntime.jsx)(_antd.Radio.Button, {
|
|
178
180
|
value: "left",
|
|
179
|
-
children: "
|
|
181
|
+
children: "".concat(_locale.default.ProThemeTools.flex[0])
|
|
180
182
|
}), (0, _jsxRuntime.jsx)(_antd.Radio.Button, {
|
|
181
183
|
value: "right",
|
|
182
|
-
children: "
|
|
184
|
+
children: "".concat(_locale.default.ProThemeTools.flex[1])
|
|
183
185
|
})]
|
|
184
186
|
})
|
|
185
187
|
})]
|
|
@@ -188,13 +190,13 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
188
190
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
189
191
|
className: "pro-theme-tools-item",
|
|
190
192
|
children: (0, _jsxRuntime.jsx)("p", {
|
|
191
|
-
children: "
|
|
193
|
+
children: "".concat(_locale.default.ProThemeTools.bigText)
|
|
192
194
|
})
|
|
193
195
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
194
196
|
className: "pro-theme-tools-item",
|
|
195
197
|
children: (0, _jsxRuntime.jsx)(_antd.Switch, {
|
|
196
|
-
checkedChildren: "
|
|
197
|
-
unCheckedChildren: "
|
|
198
|
+
checkedChildren: "".concat(_locale.default.ProThemeTools.switchText[0]),
|
|
199
|
+
unCheckedChildren: "".concat(_locale.default.ProThemeTools.switchText[1]),
|
|
198
200
|
checked: state.zauiBigText,
|
|
199
201
|
onClick: function onClick(value) {
|
|
200
202
|
setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
@@ -212,13 +214,13 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
212
214
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
213
215
|
className: "pro-theme-tools-item",
|
|
214
216
|
children: (0, _jsxRuntime.jsx)("p", {
|
|
215
|
-
children: "
|
|
217
|
+
children: "".concat(_locale.default.ProThemeTools.tableBorder)
|
|
216
218
|
})
|
|
217
219
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
218
220
|
className: "pro-theme-tools-item",
|
|
219
221
|
children: (0, _jsxRuntime.jsx)(_antd.Switch, {
|
|
220
|
-
checkedChildren: "
|
|
221
|
-
unCheckedChildren: "
|
|
222
|
+
checkedChildren: "".concat(_locale.default.ProThemeTools.switchText[0]),
|
|
223
|
+
unCheckedChildren: "".concat(_locale.default.ProThemeTools.switchText[1]),
|
|
222
224
|
checked: state.zauiTableBorder,
|
|
223
225
|
onClick: function onClick(value) {
|
|
224
226
|
setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
@@ -235,13 +237,13 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
235
237
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
236
238
|
className: "pro-theme-tools-item",
|
|
237
239
|
children: (0, _jsxRuntime.jsx)("p", {
|
|
238
|
-
children: "
|
|
240
|
+
children: "".concat(_locale.default.ProThemeTools.tableStripe)
|
|
239
241
|
})
|
|
240
242
|
}), (0, _jsxRuntime.jsx)("div", {
|
|
241
243
|
className: "pro-theme-tools-item",
|
|
242
244
|
children: (0, _jsxRuntime.jsx)(_antd.Switch, {
|
|
243
|
-
checkedChildren: "
|
|
244
|
-
unCheckedChildren: "
|
|
245
|
+
checkedChildren: "".concat(_locale.default.ProThemeTools.switchText[0]),
|
|
246
|
+
unCheckedChildren: "".concat(_locale.default.ProThemeTools.switchText[1]),
|
|
245
247
|
checked: state.zauiStripe,
|
|
246
248
|
onClick: function onClick(value) {
|
|
247
249
|
setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
@@ -272,7 +274,7 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
272
274
|
}]);
|
|
273
275
|
onReset();
|
|
274
276
|
},
|
|
275
|
-
children: "
|
|
277
|
+
children: "".concat(_locale.default.ProThemeTools.reset)
|
|
276
278
|
})]
|
|
277
279
|
});
|
|
278
280
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
.pro-theme-prd-tools-drawer {
|
|
2
|
-
|
|
2
|
+
.@{ant-prefix}-drawer-header {
|
|
3
3
|
border-bottom: none;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
.@{ant-prefix}-drawer-title {
|
|
7
7
|
font-size: var(--zaui-font-size-xl, 18px);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
.@{ant-prefix}-drawer-body {
|
|
11
11
|
padding: 0 32px 32px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
.@{ant-prefix}-space-vertical {
|
|
15
15
|
gap: var(--zaui-space-size-sm, 8px) !important;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -118,12 +118,12 @@
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
.@{ant-prefix}-radio-button-wrapper {
|
|
122
122
|
padding: 0 28px;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.pro-theme-tools-form {
|
|
126
|
-
|
|
126
|
+
.@{ant-prefix}-radio-button-wrapper {
|
|
127
127
|
padding: 0 42px;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ProThemeToolsProps } from './propsType';
|
|
2
2
|
declare const ProThemeTools: {
|
|
3
|
-
({ size, className, cacheTime, color, mode, iconFollowTheme, tableBorder, tableStripe, theme, ...props }: ProThemeToolsProps): JSX.Element;
|
|
3
|
+
({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, ...props }: ProThemeToolsProps): JSX.Element;
|
|
4
4
|
defaultProps: {
|
|
5
5
|
size: number;
|
|
6
6
|
mode: string;
|
|
@@ -16,7 +16,8 @@ var _react = require("react");
|
|
|
16
16
|
var _classnames2 = _interopRequireDefault(require("classnames"));
|
|
17
17
|
var _index = require("./utils/index");
|
|
18
18
|
var _component = require("./component");
|
|
19
|
-
var
|
|
19
|
+
var _locale = _interopRequireDefault(require("../locale"));
|
|
20
|
+
var _excluded = ["size", "className", "cacheTime", "color", "mode", "iconFollowTheme", "prefixCls", "tableBorder", "tableStripe", "theme"];
|
|
20
21
|
/* eslint-disable prefer-const */
|
|
21
22
|
var defaultCacheTime = 1; // 配置保存时间为一天
|
|
22
23
|
var defaultThemeConfig = {
|
|
@@ -41,6 +42,8 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
41
42
|
color = _ref.color,
|
|
42
43
|
mode = _ref.mode,
|
|
43
44
|
iconFollowTheme = _ref.iconFollowTheme,
|
|
45
|
+
_ref$prefixCls = _ref.prefixCls,
|
|
46
|
+
prefixCls = _ref$prefixCls === void 0 ? 'ant' : _ref$prefixCls,
|
|
44
47
|
_ref$tableBorder = _ref.tableBorder,
|
|
45
48
|
tableBorder = _ref$tableBorder === void 0 ? false : _ref$tableBorder,
|
|
46
49
|
_ref$tableStripe = _ref.tableStripe,
|
|
@@ -93,7 +96,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
93
96
|
input.select();
|
|
94
97
|
if (document.execCommand('copy')) {
|
|
95
98
|
document.execCommand('copy');
|
|
96
|
-
_antd.message.success(
|
|
99
|
+
_antd.message.success("".concat(_locale.default.ProThemeTools.copySuccess));
|
|
97
100
|
}
|
|
98
101
|
document.body.removeChild(input);
|
|
99
102
|
};
|
|
@@ -120,6 +123,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
120
123
|
setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), localThemeConfig));
|
|
121
124
|
(0, _index.setThemes)(cssVariables);
|
|
122
125
|
_antd.ConfigProvider.config({
|
|
126
|
+
prefixCls: prefixCls,
|
|
123
127
|
theme: {
|
|
124
128
|
primaryColor: (_localThemeConfig = localThemeConfig) === null || _localThemeConfig === void 0 ? void 0 : _localThemeConfig.zauiBrand
|
|
125
129
|
}
|
|
@@ -127,6 +131,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
127
131
|
} else {
|
|
128
132
|
(0, _index.setThemes)((0, _index.getMapKebabCase)(state));
|
|
129
133
|
_antd.ConfigProvider.config({
|
|
134
|
+
prefixCls: prefixCls,
|
|
130
135
|
theme: {
|
|
131
136
|
primaryColor: state === null || state === void 0 ? void 0 : state.zauiBrand
|
|
132
137
|
}
|
|
@@ -149,7 +154,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
149
154
|
}, [zauiBrand]);
|
|
150
155
|
// 斑马纹设置
|
|
151
156
|
(0, _react.useEffect)(function () {
|
|
152
|
-
(0, _index.setTableNoStripe)(zauiStripe);
|
|
157
|
+
(0, _index.setTableNoStripe)(zauiStripe, prefixCls);
|
|
153
158
|
}, [zauiStripe]);
|
|
154
159
|
// 表格边框设置
|
|
155
160
|
(0, _react.useEffect)(function () {
|
|
@@ -181,6 +186,7 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
181
186
|
showDrawer();
|
|
182
187
|
}
|
|
183
188
|
}), (0, _jsxRuntime.jsx)(_component.PrdTools, {
|
|
189
|
+
prefixCls: prefixCls,
|
|
184
190
|
onReset: onReset,
|
|
185
191
|
onClose: onClose,
|
|
186
192
|
onCopy: onCopy,
|
|
@@ -9,6 +9,8 @@ export interface DevToolsPropsType {
|
|
|
9
9
|
tableBorder?: boolean;
|
|
10
10
|
/** 是否有斑马纹 */
|
|
11
11
|
tableStripe?: boolean;
|
|
12
|
+
/** 统一样式前缀, 默认ant */
|
|
13
|
+
prefixCls?: string;
|
|
12
14
|
}
|
|
13
15
|
export interface ProThemeToolsProps {
|
|
14
16
|
size?: number;
|
|
@@ -23,6 +25,8 @@ export interface ProThemeToolsProps {
|
|
|
23
25
|
tableBorder?: boolean;
|
|
24
26
|
/** 是否有斑马纹 */
|
|
25
27
|
tableStripe?: boolean;
|
|
28
|
+
/** 统一样式前缀, 默认ant */
|
|
29
|
+
prefixCls?: string;
|
|
26
30
|
[key: string]: any;
|
|
27
31
|
}
|
|
28
32
|
export interface LocalThemeConfigPropsType {
|