@zat-design/sisyphus-react 3.2.1 → 3.2.2-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.
Files changed (149) hide show
  1. package/dist/index.esm.css +66 -35
  2. package/es/ProDownload/utils.js +0 -2
  3. package/es/ProDrawerForm/style/index.less +59 -59
  4. package/es/ProEditTable/components/RenderField/index.js +66 -21
  5. package/es/ProEditTable/index.js +11 -4
  6. package/es/ProEditTable/propsType.d.ts +11 -1
  7. package/es/ProForm/components/base/Checkbox/index.d.ts +1 -0
  8. package/es/ProForm/components/base/Checkbox/index.js +5 -3
  9. package/es/ProForm/components/base/DatePicker/index.js +3 -2
  10. package/es/ProForm/components/base/Input/index.js +4 -2
  11. package/es/ProForm/components/base/Input/propsType.d.ts +1 -0
  12. package/es/ProForm/components/base/InputNumber/index.d.ts +1 -0
  13. package/es/ProForm/components/base/InputNumber/index.js +5 -3
  14. package/es/ProForm/components/base/ProCascader/index.js +6 -6
  15. package/es/ProForm/components/base/Radio/index.d.ts +1 -0
  16. package/es/ProForm/components/base/Radio/index.js +4 -2
  17. package/es/ProForm/components/base/RangePicker/index.d.ts +1 -0
  18. package/es/ProForm/components/base/RangePicker/index.js +5 -3
  19. package/es/ProForm/components/base/Select/index.d.ts +1 -0
  20. package/es/ProForm/components/base/Select/index.js +4 -2
  21. package/es/ProForm/components/base/Switch/index.d.ts +1 -0
  22. package/es/ProForm/components/base/Switch/index.js +4 -2
  23. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -0
  24. package/es/ProForm/components/base/SwitchCheckbox/index.js +4 -2
  25. package/es/ProForm/components/base/TextArea/index.d.ts +1 -0
  26. package/es/ProForm/components/base/TextArea/index.js +4 -3
  27. package/es/ProForm/components/base/TimePicker/index.d.ts +1 -0
  28. package/es/ProForm/components/base/TimePicker/index.js +4 -2
  29. package/es/ProForm/components/combination/Container/index.js +7 -5
  30. package/es/ProForm/components/combination/FormList/index.js +6 -5
  31. package/es/ProForm/components/combination/FormList/style/index.less +15 -22
  32. package/es/ProForm/components/combination/Group/index.js +6 -3
  33. package/es/ProForm/components/combination/ProAddressBar/index.js +29 -30
  34. package/es/ProForm/components/combination/ProCombination/index.js +11 -11
  35. package/es/ProForm/components/combination/ProModalSelect/index.js +4 -5
  36. package/es/ProForm/components/combination/ProModalSelect/style/index.less +1 -1
  37. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +1 -1
  38. package/es/ProForm/components/combination/ProNumberRange/index.js +7 -7
  39. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -0
  40. package/es/ProForm/components/combination/ProRangeLimit/index.js +4 -2
  41. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -0
  42. package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -2
  43. package/es/ProForm/components/render/Render.js +54 -20
  44. package/es/ProForm/components/render/RenderFields.d.ts +1 -0
  45. package/es/ProForm/components/render/RenderFields.js +13 -12
  46. package/es/ProForm/index.js +5 -2
  47. package/es/ProForm/propsType.d.ts +1 -0
  48. package/es/ProForm/style/index.less +49 -42
  49. package/es/ProForm/utils/contrastOriginal.d.ts +10 -1
  50. package/es/ProForm/utils/contrastOriginal.js +15 -18
  51. package/es/ProForm/utils/useChanged.d.ts +15 -1
  52. package/es/ProForm/utils/useChanged.js +27 -8
  53. package/es/ProLayout/components/ProFooter/style/index.less +8 -7
  54. package/es/ProLayout/components/ProHeader/index.js +1 -0
  55. package/es/ProLayout/components/ProHeader/style/index.less +7 -0
  56. package/es/ProSelect/index.js +6 -3
  57. package/es/ProStep/components/Item/index.js +1 -4
  58. package/es/ProTable/components/RenderColumn/index.js +1 -1
  59. package/es/ProTable/style/index.less +6 -0
  60. package/es/ProTabs/style/index.less +16 -17
  61. package/es/ProThemeTools/component/PrdTools/index.js +21 -20
  62. package/es/ProThemeTools/index.js +2 -1
  63. package/es/ProTree/components/Tree.js +43 -42
  64. package/es/ProTree/style/index.less +0 -6
  65. package/es/ProTreeModal/index.js +14 -3
  66. package/es/ProTreeSelect/index.js +3 -2
  67. package/es/locale/en_US.d.ts +15 -1
  68. package/es/locale/en_US.js +17 -3
  69. package/es/locale/zh_CN.d.ts +15 -1
  70. package/es/locale/zh_CN.js +15 -1
  71. package/es/style/theme/antd.less +129 -117
  72. package/lib/ProDrawerForm/style/index.less +59 -59
  73. package/lib/ProEditTable/components/RenderField/index.js +61 -22
  74. package/lib/ProEditTable/index.js +12 -4
  75. package/lib/ProEditTable/propsType.d.ts +11 -1
  76. package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -0
  77. package/lib/ProForm/components/base/Checkbox/index.js +5 -3
  78. package/lib/ProForm/components/base/DatePicker/index.js +3 -2
  79. package/lib/ProForm/components/base/Input/index.js +4 -2
  80. package/lib/ProForm/components/base/Input/propsType.d.ts +1 -0
  81. package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -0
  82. package/lib/ProForm/components/base/InputNumber/index.js +5 -3
  83. package/lib/ProForm/components/base/ProCascader/index.js +6 -6
  84. package/lib/ProForm/components/base/Radio/index.d.ts +1 -0
  85. package/lib/ProForm/components/base/Radio/index.js +4 -2
  86. package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -0
  87. package/lib/ProForm/components/base/RangePicker/index.js +6 -4
  88. package/lib/ProForm/components/base/Select/index.d.ts +1 -0
  89. package/lib/ProForm/components/base/Select/index.js +4 -2
  90. package/lib/ProForm/components/base/Switch/index.d.ts +1 -0
  91. package/lib/ProForm/components/base/Switch/index.js +4 -2
  92. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -0
  93. package/lib/ProForm/components/base/SwitchCheckbox/index.js +4 -2
  94. package/lib/ProForm/components/base/TextArea/index.d.ts +1 -0
  95. package/lib/ProForm/components/base/TextArea/index.js +4 -3
  96. package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -0
  97. package/lib/ProForm/components/base/TimePicker/index.js +4 -2
  98. package/lib/ProForm/components/combination/Container/index.js +7 -5
  99. package/lib/ProForm/components/combination/FormList/index.js +6 -5
  100. package/lib/ProForm/components/combination/FormList/style/index.less +15 -22
  101. package/lib/ProForm/components/combination/Group/index.js +6 -3
  102. package/lib/ProForm/components/combination/ProAddressBar/index.js +29 -30
  103. package/lib/ProForm/components/combination/ProCombination/index.js +11 -11
  104. package/lib/ProForm/components/combination/ProModalSelect/index.js +4 -5
  105. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +1 -1
  106. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +1 -1
  107. package/lib/ProForm/components/combination/ProNumberRange/index.js +7 -7
  108. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -0
  109. package/lib/ProForm/components/combination/ProRangeLimit/index.js +4 -2
  110. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +1 -0
  111. package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -2
  112. package/lib/ProForm/components/old/InputRange/index.js +1 -0
  113. package/lib/ProForm/components/old/ProCertValidity/index.js +1 -1
  114. package/lib/ProForm/components/render/Render.js +53 -22
  115. package/lib/ProForm/components/render/RenderFields.d.ts +1 -0
  116. package/lib/ProForm/components/render/RenderFields.js +13 -12
  117. package/lib/ProForm/index.js +5 -2
  118. package/lib/ProForm/propsType.d.ts +1 -0
  119. package/lib/ProForm/style/index.less +49 -42
  120. package/lib/ProForm/utils/contrastOriginal.d.ts +10 -1
  121. package/lib/ProForm/utils/contrastOriginal.js +14 -17
  122. package/lib/ProForm/utils/useChanged.d.ts +15 -1
  123. package/lib/ProForm/utils/useChanged.js +27 -8
  124. package/lib/ProLayout/components/ProFooter/style/index.less +8 -7
  125. package/lib/ProLayout/components/ProHeader/index.js +1 -0
  126. package/lib/ProLayout/components/ProHeader/style/index.less +7 -0
  127. package/lib/ProSelect/index.js +6 -3
  128. package/lib/ProStep/components/Item/index.js +1 -4
  129. package/lib/ProTable/components/RenderColumn/index.js +1 -1
  130. package/lib/ProTable/components/TableResizable/index.js +0 -8
  131. package/lib/ProTable/style/index.less +6 -0
  132. package/lib/ProTabs/index.js +0 -1
  133. package/lib/ProTabs/style/index.less +16 -17
  134. package/lib/ProThemeTools/component/PrdTools/index.js +21 -20
  135. package/lib/ProThemeTools/index.js +2 -2
  136. package/lib/ProTree/components/Tree.js +42 -48
  137. package/lib/ProTree/index.js +1 -0
  138. package/lib/ProTree/style/index.less +0 -6
  139. package/lib/ProTreeModal/components/Tree.js +0 -1
  140. package/lib/ProTreeModal/index.js +14 -3
  141. package/lib/ProTreeSelect/index.js +3 -2
  142. package/lib/ProUpload/index.js +0 -7
  143. package/lib/locale/en_US.d.ts +15 -1
  144. package/lib/locale/en_US.js +17 -3
  145. package/lib/locale/zh_CN.d.ts +15 -1
  146. package/lib/locale/zh_CN.js +15 -1
  147. package/lib/old/ProCertValidity/index.js +1 -1
  148. package/lib/style/theme/antd.less +129 -117
  149. package/package.json +1 -1
@@ -38,7 +38,6 @@ declare const _default: {
38
38
  errorMessage: string;
39
39
  defaultTitle: string;
40
40
  };
41
- ProWaterMark: {};
42
41
  ProTable: {
43
42
  noData: string;
44
43
  resetColumnWidth: string;
@@ -94,6 +93,7 @@ declare const _default: {
94
93
  operation: string;
95
94
  noData: string;
96
95
  clickAdd: string;
96
+ total: string;
97
97
  onlyOneLineMsg: string;
98
98
  deletePoConfirmMsg: string;
99
99
  mulDeletePoConfirmMsg: string;
@@ -133,5 +133,19 @@ declare const _default: {
133
133
  ProTimeLimit: {
134
134
  foreverText: string;
135
135
  };
136
+ ProThemeTools: {
137
+ title: string;
138
+ copySuccess: string;
139
+ layout: string;
140
+ layoutMode: string[];
141
+ themeColor: string;
142
+ formLabel: string;
143
+ bigText: string;
144
+ flex: string[];
145
+ switchText: string[];
146
+ tableBorder: string;
147
+ tableStripe: string;
148
+ reset: string;
149
+ };
136
150
  };
137
151
  export default _default;
@@ -44,7 +44,6 @@ var _default = exports.default = {
44
44
  errorMessage: 'ProAction 配置 config 必须为数据',
45
45
  defaultTitle: '确认删除吗?'
46
46
  },
47
- ProWaterMark: {},
48
47
  ProTable: {
49
48
  noData: '暂无数据',
50
49
  resetColumnWidth: '重置列宽',
@@ -100,6 +99,7 @@ var _default = exports.default = {
100
99
  operation: '操作',
101
100
  noData: '暂无数据',
102
101
  clickAdd: '点击添加',
102
+ total: '共{total}条',
103
103
  onlyOneLineMsg: '请先保存数据',
104
104
  deletePoConfirmMsg: '您确定要删除该行数据吗?',
105
105
  mulDeletePoConfirmMsg: '您确定要删除选中的数据吗?'
@@ -138,5 +138,19 @@ var _default = exports.default = {
138
138
  },
139
139
  ProTimeLimit: {
140
140
  foreverText: '长期'
141
+ },
142
+ ProThemeTools: {
143
+ title: '全局样式自定义',
144
+ copySuccess: '复制成功!',
145
+ layout: '布局',
146
+ layoutMode: ['紧凑', '常规', '宽松'],
147
+ themeColor: '主题色',
148
+ formLabel: '表单标题',
149
+ bigText: '大字号模式',
150
+ flex: ['左对齐', '右对齐'],
151
+ switchText: ['开', '关'],
152
+ tableBorder: '表格边框',
153
+ tableStripe: '表格斑马纹',
154
+ reset: '重置'
141
155
  }
142
156
  };
@@ -11,7 +11,7 @@ var _jsxRuntime = require("react/jsx-runtime");
11
11
  var _antd = require("antd");
12
12
  var _moment = _interopRequireDefault(require("moment"));
13
13
  var _react = require("react");
14
- var _excluded = ["value", "onChange", "disabled", "isRange", "getPopupContainer", "showForever", "proformmode"]; // @ts-nocheck
14
+ var _excluded = ["value", "onChange", "disabled", "isRange", "getPopupContainer", "showForever", "proformmode"];
15
15
  var RangePicker = _antd.DatePicker.RangePicker;
16
16
  var defaultFormatDate = 'YYYY-MM-DD';
17
17
  var defaultPopupContainer = function defaultPopupContainer(triggerNode) {
@@ -1,6 +1,6 @@
1
1
  @import './index';
2
2
 
3
- @zat-disabled-color : #BCBCBC;
3
+ @zat-disabled-color: #bcbcbc;
4
4
 
5
5
  /* antd 默认样式重置 */
6
6
 
@@ -21,12 +21,12 @@
21
21
 
22
22
  // label 超过130px换行
23
23
  .ant-form-item-label {
24
- flex : 0 0 @zaui-form-label-width;
25
- overflow : initial;
26
- line-height : 1;
27
- text-align : @zaui-form-align;
28
- white-space : pre-wrap;
24
+ flex: 0 0 @zaui-form-label-width;
29
25
  padding-right: @zaui-space-size-sm;
26
+ overflow: initial;
27
+ line-height: 1;
28
+ white-space: pre-wrap;
29
+ text-align: @zaui-form-align;
30
30
 
31
31
  .ant-form-item-required {
32
32
  &::after {
@@ -34,12 +34,12 @@
34
34
  }
35
35
  }
36
36
 
37
- &>label {
37
+ & > label {
38
38
  word-break: break-word;
39
39
 
40
40
  &::after {
41
- margin : 0;
42
41
  display: none;
42
+ margin: 0;
43
43
  }
44
44
  }
45
45
 
@@ -48,21 +48,21 @@
48
48
  }
49
49
 
50
50
  &.ant-form-item-label-left {
51
- &>.ant-form-item-required::before {
51
+ & > .ant-form-item-required::before {
52
52
  display: none;
53
53
  }
54
54
 
55
- &>.ant-form-item-required::after {
56
- margin-top : 1px;
57
- color : #ff4d4f;
58
- font-size : var(--zaui-font-size, 14px);
55
+ & > .ant-form-item-required::after {
56
+ margin-top: 1px;
57
+ color: #ff4d4f;
58
+ font-size: var(--zaui-font-size, 14px);
59
59
  line-height: 1;
60
- content : '*';
60
+ content: '*';
61
61
  }
62
62
  }
63
63
 
64
64
  &:not(.ant-form-item-label-left) {
65
- &>.ant-form-item-required::after {
65
+ & > .ant-form-item-required::after {
66
66
  display: none;
67
67
  }
68
68
  }
@@ -74,8 +74,8 @@
74
74
  }
75
75
 
76
76
  // 字体颜色
77
- .ant-form-item-label>label,
78
- .ant-picker-input>input,
77
+ .ant-form-item-label > label,
78
+ .ant-picker-input > input,
79
79
  .ant-input,
80
80
  .ant-input-number,
81
81
  .ant-select,
@@ -93,13 +93,16 @@
93
93
  .ant-select-disabled,
94
94
  .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector,
95
95
  .ant-input-number-disabled,
96
- .ant-picker-input>input[disabled],
96
+ .ant-picker-input > input[disabled],
97
97
  .ant-select-disabled.ant-select-multiple .ant-select-selection-item {
98
98
  .set-disabled-color();
99
99
  }
100
100
 
101
101
  // ant-table
102
102
  .ant-table {
103
+ .ant-empty-normal {
104
+ margin: calc(var(--zaui-space-size-lg; 32px) * var(--zaui-size; 1)) 0;
105
+ }
103
106
  &.pro-table-no-stripe {
104
107
  .ant-table-tbody {
105
108
  .ant-table-row {
@@ -126,19 +129,19 @@
126
129
  }
127
130
  }
128
131
 
129
- .ant-table-thead>tr>th {
130
- background : @zaui-table-header-bg;
132
+ .ant-table-thead > tr > th {
133
+ background: @zaui-table-header-bg;
131
134
  border-bottom: none;
132
135
 
133
136
  .ant-dropdown-trigger {
134
137
  .anticon-down {
135
- width : 0;
136
- height : 0;
137
- margin : 0 0 1px 4px;
138
- border-top : 6px solid #909090;
138
+ width: 0;
139
+ height: 0;
140
+ margin: 0 0 1px 4px;
141
+ border-top: 6px solid #909090;
139
142
  border-right: 5px solid transparent;
140
- border-left : 5px solid transparent;
141
- transition : transform 0.8s;
143
+ border-left: 5px solid transparent;
144
+ transition: transform 0.8s;
142
145
 
143
146
  svg {
144
147
  display: none;
@@ -153,15 +156,15 @@
153
156
  }
154
157
 
155
158
  tr.ant-table-row:hover td {
156
- background-color: @zaui-table-hover-bg !important;
159
+ background-color: @zaui-table-hover-bg !important;
157
160
  }
158
161
 
159
- &>tr>td {
162
+ & > tr > td {
160
163
  border-bottom: none;
161
164
  }
162
165
 
163
166
  tr.ant-table-row-selected {
164
- &:hover>td {
167
+ &:hover > td {
165
168
  background: @zaui-table-selected-hover-bg;
166
169
  }
167
170
 
@@ -171,13 +174,13 @@
171
174
  }
172
175
  }
173
176
 
174
- .ant-table-thead>tr>th,
177
+ .ant-table-thead > tr > th,
175
178
  .ant-table-footer {
176
179
  .set-text-color();
177
180
  .set-text-size();
178
181
  }
179
182
 
180
- .ant-table-tbody>tr>td {
183
+ .ant-table-tbody > tr > td {
181
184
  .set-text-size();
182
185
 
183
186
  .ant-btn {
@@ -206,12 +209,20 @@
206
209
  }
207
210
  }
208
211
 
209
- &.ant-table-scroll-horizontal table {
212
+ & table {
213
+ .ant-table-thead > tr > th,
214
+ .ant-table-tbody > tr > td,
215
+ .ant-table tfoot > tr > th,
216
+ .ant-table tfoot > tr > td {
217
+ padding: calc(5px + var(--zaui-size) * 8px) 16px;
218
+ }
219
+ }
210
220
 
211
- .ant-table-thead>tr>th,
212
- .ant-table-tbody>tr>td,
213
- .ant-table tfoot>tr>th,
214
- .ant-table tfoot>tr>td {
221
+ &.ant-table-scroll-horizontal table {
222
+ .ant-table-thead > tr > th,
223
+ .ant-table-tbody > tr > td,
224
+ .ant-table tfoot > tr > th,
225
+ .ant-table tfoot > tr > td {
215
226
  padding: calc(5px + var(--zaui-size) * 8px) 16px;
216
227
  }
217
228
 
@@ -226,17 +237,17 @@
226
237
  }
227
238
  }
228
239
 
229
- .ant-table-row:hover>td {
240
+ .ant-table-row:hover > td {
230
241
  background-color: @zaui-table-strip-bg;
231
242
  }
232
243
 
233
244
  tr.ant-table-row-selected {
234
- &:hover>td {
235
- background: @zaui-table-selected-bg !important;
245
+ &:hover > td {
246
+ background: @zaui-table-selected-bg !important;
236
247
  }
237
248
 
238
249
  td {
239
- background: @zaui-table-selected-bg !important;
250
+ background: @zaui-table-selected-bg !important;
240
251
  }
241
252
  }
242
253
 
@@ -258,7 +269,7 @@
258
269
  & td,
259
270
  & td.ant-table-cell-fix-right,
260
271
  & td.ant-table-cell-fix-left {
261
- background-color: #fff;
272
+ background-color: #fff !important;
262
273
  }
263
274
 
264
275
  & td {
@@ -267,10 +278,10 @@
267
278
  }
268
279
 
269
280
  .ant-table-row:nth-child(odd) {
270
- background-color: @zaui-table-strip-bg;
281
+ background-color: @zaui-table-strip-bg !important;
271
282
 
272
283
  & td {
273
- background-color: @zaui-table-strip-bg;
284
+ background-color: @zaui-table-strip-bg !important;
274
285
  }
275
286
  }
276
287
  }
@@ -279,21 +290,20 @@
279
290
 
280
291
  .ant-table-cell {
281
292
  .ant-btn-link {
282
- padding : 0;
283
- height : auto;
293
+ height: auto;
294
+ padding: 0;
284
295
  user-select: text;
285
296
  }
286
297
 
287
298
  a {
299
+ color: var(--zaui-brand, #006aff);
288
300
  user-select: text;
289
- color : var(--zaui-brand, #006aFF);
290
301
  }
291
302
  }
292
303
 
293
304
  &.ant-table-fixed-header {
294
305
  .ant-table-tbody {
295
306
  .ant-table-row:nth-child(even) {
296
-
297
307
  td {
298
308
  background: #ffffff !important;
299
309
  }
@@ -318,15 +328,15 @@
318
328
  .ant-tabs-nav-list {
319
329
  &.ant-tabs-card {
320
330
  .ant-tabs-tab {
321
- padding : 8px var(--zaui-space-size-md, 16px);
322
331
  margin-right: 10px;
332
+ padding: 8px var(--zaui-space-size-md, 16px);
323
333
  }
324
334
  }
325
335
 
326
336
  .ant-tabs-tab {
327
337
  .set-text-size();
328
- padding : 12px var(--zaui-space-size-md, 16px);
329
338
  margin-left: 0;
339
+ padding: 12px var(--zaui-space-size-md, 16px);
330
340
  }
331
341
  }
332
342
 
@@ -339,6 +349,11 @@
339
349
  }
340
350
 
341
351
  &.ant-tabs-card {
352
+ .ant-tabs-tab {
353
+ margin-right: 10px !important;
354
+ padding: 8px calc(var(--zaui-space-size-md, 16px) * var(--zaui-size, 1)) !important;
355
+ }
356
+
342
357
  .ant-tabs-nav .ant-tabs-tab-btn {
343
358
  font-size: var(--zaui-font-size, 14px);
344
359
  }
@@ -351,8 +366,8 @@
351
366
  font-size: @zaui-font-size;
352
367
 
353
368
  .ant-btn-primary {
354
- color : #fff;
355
- background : @zaui-brand;
369
+ color: #fff;
370
+ background: @zaui-brand;
356
371
  border-color: @zaui-brand;
357
372
  }
358
373
 
@@ -360,24 +375,24 @@
360
375
  &.ant-btn-primary[disabled]:hover,
361
376
  &.ant-btn-primary[disabled]:focus,
362
377
  &.ant-btn-primary[disabled]:active {
363
- color : #fff;
364
- text-shadow : none;
365
- background : @zaui-brand;
378
+ color: #fff;
379
+ text-shadow: none;
380
+ background: @zaui-brand;
366
381
  border-color: @zaui-brand;
367
- box-shadow : none;
368
- opacity : 0.6;
382
+ box-shadow: none;
383
+ opacity: 0.6;
369
384
  }
370
385
 
371
386
  &.ant-btn-link[disabled],
372
387
  &.ant-btn-link[disabled]:hover,
373
388
  &.ant-btn-link[disabled]:focus,
374
389
  &.ant-btn-link[disabled]:active {
375
- color : @zat-disabled-color;
376
- text-shadow : none;
377
- background : none;
390
+ color: @zat-disabled-color;
391
+ text-shadow: none;
392
+ background: none;
378
393
  border-color: none;
379
- box-shadow : none;
380
- opacity : 0.6;
394
+ box-shadow: none;
395
+ opacity: 0.6;
381
396
  }
382
397
 
383
398
  &.ant-btn-link {
@@ -404,22 +419,22 @@
404
419
 
405
420
  // 分页
406
421
  .ant-pagination {
407
- color : @zaui-text !important;
408
- font-size: @zaui-font-size !important;
422
+ color: @zaui-text !important;
423
+ font-size: @zaui-font-size !important;
409
424
 
410
425
  &.ant-table-pagination {
411
426
  margin: @zaui-height-size-md 0;
412
427
  }
413
428
 
414
429
  .ant-pagination-item {
415
- min-width : 32px;
416
- height : 32px;
417
- margin-right : 8px;
418
- font-size : @zaui-font-size;
419
- line-height : 32px;
430
+ min-width: 32px;
431
+ height: 32px;
432
+ margin-right: 8px;
433
+ font-size: @zaui-font-size;
434
+ line-height: 32px;
420
435
  background-color: #f7f9fa;
421
- border : 0;
422
- border-radius : @zaui-border-radius;
436
+ border: 0;
437
+ border-radius: @zaui-border-radius;
423
438
 
424
439
  a {
425
440
  .set-text-color();
@@ -435,8 +450,8 @@
435
450
  }
436
451
 
437
452
  .ant-pagination-item-active a {
438
- color : #fff;
439
- background : @zaui-brand;
453
+ color: #fff;
454
+ background: @zaui-brand;
440
455
  border-radius: @zaui-border-radius;
441
456
  }
442
457
 
@@ -449,12 +464,12 @@
449
464
  .ant-pagination-next,
450
465
  .ant-pagination-jump-prev,
451
466
  .ant-pagination-jump-next {
452
- min-width : 32px;
453
- height : 32px;
454
- line-height : 30px;
467
+ min-width: 32px;
468
+ height: 32px;
469
+ line-height: 30px;
455
470
  background-color: #f7f9fa;
456
- border : 0;
457
- border-radius : @zaui-border-radius;
471
+ border: 0;
472
+ border-radius: @zaui-border-radius;
458
473
  }
459
474
 
460
475
  .ant-pagination-prev,
@@ -473,27 +488,27 @@
473
488
 
474
489
  .ant-pagination-prev .ant-pagination-item-link,
475
490
  .ant-pagination-next .ant-pagination-item-link {
476
- min-width : 32px;
477
- height : 32px;
478
- line-height : 32px;
491
+ min-width: 32px;
492
+ height: 32px;
493
+ line-height: 32px;
479
494
  background-color: #fafafa;
480
- border : 0;
481
- border-radius : @zaui-border-radius;
495
+ border: 0;
496
+ border-radius: @zaui-border-radius;
482
497
  }
483
498
 
484
499
  .ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
485
500
  .set-text-color();
486
501
  .set-text-size();
487
- width : 100%;
488
- height : 32px;
502
+ width: 100%;
503
+ height: 32px;
489
504
  padding: 0 12px;
490
505
  }
491
506
 
492
507
  .ant-select:not(.ant-select-customize-input) .ant-select-selector {
493
- position : relative;
508
+ position: relative;
494
509
  background-color: #fafafa;
495
- border : 0;
496
- border-radius : @zaui-border-radius;
510
+ border: 0;
511
+ border-radius: @zaui-border-radius;
497
512
  }
498
513
 
499
514
  .ant-pagination-jump-prev .ant-pagination-item-container .ant-pagination-item-link-icon,
@@ -504,7 +519,6 @@
504
519
 
505
520
  // ant-descriptions
506
521
  .ant-descriptions {
507
-
508
522
  .ant-descriptions-item-label,
509
523
  .ant-descriptions-item-content {
510
524
  .set-text-color();
@@ -523,8 +537,8 @@
523
537
 
524
538
  // ant-menu
525
539
  .ant-menu {
526
- color : @zaui-text !important;
527
- font-size: @zaui-font-size !important;
540
+ color: @zaui-text !important;
541
+ font-size: @zaui-font-size !important;
528
542
 
529
543
  .ant-menu-item a {
530
544
  .set-text-color();
@@ -544,13 +558,13 @@
544
558
  .ant-select {
545
559
  .ant-select-arrow {
546
560
  .anticon-down {
547
- width : 0;
548
- height : 0;
561
+ width: 0;
562
+ height: 0;
549
563
  vertical-align: middle;
550
- border-top : 6px solid #909090;
551
- border-right : 5px solid transparent;
552
- border-left : 5px solid transparent;
553
- transition : transform 0.3s;
564
+ border-top: 6px solid #909090;
565
+ border-right: 5px solid transparent;
566
+ border-left: 5px solid transparent;
567
+ transition: transform 0.3s;
554
568
 
555
569
  svg {
556
570
  display: none;
@@ -561,22 +575,22 @@
561
575
  // 多选样式重置
562
576
  &.ant-select-multiple {
563
577
  .ant-select-selection-item {
564
- align-items : center;
578
+ align-items: center;
565
579
  padding-right: 7px;
566
- background : #f2f3f5;
580
+ background: #f2f3f5;
567
581
 
568
582
  .ant-select-selection-item-remove {
569
- display : flex;
570
- align-items : center;
583
+ display: flex;
584
+ align-items: center;
571
585
  justify-content: center;
572
- width : 14px;
573
- height : 14px;
574
- background : #e0e1e7;
575
- border-radius : 100%;
586
+ width: 14px;
587
+ height: 14px;
588
+ background: #e0e1e7;
589
+ border-radius: 100%;
576
590
 
577
591
  .anticon-close {
578
592
  margin-top: 2px;
579
- color : #4e5969;
593
+ color: #4e5969;
580
594
  }
581
595
  }
582
596
  }
@@ -619,7 +633,6 @@
619
633
  padding-bottom: 20px;
620
634
  }
621
635
 
622
-
623
636
  &.ant-input-textarea-show-count.ant-input-textarea-in-form-item {
624
637
  &::after {
625
638
  background: transparent;
@@ -632,13 +645,13 @@
632
645
  }
633
646
 
634
647
  &::after {
635
- position : absolute;
636
- right : 16px;
637
- bottom : 1px;
648
+ position: absolute;
649
+ right: 16px;
650
+ bottom: 1px;
651
+ width: calc(100% - 18px);
638
652
  margin-bottom: 0;
639
- background : #fff;
640
- width : calc(100% - 18px);
641
- text-align : right;
653
+ text-align: right;
654
+ background: #fff;
642
655
  }
643
656
  }
644
657
  }
@@ -647,28 +660,27 @@
647
660
  .ant-space {
648
661
  &.ant-space-vertical {
649
662
  display: flex;
650
- width : 100%;
663
+ width: 100%;
651
664
  }
652
665
  }
653
666
 
654
667
  // Cascader级联选择
655
668
  .ant-cascader {
656
669
  .ant-cascader-menu {
657
- height : auto;
670
+ height: auto;
658
671
  max-height: 326px;
659
672
  }
660
673
  }
661
674
 
662
675
  .ant-select-dropdown {
663
-
664
676
  // tree select 样式重置
665
677
  .ant-select-tree .ant-select-tree-node-content-wrapper {
666
- min-height : 0px;
678
+ min-height: 0px;
667
679
  line-height: initial;
668
680
  }
669
681
 
670
682
  .ant-select-tree .ant-select-tree-treenode {
671
- padding-top : 4px;
683
+ padding-top: 4px;
672
684
  padding-bottom: 4px;
673
685
  }
674
686
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.2.1",
3
+ "version": "3.2.2-beta.2",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",