You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
4.8 KiB
11 lines
4.8 KiB
8 months ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/jyf-Parser/trees"],{"372d":function(t,r,e){},"3cfa":function(t,r,e){"use strict";e.r(r);var n=e("4422"),o=e("caad");for(var i in o)["default"].indexOf(i)<0&&function(t){e.d(r,t,(function(){return o[t]}))}(i);e("8765");var a=e("828b"),u=e("9b95"),s=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);"function"===typeof u["a"]&&Object(u["a"])(s),r["default"]=s.exports},4422:function(t,r,e){"use strict";e.d(r,"b",(function(){return n})),e.d(r,"c",(function(){return o})),e.d(r,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},o=[]},6019:function(t,r,e){"use strict";(function(t){function n(t,r){var e="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=function(t,r){if(!t)return;if("string"===typeof t)return o(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return o(t,r)}(t))||r&&t&&"number"===typeof t.length){e&&(t=e);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}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 a,u=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==e.return||e.return()}finally{if(s)throw a}}}}function o(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var i={components:{trees:function(){Promise.resolve().then(function(){return resolve(e("3cfa"))}.bind(null,e)).catch(e.oe)}},name:"trees",data:function(){return{controls:{},imgLoad:!0}},props:{nodes:{type:Array,default:[]},imgMode:{type:String,default:"default"}},mounted:function(){this._top=this.$parent;while("parser"!=this._top.$options.name){if(this._top._top){this._top=this._top._top;break}this._top=this._top.$parent}},beforeDestroy:function(){this._observer&&this._observer.disconnect()},methods:{playEvent:function(t){if((this._top.videoContexts||[]).length>1&&this._top.autopause){var r,e=n(this._top.videoContexts);try{for(e.s();!(r=e.n()).done;){var o=r.value;o.id!=t.currentTarget.id&&o.pause()}}catch(i){e.e(i)}finally{e.f()}}},previewEvent:function(r){var e=r.currentTarget.dataset.attrs;if(!e.ignore){var n=!0;if(this._top.$emit("imgtap",{id:r.currentTarget.id,src:e.src,ignore:function(){return n=!1}}),n&&this._top.autopreview){var o=this._top.imgList||[],i=o[e.i]?e.i:(o=[e.src],0);t.previewImage({current:i,urls:o})}}},tapEvent:function(r){var e=!0,n=r.currentTarget.dataset.attrs;if(n.ignore=function(){return e=!1},this._top.$emit("linkpress",n),e){if(n["app-id"]||n.appId)return t.navigateToMiniProgram({appId:n["app-id"]||n.appId,path:n.path||""});n.href&&("#"==n.href[0]?this._top.useAnchor&&this._top.navigateTo({id:n.href.substring(1)}):0==n.href.indexOf("http")||0==n.href.indexOf("//")?this._top.autocopy&&t.setClipboardData({data:n.href,success:function(){t.showToast({title:"链接已复制"})}}):t.navigateTo({url:n.href}))}},triggerError:function(t,r,e,n,o){this._top.$emit("error",{source:t,target:r,errMsg:e,errCode:n,context:o})},loadSource:function(t){var r=(this.controls[t.id]?this.controls[t.id].index:0)+1;return r<t.dataset.source.length&&(this.$set(this.controls[t.id],"index",r),!0)},adError:function(t){this.triggerError("ad",t.currentTarget,"",t.detail.errorCode)},videoError:function(r){!this.loadSource(r.currentTarget)&&this._top&&this.triggerError("video",r.currentTarget,r.detail.errMsg,void 0,t.createVideoContext(r.currentTarget.id,this))},audioError:function(t){this.loadSource(t.currentTarget)||this.triggerError("audio",t.currentTarget,t.detail.errMsg)},_loadVideo:function(t){this.$set(this.controls,t.currentTarget.id
|
||
|
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||
|
'components/jyf-Parser/trees-create-component',
|
||
|
{
|
||
|
'components/jyf-Parser/trees-create-component':(function(module, exports, __webpack_require__){
|
||
|
__webpack_require__('df3c')['createComponent'](__webpack_require__("3cfa"))
|
||
|
})
|
||
|
},
|
||
|
[['components/jyf-Parser/trees-create-component']]
|
||
|
]);
|