ronds-metadata 1.3.34 → 1.3.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -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-20 13:39:47
15
15
  */
16
16
  import React from 'react';
17
17
  import { MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
@@ -106,10 +106,11 @@ 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$disabled4;
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) {
112
- var _extraInfo$disabled2;
113
+ var _extraInfo$disabled2, _extraInfo$disabled3;
113
114
  return /*#__PURE__*/React.createElement("div", {
114
115
  key: field.key,
115
116
  style: {
@@ -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$disabled3 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled3 !== void 0 ? _extraInfo$disabled3 : 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$disabled4 = extraInfo === null || extraInfo === void 0 ? void 0 : extraInfo.disabled) !== null && _extraInfo$disabled4 !== void 0 ? _extraInfo$disabled4 : 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.36",
5
5
  "scripts": {
6
6
  "start": "dumi dev",
7
7
  "docs:build": "dumi build",