[+] Add property for background style
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="unread-entry vertical-center">
|
||||
<div class="unread-entry vertical-center" :style="`background: ${background}`">
|
||||
<el-row class="unread-row">
|
||||
<el-col :span="3" class="date">
|
||||
<span class="month">{{getMoment(assignment.date).format("MMM Do")}}</span>
|
||||
@@ -41,6 +41,7 @@
|
||||
@Prop({required: true}) assignment: Assignment;
|
||||
|
||||
@Prop({default: false}) unread: boolean;
|
||||
@Prop({default: '#f5f7fa'}) background: string;
|
||||
|
||||
/**
|
||||
* Format a date to the displayed format
|
||||
|
||||
Reference in New Issue
Block a user