@ecoding/components.antd 0.3.12 → 0.3.14

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.
@@ -49,7 +49,7 @@ const C = ({ columns, rules, name, hideOperation, hideBottom, operation, i18n })
49
49
  React.createElement("td", { style: tdStyle }, index + 1),
50
50
  columns.map((column, i) => {
51
51
  return (React.createElement("td", { style: tdStyle },
52
- React.createElement(Form.Item, { tooltip: column.tooltip || undefined, name: [field.name, column.name], rules: column.rules || [] }, column.render(field, index))));
52
+ React.createElement(Form.Item, { style: { marginBottom: 0 }, tooltip: column.tooltip || undefined, name: [field.name, column.name], rules: column.rules || [] }, column.render(field, index))));
53
53
  }),
54
54
  hideOperation ? null : operation ? (React.createElement("td", { style: Object.assign({}, tdStyle, { right: 0, position: "sticky", backgroundColor: "#fff" }) }, operation.component)) : (React.createElement("td", { style: Object.assign({}, tdStyle, { right: 0, position: "sticky", backgroundColor: "#fff" }) },
55
55
  React.createElement(Typography.Text, { style: { cursor: 'pointer' }, type: "danger", onClick: () => remove(field.name) }, i18n ? i18n.$t("global.del", '删除') : '删除')))));
@@ -121,7 +121,7 @@ const SingleFileUpload = (props) => {
121
121
  React.createElement(Upload, { ref: props.uploadRef, withCredentials: true, multiple: true, data: props.data, openFileDialogOnClick: props.openFileDialogOnClick, beforeUpload: beforeUpload, name: props.name, disabled: props.disabled, headers: props.headers, action: action, onChange: handleChange, showUploadList: false, onRemove: (e) => {
122
122
  props.onRemove && props.onRemove(e);
123
123
  }, maxCount: props.maxCount },
124
- React.createElement(Button, { icon: props.icon ? React.createElement(UploadOutlined, null) : null }, props.buttonText)),
124
+ React.createElement(Button, { disabled: props.disabled, icon: props.icon ? React.createElement(UploadOutlined, null) : null }, props.buttonText)),
125
125
  React.createElement(Popover, { destroyTooltipOnHide: true, open: open, placement: "right", trigger: "hover", title: "Uploaded", content: React.createElement(InfosRender, { onChange: props.onChange, infos: infos, setInfos: setInfos }) },
126
126
  React.createElement(Button, { icon: React.createElement(EllipsisOutlined, null) }))));
127
127
  };
@@ -87,7 +87,7 @@ const SingleFileUpload = (props) => {
87
87
  console.log(e);
88
88
  props.onRemove && props.onRemove(e);
89
89
  }, maxCount: 1 },
90
- React.createElement(Button, { icon: props.icon ? React.createElement(UploadOutlined, null) : null }, props.buttonText))));
90
+ React.createElement(Button, { disabled: props.disabled, icon: props.icon ? React.createElement(UploadOutlined, null) : null }, props.buttonText))));
91
91
  };
92
92
  SingleFileUpload.defaultProps = {
93
93
  name: "file",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecoding/components.antd",
3
- "version": "0.3.12",
3
+ "version": "0.3.14",
4
4
  "author": "cxc",
5
5
  "homepage": "",
6
6
  "license": "MIT",
@@ -43,5 +43,5 @@
43
43
  "antd": "^5.8.4",
44
44
  "axios": "^1.1.2"
45
45
  },
46
- "gitHead": "49d5d100c696ed1ff61527b01d7b7898665a6f7f"
46
+ "gitHead": "97420d5c107d575f82ef1ef30852701d99df7163"
47
47
  }