42 lines
484 B
JavaScript
42 lines
484 B
JavaScript
var sectionWorkComponent = {
|
|
template: '#section-work-template',
|
|
|
|
|
|
|
|
mounted: function()
|
|
{
|
|
|
|
},
|
|
|
|
|
|
|
|
destroyed: function()
|
|
{
|
|
|
|
},
|
|
|
|
|
|
|
|
data: function()
|
|
{
|
|
return {
|
|
item: {}
|
|
};
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
addPosition: function()
|
|
{
|
|
var item = this.$root.getDefaultWork();
|
|
this.$root.sections.work.push(item);
|
|
},
|
|
|
|
addHighlight: function(index)
|
|
{
|
|
var item = this.$root.getDefaultWorkHighlight();
|
|
this.$root.sections.work[index].highlights.push(item);
|
|
}
|
|
}
|
|
}; |