zy-react-library 1.0.20 → 1.0.22

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.
@@ -5,7 +5,15 @@ import { Select } from "antd";
5
5
  * 可创建选项的选择器组件
6
6
  */
7
7
  function SelectCreate(props) {
8
- const { items, showDelete = true, label = "", maxCount = 1, onDelete, ...restProps } = props;
8
+ const {
9
+ items,
10
+ showDelete = true,
11
+ label = "",
12
+ maxCount = 1,
13
+ onDelete,
14
+ formValues,
15
+ ...restProps
16
+ } = props;
9
17
 
10
18
  const handlerDelete = (option) => {
11
19
  onDelete?.(option);
@@ -19,6 +19,7 @@ const Upload = (props) => {
19
19
  size = 0,
20
20
  tipContent,
21
21
  uploadButtonText = "点击选择文件上传",
22
+ formValues,
22
23
  ...restProps
23
24
  } = props;
24
25
 
@@ -1,7 +1,6 @@
1
1
  import { message } from "antd";
2
2
  import dayjs from "dayjs";
3
3
  import { useState } from "react";
4
- import { getFileUrl } from "../../utils/index.js";
5
4
 
6
5
  /**
7
6
  * 下载Blob流文件
@@ -13,9 +12,8 @@ export default function useDownloadBlob() {
13
12
  // 下载Blob流文件
14
13
  const downloadBlob = (url, options = { name: "", type: "", params: {} }) => {
15
14
  setLoading(true);
16
- const fileUrl = getFileUrl();
17
15
  return new Promise((resolve, reject) => {
18
- const finalUrl = !url.includes(fileUrl) ? fileUrl + url : url;
16
+ const finalUrl = (process.env.app.API_HOST || window.__JJB_ENVIRONMENT__.API_HOST) + url;
19
17
  Object.entries(options.params).forEach(([key, value]) => {
20
18
  finalUrl.searchParams.append(key, value);
21
19
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.20",
4
+ "version": "1.0.22",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",