|
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/u-parse/u-parse"],{"59d6":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=r(n("1bff"));function r(t){return t&&t.__esModule?t:{default:t}}var u=function(){n.e("components/u-parse/components/wxParseTemplate0").then(function(){return resolve(n("bb72"))}.bind(null,n)).catch(n.oe)},i={name:"wxParse",props:{loading:{type:Boolean,default:!1},className:{type:String,default:""},content:{type:String,default:""},noData:{type:String,default:'<div style="color: red;">数据不能为空</div>'},startHandler:{type:Function,default:function(){return function(t){t.attr.class=null,t.attr.style=null}}},endHandler:{type:Function,default:null},charsHandler:{type:Function,default:null},imageProp:{type:Object,default:function(){return{mode:"aspectFit",padding:0,lazyLoad:!1,domain:""}}}},components:{wxParseTemplate:u},data:function(){return{imageUrls:[]}},computed:{nodes:function(){var t=this.content,e=this.noData,n=this.imageProp,r=this.startHandler,u=this.endHandler,i=this.charsHandler,l=t||e,o={start:r,end:u,chars:i},s=(0,a.default)(l,o,n,this);return this.imageUrls=s.imageUrls,console.log(s),s.nodes}},methods:{navigate:function(t,e){this.$emit("navigate",t,e)},preview:function(t,e){this.imageUrls.length&&(wx.previewImage({current:t,urls:this.imageUrls}),this.$emit("preview",t,e))},removeImageUrl:function(t){var e=this.imageUrls;e.splice(e.indexOf(t),1)}}};e.default=i},"61df":function(t,e,n){"use strict";n.r(e);var a=n("b6f2"),r=n("b5bc");for(var u in r)"default"!==u&&function(t){n.d(e,t,(function(){return r[t]}))}(u);var i,l=n("f0c5"),o=Object(l["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=o.exports},b5bc:function(t,e,n){"use strict";n.r(e);var a=n("59d6"),r=n.n(a);for(var u in a)"default"!==u&&function(t){n.d(e,t,(function(){return a[t]}))}(u);e["default"]=r.a},b6f2:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return a}));var r=function(){var t=this,e=t.$createElement;t._self._c},u=[]}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'components/u-parse/u-parse-create-component', { 'components/u-parse/u-parse-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("61df")) }) }, [['components/u-parse/u-parse-create-component']] ]);
|