lu-lowcode-package-form 0.10.4 → 0.10.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -51,7 +51,7 @@ const UploadFile = ({ value, maxCount, multiple, onChange, ...props }) => {
51
51
  onChange={handleChange}
52
52
  maxCount={maxCount}
53
53
  fileList={fileList}>
54
- {!props?.disabled && !props?.readonly && <Button type={props?.type || "default"} icon={props?.icon || <UploadOutlined />}>
54
+ {!props?.disabled && !props?.readonly && fileList.length < maxCount && <Button type={props?.type || "default"} icon={props?.icon || <UploadOutlined />}>
55
55
  点击上传文件
56
56
  </Button> }
57
57
  {/* {!props?.disabled && !props?.readonly && <div className=" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ">