feffery_antd_components 0.2.10-rc13 → 0.2.10-rc15
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/DESCRIPTION +1 -1
- package/Project.toml +1 -1
- package/build/lib/feffery_antd_components/AntdTable.py +5 -3
- package/build/lib/feffery_antd_components/AntdTree.py +7 -3
- package/build/lib/feffery_antd_components/AntdUpload.py +2 -0
- package/build/lib/feffery_antd_components/__init__.py +16 -0
- package/build/lib/feffery_antd_components/async-antd_table.js +1 -1
- package/build/lib/feffery_antd_components/async-antd_upload.js +1 -1
- package/build/lib/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/build/lib/feffery_antd_components/metadata.json +33 -0
- package/build/lib/feffery_antd_components/package-info.json +1 -1
- package/feffery_antd_components/AntdTable.py +5 -3
- package/feffery_antd_components/AntdTree.py +7 -3
- package/feffery_antd_components/AntdUpload.py +2 -0
- package/feffery_antd_components/__init__.py +16 -0
- package/feffery_antd_components/async-antd_table.js +1 -1
- package/feffery_antd_components/async-antd_upload.js +1 -1
- package/feffery_antd_components/feffery_antd_components.min.js +1 -1
- package/feffery_antd_components/metadata.json +33 -0
- package/feffery_antd_components/package-info.json +1 -1
- package/package.json +1 -1
- package/src/jl/'feffery'_antdtable.jl +2 -1
- package/src/jl/'feffery'_antdtree.jl +3 -1
- package/src/jl/'feffery'_antdupload.jl +2 -1
- package/src/lib/components/dataDisplay/AntdComment.react.js +16 -16
- package/src/lib/components/dataDisplay/AntdSegmented.react.js +16 -16
- package/src/lib/components/dataDisplay/AntdTable.react.js +8 -2
- package/src/lib/components/dataDisplay/AntdTree.react.js +81 -19
- package/src/lib/components/dataEntry/AntdCascader.react.js +16 -16
- package/src/lib/components/dataEntry/AntdCheckbox.react.js +17 -17
- package/src/lib/components/dataEntry/AntdCheckboxGroup.react.js +17 -17
- package/src/lib/components/dataEntry/AntdDatePicker.react.js +16 -16
- package/src/lib/components/dataEntry/AntdDateRangePicker.react.js +16 -16
- package/src/lib/components/dataEntry/AntdInput.react.js +16 -16
- package/src/lib/components/dataEntry/AntdInputNumber.react.js +16 -16
- package/src/lib/components/dataEntry/AntdMentions.react.js +17 -17
- package/src/lib/components/dataEntry/AntdRadioGroup.react.js +16 -16
- package/src/lib/components/dataEntry/AntdRate.react.js +16 -16
- package/src/lib/components/dataEntry/AntdSegmentedColoring.react.js +17 -17
- package/src/lib/components/dataEntry/AntdSelect.react.js +16 -16
- package/src/lib/components/dataEntry/AntdSlider.react.js +16 -16
- package/src/lib/components/dataEntry/AntdSwitch.react.js +16 -16
- package/src/lib/components/dataEntry/AntdTimePicker.react.js +16 -16
- package/src/lib/components/dataEntry/AntdTimeRangePicker.react.js +16 -16
- package/src/lib/components/dataEntry/AntdTransfer.react.js +17 -17
- package/src/lib/components/dataEntry/AntdTreeSelect.react.js +16 -16
- package/src/lib/components/dataEntry/upload/AntdUpload.react.js +4 -0
- package/src/lib/components/navigation/AntdDropdown.react.js +17 -17
- package/src/lib/components/navigation/AntdPagination.react.js +16 -16
- package/src/lib/components/styles.css +5 -0
- package/src/lib/fragments/AntdTable.react.js +3 -3
- package/src/lib/fragments/upload/AntdUpload.react.js +3 -249
- package/usage.py +60 -89
|
@@ -46,9 +46,23 @@ const AntdInput = (props) => {
|
|
|
46
46
|
loading_state,
|
|
47
47
|
persistence,
|
|
48
48
|
persisted_props,
|
|
49
|
-
persistence_type
|
|
49
|
+
persistence_type,
|
|
50
|
+
batchPropsNames
|
|
50
51
|
} = props;
|
|
51
52
|
|
|
53
|
+
// 批属性监听
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
56
|
+
let _batchPropsValues = {};
|
|
57
|
+
for (let propName of batchPropsNames) {
|
|
58
|
+
_batchPropsValues[propName] = props[propName];
|
|
59
|
+
}
|
|
60
|
+
setProps({
|
|
61
|
+
batchPropsValues: _batchPropsValues
|
|
62
|
+
})
|
|
63
|
+
}
|
|
64
|
+
})
|
|
65
|
+
|
|
52
66
|
const context = useContext(PropsContext)
|
|
53
67
|
|
|
54
68
|
useEffect(() => {
|
|
@@ -493,18 +507,4 @@ AntdInput.defaultProps = {
|
|
|
493
507
|
batchPropsNames: []
|
|
494
508
|
}
|
|
495
509
|
|
|
496
|
-
export default
|
|
497
|
-
AntdInput,
|
|
498
|
-
(prevProps, nextProps) => {
|
|
499
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
500
|
-
let _batchPropsValues = {};
|
|
501
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
502
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
503
|
-
}
|
|
504
|
-
nextProps.setProps({
|
|
505
|
-
batchPropsValues: _batchPropsValues
|
|
506
|
-
})
|
|
507
|
-
}
|
|
508
|
-
return false;
|
|
509
|
-
}
|
|
510
|
-
);
|
|
510
|
+
export default AntdInput;
|
|
@@ -40,9 +40,23 @@ const AntdInputNumber = (props) => {
|
|
|
40
40
|
persistence,
|
|
41
41
|
persisted_props,
|
|
42
42
|
persistence_type,
|
|
43
|
-
loading_state
|
|
43
|
+
loading_state,
|
|
44
|
+
batchPropsNames
|
|
44
45
|
} = props;
|
|
45
46
|
|
|
47
|
+
// 批属性监听
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
50
|
+
let _batchPropsValues = {};
|
|
51
|
+
for (let propName of batchPropsNames) {
|
|
52
|
+
_batchPropsValues[propName] = props[propName];
|
|
53
|
+
}
|
|
54
|
+
setProps({
|
|
55
|
+
batchPropsValues: _batchPropsValues
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
|
|
46
60
|
const context = useContext(PropsContext)
|
|
47
61
|
|
|
48
62
|
useEffect(() => {
|
|
@@ -296,18 +310,4 @@ AntdInputNumber.defaultProps = {
|
|
|
296
310
|
batchPropsNames: []
|
|
297
311
|
}
|
|
298
312
|
|
|
299
|
-
export default
|
|
300
|
-
AntdInputNumber,
|
|
301
|
-
(prevProps, nextProps) => {
|
|
302
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
303
|
-
let _batchPropsValues = {};
|
|
304
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
305
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
306
|
-
}
|
|
307
|
-
nextProps.setProps({
|
|
308
|
-
batchPropsValues: _batchPropsValues
|
|
309
|
-
})
|
|
310
|
-
}
|
|
311
|
-
return false;
|
|
312
|
-
}
|
|
313
|
-
);
|
|
313
|
+
export default AntdInputNumber;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
1
|
+
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Mentions } from 'antd';
|
|
4
4
|
import { isString, isUndefined } from 'lodash';
|
|
@@ -26,9 +26,23 @@ const AntdMentions = (props) => {
|
|
|
26
26
|
popupContainer,
|
|
27
27
|
readOnly,
|
|
28
28
|
setProps,
|
|
29
|
-
loading_state
|
|
29
|
+
loading_state,
|
|
30
|
+
batchPropsNames
|
|
30
31
|
} = props;
|
|
31
32
|
|
|
33
|
+
// 批属性监听
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
36
|
+
let _batchPropsValues = {};
|
|
37
|
+
for (let propName of batchPropsNames) {
|
|
38
|
+
_batchPropsValues[propName] = props[propName];
|
|
39
|
+
}
|
|
40
|
+
setProps({
|
|
41
|
+
batchPropsValues: _batchPropsValues
|
|
42
|
+
})
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
|
|
32
46
|
const context = useContext(PropsContext)
|
|
33
47
|
|
|
34
48
|
const onChange = (e) => {
|
|
@@ -212,18 +226,4 @@ AntdMentions.defaultProps = {
|
|
|
212
226
|
batchPropsNames: []
|
|
213
227
|
}
|
|
214
228
|
|
|
215
|
-
export default
|
|
216
|
-
AntdMentions,
|
|
217
|
-
(prevProps, nextProps) => {
|
|
218
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
219
|
-
let _batchPropsValues = {};
|
|
220
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
221
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
222
|
-
}
|
|
223
|
-
nextProps.setProps({
|
|
224
|
-
batchPropsValues: _batchPropsValues
|
|
225
|
-
})
|
|
226
|
-
}
|
|
227
|
-
return false;
|
|
228
|
-
}
|
|
229
|
-
);
|
|
229
|
+
export default AntdMentions;
|
|
@@ -27,9 +27,23 @@ const AntdRadioGroup = (props) => {
|
|
|
27
27
|
persistence,
|
|
28
28
|
persisted_props,
|
|
29
29
|
persistence_type,
|
|
30
|
-
loading_state
|
|
30
|
+
loading_state,
|
|
31
|
+
batchPropsNames
|
|
31
32
|
} = props;
|
|
32
33
|
|
|
34
|
+
// 批属性监听
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
37
|
+
let _batchPropsValues = {};
|
|
38
|
+
for (let propName of batchPropsNames) {
|
|
39
|
+
_batchPropsValues[propName] = props[propName];
|
|
40
|
+
}
|
|
41
|
+
setProps({
|
|
42
|
+
batchPropsValues: _batchPropsValues
|
|
43
|
+
})
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
|
|
33
47
|
const context = useContext(PropsContext)
|
|
34
48
|
|
|
35
49
|
useEffect(() => {
|
|
@@ -263,18 +277,4 @@ AntdRadioGroup.defaultProps = {
|
|
|
263
277
|
batchPropsNames: []
|
|
264
278
|
}
|
|
265
279
|
|
|
266
|
-
export default
|
|
267
|
-
AntdRadioGroup,
|
|
268
|
-
(prevProps, nextProps) => {
|
|
269
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
270
|
-
let _batchPropsValues = {};
|
|
271
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
272
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
273
|
-
}
|
|
274
|
-
nextProps.setProps({
|
|
275
|
-
batchPropsValues: _batchPropsValues
|
|
276
|
-
})
|
|
277
|
-
}
|
|
278
|
-
return false;
|
|
279
|
-
}
|
|
280
|
-
);
|
|
280
|
+
export default AntdRadioGroup;
|
|
@@ -25,9 +25,23 @@ const AntdRate = (props) => {
|
|
|
25
25
|
loading_state,
|
|
26
26
|
persistence,
|
|
27
27
|
persisted_props,
|
|
28
|
-
persistence_type
|
|
28
|
+
persistence_type,
|
|
29
|
+
batchPropsNames
|
|
29
30
|
} = props;
|
|
30
31
|
|
|
32
|
+
// 批属性监听
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
35
|
+
let _batchPropsValues = {};
|
|
36
|
+
for (let propName of batchPropsNames) {
|
|
37
|
+
_batchPropsValues[propName] = props[propName];
|
|
38
|
+
}
|
|
39
|
+
setProps({
|
|
40
|
+
batchPropsValues: _batchPropsValues
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
|
|
31
45
|
const context = useContext(PropsContext)
|
|
32
46
|
|
|
33
47
|
useEffect(() => {
|
|
@@ -176,18 +190,4 @@ AntdRate.defaultProps = {
|
|
|
176
190
|
batchPropsNames: []
|
|
177
191
|
}
|
|
178
192
|
|
|
179
|
-
export default
|
|
180
|
-
AntdRate,
|
|
181
|
-
(prevProps, nextProps) => {
|
|
182
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
183
|
-
let _batchPropsValues = {};
|
|
184
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
185
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
186
|
-
}
|
|
187
|
-
nextProps.setProps({
|
|
188
|
-
batchPropsValues: _batchPropsValues
|
|
189
|
-
})
|
|
190
|
-
}
|
|
191
|
-
return false;
|
|
192
|
-
}
|
|
193
|
-
);
|
|
193
|
+
export default AntdRate;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-undefined */
|
|
2
2
|
/* eslint-disable no-unused-vars */
|
|
3
|
-
import React, { useContext } from 'react';
|
|
3
|
+
import React, { useContext, useEffect } from 'react';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import { InputNumber, Space, message, Typography } from 'antd';
|
|
6
6
|
import { isString, isUndefined } from 'lodash';
|
|
@@ -44,9 +44,23 @@ const AntdSegmentedColoring = (props) => {
|
|
|
44
44
|
colorBlockStyle,
|
|
45
45
|
pureLegendLabelStyle,
|
|
46
46
|
loading_state,
|
|
47
|
-
setProps
|
|
47
|
+
setProps,
|
|
48
|
+
batchPropsNames
|
|
48
49
|
} = props;
|
|
49
50
|
|
|
51
|
+
// 批属性监听
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
54
|
+
let _batchPropsValues = {};
|
|
55
|
+
for (let propName of batchPropsNames) {
|
|
56
|
+
_batchPropsValues[propName] = props[propName];
|
|
57
|
+
}
|
|
58
|
+
setProps({
|
|
59
|
+
batchPropsValues: _batchPropsValues
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
})
|
|
63
|
+
|
|
50
64
|
const context = useContext(PropsContext)
|
|
51
65
|
|
|
52
66
|
disabled = (
|
|
@@ -311,18 +325,4 @@ AntdSegmentedColoring.defaultProps = {
|
|
|
311
325
|
batchPropsNames: []
|
|
312
326
|
}
|
|
313
327
|
|
|
314
|
-
export default
|
|
315
|
-
AntdSegmentedColoring,
|
|
316
|
-
(prevProps, nextProps) => {
|
|
317
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
318
|
-
let _batchPropsValues = {};
|
|
319
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
320
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
321
|
-
}
|
|
322
|
-
nextProps.setProps({
|
|
323
|
-
batchPropsValues: _batchPropsValues
|
|
324
|
-
})
|
|
325
|
-
}
|
|
326
|
-
return false;
|
|
327
|
-
}
|
|
328
|
-
);
|
|
328
|
+
export default AntdSegmentedColoring;
|
|
@@ -50,9 +50,23 @@ const AntdSelect = (props) => {
|
|
|
50
50
|
loading_state,
|
|
51
51
|
persistence,
|
|
52
52
|
persisted_props,
|
|
53
|
-
persistence_type
|
|
53
|
+
persistence_type,
|
|
54
|
+
batchPropsNames
|
|
54
55
|
} = props;
|
|
55
56
|
|
|
57
|
+
// 批属性监听
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
60
|
+
let _batchPropsValues = {};
|
|
61
|
+
for (let propName of batchPropsNames) {
|
|
62
|
+
_batchPropsValues[propName] = props[propName];
|
|
63
|
+
}
|
|
64
|
+
setProps({
|
|
65
|
+
batchPropsValues: _batchPropsValues
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
|
|
56
70
|
const context = useContext(PropsContext)
|
|
57
71
|
locale = (context && context.locale) || locale
|
|
58
72
|
|
|
@@ -548,18 +562,4 @@ AntdSelect.defaultProps = {
|
|
|
548
562
|
batchPropsNames: []
|
|
549
563
|
}
|
|
550
564
|
|
|
551
|
-
export default
|
|
552
|
-
AntdSelect,
|
|
553
|
-
(prevProps, nextProps) => {
|
|
554
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
555
|
-
let _batchPropsValues = {};
|
|
556
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
557
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
558
|
-
}
|
|
559
|
-
nextProps.setProps({
|
|
560
|
-
batchPropsValues: _batchPropsValues
|
|
561
|
-
})
|
|
562
|
-
}
|
|
563
|
-
return false;
|
|
564
|
-
}
|
|
565
|
-
);
|
|
565
|
+
export default AntdSelect;
|
|
@@ -33,9 +33,23 @@ const AntdSlider = (props) => {
|
|
|
33
33
|
setProps,
|
|
34
34
|
persistence,
|
|
35
35
|
persisted_props,
|
|
36
|
-
persistence_type
|
|
36
|
+
persistence_type,
|
|
37
|
+
batchPropsNames
|
|
37
38
|
} = props;
|
|
38
39
|
|
|
40
|
+
// 批属性监听
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
43
|
+
let _batchPropsValues = {};
|
|
44
|
+
for (let propName of batchPropsNames) {
|
|
45
|
+
_batchPropsValues[propName] = props[propName];
|
|
46
|
+
}
|
|
47
|
+
setProps({
|
|
48
|
+
batchPropsValues: _batchPropsValues
|
|
49
|
+
})
|
|
50
|
+
}
|
|
51
|
+
})
|
|
52
|
+
|
|
39
53
|
const context = useContext(PropsContext)
|
|
40
54
|
|
|
41
55
|
useEffect(() => {
|
|
@@ -257,18 +271,4 @@ AntdSlider.defaultProps = {
|
|
|
257
271
|
batchPropsNames: []
|
|
258
272
|
}
|
|
259
273
|
|
|
260
|
-
export default
|
|
261
|
-
AntdSlider,
|
|
262
|
-
(prevProps, nextProps) => {
|
|
263
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
264
|
-
let _batchPropsValues = {};
|
|
265
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
266
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
267
|
-
}
|
|
268
|
-
nextProps.setProps({
|
|
269
|
-
batchPropsValues: _batchPropsValues
|
|
270
|
-
})
|
|
271
|
-
}
|
|
272
|
-
return false;
|
|
273
|
-
}
|
|
274
|
-
);
|
|
274
|
+
export default AntdSlider;
|
|
@@ -25,9 +25,23 @@ const AntdSwitch = (props) => {
|
|
|
25
25
|
persistence,
|
|
26
26
|
persisted_props,
|
|
27
27
|
persistence_type,
|
|
28
|
-
loading_state
|
|
28
|
+
loading_state,
|
|
29
|
+
batchPropsNames
|
|
29
30
|
} = props;
|
|
30
31
|
|
|
32
|
+
// 批属性监听
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
35
|
+
let _batchPropsValues = {};
|
|
36
|
+
for (let propName of batchPropsNames) {
|
|
37
|
+
_batchPropsValues[propName] = props[propName];
|
|
38
|
+
}
|
|
39
|
+
setProps({
|
|
40
|
+
batchPropsValues: _batchPropsValues
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
|
|
31
45
|
const context = useContext(PropsContext)
|
|
32
46
|
|
|
33
47
|
useEffect(() => {
|
|
@@ -181,18 +195,4 @@ AntdSwitch.defaultProps = {
|
|
|
181
195
|
batchPropsNames: []
|
|
182
196
|
}
|
|
183
197
|
|
|
184
|
-
export default
|
|
185
|
-
AntdSwitch,
|
|
186
|
-
(prevProps, nextProps) => {
|
|
187
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
188
|
-
let _batchPropsValues = {};
|
|
189
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
190
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
191
|
-
}
|
|
192
|
-
nextProps.setProps({
|
|
193
|
-
batchPropsValues: _batchPropsValues
|
|
194
|
-
})
|
|
195
|
-
}
|
|
196
|
-
return false;
|
|
197
|
-
}
|
|
198
|
-
);
|
|
198
|
+
export default AntdSwitch;
|
|
@@ -39,9 +39,23 @@ const AntdTimePicker = (props) => {
|
|
|
39
39
|
persistence,
|
|
40
40
|
persisted_props,
|
|
41
41
|
persistence_type,
|
|
42
|
-
loading_state
|
|
42
|
+
loading_state,
|
|
43
|
+
batchPropsNames
|
|
43
44
|
} = props;
|
|
44
45
|
|
|
46
|
+
// 批属性监听
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
49
|
+
let _batchPropsValues = {};
|
|
50
|
+
for (let propName of batchPropsNames) {
|
|
51
|
+
_batchPropsValues[propName] = props[propName];
|
|
52
|
+
}
|
|
53
|
+
setProps({
|
|
54
|
+
batchPropsValues: _batchPropsValues
|
|
55
|
+
})
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
|
|
45
59
|
const context = useContext(PropsContext)
|
|
46
60
|
locale = (context && context.locale) || locale
|
|
47
61
|
|
|
@@ -274,18 +288,4 @@ AntdTimePicker.defaultProps = {
|
|
|
274
288
|
batchPropsNames: []
|
|
275
289
|
}
|
|
276
290
|
|
|
277
|
-
export default
|
|
278
|
-
AntdTimePicker,
|
|
279
|
-
(prevProps, nextProps) => {
|
|
280
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
281
|
-
let _batchPropsValues = {};
|
|
282
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
283
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
284
|
-
}
|
|
285
|
-
nextProps.setProps({
|
|
286
|
-
batchPropsValues: _batchPropsValues
|
|
287
|
-
})
|
|
288
|
-
}
|
|
289
|
-
return false;
|
|
290
|
-
}
|
|
291
|
-
);
|
|
291
|
+
export default AntdTimePicker;
|
|
@@ -40,9 +40,23 @@ const AntdTimeRangePicker = (props) => {
|
|
|
40
40
|
persistence,
|
|
41
41
|
persisted_props,
|
|
42
42
|
persistence_type,
|
|
43
|
-
loading_state
|
|
43
|
+
loading_state,
|
|
44
|
+
batchPropsNames
|
|
44
45
|
} = props;
|
|
45
46
|
|
|
47
|
+
// 批属性监听
|
|
48
|
+
useEffect(() => {
|
|
49
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
50
|
+
let _batchPropsValues = {};
|
|
51
|
+
for (let propName of batchPropsNames) {
|
|
52
|
+
_batchPropsValues[propName] = props[propName];
|
|
53
|
+
}
|
|
54
|
+
setProps({
|
|
55
|
+
batchPropsValues: _batchPropsValues
|
|
56
|
+
})
|
|
57
|
+
}
|
|
58
|
+
})
|
|
59
|
+
|
|
46
60
|
const context = useContext(PropsContext)
|
|
47
61
|
locale = (context && context.locale) || locale
|
|
48
62
|
|
|
@@ -288,18 +302,4 @@ AntdTimeRangePicker.defaultProps = {
|
|
|
288
302
|
batchPropsNames: []
|
|
289
303
|
}
|
|
290
304
|
|
|
291
|
-
export default
|
|
292
|
-
AntdTimeRangePicker,
|
|
293
|
-
(prevProps, nextProps) => {
|
|
294
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
295
|
-
let _batchPropsValues = {};
|
|
296
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
297
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
298
|
-
}
|
|
299
|
-
nextProps.setProps({
|
|
300
|
-
batchPropsValues: _batchPropsValues
|
|
301
|
-
})
|
|
302
|
-
}
|
|
303
|
-
return false;
|
|
304
|
-
}
|
|
305
|
-
);
|
|
305
|
+
export default AntdTimeRangePicker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
1
|
+
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Transfer, ConfigProvider } from 'antd';
|
|
4
4
|
import { str2Locale, locale2text } from '../locales.react';
|
|
@@ -32,9 +32,23 @@ const AntdTransfer = (props) => {
|
|
|
32
32
|
persistence,
|
|
33
33
|
persisted_props,
|
|
34
34
|
persistence_type,
|
|
35
|
-
loading_state
|
|
35
|
+
loading_state,
|
|
36
|
+
batchPropsNames
|
|
36
37
|
} = props;
|
|
37
38
|
|
|
39
|
+
// 批属性监听
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
42
|
+
let _batchPropsValues = {};
|
|
43
|
+
for (let propName of batchPropsNames) {
|
|
44
|
+
_batchPropsValues[propName] = props[propName];
|
|
45
|
+
}
|
|
46
|
+
setProps({
|
|
47
|
+
batchPropsValues: _batchPropsValues
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
|
|
38
52
|
const context = useContext(PropsContext)
|
|
39
53
|
locale = (context && context.locale) || locale
|
|
40
54
|
|
|
@@ -294,18 +308,4 @@ AntdTransfer.defaultProps = {
|
|
|
294
308
|
batchPropsNames: []
|
|
295
309
|
}
|
|
296
310
|
|
|
297
|
-
export default
|
|
298
|
-
AntdTransfer,
|
|
299
|
-
(prevProps, nextProps) => {
|
|
300
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
301
|
-
let _batchPropsValues = {};
|
|
302
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
303
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
304
|
-
}
|
|
305
|
-
nextProps.setProps({
|
|
306
|
-
batchPropsValues: _batchPropsValues
|
|
307
|
-
})
|
|
308
|
-
}
|
|
309
|
-
return false;
|
|
310
|
-
}
|
|
311
|
-
);
|
|
311
|
+
export default AntdTransfer;
|
|
@@ -60,9 +60,23 @@ const AntdTreeSelect = (props) => {
|
|
|
60
60
|
persistence,
|
|
61
61
|
persisted_props,
|
|
62
62
|
persistence_type,
|
|
63
|
-
loading_state
|
|
63
|
+
loading_state,
|
|
64
|
+
batchPropsNames
|
|
64
65
|
} = props;
|
|
65
66
|
|
|
67
|
+
// 批属性监听
|
|
68
|
+
useEffect(() => {
|
|
69
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
70
|
+
let _batchPropsValues = {};
|
|
71
|
+
for (let propName of batchPropsNames) {
|
|
72
|
+
_batchPropsValues[propName] = props[propName];
|
|
73
|
+
}
|
|
74
|
+
setProps({
|
|
75
|
+
batchPropsValues: _batchPropsValues
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
|
|
66
80
|
const context = useContext(PropsContext)
|
|
67
81
|
locale = (context && context.locale) || locale
|
|
68
82
|
|
|
@@ -482,18 +496,4 @@ AntdTreeSelect.defaultProps = {
|
|
|
482
496
|
batchPropsNames: []
|
|
483
497
|
}
|
|
484
498
|
|
|
485
|
-
export default
|
|
486
|
-
AntdTreeSelect,
|
|
487
|
-
(prevProps, nextProps) => {
|
|
488
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
489
|
-
let _batchPropsValues = {};
|
|
490
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
491
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
492
|
-
}
|
|
493
|
-
nextProps.setProps({
|
|
494
|
-
batchPropsValues: _batchPropsValues
|
|
495
|
-
})
|
|
496
|
-
}
|
|
497
|
-
return false;
|
|
498
|
-
}
|
|
499
|
-
);
|
|
499
|
+
export default AntdTreeSelect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useContext } from 'react';
|
|
1
|
+
import React, { useContext, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { Dropdown, Menu, Button } from 'antd';
|
|
4
4
|
import AntdIcon from '../general/AntdIcon.react';
|
|
@@ -34,9 +34,23 @@ const AntdDropdown = (props) => {
|
|
|
34
34
|
freePositionStyle,
|
|
35
35
|
freePositionClassName,
|
|
36
36
|
setProps,
|
|
37
|
-
loading_state
|
|
37
|
+
loading_state,
|
|
38
|
+
batchPropsNames
|
|
38
39
|
} = props;
|
|
39
40
|
|
|
41
|
+
// 批属性监听
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
if (batchPropsNames && batchPropsNames.length !== 0) {
|
|
44
|
+
let _batchPropsValues = {};
|
|
45
|
+
for (let propName of batchPropsNames) {
|
|
46
|
+
_batchPropsValues[propName] = props[propName];
|
|
47
|
+
}
|
|
48
|
+
setProps({
|
|
49
|
+
batchPropsValues: _batchPropsValues
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
})
|
|
53
|
+
|
|
40
54
|
const context = useContext(PropsContext)
|
|
41
55
|
|
|
42
56
|
return (
|
|
@@ -320,18 +334,4 @@ AntdDropdown.defaultProps = {
|
|
|
320
334
|
batchPropsNames: []
|
|
321
335
|
}
|
|
322
336
|
|
|
323
|
-
export default
|
|
324
|
-
AntdDropdown,
|
|
325
|
-
(prevProps, nextProps) => {
|
|
326
|
-
if (nextProps.batchPropsNames && nextProps.batchPropsNames.length !== 0) {
|
|
327
|
-
let _batchPropsValues = {};
|
|
328
|
-
for (let propName of nextProps.batchPropsNames) {
|
|
329
|
-
_batchPropsValues[propName] = nextProps[propName];
|
|
330
|
-
}
|
|
331
|
-
nextProps.setProps({
|
|
332
|
-
batchPropsValues: _batchPropsValues
|
|
333
|
-
})
|
|
334
|
-
}
|
|
335
|
-
return false;
|
|
336
|
-
}
|
|
337
|
-
);
|
|
337
|
+
export default AntdDropdown;
|