(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/liu-choose-media/components/liu-choose-media/liu-choose-media"],{"30b7":function(e,t,i){"use strict";i.r(t);var n=i("afdb"),u=i("43ec");for(var a in u)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return u[e]}))}(a);i("53f4");var s=i("f0c5"),o=Object(s["a"])(u["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=o.exports},"43ec":function(e,t,i){"use strict";i.r(t);var n=i("fc61"),u=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(a);t["default"]=u.a},5054:function(e,t,i){},"53f4":function(e,t,i){"use strict";var n=i("5054"),u=i.n(n);u.a},afdb:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return u})),i.d(t,"a",(function(){}));var n=function(){var e=this.$createElement,t=(this._self._c,this.filesList.length<this.maxNumber&&this.canEditor);this.$mp.data=Object.assign({},{$root:{g0:t}})},u=[]},fc61:function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={props:{files:{type:Array,default:function(){return[]}},maxNumber:{type:Number,default:9},columns:{type:Number,default:4},gapNumber:{type:Number,default:20},height:{type:Number,default:150},canEditor:{type:Boolean,default:!0},maxDuration:{type:Number,default:30},mediaType:{type:Array,default:function(){return["image","video"]}}},data:function(){return{filesList:[]}},watch:{files:{deep:!0,immediate:!0,handler:function(e){this.filesList=e}},filesList:function(e){this.$emit("update:files",e)}},methods:{chooseImg:function(){var t=this;this.maxNumber,this.filesList.length;e.chooseMedia({count:this.maxNumber,mediaType:this.mediaType,sourceType:["album","camera"],maxDuration:this.maxDuration,success:function(i){t.filesList=t.filesList.concat(i.tempFiles);var n=[];t.filesList.map((function(i,u){(null===i||void 0===i?void 0:i.duration)>t.maxDuration?e.showToast({title:"当前视频过长，请上传不超过"+t.maxDuration+"秒的视频",icon:"none"}):n.push(i)}));var u=[];n.map((function(i,n){n+1>t.maxNumber?e.showToast({title:"最多可上传"+t.maxNumber+"个内容",icon:"none"}):u.push(i)})),t.filesList=u}})},deleteImg:function(e){this.filesList.splice(e,1)},preview:function(t){var i=[];i[0]=t,e.previewImage({current:0,urls:i})}}};t.default=i}).call(this,i("543d")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'uni_modules/liu-choose-media/components/liu-choose-media/liu-choose-media-create-component',
    {
        'uni_modules/liu-choose-media/components/liu-choose-media/liu-choose-media-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('543d')['createComponent'](__webpack_require__("30b7"))
        })
    },
    [['uni_modules/liu-choose-media/components/liu-choose-media/liu-choose-media-create-component']]
]);
