diff --git a/docs/src/components/Demo/index.vue b/docs/src/components/Demo/index.vue
index 72221eb2..bd917569 100644
--- a/docs/src/components/Demo/index.vue
+++ b/docs/src/components/Demo/index.vue
@@ -34,9 +34,12 @@
-
- Could not find a demo called “{{ name }}”.
-
+
+
+ Could not find a demo called “{{ name }}”.
+
+
+
@@ -79,6 +82,7 @@ export default {
data() {
return {
+ loading: true,
files: [],
content: null,
currentIndex: 0,
@@ -94,7 +98,7 @@ export default {
.find(item => item.path.endsWith('index.vue') || item.path.endsWith('index.jsx'))
if (!file) {
- return
+ return false
}
return require(`~/demos/${file.path}`).default
diff --git a/docs/src/components/Demo/style.scss b/docs/src/components/Demo/style.scss
index 6ef8cee8..69530caf 100644
--- a/docs/src/components/Demo/style.scss
+++ b/docs/src/components/Demo/style.scss
@@ -90,4 +90,12 @@
color: $colorRed;
background-color: rgba($colorRed, 0.1);
}
+
+ &__skeleton {
+ border-top-left-radius: inherit;
+ border-top-right-radius: inherit;
+ background-color: $colorWhite;
+ min-height: 20rem;
+ opacity: 0.1;
+ }
}