@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.
@@ -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 { http } from "../../helpers/http";
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 { http } from "../../helpers/http";
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 { http } from "../../helpers/http";
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) => {
@@ -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 { http } from "../../helpers/http";
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 { http } from "../../helpers/http";
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 { http } from "../../helpers/http";
15
+ import http from "../../helpers/http";
16
16
  const ImgUpload = (props) => {
17
17
  const r = http.getRequest();
18
18
  const [loading, setLoading] = useState(false);
@@ -4,5 +4,5 @@ declare class Http {
4
4
  setOutRequest(r: any): void;
5
5
  getRequest(): any;
6
6
  }
7
- export declare const http: Http;
8
- export {};
7
+ declare const _default: Http;
8
+ export default _default;
@@ -27,4 +27,4 @@ class Http {
27
27
  return this.__request;
28
28
  }
29
29
  }
30
- export const http = new Http();
30
+ export default new Http();
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.15",
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": "abc00f66d218168dc8cdb8a29cee4e833d335a98"
45
+ "gitHead": "73b80a6658132829238286362f933d177e8615b2"
46
46
  }