$(document).ready(function() {
$("#gallery_output img").not(":first").hide();
$("#gallery a").click(function() {
$("#gallery a").removeClass('zz');
$(this).addClass("zz");
if ( $("#" + this.rel).is(":hidden") ) {
$("#gallery_output img").slideUp();
$("#" + this.rel).slideDown();
}
});
});
这样的在vue中怎么写?