diff --git a/packages/editor-ui/src/components/CollectionsCard.vue b/packages/editor-ui/src/components/CollectionsCard.vue
index cfa6e5590b96b8..e8e96d660ced89 100644
--- a/packages/editor-ui/src/components/CollectionsCard.vue
+++ b/packages/editor-ui/src/components/CollectionsCard.vue
@@ -1,9 +1,25 @@
-
{{shortTitle}}
-
+
+
+
+
+
+
+
+
+
+
+
+
+ {{shortTitle}}
+
+
@@ -11,13 +27,20 @@
import mixins from 'vue-typed-mixins';
import { genericHelpers } from '@/components/mixins/genericHelpers';
+import ElSkeleton from 'element-ui/lib/skeleton';
+import ElSkeletonItem from 'element-ui/lib/skeleton-item';
export default mixins(
genericHelpers,
).extend({
name: 'CollectionsCard',
+ components: {
+ ElSkeleton,
+ ElSkeletonItem,
+ },
props: {
title: String,
+ loading: Boolean,
},
computed: {
shortTitle(): string {
diff --git a/packages/editor-ui/src/components/CollectionsCarousel.vue b/packages/editor-ui/src/components/CollectionsCarousel.vue
index 95ad68f3d70f9d..7bf68428e86f0c 100644
--- a/packages/editor-ui/src/components/CollectionsCarousel.vue
+++ b/packages/editor-ui/src/components/CollectionsCarousel.vue
@@ -2,7 +2,17 @@
Collections ({{collectionsUI.length}})
-
+
+
+
+
+
+
+
+
+
+
+
@@ -55,6 +65,7 @@ export default mixins(
data() {
return {
collectionsUI: [],
+ loading: true,
};
},
computed: {
@@ -276,9 +287,9 @@ export default mixins(
collections(newCollections): void {
if (newCollections) {
this.$data.collectionsUI = newCollections;
+ this.$data.loading = false;
} else {
this.$data.collectionsUI = [];
-
}
},
},
diff --git a/packages/editor-ui/src/components/TemplateCard.vue b/packages/editor-ui/src/components/TemplateCard.vue
index 2eb104b6fa8a48..26639291bea44e 100644
--- a/packages/editor-ui/src/components/TemplateCard.vue
+++ b/packages/editor-ui/src/components/TemplateCard.vue
@@ -1,29 +1,57 @@
-