vue-gallery
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -151,3 +151,3 @@ (function (global, factory) { | ||
var VueGallery$1 = { render: function render() { | ||
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "blueimp-gallery blueimp-gallery-controls", class: { 'blueimp-gallery-carousel': _vm.carousel } }, [_c('div', { staticClass: "slides" }), _c('h3', { staticClass: "title" }), _c('a', { staticClass: "prev" }, [_vm._v("‹")]), _vm._v(" "), _c('a', { staticClass: "next" }, [_vm._v("›")]), _vm._v(" "), !_vm.carousel ? _c('a', { staticClass: "close" }, [_vm._v("×")]) : _vm._e(), !_vm.carousel ? _c('ol', { staticClass: "indicator" }) : _vm._e(), _vm.carousel ? _c('a', { staticClass: "play-pause" }) : _vm._e()]); | ||
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { staticClass: "blueimp-gallery blueimp-gallery-controls", class: { 'blueimp-gallery-carousel': _vm.carousel }, attrs: { "id": _vm.id } }, [_c('div', { staticClass: "slides" }), _c('h3', { staticClass: "title" }), _c('a', { staticClass: "prev" }, [_vm._v("‹")]), _vm._v(" "), _c('a', { staticClass: "next" }, [_vm._v("›")]), _vm._v(" "), !_vm.carousel ? _c('a', { staticClass: "close" }, [_vm._v("×")]) : _vm._e(), !_vm.carousel ? _c('ol', { staticClass: "indicator" }) : _vm._e(), _vm.carousel ? _c('a', { staticClass: "play-pause" }) : _vm._e()]); | ||
}, staticRenderFns: [], | ||
@@ -176,2 +176,7 @@ props: { | ||
type: Number | ||
}, | ||
id: { | ||
type: String, | ||
default: 'blueimp-gallery' | ||
} | ||
@@ -206,3 +211,5 @@ }, | ||
mounted: function mounted() { | ||
this.open(); | ||
if (this.carousel) { | ||
this.open(); | ||
} | ||
}, | ||
@@ -228,2 +235,3 @@ destoryed: function destoryed() { | ||
carousel: this.carousel, | ||
container: '#' + this.id, | ||
index: index, | ||
@@ -230,0 +238,0 @@ onopen: function onopen() { |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("blueimp-gallery/css/blueimp-gallery.min.css"),require("blueimp-gallery/js/blueimp-gallery-fullscreen.js"),require("blueimp-gallery/js/blueimp-gallery.js")):"function"==typeof define&&define.amd?define(["blueimp-gallery/css/blueimp-gallery.min.css","blueimp-gallery/js/blueimp-gallery-fullscreen.js","blueimp-gallery/js/blueimp-gallery.js"],t):e.VueGallery=t(null,null,e.blueimp)}(this,function(e,t,n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;!function(){function e(e){this.value=e}function t(t){function n(i,o){try{var r=t[i](o),s=r.value;s instanceof e?Promise.resolve(s.value).then(function(e){n("next",e)},function(e){n("throw",e)}):l(r.done?"return":"normal",r.value)}catch(e){l("throw",e)}}function l(e,t){switch(e){case"return":i.resolve({value:t,done:!0});break;case"throw":i.reject(t);break;default:i.resolve({value:t,done:!1})}(i=i.next)?n(i.key,i.arg):o=null}var i,o;this._invoke=function(e,t){return new Promise(function(l,r){var s={key:e,arg:t,resolve:l,reject:r,next:null};o?o=o.next=s:(i=o=s,n(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}();var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e};return{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"blueimp-gallery blueimp-gallery-controls",class:{"blueimp-gallery-carousel":e.carousel}},[n("div",{staticClass:"slides"}),n("h3",{staticClass:"title"}),n("a",{staticClass:"prev"},[e._v("‹")]),e._v(" "),n("a",{staticClass:"next"},[e._v("›")]),e._v(" "),e.carousel?e._e():n("a",{staticClass:"close"},[e._v("×")]),e.carousel?e._e():n("ol",{staticClass:"indicator"}),e.carousel?n("a",{staticClass:"play-pause"}):e._e()])},staticRenderFns:[],props:{images:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},carousel:{type:Boolean,default:!1},index:{type:Number}},data:function(){return{instance:null}},watch:{index:function(e){this.carousel||(null!==e?this.open(e):(this.instance&&this.instance.close(),this.$emit("close")))}},mounted:function(){this.open()},destoryed:function(){this.instance.close(),this.instance=null},methods:{open:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=void 0!==n.Gallery?n.Gallery:n,o=l({toggleControlsOnReturn:!1,toggleControlsOnSlideClick:!1,closeOnSlideClick:!1,carousel:this.carousel,index:t,onopen:function(){return e.$emit("onopen")},onopened:function(){return e.$emit("onopened")},onslide:function(t,n){return e.$emit("onslide",{index:t,slide:n})},onslideend:function(t,n){return e.$emit("onslideend",{index:t,slide:n})},onslidecomplete:function(t,n){return e.$emit("onslidecomplete",{index:t,slide:n})},onclose:function(){return e.$emit("close")},onclosed:function(){return e.$emit("onclosed")}},this.options);this.carousel&&(o.container=this.$el),this.instance=i(this.images,o)}}}}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("blueimp-gallery/css/blueimp-gallery.min.css"),require("blueimp-gallery/js/blueimp-gallery-fullscreen.js"),require("blueimp-gallery/js/blueimp-gallery.js")):"function"==typeof define&&define.amd?define(["blueimp-gallery/css/blueimp-gallery.min.css","blueimp-gallery/js/blueimp-gallery-fullscreen.js","blueimp-gallery/js/blueimp-gallery.js"],t):e.VueGallery=t(null,null,e.blueimp)}(this,function(e,t,n){"use strict";n=n&&n.hasOwnProperty("default")?n.default:n;!function(){function e(e){this.value=e}function t(t){function n(l,r){try{var o=t[l](r),s=o.value;s instanceof e?Promise.resolve(s.value).then(function(e){n("next",e)},function(e){n("throw",e)}):i(o.done?"return":"normal",o.value)}catch(e){i("throw",e)}}function i(e,t){switch(e){case"return":l.resolve({value:t,done:!0});break;case"throw":l.reject(t);break;default:l.resolve({value:t,done:!1})}(l=l.next)?n(l.key,l.arg):r=null}var l,r;this._invoke=function(e,t){return new Promise(function(i,o){var s={key:e,arg:t,resolve:i,reject:o,next:null};r?r=r.next=s:(l=r=s,n(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}();var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};return{render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"blueimp-gallery blueimp-gallery-controls",class:{"blueimp-gallery-carousel":e.carousel},attrs:{id:e.id}},[n("div",{staticClass:"slides"}),n("h3",{staticClass:"title"}),n("a",{staticClass:"prev"},[e._v("‹")]),e._v(" "),n("a",{staticClass:"next"},[e._v("›")]),e._v(" "),e.carousel?e._e():n("a",{staticClass:"close"},[e._v("×")]),e.carousel?e._e():n("ol",{staticClass:"indicator"}),e.carousel?n("a",{staticClass:"play-pause"}):e._e()])},staticRenderFns:[],props:{images:{type:Array,default:function(){return[]}},options:{type:Object,default:function(){return{}}},carousel:{type:Boolean,default:!1},index:{type:Number},id:{type:String,default:"blueimp-gallery"}},data:function(){return{instance:null}},watch:{index:function(e){this.carousel||(null!==e?this.open(e):(this.instance&&this.instance.close(),this.$emit("close")))}},mounted:function(){this.carousel&&this.open()},destoryed:function(){this.instance.close(),this.instance=null},methods:{open:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,l=void 0!==n.Gallery?n.Gallery:n,r=i({toggleControlsOnReturn:!1,toggleControlsOnSlideClick:!1,closeOnSlideClick:!1,carousel:this.carousel,container:"#"+this.id,index:t,onopen:function(){return e.$emit("onopen")},onopened:function(){return e.$emit("onopened")},onslide:function(t,n){return e.$emit("onslide",{index:t,slide:n})},onslideend:function(t,n){return e.$emit("onslideend",{index:t,slide:n})},onslidecomplete:function(t,n){return e.$emit("onslidecomplete",{index:t,slide:n})},onclose:function(){return e.$emit("close")},onclosed:function(){return e.$emit("onclosed")}},this.options);this.carousel&&(r.container=this.$el),this.instance=l(this.images,r)}}}}); |
{ | ||
"name": "vue-gallery", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "VueJS responsive and customizable image and video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers.", | ||
@@ -5,0 +5,0 @@ "main": "dist/js/vue-gallery.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135465
284