-
+
-
- 加载失败 刷新
-
+ 加载失败
+ 刷新
- >
+
);
}
diff --git a/src/loading/_example/size.jsx b/src/loading/_example/size.jsx
index d260025e..d6abb80e 100644
--- a/src/loading/_example/size.jsx
+++ b/src/loading/_example/size.jsx
@@ -3,10 +3,10 @@ import { Loading } from 'tdesign-mobile-react';
export default function () {
return (
- <>
-
-
+
- >
+
+
+
);
}
diff --git a/src/loading/_example/speed.jsx b/src/loading/_example/speed.jsx
new file mode 100644
index 00000000..78c1785b
--- /dev/null
+++ b/src/loading/_example/speed.jsx
@@ -0,0 +1,16 @@
+import React, { useState } from 'react';
+import { Loading, Slider } from 'tdesign-mobile-react';
+
+export default function () {
+ const [speed, setSpeed] = useState(300);
+
+ return (
+
+ );
+}
diff --git a/src/loading/_example/style/index.less b/src/loading/_example/style/index.less
index a6910750..7567e095 100644
--- a/src/loading/_example/style/index.less
+++ b/src/loading/_example/style/index.less
@@ -2,6 +2,31 @@
padding: 0 16px;
display: flex;
// flex-direction: column;
+ &--column {
+ flex-direction: column;
+ }
+ .demo-loading {
+ margin-top: 20px;
+ }
+ .demo-loading-speed-slider {
+ width: 100%;
+ margin-top: 20px;
+ display: grid;
+ align-items: center;
+ grid-gap: 24px;
+ grid-template-columns: auto 1fr;
+ }
+ &.pure-text-demo-box {
+ display: grid;
+ align-items: center;
+ grid-gap: 40px;
+ grid-template-columns: repeat(3, auto);
+ }
+ &.demo-content-size {
+ .t-loading {
+ margin-bottom: 20px;
+ }
+ }
}
.normal-content {
@@ -10,8 +35,11 @@
.custom-error {
font-size: 14px;
- color: rgba(0, 0, 0, 0.9);
+ .t-loading {
+ color: rgba(0, 0, 0, 0.9);
+ }
span {
+ margin-left: 10px;
color: rgba(0, 82, 217, 1);
cursor: pointer;
}
diff --git a/src/loading/_example/vert.jsx b/src/loading/_example/vert.jsx
index 29b4e03b..d5307672 100644
--- a/src/loading/_example/vert.jsx
+++ b/src/loading/_example/vert.jsx
@@ -2,5 +2,9 @@ import React from 'react';
import { Loading } from 'tdesign-mobile-react';
export default function () {
- return
;
+ return (
+
+
+
+ );
}