Initial commit

This commit is contained in:
zhongjin
2020-06-15 10:58:47 +08:00
commit 4f1dfe7564
8590 changed files with 1516878 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
export default {
toggleSelection ($event) {
this.$emit('toggleSelection', {
map: this.$props.visualization,
isSelected: !this.$props.isSelected,
event: $event
});
},
toggleFavorite () {
if (this.$props.visualization.liked) {
this.$store.dispatch(`${this.$props.storeActionType}/deleteLike`, this.$props.visualization);
} else {
this.$store.dispatch(`${this.$props.storeActionType}/like`, this.$props.visualization);
}
},
openQuickActions () {
this.areQuickActionsOpen = true;
},
closeQuickActions () {
this.areQuickActionsOpen = false;
},
mouseOverChildElement () {
this.activeHover = false;
},
mouseOutChildElement () {
this.activeHover = true;
},
onThumbnailError () {
this.isThumbnailErrored = true;
},
onDataChanged () {
this.$emit('dataChanged');
},
onClick (event) {
if (this.$props.selectMode) {
event.preventDefault();
this.toggleSelection(event);
}
},
isLastTag (index) {
return index === this.tagsLength - 1;
}
};