-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathContentNode.vue
61 lines (56 loc) · 1.55 KB
/
ContentNode.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<template>
<component
:is="contentNode.contentTypeName"
v-if="!contentNode.loading"
class="content-node"
:class="{ draggable: draggable && contentNode.parent !== null }"
:content-node="contentNode"
:layout-mode="layoutMode"
:draggable="draggable"
:disabled="disabled"
v-bind="$attrs"
/>
</template>
<script>
import ColumnLayout from './content/ColumnLayout.vue'
import ResponsiveLayout from './content/ResponsiveLayout.vue'
import Notes from './content/Notes.vue'
import Material from './content/Material.vue'
import LAThematicArea from './content/LAThematicArea.vue'
import LearningObjectives from './content/LearningObjectives.vue'
import LearningTopics from './content/LearningTopics.vue'
import SafetyConsiderations from './content/SafetyConsiderations.vue'
import Storyboard from './content/Storyboard.vue'
import Storycontext from './content/Storycontext.vue'
const contentNodeComponents = {
ColumnLayout,
ResponsiveLayout,
Notes,
Material,
LAThematicArea,
LearningObjectives,
LearningTopics,
SafetyConsiderations,
Storyboard,
Storycontext,
}
export default {
name: 'ContentNode',
components: contentNodeComponents,
props: {
contentNode: { type: Object, required: true },
layoutMode: { type: Boolean, required: true },
draggable: { type: Boolean, default: false },
disabled: { type: Boolean, default: false },
},
}
</script>
<style lang="scss">
.draggable {
cursor: move;
transition: background-color 0.3s 25ms ease;
.theme--light.v-toolbar.v-sheet {
background: none;
}
}
</style>