ronds-metadata 1.1.55 → 1.1.57

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.
@@ -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-10-09 18:29:47
25
+ * @LastEditTime: 2022-11-09 15:59:15
26
26
  */
27
27
  import React from 'react';
28
28
  import { MetadataFormContext, MetadataRefContext } from '../interface';
@@ -74,7 +74,7 @@ function Index(props) {
74
74
  case 0:
75
75
  server = new MetadataService();
76
76
  _url = pid || pid === '' ? http.url.replace('{pid}', pid) : http.url;
77
- _url = page ? http.url.replace('{page}', page) : http.url;
77
+ _url = page ? http.url.replace('{page}', page) : _url;
78
78
  _context.next = 5;
79
79
  return server.GetEnumDataByUrl(_url);
80
80
 
@@ -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$disabled;
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$disabled = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled !== void 0 ? _extraInfo$disabled : disabled,
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$disabled2;
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$disabled2 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled2 !== void 0 ? _extraInfo$disabled2 : disabled,
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,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.1.55",
4
+ "version": "1.1.57",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",