ronds-metadata 1.1.38 → 1.1.40
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/es/comps/Editable/DataCell/ColorPicker.js +1 -1
- package/es/comps/Editable/DataCell/Input.js +1 -1
- package/es/comps/Editable/DataCell/Number.js +1 -1
- package/es/comps/Editable/DataCell/Select.js +2 -2
- package/es/comps/Editable/DataCell/Switch.js +1 -1
- package/es/comps/Editable/comps/EditableRow.js +3 -2
- package/es/comps/MetadataForm/utils.js +3 -3
- package/package.json +1 -1
@@ -6,7 +6,7 @@ import _InputNumber from "antd/es/input-number";
|
|
6
6
|
/*
|
7
7
|
* @Author: wangxian
|
8
8
|
* @Date: 2022-03-04 14:53:50
|
9
|
-
* @LastEditTime: 2022-
|
9
|
+
* @LastEditTime: 2022-09-29 16:44:49
|
10
10
|
*/
|
11
11
|
import React from 'react';
|
12
12
|
import { EditableContext } from '../interface';
|
@@ -8,7 +8,7 @@ var _excluded = ["dataIndex", "mode", "disabled"];
|
|
8
8
|
/*
|
9
9
|
* @Author: wangxian
|
10
10
|
* @Date: 2022-03-04 14:53:50
|
11
|
-
* @LastEditTime: 2022-09-
|
11
|
+
* @LastEditTime: 2022-09-29 16:44:46
|
12
12
|
*/
|
13
13
|
import React from 'react';
|
14
14
|
import { EditableContext } from '../interface';
|
@@ -30,7 +30,6 @@ function Index(props) {
|
|
30
30
|
}, /*#__PURE__*/React.createElement(_Select, {
|
31
31
|
disabled: editConfig.type === 'edit' ? disabled : false,
|
32
32
|
mode: mode || undefined,
|
33
|
-
size: "small",
|
34
33
|
showSearch: true,
|
35
34
|
filterOption: function filterOption(input, option) {
|
36
35
|
var _option$label;
|
@@ -44,6 +43,7 @@ function Index(props) {
|
|
44
43
|
style: {
|
45
44
|
width: '100%'
|
46
45
|
},
|
46
|
+
size: "small",
|
47
47
|
options: restProps.enum
|
48
48
|
}));
|
49
49
|
}
|
@@ -51,9 +51,10 @@ var EditableRow = function EditableRow(props) {
|
|
51
51
|
onValuesChange: onValuesChange,
|
52
52
|
component: false
|
53
53
|
}, /*#__PURE__*/React.createElement("tr", _extends({}, props, {
|
54
|
-
className: "".concat(index % 2 === 0
|
54
|
+
className: "".concat(index % 2 === 0 ? 'ant-table-row--even' : 'ant-table-row--odd', " ").concat(className, " "),
|
55
55
|
style: {
|
56
|
-
height: '30px'
|
56
|
+
height: '30px',
|
57
|
+
fontSize: '13px'
|
57
58
|
},
|
58
59
|
onClick: onRowClick
|
59
60
|
}))));
|
@@ -9,7 +9,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
9
9
|
/*
|
10
10
|
* @Author: wangxian
|
11
11
|
* @Date: 2021-09-18 14:15:04
|
12
|
-
* @LastEditTime: 2022-09-
|
12
|
+
* @LastEditTime: 2022-09-29 16:39:18
|
13
13
|
*/
|
14
14
|
import React from 'react';
|
15
15
|
import Input from './DataCell/Input';
|
@@ -78,12 +78,12 @@ export function renderForm(schemaRef, options, stream$) {
|
|
78
78
|
|
79
79
|
for (var i = 0; i < _properties.length; i++) {
|
80
80
|
_form.push( /*#__PURE__*/React.createElement(_Col, {
|
81
|
-
span:
|
81
|
+
span: 24
|
82
82
|
}, getDataCell(_properties[i], options)));
|
83
83
|
}
|
84
84
|
|
85
85
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Row, {
|
86
|
-
gutter:
|
86
|
+
gutter: 16
|
87
87
|
}, _form));
|
88
88
|
}
|
89
89
|
export function getLabelByProps(data) {
|