ronds-metadata 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- package/es/comps/MetadataForm/DataCell/Input.js +5 -5
- package/es/comps/MetadataForm/DataCell/Number.js +2 -2
- package/es/comps/MetadataForm/DataCell/Ref.js +2 -2
- package/es/comps/MetadataForm/DataCell/Select.js +5 -5
- package/es/comps/MetadataForm/DataCell/Switch.js +3 -3
- package/es/comps/MetadataForm/HOC/index.less +5 -0
- package/package.json +1 -1
@@ -17,7 +17,7 @@ import _Input from "antd/es/input";
|
|
17
17
|
/*
|
18
18
|
* @Author: wangxian
|
19
19
|
* @Date: 2021-09-18 14:15:04
|
20
|
-
* @LastEditTime: 2023-02-23
|
20
|
+
* @LastEditTime: 2023-02-23 19:32:47
|
21
21
|
*/
|
22
22
|
import React from 'react';
|
23
23
|
import { UploadOutlined } from '@ant-design/icons';
|
@@ -135,11 +135,11 @@ function Index(props) {
|
|
135
135
|
} : {}
|
136
136
|
}, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
|
137
137
|
labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
138
|
-
|
138
|
+
flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
|
139
139
|
offset: 0
|
140
140
|
} : undefined,
|
141
141
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
142
|
-
|
142
|
+
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
143
143
|
offset: 0
|
144
144
|
} : undefined,
|
145
145
|
name: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$addonAfter5 = extraInfo.addonAfter) === null || _extraInfo$addonAfter5 === void 0 ? void 0 : _extraInfo$addonAfter5.key) ? [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name), ['value']) : [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name)),
|
@@ -166,11 +166,11 @@ function Index(props) {
|
|
166
166
|
} : {}
|
167
167
|
}, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
|
168
168
|
labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
169
|
-
|
169
|
+
flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
|
170
170
|
offset: 0
|
171
171
|
} : undefined,
|
172
172
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
173
|
-
|
173
|
+
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
174
174
|
offset: 0
|
175
175
|
} : undefined,
|
176
176
|
name: (extraInfo === null || extraInfo === void 0 ? void 0 : (_extraInfo$addonAfter6 = extraInfo.addonAfter) === null || _extraInfo$addonAfter6 === void 0 ? void 0 : _extraInfo$addonAfter6.key) ? [].concat(_toConsumableArray(name), ['value']) : name,
|
@@ -64,11 +64,11 @@ function Index(props) {
|
|
64
64
|
} : {}
|
65
65
|
}, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
|
66
66
|
labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
67
|
-
|
67
|
+
flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
|
68
68
|
offset: 0
|
69
69
|
} : undefined,
|
70
70
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
71
|
-
|
71
|
+
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
72
72
|
offset: 0
|
73
73
|
} : undefined,
|
74
74
|
rules: [{
|
@@ -265,11 +265,11 @@ function Index(props) {
|
|
265
265
|
key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|
266
266
|
label: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id,
|
267
267
|
labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
268
|
-
|
268
|
+
flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
|
269
269
|
offset: 0
|
270
270
|
} : undefined,
|
271
271
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
272
|
-
|
272
|
+
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
273
273
|
offset: 0
|
274
274
|
} : undefined,
|
275
275
|
initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|
@@ -31,7 +31,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
31
31
|
/*
|
32
32
|
* @Author:wangxian
|
33
33
|
* @Date: 2021-09-18 14:15:04
|
34
|
-
* @LastEditTime: 2023-02-23
|
34
|
+
* @LastEditTime: 2023-02-23 19:34:06
|
35
35
|
*/
|
36
36
|
import React from 'react';
|
37
37
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -459,11 +459,11 @@ function Index(props) {
|
|
459
459
|
} : {}
|
460
460
|
}, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
|
461
461
|
labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
462
|
-
|
462
|
+
flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
|
463
463
|
offset: 0
|
464
464
|
} : undefined,
|
465
465
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
466
|
-
|
466
|
+
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
467
467
|
offset: 0
|
468
468
|
} : undefined,
|
469
469
|
name: [field === null || field === void 0 ? void 0 : field.name].concat(_toConsumableArray(name)),
|
@@ -487,11 +487,11 @@ function Index(props) {
|
|
487
487
|
} : {}
|
488
488
|
}, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
|
489
489
|
labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
490
|
-
|
490
|
+
flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
|
491
491
|
offset: 0
|
492
492
|
} : undefined,
|
493
493
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
494
|
-
|
494
|
+
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
495
495
|
offset: 0
|
496
496
|
} : undefined,
|
497
497
|
name: name,
|
@@ -8,7 +8,7 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
8
8
|
/*
|
9
9
|
* @Author: wangxian
|
10
10
|
* @Date: 2021-09-18 14:15:04
|
11
|
-
* @LastEditTime: 2023-02-
|
11
|
+
* @LastEditTime: 2023-02-23 19:34:31
|
12
12
|
*/
|
13
13
|
import React from 'react';
|
14
14
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -70,11 +70,11 @@ function Index(props) {
|
|
70
70
|
} : {}
|
71
71
|
}, (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.label) || id),
|
72
72
|
labelCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
73
|
-
|
73
|
+
flex: "0 0 ".concat(labelSpan * 100 / 24, "%"),
|
74
74
|
offset: 0
|
75
75
|
} : undefined,
|
76
76
|
wrapperCol: labelSpan && (formContext === null || formContext === void 0 ? void 0 : formContext.layout) === 'horizontal' ? {
|
77
|
-
|
77
|
+
flex: "0 0 ".concat((24 - labelSpan) * 100 / 24, "%"),
|
78
78
|
offset: 0
|
79
79
|
} : undefined,
|
80
80
|
key: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue,
|