@ecoding/components.antd 0.1.15 → 0.1.16
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/lib/core/async-cascader/index.js +1 -1
- package/lib/core/async-select/index.js +1 -1
- package/lib/core/async-transfer/index.js +1 -1
- package/lib/core/quill/index.js +1 -1
- package/lib/core/single-file-upload/index.js +1 -1
- package/lib/core/single-img-upload/index.js +1 -1
- package/lib/helpers/http.d.ts +2 -2
- package/lib/helpers/http.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/package.json +2 -2
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import React, { useCallback, useEffect, useState, memo, useMemo } from "react";
|
|
11
11
|
import { Cascader } from "antd";
|
|
12
12
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
13
|
-
import
|
|
13
|
+
import http from "../../helpers/http";
|
|
14
14
|
import { isSomething } from "@ecoding/helper.is";
|
|
15
15
|
import { jsonFormatNewKey } from "@ecoding/helper.json";
|
|
16
16
|
const setSourceChilren = (source, key, res) => {
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import React, { useEffect, useState, memo, useMemo } from "react";
|
|
11
11
|
import { Select } from "antd";
|
|
12
12
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
13
|
-
import
|
|
13
|
+
import http from "../../helpers/http";
|
|
14
14
|
import { isSomething } from "@ecoding/helper.is";
|
|
15
15
|
import { jsonFormatNewKey } from "@ecoding/helper.json";
|
|
16
16
|
const { Option } = Select;
|
|
@@ -11,7 +11,7 @@ import React, { useEffect, useState, memo, useMemo, useCallback } from "react";
|
|
|
11
11
|
import { Transfer } from "antd";
|
|
12
12
|
import zhCN from "antd/lib/locale/zh_CN";
|
|
13
13
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
14
|
-
import
|
|
14
|
+
import http from "../../helpers/http";
|
|
15
15
|
import { isSomething } from "@ecoding/helper.is";
|
|
16
16
|
import { jsonFormatNewKey } from "@ecoding/helper.json";
|
|
17
17
|
const AsyncTransfer = memo((props) => {
|
package/lib/core/quill/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import React, { useMemo, useCallback, useState, useRef, lazy } from "react";
|
|
11
11
|
import { Upload, message } from "antd";
|
|
12
12
|
import Toast from "../../core/toast";
|
|
13
|
-
import
|
|
13
|
+
import http from "../../helpers/http";
|
|
14
14
|
const ReactQuill = lazy(() => import(/* webpackChunkName: "ReactQuill" */ /* webpackPrefetch: true */ "react-quill"));
|
|
15
15
|
const Quill = (props) => {
|
|
16
16
|
const r = http.getRequest();
|
|
@@ -12,7 +12,7 @@ import { Upload, message, Button } from "antd";
|
|
|
12
12
|
import { UploadOutlined } from "@ant-design/icons";
|
|
13
13
|
import { buildURL } from "@ecoding/helper.url";
|
|
14
14
|
import Toast from "../../core/toast";
|
|
15
|
-
import
|
|
15
|
+
import http from "../../helpers/http";
|
|
16
16
|
const SingleFileUpload = (props) => {
|
|
17
17
|
const r = http.getRequest();
|
|
18
18
|
const [urlParams, setUrlParams] = useState({});
|
|
@@ -12,7 +12,7 @@ import { Upload, message, Space } from "antd";
|
|
|
12
12
|
import { LoadingOutlined, PlusOutlined, DeleteOutlined } from "@ant-design/icons";
|
|
13
13
|
import { buildURL } from "@ecoding/helper.url";
|
|
14
14
|
import Toast from "../../core/toast";
|
|
15
|
-
import
|
|
15
|
+
import http from "../../helpers/http";
|
|
16
16
|
const ImgUpload = (props) => {
|
|
17
17
|
const r = http.getRequest();
|
|
18
18
|
const [loading, setLoading] = useState(false);
|
package/lib/helpers/http.d.ts
CHANGED
package/lib/helpers/http.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -11,3 +11,4 @@ export { default as SingleFileUpload } from "./core/single-file-upload";
|
|
|
11
11
|
export { default as AsyncSlect } from "./core/async-select";
|
|
12
12
|
export { default as AsyncTransfer } from "./core/async-transfer";
|
|
13
13
|
export { default as Quill } from "./core/quill";
|
|
14
|
+
export { default as http } from "./helpers/http";
|
package/lib/index.js
CHANGED
|
@@ -11,3 +11,4 @@ export { default as SingleFileUpload } from "./core/single-file-upload";
|
|
|
11
11
|
export { default as AsyncSlect } from "./core/async-select";
|
|
12
12
|
export { default as AsyncTransfer } from "./core/async-transfer";
|
|
13
13
|
export { default as Quill } from "./core/quill";
|
|
14
|
+
export { default as http } from "./helpers/http";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecoding/components.antd",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"author": "cxc",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"react-quill": "^2.0.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "73b80a6658132829238286362f933d177e8615b2"
|
|
46
46
|
}
|