yunshangxie/unpackage/dist/build/mp-weixin/tuniao-ui/components/tn-image-upload-drag/tn-image-upload-drag.js

11 lines
15 KiB
JavaScript
Raw Normal View History

2024-04-20 14:58:10 +08:00
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["tuniao-ui/components/tn-image-upload-drag/tn-image-upload-drag"],{1096:function(t,e,i){"use strict";i.r(e);var n=i("50b5"),a=i("2b66");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("db84");var o=i("f0c5"),r=Object(o["a"])(a["default"],n["b"],n["c"],!1,null,"cb88d066",null,!1,n["a"],void 0);e["default"]=r.exports},"2b66":function(t,e,i){"use strict";i.r(e);var n=i("79ab"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},"337c":function(t,e,i){},"50b5":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={tnLineProgress:function(){return i.e("tuniao-ui/components/tn-line-progress/tn-line-progress").then(i.bind(null,"d277"))}},a=function(){var t=this,e=t.$createElement,i=(t._self._c,t.disabled?null:t.__map(t.lists,(function(e,i){var n=t.__get_orig(e),a=t.$tn.string.getLengthUnitValue(t.width),s=t.$tn.string.getLengthUnitValue(t.height),o=t.$tn.string.getLengthUnitValue(t.itemWidth,"px"),r=t.$tn.string.getLengthUnitValue(t.itemHeight,"px");return{$orig:n,g0:a,g1:s,g2:o,g3:r}}))),n=t.disabled?null:t.lists.length,a=!t.disabled&&t.maxCount>n?t.$tn.string.getLengthUnitValue(t.itemWidth,"px"):null,s=!t.disabled&&t.maxCount>n?t.$tn.string.getLengthUnitValue(t.itemHeight,"px"):null,o=!t.disabled&&t.maxCount>n?t.$tn.string.getLengthUnitValue(t.itemWidth,"px"):null,r=!t.disabled&&t.maxCount>n?t.$tn.string.getLengthUnitValue(t.itemHeight,"px"):null;t.$mp.data=Object.assign({},{$root:{l0:i,g4:n,g5:a,g6:s,g7:o,g8:r}})},s=[]},"79ab":function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2eee")),s=n(i("9523")),o=n(i("c973"));function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function u(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){(0,s.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function l(t,e){var i="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(!t)return;if("string"===typeof t)return d(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);"Object"===i&&t.constructor&&(i=t.constructor.name);if("Map"===i||"Set"===i)return Array.from(t);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return d(t,e)}(t))||e&&t&&"number"===typeof t.length){i&&(t=i);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,r=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return o=t.done,t},e:function(t){r=!0,s=t},f:function(){try{o||null==i.return||i.return()}finally{if(r)throw s}}}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var h={name:"tn-image-upload-drag",props:{fileList:{type:Array,default:function(){return[]}},action:{type:String,default:""},name:{type:String,default:"file"},header:{type:Object,default:function(){return{}}},formData:{type:Object,default:function(){return{}}},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},maxCount:{type:Number,default:9},imageMode:{type:String,default:"aspectFill"},previewFullImage:{type:Boolean,default:!0},showProgress:{type:Boolean,default:!0},deleteable:{type:Boolean,default:!0},deleteIcon:{type:String,default:"close"},deleteBackgroun
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'tuniao-ui/components/tn-image-upload-drag/tn-image-upload-drag-create-component',
{
'tuniao-ui/components/tn-image-upload-drag/tn-image-upload-drag-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("1096"))
})
},
[['tuniao-ui/components/tn-image-upload-drag/tn-image-upload-drag-create-component']]
]);