This commit is contained in:
2025-06-13 20:46:10 +08:00
parent e285692d9c
commit 52e34ffd7c
322 changed files with 3383 additions and 6322 deletions
@@ -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']]