@abi-software/gallery 0.2.1-beta-2 → 0.2.1-beta-3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/gallery",
3
- "version": "0.2.1-beta-2",
3
+ "version": "0.2.1-beta-3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/hsorby/mapcore-gallery.git"
@@ -33,6 +33,14 @@
33
33
  </template>
34
34
 
35
35
  <script>
36
+ import Vue from "vue";
37
+ import { Card, Button, Tooltip, Loading } from "element-ui";
38
+
39
+ Vue.use(Card)
40
+ Vue.use(Button)
41
+ Vue.use(Tooltip)
42
+ Vue.use(Loading)
43
+
36
44
  export default {
37
45
  name: 'GalleryCard',
38
46
  props: {
@@ -6,8 +6,8 @@
6
6
  </a>
7
7
  <div class="filler" />
8
8
  <div class="card-line">
9
- <span v-for="(item, index) in windowedItems" :key="'card_' + index" :class="['key-image-span', { active: isActive(index) }]">
10
- <card :entry="item" :width="cardWidth" :height="cardHeight" :show-card-details="showCardDetails" />
9
+ <span v-for="(item, index) in windowedItems" :key="'span_' + index" :class="['key-image-span', { active: isActive(index) }]">
10
+ <card v-if="item !== undefined" :key="'card_' + index" :entry="item" :width="cardWidth" :height="cardHeight" :show-card-details="showCardDetails" />
11
11
  </span>
12
12
  </div>
13
13
  <div class="filler" />
@@ -43,7 +43,7 @@ export default {
43
43
  },
44
44
  maxWidth: {
45
45
  type: Number,
46
- default: 600
46
+ default: 3
47
47
  },
48
48
  cardWidth: {
49
49
  type: Number,
package/src/main.js CHANGED
@@ -1,8 +1,2 @@
1
- import Vue from 'vue'
2
- import App from './App.vue'
3
-
4
- Vue.config.productionTip = false
5
-
6
- new Vue({
7
- render: h => h(App),
8
- }).$mount('#app')
1
+ import Gallery from './components/Gallery.vue'
2
+ export default Gallery
Binary file