您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

12 行
4.9 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-parse/libs/trees"],{755:function(t,e,r){"use strict";r.r(e);var n=r(756),i=r(758);for(var s in i)"default"!==s&&function(t){r.d(e,t,(function(){return i[t]}))}(s);r(760);var o,a=r(17),u=r(762),c=Object(a["default"])(i["default"],n["render"],n["staticRenderFns"],!1,null,null,null,!1,n["components"],o);"function"===typeof u["default"]&&Object(u["default"])(c),c.options.__file="uview-ui/components/u-parse/libs/trees.vue",e["default"]=c.exports},756:function(t,e,r){"use strict";r.r(e);var n=r(757);r.d(e,"render",(function(){return n["render"]})),r.d(e,"staticRenderFns",(function(){return n["staticRenderFns"]})),r.d(e,"recyclableRender",(function(){return n["recyclableRender"]})),r.d(e,"components",(function(){return n["components"]}))},757:function(t,e,r){"use strict";var n;r.r(e),r.d(e,"render",(function(){return i})),r.d(e,"staticRenderFns",(function(){return o})),r.d(e,"recyclableRender",(function(){return s})),r.d(e,"components",(function(){return n}));var i=function(){var t=this,e=t.$createElement;t._self._c},s=!1,o=[];i._withStripped=!0},758:function(t,e,r){"use strict";r.r(e);var n=r(759),i=r.n(n);for(var s in n)"default"!==s&&function(t){r.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},759:function(t,e,r){"use strict";(function(t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t.Parser={};var i=function(){Promise.resolve().then(function(){return resolve(r(755))}.bind(null,r)).catch(r.oe)},s=r(575).errorImg,o={components:{trees:i},name:"trees",data:function(){return{controls:[],placeholder:'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="225"/>',errorImg:s,loadVideo:"undefined"==typeof plus,c:"",s:""}},props:{nodes:Array,lazyLoad:Boolean,loading:String},mounted:function(){for(this.top=this.$parent;"parser"!=this.top.$options.name;this.top=this.top.$parent);this.init()},methods:{init:function(){for(var t,e=this.nodes.length;t=this.nodes[--e];)if("img"==t.name)this.top.imgList.setItem(t.attrs.i,t.attrs.src);else if("video"==t.name||"audio"==t.name){var r;"video"==t.name?r=n.createVideoContext(t.attrs.id,this):this.$refs[t.attrs.id]&&(r=this.$refs[t.attrs.id][0]),r&&(r.id=t.attrs.id,this.top.videoContexts.push(r))}},play:function(t){var e=this.top.videoContexts;if(e.length>1&&this.top.autopause)for(var r=e.length;r--;)e[r].id!=t.currentTarget.dataset.id&&e[r].pause()},imgtap:function(e){var r=e.currentTarget.dataset.attrs;if(!r.ignore){var i=!0,s={id:e.target.id,src:r.src,ignore:function(){return i=!1}};if(t.Parser.onImgtap&&t.Parser.onImgtap(s),this.top.$emit("imgtap",s),i){var o=this.top.imgList,a=o[r.i]?parseInt(r.i):(o=[r.src],0);n.previewImage({current:a,urls:o})}}},loadImg:function(t){var e=t.currentTarget.dataset.i;this.lazyLoad&&!this.controls[e]?this.$set(this.controls,e,1):this.loading&&2!=this.controls[e]&&this.$set(this.controls,e,2)},linkpress:function(e){var r=!0,i=e.currentTarget.dataset.attrs;if(i.ignore=function(){return r=!1},t.Parser.onLinkpress&&t.Parser.onLinkpress(i),this.top.$emit("linkpress",i),r){if(i["app-id"])return n.navigateToMiniProgram({appId:i["app-id"],path:i.path});i.href&&("#"==i.href[0]?this.top.useAnchor&&this.top.navigateTo({id:i.href.substring(1)}):0==i.href.indexOf("http")||0==i.href.indexOf("//")?n.setClipboardData({data:i.href,success:function(){return n.showToast({title:"链接已复制"})}}):n.navigateTo({url:i.href,fail:function(){n.switchTab({url:i.href})}}))}},error:function(t){var e=t.currentTarget,r=e.dataset.source,n=e.dataset.i;if("video"==r||"audio"==r){var i=this.controls[n]?this.controls[n].i+1:1;i<this.nodes[n].attrs.source.length&&this.$set(this.controls,n,i),t.detail.__args__&&(t.detail=t.detail.__args__[0])}else s&&"img"==r&&(this.top.imgList.setItem(e.dataset.index,s),this.$set(this.controls,n,3));this.top&&this.top.$emit("error",{source:r,target:e,errMsg:t.detail.errMsg})},_loadVideo:function(t){this.$set(this.controls,t.target.dataset.i,0)}}};e.default=o}).call(this,r(2),r(1)["default"])},760:function(t,e,r){"use strict";r.r(e);var n=r(761),i=r.n(n);for(var s in n)"default"!==s&&function(t){r.d(e,t,(function(){return n[t]}))}(s);e["default"]=i.a},761:function(t,e,r){},762:function(t,e,r){"use strict";r.r(e);var n=r(763);e["default"]=n["default"]},763:function(t,e,r){"use strict";r.r(e),e["default"]=function(t){t.options.wxsCallMethods||(t.options.wxsCallMethods=[])}}}]);
  2. //# sourceMappingURL=../../../../../.sourcemap/mp-weixin/uview-ui/components/u-parse/libs/trees.js.map
  3. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  4. 'uview-ui/components/u-parse/libs/trees-create-component',
  5. {
  6. 'uview-ui/components/u-parse/libs/trees-create-component':(function(module, exports, __webpack_require__){
  7. __webpack_require__('1')['createComponent'](__webpack_require__(755))
  8. })
  9. },
  10. [['uview-ui/components/u-parse/libs/trees-create-component']]
  11. ]);