blob: f617e5ad2575b5945503bf0b0921b09ff753f5b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<template>
<div class="cw-companion-box" :class="[mood]">
<div>
<p v-html="msgCompanion"></p>
<slot name="companionActions"></slot>
</div>
</div>
</template>
<script>
export default {
name: 'courseware-companion-box',
props: {
msgCompanion: String,
mood: {
type: String,
default: 'default',
validator: value => {
return ['default','unsure', 'special', 'sad', 'pointing', 'curious'].includes(value);
}
}
},
};
</script>
|