ronds-metadata 1.1.56 → 1.1.58
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.
@@ -226,6 +226,7 @@ function Index(props) {
|
|
226
226
|
border: '1px solid var(--ronds-metadata-color-border-1)',
|
227
227
|
width: '100%',
|
228
228
|
borderRadius: '4px',
|
229
|
+
margin: '0 0 8px',
|
229
230
|
display: "".concat(formContext.isFoldForm && isFold ? 'none' : '')
|
230
231
|
}
|
231
232
|
}, /*#__PURE__*/React.createElement(MetadataRefContext.Provider, {
|
@@ -241,7 +242,8 @@ function Index(props) {
|
|
241
242
|
padding: '10px',
|
242
243
|
border: '1px solid var(--ronds-metadata-color-border-1)',
|
243
244
|
width: '100%',
|
244
|
-
borderRadius: '4px'
|
245
|
+
borderRadius: '4px',
|
246
|
+
margin: '0 0 8px'
|
245
247
|
}
|
246
248
|
}, /*#__PURE__*/React.createElement(MetadataRefContext.Provider, {
|
247
249
|
value: {
|
@@ -22,7 +22,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
22
22
|
/*
|
23
23
|
* @Author:wangxian
|
24
24
|
* @Date: 2021-09-18 14:15:04
|
25
|
-
* @LastEditTime: 2022-11-09 15:
|
25
|
+
* @LastEditTime: 2022-11-09 15:59:15
|
26
26
|
*/
|
27
27
|
import React from 'react';
|
28
28
|
import { MetadataFormContext, MetadataRefContext } from '../interface';
|
@@ -225,19 +225,22 @@ function Index(props) {
|
|
225
225
|
|
226
226
|
var processSelectType = function processSelectType(isCascader, isPagination) {
|
227
227
|
if (isCascader) {
|
228
|
+
var _extraInfo$disabled;
|
229
|
+
|
228
230
|
return /*#__PURE__*/React.createElement(_Cascader, {
|
229
231
|
multiple: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.isMutiple,
|
232
|
+
disabled: (_extraInfo$disabled = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled !== void 0 ? _extraInfo$disabled : disabled,
|
230
233
|
options: cascaderOption,
|
231
234
|
loadData: loadData,
|
232
235
|
maxTagCount: 10
|
233
236
|
});
|
234
237
|
} else if (isPagination) {
|
235
|
-
var _extraInfo$
|
238
|
+
var _extraInfo$disabled2;
|
236
239
|
|
237
240
|
return /*#__PURE__*/React.createElement(_Select, {
|
238
241
|
mode: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.isMutiple) ? 'multiple' : extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.mode,
|
239
242
|
onSelect: onSelect,
|
240
|
-
disabled: (_extraInfo$
|
243
|
+
disabled: (_extraInfo$disabled2 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled2 !== void 0 ? _extraInfo$disabled2 : disabled,
|
241
244
|
placeholder: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.placeholder,
|
242
245
|
options: httpOptions && httpOptions.length > 0 ? httpOptions : options,
|
243
246
|
dropdownRender: function dropdownRender(menu) {
|
@@ -268,12 +271,12 @@ function Index(props) {
|
|
268
271
|
allowClear: true
|
269
272
|
});
|
270
273
|
} else {
|
271
|
-
var _extraInfo$
|
274
|
+
var _extraInfo$disabled3;
|
272
275
|
|
273
276
|
return /*#__PURE__*/React.createElement(_Select, {
|
274
277
|
mode: (extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.isMutiple) ? 'multiple' : extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.mode,
|
275
278
|
onSelect: onSelect,
|
276
|
-
disabled: (_extraInfo$
|
279
|
+
disabled: (_extraInfo$disabled3 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled3 !== void 0 ? _extraInfo$disabled3 : disabled,
|
277
280
|
placeholder: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.placeholder,
|
278
281
|
options: httpOptions && httpOptions.length > 0 ? httpOptions : options,
|
279
282
|
showSearch: true,
|