test
This commit is contained in:
Vendored
+2
-2
@@ -1,10 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/image-library-logos/index"],{1068:function(n,e,r){"use strict";r.r(e);var t=r(1069),u=r(1071);for(var i in u)["default"].indexOf(i)<0&&function(n){r.d(e,n,(function(){return u[n]}))}(i);var o,c=r(46),a=Object(c["default"])(u["default"],t["render"],t["staticRenderFns"],!1,null,null,null,!1,t["components"],o);a.options.__file="uni_modules/uni-media-library/components/image-library-logos/index.vue",e["default"]=a.exports},1069:function(n,e,r){"use strict";r.r(e);var t=r(1070);r.d(e,"render",(function(){return t["render"]})),r.d(e,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(e,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(e,"components",(function(){return t["components"]}))},1070:function(n,e,r){"use strict";var t;r.r(e),r.d(e,"render",(function(){return u})),r.d(e,"staticRenderFns",(function(){return o})),r.d(e,"recyclableRender",(function(){return i})),r.d(e,"components",(function(){return t}));var u=function(){var n=this,e=n.$createElement;n._self._c},i=!1,o=[];u._withStripped=!0},1071:function(n,e,r){"use strict";r.r(e);var t=r(1072),u=r.n(t);for(var i in t)["default"].indexOf(i)<0&&function(n){r.d(e,n,(function(){return t[n]}))}(i);e["default"]=u.a},1072:function(n,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={name:"imageLibraryLogos",props:{provider:{type:String,default:function(){return"default"}}}};e.default=t}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/image-library-logos/index"],{1243:function(n,e,r){"use strict";r.r(e);var t=r(1244),u=r(1246);for(var i in u)["default"].indexOf(i)<0&&function(n){r.d(e,n,(function(){return u[n]}))}(i);var o,c=r(46),a=Object(c["default"])(u["default"],t["render"],t["staticRenderFns"],!1,null,null,null,!1,t["components"],o);a.options.__file="uni_modules/uni-media-library/components/image-library-logos/index.vue",e["default"]=a.exports},1244:function(n,e,r){"use strict";r.r(e);var t=r(1245);r.d(e,"render",(function(){return t["render"]})),r.d(e,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(e,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(e,"components",(function(){return t["components"]}))},1245:function(n,e,r){"use strict";var t;r.r(e),r.d(e,"render",(function(){return u})),r.d(e,"staticRenderFns",(function(){return o})),r.d(e,"recyclableRender",(function(){return i})),r.d(e,"components",(function(){return t}));var u=function(){var n=this,e=n.$createElement;n._self._c},i=!1,o=[];u._withStripped=!0},1246:function(n,e,r){"use strict";r.r(e);var t=r(1247),u=r.n(t);for(var i in t)["default"].indexOf(i)<0&&function(n){r.d(e,n,(function(){return t[n]}))}(i);e["default"]=u.a},1247:function(n,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={name:"imageLibraryLogos",props:{provider:{type:String,default:function(){return"default"}}}};e.default=t}}]);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-media-library/components/image-library-logos/index.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uni_modules/uni-media-library/components/image-library-logos/index-create-component',
|
||||
{
|
||||
'uni_modules/uni-media-library/components/image-library-logos/index-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1068))
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1243))
|
||||
})
|
||||
},
|
||||
[['uni_modules/uni-media-library/components/image-library-logos/index-create-component']]
|
||||
|
||||
unpackage/dist/dev/mp-weixin/uni_modules/uni-media-library/components/image-library-logos/index.json
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
"usingComponents": {},
|
||||
"component": true
|
||||
}
|
||||
Vendored
+2
-2
@@ -1,10 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/image-library-panel/index"],{935:function(e,n,t){"use strict";t.r(n);var r=t(936),i=t(938);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t(940);var a,u=t(46),s=Object(u["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],a);s.options.__file="uni_modules/uni-media-library/components/image-library-panel/index.vue",n["default"]=s.exports},936:function(e,n,t){"use strict";t.r(n);var r=t(937);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},937:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return r}));try{r={uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,543))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,521))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.loading&&1===e.page?null:e.list.length);e.$mp.data=Object.assign({},{$root:{g0:t}})},o=!1,a=[];i._withStripped=!0},938:function(e,n,t){"use strict";t.r(n);var r=t(939),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},939:function(e,n,t){"use strict";(function(e,r){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(t(28)),a=i(t(18)),u=i(t(31)),s=e.importObject("uni-media-library-co",{customUI:!0}),c={name:"image-library-panel",emits:["onCopyToMediaLibrary"],expose:[],props:{provider:String},data:function(){return{keyword:"",loading:!1,page:1,pageSize:30,list:[]}},watch:{page:function(){this.loadList()}},computed:{selectedCount:function(){return this.selectedImages.length},selectedImages:function(){return this.list.filter((function(e){return e.selected}))}},methods:{search:function(){this.loading||(1===this.page?this.loadList():this.page=1)},loadList:function(){var e=this;return(0,u.default)(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.keyword&&!e.loading){n.next=2;break}return n.abrupt("return");case 2:return e.loading=!0,n.prev=3,n.next=6,s.searchImageLibrary({keyword:e.keyword,page:e.page,pageSize:e.pageSize,provider:e.provider});case 6:t=n.sent,n.next=12;break;case 9:return n.prev=9,n.t0=n["catch"](3),n.abrupt("return",r.showToast({title:n.t0.errMsg||n.t0.message,icon:"none"}));case 12:return n.prev=12,e.loading=!1,n.finish(12);case 15:1===e.page?e.list=t.data:e.list=[].concat((0,a.default)(e.list),(0,a.default)(t.data));case 16:case"end":return n.stop()}}),n,null,[[3,9,12,15]])})))()},loadMore:function(){this.loading||(this.page+=1)},onSelect:function(e){if(!this.loading){var n=this.list[e];this.$set(n,"selected",!n.selected)}}}};n.default=c}).call(this,t(27)["uniCloud"],t(2)["default"])},940:function(e,n,t){"use strict";t.r(n);var r=t(941),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},941:function(e,n,t){}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/image-library-panel/index"],{1078:function(e,n,t){"use strict";t.r(n);var r=t(1079),i=t(1081);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t(1083);var a,u=t(46),s=Object(u["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],a);s.options.__file="uni_modules/uni-media-library/components/image-library-panel/index.vue",n["default"]=s.exports},1079:function(e,n,t){"use strict";t.r(n);var r=t(1080);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},1080:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return r}));try{r={uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,947))},uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,578))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.loading&&1===e.page?null:e.list.length);e.$mp.data=Object.assign({},{$root:{g0:t}})},o=!1,a=[];i._withStripped=!0},1081:function(e,n,t){"use strict";t.r(n);var r=t(1082),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},1082:function(e,n,t){"use strict";(function(e,r){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(t(28)),a=i(t(18)),u=i(t(31)),s=e.importObject("uni-media-library-co",{customUI:!0}),c={name:"image-library-panel",emits:["onCopyToMediaLibrary"],expose:[],props:{provider:String},data:function(){return{keyword:"",loading:!1,page:1,pageSize:30,list:[]}},watch:{page:function(){this.loadList()}},computed:{selectedCount:function(){return this.selectedImages.length},selectedImages:function(){return this.list.filter((function(e){return e.selected}))}},methods:{search:function(){this.loading||(1===this.page?this.loadList():this.page=1)},loadList:function(){var e=this;return(0,u.default)(o.default.mark((function n(){var t;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.keyword&&!e.loading){n.next=2;break}return n.abrupt("return");case 2:return e.loading=!0,n.prev=3,n.next=6,s.searchImageLibrary({keyword:e.keyword,page:e.page,pageSize:e.pageSize,provider:e.provider});case 6:t=n.sent,n.next=12;break;case 9:return n.prev=9,n.t0=n["catch"](3),n.abrupt("return",r.showToast({title:n.t0.errMsg||n.t0.message,icon:"none"}));case 12:return n.prev=12,e.loading=!1,n.finish(12);case 15:1===e.page?e.list=t.data:e.list=[].concat((0,a.default)(e.list),(0,a.default)(t.data));case 16:case"end":return n.stop()}}),n,null,[[3,9,12,15]])})))()},loadMore:function(){this.loading||(this.page+=1)},onSelect:function(e){if(!this.loading){var n=this.list[e];this.$set(n,"selected",!n.selected)}}}};n.default=c}).call(this,t(27)["uniCloud"],t(2)["default"])},1083:function(e,n,t){"use strict";t.r(n);var r=t(1084),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},1084:function(e,n,t){}}]);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-media-library/components/image-library-panel/index.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uni_modules/uni-media-library/components/image-library-panel/index-create-component',
|
||||
{
|
||||
'uni_modules/uni-media-library/components/image-library-panel/index-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(935))
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1078))
|
||||
})
|
||||
},
|
||||
[['uni_modules/uni-media-library/components/image-library-panel/index-create-component']]
|
||||
|
||||
unpackage/dist/dev/mp-weixin/uni_modules/uni-media-library/components/image-library-panel/index.json
Vendored
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"uni-easyinput": "/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput",
|
||||
"uni-icons": "/uni_modules/uni-icons/components/uni-icons/uni-icons"
|
||||
},
|
||||
"component": true
|
||||
}
|
||||
}
|
||||
Vendored
+2
-2
@@ -1,10 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/media-filter/index"],{1054:function(e,n,t){"use strict";t.r(n);var i=t(1055),r=t(1057);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(1059);var u,c=t(46),d=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],u);d.options.__file="uni_modules/uni-media-library/components/media-filter/index.vue",n["default"]=d.exports},1055:function(e,n,t){"use strict";t.r(n);var i=t(1056);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},1056:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return i}));try{i={uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,521))},uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,543))},uniPopup:function(){return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null,567))},uniPopupDialog:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog")]).then(t.bind(null,574))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];r._withStripped=!0},1057:function(e,n,t){"use strict";t.r(n);var i=t(1058),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},1058:function(e,n,t){"use strict";(function(e,i){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(28)),u=r(t(31)),c={name:"media-filter",emits:["onUploadMedia","onSearch","onCancelSelect","onDeleteSelect"],props:{selectMediaItems:{type:Array,default:function(){return[]}}},computed:{isSelected:function(){return this.selectMediaItems.length>0},selectedCount:function(){return this.selectMediaItems.length}},data:function(){return{mediaGroup:"",keyword:"",lastKeyword:"",deleteOriFileChecked:!0}},methods:{deleteOriFile:function(){this.deleteOriFileChecked=!this.deleteOriFileChecked},close:function(){this.$refs.popup.close(),this.deleteOriFileChecked=!0},search:function(){this.keyword!==this.lastKeyword&&(this.$emit("onSearch",{mediaGroup:this.mediaGroup,keyword:this.keyword}),this.lastKeyword=this.keyword)},deleteMedia:function(){this.$refs.popup.open()},confirm:function(){var n=this;return(0,u.default)(o.default.mark((function t(){var r,u;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(n.selectedCount>50)){t.next=3;break}return e.showToast({title:"每次最多删除50项媒体资源",icon:"none"}),t.abrupt("return");case 3:return r=i.importObject("uni-media-library-co",{loadingOptions:{title:"正在删除",mask:!0}}),u=n.selectMediaItems.map((function(e){return e._id})),t.next=7,r.deleteMedia({mediaIds:u,deleteOriginalFile:n.deleteOriFileChecked});case 7:n.$emit("onDeleteSelect",u),n.deleteOriFileChecked=!0;case 9:case"end":return t.stop()}}),t)})))()}}};n.default=c}).call(this,t(2)["default"],t(27)["uniCloud"])},1059:function(e,n,t){"use strict";t.r(n);var i=t(1060),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},1060:function(e,n,t){}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/media-filter/index"],{1229:function(e,n,t){"use strict";t.r(n);var i=t(1230),r=t(1232);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);t(1234);var u,c=t(46),d=Object(c["default"])(r["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],u);d.options.__file="uni_modules/uni-media-library/components/media-filter/index.vue",n["default"]=d.exports},1230:function(e,n,t){"use strict";t.r(n);var i=t(1231);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},1231:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return i}));try{i={uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,578))},uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,947))},uniPopup:function(){return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null,593))},uniPopupDialog:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog")]).then(t.bind(null,600))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];r._withStripped=!0},1232:function(e,n,t){"use strict";t.r(n);var i=t(1233),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},1233:function(e,n,t){"use strict";(function(e,i){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(28)),u=r(t(31)),c={name:"media-filter",emits:["onUploadMedia","onSearch","onCancelSelect","onDeleteSelect"],props:{selectMediaItems:{type:Array,default:function(){return[]}}},computed:{isSelected:function(){return this.selectMediaItems.length>0},selectedCount:function(){return this.selectMediaItems.length}},data:function(){return{mediaGroup:"",keyword:"",lastKeyword:"",deleteOriFileChecked:!0}},methods:{deleteOriFile:function(){this.deleteOriFileChecked=!this.deleteOriFileChecked},close:function(){this.$refs.popup.close(),this.deleteOriFileChecked=!0},search:function(){this.keyword!==this.lastKeyword&&(this.$emit("onSearch",{mediaGroup:this.mediaGroup,keyword:this.keyword}),this.lastKeyword=this.keyword)},deleteMedia:function(){this.$refs.popup.open()},confirm:function(){var n=this;return(0,u.default)(o.default.mark((function t(){var r,u;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!(n.selectedCount>50)){t.next=3;break}return e.showToast({title:"每次最多删除50项媒体资源",icon:"none"}),t.abrupt("return");case 3:return r=i.importObject("uni-media-library-co",{loadingOptions:{title:"正在删除",mask:!0}}),u=n.selectMediaItems.map((function(e){return e._id})),t.next=7,r.deleteMedia({mediaIds:u,deleteOriginalFile:n.deleteOriFileChecked});case 7:n.$emit("onDeleteSelect",u),n.deleteOriFileChecked=!0;case 9:case"end":return t.stop()}}),t)})))()}}};n.default=c}).call(this,t(2)["default"],t(27)["uniCloud"])},1234:function(e,n,t){"use strict";t.r(n);var i=t(1235),r=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);n["default"]=r.a},1235:function(e,n,t){}}]);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-media-library/components/media-filter/index.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uni_modules/uni-media-library/components/media-filter/index-create-component',
|
||||
{
|
||||
'uni_modules/uni-media-library/components/media-filter/index-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1054))
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1229))
|
||||
})
|
||||
},
|
||||
[['uni_modules/uni-media-library/components/media-filter/index-create-component']]
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/media-info/index"],{1046:function(e,n,t){"use strict";t.r(n);var r=t(1047),i=t(1049);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t(1052);var u,c=t(46),a=Object(c["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);a.options.__file="uni_modules/uni-media-library/components/media-info/index.vue",n["default"]=a.exports},1047:function(e,n,t){"use strict";t.r(n);var r=t(1048);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},1048:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return r}));try{r={uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,521))},uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,543))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.showMediaInfoPanel?/^cloud:\/\//.test(e.currentMedia._src):null);e.$mp.data=Object.assign({},{$root:{g0:t}})},o=!1,u=[];i._withStripped=!0},1049:function(e,n,t){"use strict";t.r(n);var r=t(1050),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},1050:function(e,n,t){"use strict";(function(e,r){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(t(11)),u=t(1051),c={name:"media-info",props:{currentMedia:{type:Object,default:function(){}}},data:function(){return{mediaInfo:{height:200}}},computed:{showMediaInfoPanel:function(){return this.currentMedia&&this.currentMedia._id},fileSize:function(){var e=this.currentMedia.size;return e?e<1024?e+" B":e<1048576?(e/1024).toFixed(2)+" KB":e<1073741824?(e/1024/1024).toFixed(2)+" MB":(e/1024/1024/1024).toFixed(2)+" GB":"0.00 MB"},fileType:function(){return this.currentMedia.fileType?this.currentMedia.fileType.toUpperCase():"-"},resolution:function(){var e={width:0,height:0};return this.currentMedia.resolution&&(e.width=this.currentMedia.resolution.width||0,e.height=this.currentMedia.resolution.height||0),e},mediaDuration:function(){if(this.currentMedia.duration){var e=this.currentMedia.duration,n=Math.floor(e/3600),t=Math.floor((e-3600*n)/60),r=Math.floor(e-3600*n-60*t);return"".concat(n,":").concat(t,":").concat(r)}return"-"},createDate:function(){if(!this.currentMedia.createDate)return"-";var e=new Date(this.currentMedia.createDate),n=e.getFullYear(),t=e.getMonth()+1,r=e.getDate(),i=e.getHours(),o=e.getMinutes(),u=e.getSeconds();return"".concat(n,"年").concat(t,"月").concat(r,"日 ").concat(i,":").concat(o,":").concat(u)},coverImage:function(){var e;return(0,u.generateCoverURL)(this.currentMedia.cover,null===(e=this.currentMedia.thumbRules)||void 0===e?void 0:e.detailCover)}},methods:{previewImage:function(){e.previewImage({current:this.currentMedia.src,urls:[this.currentMedia.src]})},onFiledChange:function(n){var t=r.database();t.collection("uni-media-library").doc(this.currentMedia._id).update((0,o.default)({},n,this.currentMedia[n]||"")).catch((function(n){console.log(n),e.showToast({title:"更新失败",icon:"none"})}))}}};n.default=c}).call(this,t(2)["default"],t(27)["uniCloud"])},1052:function(e,n,t){"use strict";t.r(n);var r=t(1053),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},1053:function(e,n,t){}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/media-info/index"],{1221:function(e,n,t){"use strict";t.r(n);var r=t(1222),i=t(1224);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t(1227);var u,c=t(46),a=Object(c["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);a.options.__file="uni_modules/uni-media-library/components/media-info/index.vue",n["default"]=a.exports},1222:function(e,n,t){"use strict";t.r(n);var r=t(1223);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},1223:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return i})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),t.d(n,"components",(function(){return r}));try{r={uniIcons:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(t.bind(null,578))},uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,947))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,n=e.$createElement,t=(e._self._c,e.showMediaInfoPanel?/^cloud:\/\//.test(e.currentMedia._src):null);e.$mp.data=Object.assign({},{$root:{g0:t}})},o=!1,u=[];i._withStripped=!0},1224:function(e,n,t){"use strict";t.r(n);var r=t(1225),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},1225:function(e,n,t){"use strict";(function(e,r){var i=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=i(t(11)),u=t(1226),c={name:"media-info",props:{currentMedia:{type:Object,default:function(){}}},data:function(){return{mediaInfo:{height:200}}},computed:{showMediaInfoPanel:function(){return this.currentMedia&&this.currentMedia._id},fileSize:function(){var e=this.currentMedia.size;return e?e<1024?e+" B":e<1048576?(e/1024).toFixed(2)+" KB":e<1073741824?(e/1024/1024).toFixed(2)+" MB":(e/1024/1024/1024).toFixed(2)+" GB":"0.00 MB"},fileType:function(){return this.currentMedia.fileType?this.currentMedia.fileType.toUpperCase():"-"},resolution:function(){var e={width:0,height:0};return this.currentMedia.resolution&&(e.width=this.currentMedia.resolution.width||0,e.height=this.currentMedia.resolution.height||0),e},mediaDuration:function(){if(this.currentMedia.duration){var e=this.currentMedia.duration,n=Math.floor(e/3600),t=Math.floor((e-3600*n)/60),r=Math.floor(e-3600*n-60*t);return"".concat(n,":").concat(t,":").concat(r)}return"-"},createDate:function(){if(!this.currentMedia.createDate)return"-";var e=new Date(this.currentMedia.createDate),n=e.getFullYear(),t=e.getMonth()+1,r=e.getDate(),i=e.getHours(),o=e.getMinutes(),u=e.getSeconds();return"".concat(n,"年").concat(t,"月").concat(r,"日 ").concat(i,":").concat(o,":").concat(u)},coverImage:function(){var e;return(0,u.generateCoverURL)(this.currentMedia.cover,null===(e=this.currentMedia.thumbRules)||void 0===e?void 0:e.detailCover)}},methods:{previewImage:function(){e.previewImage({current:this.currentMedia.src,urls:[this.currentMedia.src]})},onFiledChange:function(n){var t=r.database();t.collection("uni-media-library").doc(this.currentMedia._id).update((0,o.default)({},n,this.currentMedia[n]||"")).catch((function(n){console.log(n),e.showToast({title:"更新失败",icon:"none"})}))}}};n.default=c}).call(this,t(2)["default"],t(27)["uniCloud"])},1227:function(e,n,t){"use strict";t.r(n);var r=t(1228),i=t.n(r);for(var o in r)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},1228:function(e,n,t){}}]);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-media-library/components/media-info/index.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uni_modules/uni-media-library/components/media-info/index-create-component',
|
||||
{
|
||||
'uni_modules/uni-media-library/components/media-info/index-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1046))
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1221))
|
||||
})
|
||||
},
|
||||
[['uni_modules/uni-media-library/components/media-info/index-create-component']]
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+2
-2
File diff suppressed because one or more lines are too long
+2
-2
@@ -1,10 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/uni-media-library/free-media-button"],{942:function(n,e,r){"use strict";r.r(e);var t=r(943),i=r(945);for(var o in i)["default"].indexOf(o)<0&&function(n){r.d(e,n,(function(){return i[n]}))}(o);r(947);var u,a=r(46),d=Object(a["default"])(i["default"],t["render"],t["staticRenderFns"],!1,null,"a7b0c870",null,!1,t["components"],u);d.options.__file="uni_modules/uni-media-library/components/uni-media-library/free-media-button.vue",e["default"]=d.exports},943:function(n,e,r){"use strict";r.r(e);var t=r(944);r.d(e,"render",(function(){return t["render"]})),r.d(e,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(e,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(e,"components",(function(){return t["components"]}))},944:function(n,e,r){"use strict";var t;r.r(e),r.d(e,"render",(function(){return i})),r.d(e,"staticRenderFns",(function(){return u})),r.d(e,"recyclableRender",(function(){return o})),r.d(e,"components",(function(){return t}));var i=function(){var n=this,e=n.$createElement;n._self._c;n._isMounted||(n.e0=function(e){n.showMenu=!n.showMenu},n.e1=function(e){n.showMenu=!1})},o=!1,u=[];i._withStripped=!0},945:function(n,e,r){"use strict";r.r(e);var t=r(946),i=r.n(t);for(var o in t)["default"].indexOf(o)<0&&function(n){r.d(e,n,(function(){return t[n]}))}(o);e["default"]=i.a},946:function(n,e,r){"use strict";(function(n){var t=r(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(r(28)),o=t(r(18)),u=t(r(31)),a=function(){r.e("uni_modules/uni-media-library/components/image-library-logos/index").then(function(){return resolve(r(1068))}.bind(null,r)).catch(r.oe)},d={name:"free-media-button",emits:["onChange","onLoad"],components:{ImageLibraryLogos:a},props:{provider:{type:String,default:function(){return"internal"}}},data:function(){return{providers:[{provider:"internal",name:"内置媒体库"}],showMenu:!1}},mounted:function(){this.loadFreeImageLibraryProviders()},methods:{onChange:function(n){this.showMenu=!1,this.$emit("onChange",n)},loadFreeImageLibraryProviders:function(){var e=this;return(0,u.default)(i.default.mark((function r(){var t,u;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t=n.importObject("uni-media-library-co",{customUI:!0}),r.next=3,t.getImageLibraryProviders();case 3:u=r.sent,e.providers=[].concat((0,o.default)(e.providers),(0,o.default)(u.data)),e.$emit("onLoad",e.providers);case 6:case"end":return r.stop()}}),r)})))()}}};e.default=d}).call(this,r(27)["uniCloud"])},947:function(n,e,r){"use strict";r.r(e);var t=r(948),i=r.n(t);for(var o in t)["default"].indexOf(o)<0&&function(n){r.d(e,n,(function(){return t[n]}))}(o);e["default"]=i.a},948:function(n,e,r){}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/uni-media-library/free-media-button"],{1085:function(n,e,r){"use strict";r.r(e);var t=r(1086),i=r(1088);for(var o in i)["default"].indexOf(o)<0&&function(n){r.d(e,n,(function(){return i[n]}))}(o);r(1090);var u,a=r(46),d=Object(a["default"])(i["default"],t["render"],t["staticRenderFns"],!1,null,"a7b0c870",null,!1,t["components"],u);d.options.__file="uni_modules/uni-media-library/components/uni-media-library/free-media-button.vue",e["default"]=d.exports},1086:function(n,e,r){"use strict";r.r(e);var t=r(1087);r.d(e,"render",(function(){return t["render"]})),r.d(e,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(e,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(e,"components",(function(){return t["components"]}))},1087:function(n,e,r){"use strict";var t;r.r(e),r.d(e,"render",(function(){return i})),r.d(e,"staticRenderFns",(function(){return u})),r.d(e,"recyclableRender",(function(){return o})),r.d(e,"components",(function(){return t}));var i=function(){var n=this,e=n.$createElement;n._self._c;n._isMounted||(n.e0=function(e){n.showMenu=!n.showMenu},n.e1=function(e){n.showMenu=!1})},o=!1,u=[];i._withStripped=!0},1088:function(n,e,r){"use strict";r.r(e);var t=r(1089),i=r.n(t);for(var o in t)["default"].indexOf(o)<0&&function(n){r.d(e,n,(function(){return t[n]}))}(o);e["default"]=i.a},1089:function(n,e,r){"use strict";(function(n){var t=r(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=t(r(28)),o=t(r(18)),u=t(r(31)),a=function(){r.e("uni_modules/uni-media-library/components/image-library-logos/index").then(function(){return resolve(r(1243))}.bind(null,r)).catch(r.oe)},d={name:"free-media-button",emits:["onChange","onLoad"],components:{ImageLibraryLogos:a},props:{provider:{type:String,default:function(){return"internal"}}},data:function(){return{providers:[{provider:"internal",name:"内置媒体库"}],showMenu:!1}},mounted:function(){this.loadFreeImageLibraryProviders()},methods:{onChange:function(n){this.showMenu=!1,this.$emit("onChange",n)},loadFreeImageLibraryProviders:function(){var e=this;return(0,u.default)(i.default.mark((function r(){var t,u;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t=n.importObject("uni-media-library-co",{customUI:!0}),r.next=3,t.getImageLibraryProviders();case 3:u=r.sent,e.providers=[].concat((0,o.default)(e.providers),(0,o.default)(u.data)),e.$emit("onLoad",e.providers);case 6:case"end":return r.stop()}}),r)})))()}}};e.default=d}).call(this,r(27)["uniCloud"])},1090:function(n,e,r){"use strict";r.r(e);var t=r(1091),i=r.n(t);for(var o in t)["default"].indexOf(o)<0&&function(n){r.d(e,n,(function(){return t[n]}))}(o);e["default"]=i.a},1091:function(n,e,r){}}]);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-media-library/components/uni-media-library/free-media-button.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uni_modules/uni-media-library/components/uni-media-library/free-media-button-create-component',
|
||||
{
|
||||
'uni_modules/uni-media-library/components/uni-media-library/free-media-button-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(942))
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1085))
|
||||
})
|
||||
},
|
||||
[['uni_modules/uni-media-library/components/uni-media-library/free-media-button-create-component']]
|
||||
|
||||
+2
-2
@@ -1,10 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/uni-media-library/uni-media-library"],{605:function(e,n,r){"use strict";r.r(n);var t=r(606),i=r(608);for(var u in i)["default"].indexOf(u)<0&&function(e){r.d(n,e,(function(){return i[e]}))}(u);r(610);var a,o=r(46),d=Object(o["default"])(i["default"],t["render"],t["staticRenderFns"],!1,null,null,null,!1,t["components"],a);d.options.__file="uni_modules/uni-media-library/components/uni-media-library/uni-media-library.vue",n["default"]=d.exports},606:function(e,n,r){"use strict";r.r(n);var t=r(607);r.d(n,"render",(function(){return t["render"]})),r.d(n,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(n,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(n,"components",(function(){return t["components"]}))},607:function(e,n,r){"use strict";var t;r.r(n),r.d(n,"render",(function(){return i})),r.d(n,"staticRenderFns",(function(){return a})),r.d(n,"recyclableRender",(function(){return u})),r.d(n,"components",(function(){return t}));var i=function(){var e=this,n=e.$createElement;e._self._c},u=!1,a=[];i._withStripped=!0},608:function(e,n,r){"use strict";r.r(n);var t=r(609),i=r.n(t);for(var u in t)["default"].indexOf(u)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(u);n["default"]=i.a},609:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=function(){Promise.all([r.e("common/vendor"),r.e("uni_modules/uni-media-library/components/media-panel/index")]).then(function(){return resolve(r(918))}.bind(null,r)).catch(r.oe)},i=function(){r.e("uni_modules/uni-media-library/components/image-library-panel/index").then(function(){return resolve(r(935))}.bind(null,r)).catch(r.oe)},u=function(){r.e("uni_modules/uni-media-library/components/uni-media-library/free-media-button").then(function(){return resolve(r(942))}.bind(null,r)).catch(r.oe)},a=[{key:"all",label:"全部"},{key:"image",label:"图片"},{key:"video",label:"视频"}],o={name:"uni-media-library",emits:["onInsert"],props:{mode:{type:String,default:function(){return"manager"}},mediaTabs:{type:Array,default:function(){return[]}},selectedCount:{type:Number,default:function(){return 0}}},components:{MediaPanel:t,ImageLibraryPanel:i,FreeMediaButton:u},data:function(){return{currentProvider:"internal",currentTab:"",providers:[]}},computed:{tabs:function(){var e=this;return this.mediaTabs.length>0?a.filter((function(n){return e.mediaTabs.includes(n.key)})):a},isInternalProvider:function(){return"internal"===this.currentProvider},providerWebsite:function(){var e=this,n=this.providers.find((function(n){return n.provider===e.currentProvider}));return n?n.website:""},providerName:function(){var e=this,n=this.providers.find((function(n){return n.provider===e.currentProvider}));return n?n.name:""}},created:function(){this.currentTab=this.tabs[0].key},methods:{switchTab:function(e){this.currentTab=e},insertMedia:function(){var e=this.$refs[this.currentTab];if(e){var n=e.getSelectedMediaItems();if(!(n.length<=0)){var r=n.reduce((function(e,n){return e.push({src:n._src,cover:n._cover,type:n.type,alt:n.alt,size:n.size,duration:n.duration}),e}),[]);this.$emit("onInsert",r)}}},onFreeMediaProviderChange:function(e){this.currentProvider=e},onFreeMediaProviderLoad:function(e){this.providers=e},onCopyToMediaLibrary:function(e){var n=this,r=this.currentProvider;this.currentProvider="internal",this.currentTab="all",this.$nextTick((function(){n.$refs.all.imageLibraryUploadMediaLibrary(e,r)}))}}};n.default=o},610:function(e,n,r){"use strict";r.r(n);var t=r(611),i=r.n(t);for(var u in t)["default"].indexOf(u)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(u);n["default"]=i.a},611:function(e,n,r){}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/uni-media-library/uni-media-library"],{631:function(e,n,r){"use strict";r.r(n);var t=r(632),i=r(634);for(var u in i)["default"].indexOf(u)<0&&function(e){r.d(n,e,(function(){return i[e]}))}(u);r(636);var a,o=r(46),d=Object(o["default"])(i["default"],t["render"],t["staticRenderFns"],!1,null,null,null,!1,t["components"],a);d.options.__file="uni_modules/uni-media-library/components/uni-media-library/uni-media-library.vue",n["default"]=d.exports},632:function(e,n,r){"use strict";r.r(n);var t=r(633);r.d(n,"render",(function(){return t["render"]})),r.d(n,"staticRenderFns",(function(){return t["staticRenderFns"]})),r.d(n,"recyclableRender",(function(){return t["recyclableRender"]})),r.d(n,"components",(function(){return t["components"]}))},633:function(e,n,r){"use strict";var t;r.r(n),r.d(n,"render",(function(){return i})),r.d(n,"staticRenderFns",(function(){return a})),r.d(n,"recyclableRender",(function(){return u})),r.d(n,"components",(function(){return t}));var i=function(){var e=this,n=e.$createElement;e._self._c},u=!1,a=[];i._withStripped=!0},634:function(e,n,r){"use strict";r.r(n);var t=r(635),i=r.n(t);for(var u in t)["default"].indexOf(u)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(u);n["default"]=i.a},635:function(e,n,r){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t=function(){Promise.all([r.e("common/vendor"),r.e("uni_modules/uni-media-library/components/media-panel/index")]).then(function(){return resolve(r(1061))}.bind(null,r)).catch(r.oe)},i=function(){r.e("uni_modules/uni-media-library/components/image-library-panel/index").then(function(){return resolve(r(1078))}.bind(null,r)).catch(r.oe)},u=function(){r.e("uni_modules/uni-media-library/components/uni-media-library/free-media-button").then(function(){return resolve(r(1085))}.bind(null,r)).catch(r.oe)},a=[{key:"all",label:"全部"},{key:"image",label:"图片"},{key:"video",label:"视频"}],o={name:"uni-media-library",emits:["onInsert"],props:{mode:{type:String,default:function(){return"manager"}},mediaTabs:{type:Array,default:function(){return[]}},selectedCount:{type:Number,default:function(){return 0}}},components:{MediaPanel:t,ImageLibraryPanel:i,FreeMediaButton:u},data:function(){return{currentProvider:"internal",currentTab:"",providers:[]}},computed:{tabs:function(){var e=this;return this.mediaTabs.length>0?a.filter((function(n){return e.mediaTabs.includes(n.key)})):a},isInternalProvider:function(){return"internal"===this.currentProvider},providerWebsite:function(){var e=this,n=this.providers.find((function(n){return n.provider===e.currentProvider}));return n?n.website:""},providerName:function(){var e=this,n=this.providers.find((function(n){return n.provider===e.currentProvider}));return n?n.name:""}},created:function(){this.currentTab=this.tabs[0].key},methods:{switchTab:function(e){this.currentTab=e},insertMedia:function(){var e=this.$refs[this.currentTab];if(e){var n=e.getSelectedMediaItems();if(!(n.length<=0)){var r=n.reduce((function(e,n){return e.push({src:n._src,cover:n._cover,type:n.type,alt:n.alt,size:n.size,duration:n.duration}),e}),[]);this.$emit("onInsert",r)}}},onFreeMediaProviderChange:function(e){this.currentProvider=e},onFreeMediaProviderLoad:function(e){this.providers=e},onCopyToMediaLibrary:function(e){var n=this,r=this.currentProvider;this.currentProvider="internal",this.currentTab="all",this.$nextTick((function(){n.$refs.all.imageLibraryUploadMediaLibrary(e,r)}))}}};n.default=o},636:function(e,n,r){"use strict";r.r(n);var t=r(637),i=r.n(t);for(var u in t)["default"].indexOf(u)<0&&function(e){r.d(n,e,(function(){return t[e]}))}(u);n["default"]=i.a},637:function(e,n,r){}}]);
|
||||
//# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uni_modules/uni-media-library/components/uni-media-library/uni-media-library.js.map
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'uni_modules/uni-media-library/components/uni-media-library/uni-media-library-create-component',
|
||||
{
|
||||
'uni_modules/uni-media-library/components/uni-media-library/uni-media-library-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(605))
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(631))
|
||||
})
|
||||
},
|
||||
[['uni_modules/uni-media-library/components/uni-media-library/uni-media-library-create-component']]
|
||||
|
||||
Reference in New Issue
Block a user