@worksafevictoria/wcl7.5 1.1.0-beta.62 → 1.1.0-beta.64
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
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
:class="{
|
|
15
15
|
[uniqueClass]: true
|
|
16
16
|
}"
|
|
17
|
+
:card-browse-content="cardBrowseContent"
|
|
17
18
|
>
|
|
18
19
|
<template v-if="$slots.gridHeaderRight" v-slot:headerRight>
|
|
19
20
|
<slot name="gridHeaderRight"></slot>
|
|
@@ -58,7 +59,6 @@ import Column from './../../Containers/Column/index.vue'
|
|
|
58
59
|
import SectionGroup from './../../Containers/SectionGroup/index.vue'
|
|
59
60
|
import debounce from 'lodash/debounce'
|
|
60
61
|
|
|
61
|
-
|
|
62
62
|
export default {
|
|
63
63
|
name: 'CardGrid',
|
|
64
64
|
components: { Row, Column, SectionGroup },
|
|
@@ -155,6 +155,10 @@ export default {
|
|
|
155
155
|
contentClass: {
|
|
156
156
|
type: String,
|
|
157
157
|
default: ''
|
|
158
|
+
},
|
|
159
|
+
cardBrowseContent: {
|
|
160
|
+
type: Boolean,
|
|
161
|
+
default: false
|
|
158
162
|
}
|
|
159
163
|
},
|
|
160
164
|
data() {
|
|
@@ -246,10 +250,10 @@ export default {
|
|
|
246
250
|
this.clearCards()
|
|
247
251
|
selectedCard.selected = !!!selectedCard.selected
|
|
248
252
|
const selectedCardModelIndex = this.getChildIndex(selectedCard)
|
|
249
|
-
|
|
253
|
+
|
|
250
254
|
this.$emit('selected', {
|
|
251
255
|
selectedCard: selectedCard.selected
|
|
252
|
-
? this.cards[selectedCardModelIndex]
|
|
256
|
+
? this.cardBrowseContent ? this.childCards[selectedCardModelIndex] : this.cards[selectedCardModelIndex]
|
|
253
257
|
: null,
|
|
254
258
|
selectedCardModelIndex,
|
|
255
259
|
ev
|
|
@@ -304,6 +308,7 @@ export default {
|
|
|
304
308
|
}
|
|
305
309
|
</script>
|
|
306
310
|
|
|
311
|
+
|
|
307
312
|
<style lang="scss" scoped>
|
|
308
313
|
@import '../../../includes/scss/all';
|
|
309
314
|
.card-grid {
|