<Modal ref="yourModalNameRef" :modalContent="'Блок успешно сохранен'" @click="ok"/>
// Modal.vue
...
methods: {
okModal () {
this.modal = false
this.$emit('click')
},
open (val) {
this.modal = val
},
},
...
bus.$emit('modalWindow', true)
this.$refs.yourModalNameRef.open();
/*
* Returns an array of jQuery objects, grouped by specified number of elements.
*
* Say you have 17 <frameset> tags on your page...
*
* $('frameset').inGroupsOf(7); // => [ jQuery[0..6], jQuery[7..13], jQuery[14..16] ]
*
*/
$.fn.inGroupsOf = function( countPerGroup ) {
var groups = [], offset = 0, $group;
while ( ($group = this.slice( offset, (countPerGroup + offset) )).length ) {
groups.push( $group );
offset += countPerGroup;
}
return groups;
};