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.
@@ -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 16:30:57
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
- span: labelSpan,
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
- span: 24 - labelSpan,
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
- span: labelSpan,
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
- span: 24 - labelSpan,
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
- span: labelSpan,
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
- span: 24 - labelSpan,
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
- span: labelSpan,
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
- span: 24 - labelSpan,
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 09:58:36
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
- span: labelSpan,
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
- span: 24 - labelSpan,
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
- span: labelSpan,
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
- span: 24 - labelSpan,
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-21 19:17:13
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
- span: labelSpan,
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
- span: 24 - labelSpan,
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,
@@ -27,4 +27,9 @@
27
27
  background-color: var(--card-bg);
28
28
  z-index: 1000;
29
29
  }
30
+ /* .ant-col-2.7 {
31
+ display: block;
32
+ flex: 0 0 75%;
33
+ max-width: 75%;
34
+ } */
30
35
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.2.6",
4
+ "version": "1.2.7",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",