ronds-metadata 1.3.34 → 1.3.35

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.
@@ -11,7 +11,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
11
11
  /*
12
12
  * @Author: wangxian
13
13
  * @Date: 2021-09-18 14:15:04
14
- * @LastEditTime: 2023-04-18 10:40:37
14
+ * @LastEditTime: 2024-03-19 15:08:05
15
15
  */
16
16
  import React from 'react';
17
17
  import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
@@ -106,6 +106,7 @@ function Index(props) {
106
106
  key: id,
107
107
  initialValue: extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.defaultValue
108
108
  }, function (fields, _ref) {
109
+ var _extraInfo$disabled3;
109
110
  var add = _ref.add,
110
111
  remove = _ref.remove;
111
112
  return /*#__PURE__*/React.createElement(React.Fragment, null, fields.map(function (field, idx) {
@@ -126,7 +127,7 @@ function Index(props) {
126
127
  isRefForm: isRefForm,
127
128
  isShowTypeInfo: formContext.isShowTypeInfo,
128
129
  field: field
129
- }, 23), /*#__PURE__*/React.createElement(MinusCircleOutlined, {
130
+ }, 23), !(extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) && /*#__PURE__*/React.createElement(MinusCircleOutlined, {
130
131
  style: {
131
132
  marginLeft: '10px'
132
133
  },
@@ -136,6 +137,7 @@ function Index(props) {
136
137
  })));
137
138
  }), /*#__PURE__*/React.createElement(_Form.Item, null, /*#__PURE__*/React.createElement(_Button, {
138
139
  type: "dashed",
140
+ disabled: (_extraInfo$disabled3 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled3 !== void 0 ? _extraInfo$disabled3 : disabled,
139
141
  onClick: function onClick() {
140
142
  return add();
141
143
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "public": true,
3
3
  "name": "ronds-metadata",
4
- "version": "1.3.34",
4
+ "version": "1.3.35",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",