taro-react-uilib 1.4.17 → 1.4.18
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/dist/components/Loading/index.js +1 -1
- package/dist/components/Loading/index.js.map +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/index.umd.js.map +1 -1
- package/dist/styles/components/images/loading.gif +0 -0
- package/dist/styles/components/loading.scss +5 -0
- package/lib/components/Loading/index.js +5 -6
- package/lib/components/Loading/index.js.map +1 -1
- package/package.json +1 -1
|
Binary file
|
|
@@ -2,17 +2,16 @@ import React from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { View } from "@tarojs/components";
|
|
4
4
|
import Mask from "../Mask";
|
|
5
|
-
import Activityindicator from "../ActivityIndicator";
|
|
6
5
|
import "./index.scss";
|
|
7
|
-
const Loading = ({ mask, className, tip = "加载中",
|
|
6
|
+
const Loading = ({ mask, className, tip = "加载中",
|
|
7
|
+
// color = "#FFF",
|
|
8
|
+
// size = 60,
|
|
9
|
+
}) => {
|
|
8
10
|
const cls = classNames("xh-loading", className);
|
|
9
11
|
return (React.createElement(View, { className: cls },
|
|
10
12
|
React.createElement(Mask, { mask: mask }),
|
|
11
13
|
React.createElement(View, { className: classNames("xh-loading-main", { hasTip: tip }) },
|
|
12
|
-
React.createElement(
|
|
13
|
-
"--loading-border-color": color,
|
|
14
|
-
"--loading-border-width": "3px",
|
|
15
|
-
} }),
|
|
14
|
+
React.createElement(View, { className: "xh-loading-main-gif" }),
|
|
16
15
|
tip && React.createElement(View, { className: "xh-loading-main-tip" }, tip))));
|
|
17
16
|
};
|
|
18
17
|
export default Loading;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Loading/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,IAAmB,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Loading/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,IAAmB,MAAM,SAAS,CAAC;AAG1C,OAAO,cAAc,CAAC;AAStB,MAAM,OAAO,GAAqB,CAAC,EACjC,IAAI,EACJ,SAAS,EACT,GAAG,GAAG,KAAK;AACX,kBAAkB;AAClB,aAAa;EACd,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,UAAU,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;IAEhD,OAAO,CACL,oBAAC,IAAI,IAAC,SAAS,EAAE,GAAG;QAClB,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI;QACpB,oBAAC,IAAI,IAAC,SAAS,EAAE,UAAU,CAAC,iBAAiB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;YAQ7D,oBAAC,IAAI,IAAC,SAAS,EAAC,qBAAqB,GAAQ;YAmB5C,GAAG,IAAI,oBAAC,IAAI,IAAC,SAAS,EAAC,qBAAqB,IAAE,GAAG,CAAQ,CACrD,CACF,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|