Initial commit to Gitea
This commit is contained in:
+2
-2
@@ -1,10 +1,10 @@
|
||||
(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){}}]);
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/uni-media-library/components/media-info/index"],{1228:function(e,n,t){"use strict";t.r(n);var r=t(1229),i=t(1231);for(var o in i)["default"].indexOf(o)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t(1234);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},1229:function(e,n,t){"use strict";t.r(n);var r=t(1230);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"]}))},1230: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,676))},uniEasyinput:function(){return t.e("uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput").then(t.bind(null,887))}}}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},1231:function(e,n,t){"use strict";t.r(n);var r=t(1232),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},1232: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(1233),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"])},1234:function(e,n,t){"use strict";t.r(n);var r=t(1235),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},1235: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__(1221))
|
||||
__webpack_require__('2')['createComponent'](__webpack_require__(1228))
|
||||
})
|
||||
},
|
||||
[['uni_modules/uni-media-library/components/media-info/index-create-component']]
|
||||
|
||||
Vendored
+38
-3
@@ -14,6 +14,13 @@
|
||||
/* 颜色变量 */
|
||||
/* uni.scss */
|
||||
.u-line-1 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -22,6 +29,13 @@
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
.u-line-2 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -30,6 +44,13 @@
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
.u-line-3 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -38,6 +59,13 @@
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
.u-line-4 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -46,6 +74,13 @@
|
||||
-webkit-box-orient: vertical !important;
|
||||
}
|
||||
.u-line-5 {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
display: -webkit-box !important;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -88,6 +123,7 @@
|
||||
.u-reset-button {
|
||||
padding: 0;
|
||||
background-color: transparent;
|
||||
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
@@ -290,7 +326,7 @@
|
||||
gap: 10px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity .3s;
|
||||
transition: opacity 0.3s;
|
||||
}
|
||||
.preview .ops .op {
|
||||
cursor: pointer;
|
||||
@@ -302,7 +338,7 @@
|
||||
align-items: center;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 6px rgba(0, 0, 0, 0.06);
|
||||
transition: background-color .3s;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
.preview .ops .op:hover {
|
||||
background: #eee;
|
||||
@@ -349,4 +385,3 @@
|
||||
width: 280px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user