parse.js 2.9 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/basic-component/app-rich/parse"],{"328d":function(t,e,n){"use strict";n.r(e);var i=n("ce00"),a=n.n(i);for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},bc5c:function(t,e,n){"use strict";var i,a=function(){var t=this,e=t.$createElement;t._self._c},o=[];n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}))},ce00:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("317c"));function a(t){return t&&t.__esModule?t:{default:t}}var o=function(){n.e("components/basic-component/app-rich/components/wxParseTemplate0").then(function(){return resolve(n("fe1f"))}.bind(null,n)).catch(n.oe)},r={name:"wxParse",props:{userSelect:{type:String,default:"text"},imgOptions:{type:[Object,Boolean],default:function(){return{loop:!1,indicator:"number",longPressActions:!1}}},loading:{type:Boolean,default:!1},className:{type:String,default:""},content:{type:String,default:""},noData:{type:String,default:""},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:o},data:function(){return{nodes:{},imageUrls:[],wxParseWidth:{value:0}}},mounted:function(){this.setHtml()},methods:{setHtml:function(){var t=this.content,e=this.noData,n=this.imageProp,a=this.startHandler,o=this.endHandler,r=this.charsHandler,s=t||e,l={start:a,end:o,chars:r},c=(0,i.default)(s,l,n,this);this.imageUrls=c.imageUrls,this.nodes=c.nodes},navigate:function(t,e,n){this.$emit("navigate",t,e)},preview:function(e,n){this.imageUrls.length&&"boolean"!==typeof this.imgOptions&&t.previewImage({current:e,urls:this.imageUrls,loop:this.imgOptions.loop,indicator:this.imgOptions.indicator,longPressActions:this.imgOptions.longPressActions}),this.$emit("preview",e,n)},removeImageUrl:function(t){var e=this.imageUrls;e.splice(e.indexOf(t),1)}},watch:{content:function(){this.setHtml()}}};e.default=r}).call(this,n("543d")["default"])},ee52:function(t,e,n){"use strict";n.r(e);var i=n("bc5c"),a=n("328d");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var r,s=n("f0c5"),l=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],r);e["default"]=l.exports}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'components/basic-component/app-rich/parse-create-component',
  4. {
  5. 'components/basic-component/app-rich/parse-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("ee52"))
  7. })
  8. },
  9. [['components/basic-component/app-rich/parse-create-component']]
  10. ]);