@ecoding/components.antd 0.4.4 → 0.4.5

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.
@@ -156,7 +156,7 @@ const ImgUpload = (props) => {
156
156
  }, [props.value]);
157
157
  return (React.createElement(Flex, { style: { fontSize: 0 } },
158
158
  imageUrl ? (React.createElement("div", { style: { position: "relative" } },
159
- React.createElement("span", { style: {
159
+ props.disabled ? null : (React.createElement("span", { style: {
160
160
  position: "absolute",
161
161
  bottom: "6px",
162
162
  right: "2px",
@@ -169,7 +169,7 @@ const ImgUpload = (props) => {
169
169
  e.stopPropagation();
170
170
  clear();
171
171
  } },
172
- React.createElement(DeleteOutlined, { style: { fontSize: 14 } })),
172
+ React.createElement(DeleteOutlined, { style: { fontSize: 14 } }))),
173
173
  React.createElement(Img, { style: { width: "102px", height: "102px", objectFit: "contain", cursor: "pointer" }, src: imageUrl }))) : (React.createElement(Upload, { withCredentials: true, beforeUpload: beforeUpload, name: props.name, data: props.data, headers: props.headers, disabled: props.disabled, listType: "picture-card", showUploadList: false, action: action, onChange: handleChange }, uploadButton)),
174
174
  props.isTip ? (React.createElement("div", { style: { fontSize: '13px', marginLeft: '18px', lineHeight: '22px' } },
175
175
  React.createElement("p", null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecoding/components.antd",
3
- "version": "0.4.4",
3
+ "version": "0.4.5",
4
4
  "author": "cxc",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -47,5 +47,5 @@
47
47
  "antd": "5.27.0",
48
48
  "axios": "^1.1.2"
49
49
  },
50
- "gitHead": "a82f6dbcc087f6175bca37478a339a7babf6cfbd"
50
+ "gitHead": "943b287cadc4e7e9266076319ea1221a146ddc48"
51
51
  }