From 406007583c3dd082c0da26e7193f1975fceb7406 Mon Sep 17 00:00:00 2001 From: TwoKe Date: Sun, 12 Mar 2023 22:57:23 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=8D=A2getImgUrl=E4=B8=BA?= =?UTF-8?q?=E9=80=9A=E7=94=A8url=E8=A7=A3=E6=9E=90=E5=87=BD=E6=95=B0Parser?= =?UTF-8?q?.getUrl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/mp-alipay/index.acss | 1 + dist/mp-alipay/index.axml | 1 + dist/mp-alipay/index.js | 8 ++++++++ dist/mp-alipay/index.json | 1 + dist/mp-alipay/node/node.acss | 1 + dist/mp-alipay/node/node.axml | 1 + dist/mp-alipay/node/node.js | 1 + dist/mp-alipay/parser.js | 1 + dist/mp-baidu/index.css | 1 + dist/mp-baidu/index.js | 8 ++++++++ dist/mp-baidu/index.json | 1 + dist/mp-baidu/index.swan | 1 + dist/mp-baidu/node/node.js | 2 +- dist/mp-baidu/parser.js | 1 + dist/mp-qq/index.js | 8 ++++++++ dist/mp-qq/index.json | 1 + dist/mp-qq/index.qml | 1 + dist/mp-qq/index.qss | 1 + dist/mp-qq/node/node.js | 2 +- dist/mp-qq/parser.js | 1 + dist/mp-toutiao/index.js | 8 ++++++++ dist/mp-toutiao/index.json | 1 + dist/mp-toutiao/index.ttml | 1 + dist/mp-toutiao/index.ttss | 1 + dist/mp-toutiao/node/node.js | 1 + dist/mp-toutiao/node/node.ttml | 1 + dist/mp-toutiao/node/node.ttss | 1 + dist/mp-toutiao/parser.js | 1 + dist/mp-weixin/index.js | 8 ++++++++ dist/mp-weixin/index.json | 1 + dist/mp-weixin/index.wxml | 1 + dist/mp-weixin/index.wxss | 1 + dist/mp-weixin/node/node.js | 2 +- dist/mp-weixin/parser.js | 1 + dist/uni-app/static/app-plus/mp-html/js/handler.js | 2 +- plugins/editable/miniprogram/build.js | 11 ++++++----- plugins/editable/uni-app/build.js | 7 +++---- 37 files changed, 79 insertions(+), 13 deletions(-) create mode 100644 dist/mp-alipay/index.acss create mode 100644 dist/mp-alipay/index.axml create mode 100644 dist/mp-alipay/index.js create mode 100644 dist/mp-alipay/index.json create mode 100644 dist/mp-alipay/node/node.acss create mode 100644 dist/mp-alipay/node/node.axml create mode 100644 dist/mp-alipay/parser.js create mode 100644 dist/mp-baidu/index.css create mode 100644 dist/mp-baidu/index.js create mode 100644 dist/mp-baidu/index.json create mode 100644 dist/mp-baidu/index.swan create mode 100644 dist/mp-baidu/parser.js create mode 100644 dist/mp-qq/index.js create mode 100644 dist/mp-qq/index.json create mode 100644 dist/mp-qq/index.qml create mode 100644 dist/mp-qq/index.qss create mode 100644 dist/mp-qq/parser.js create mode 100644 dist/mp-toutiao/index.js create mode 100644 dist/mp-toutiao/index.json create mode 100644 dist/mp-toutiao/index.ttml create mode 100644 dist/mp-toutiao/index.ttss create mode 100644 dist/mp-toutiao/node/node.ttml create mode 100644 dist/mp-toutiao/node/node.ttss create mode 100644 dist/mp-toutiao/parser.js create mode 100644 dist/mp-weixin/index.js create mode 100644 dist/mp-weixin/index.json create mode 100644 dist/mp-weixin/index.wxml create mode 100644 dist/mp-weixin/index.wxss create mode 100644 dist/mp-weixin/parser.js diff --git a/dist/mp-alipay/index.acss b/dist/mp-alipay/index.acss new file mode 100644 index 00000000..5f74d06d --- /dev/null +++ b/dist/mp-alipay/index.acss @@ -0,0 +1 @@ +._root{padding:1px 0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}._select{-webkit-user-select:text;user-select:text} \ No newline at end of file diff --git a/dist/mp-alipay/index.axml b/dist/mp-alipay/index.axml new file mode 100644 index 00000000..318219bf --- /dev/null +++ b/dist/mp-alipay/index.axml @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/dist/mp-alipay/index.js b/dist/mp-alipay/index.js new file mode 100644 index 00000000..5e64a1f5 --- /dev/null +++ b/dist/mp-alipay/index.js @@ -0,0 +1,8 @@ +"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}/*! + * mp-html v2.4.1 + * https://github.com/jin-yufeng/mp-html + * + * Released under the MIT license + * Author: Jin Yufeng + */ +var t=require("./parser"),n=[];Component({data:{nodes:[]},props:{containerStyle:"",content:"",copyLink:!0,domain:"",errorImg:"",lazyLoad:!1,loadingImg:"",pauseVideo:!0,previewImg:!0,scrollTable:!1,setTitle:!0,showImgMenu:!0,tagStyle:{}},didMount:function(){this.plugins=[];for(var e=n.length;e--;)this.plugins.push(new n[e](this));this.props.content&&this.setContent(this.props.content)},didUpdate:function(e){e.content!==this.props.content&&this.setContent(this.props.content)},didUnmount:function(){this._hook("onDetached")},methods:{in:function(e,t,n){e&&t&&n&&(this._in={page:e,selector:t,scrollTop:n})},navigateTo:function(t,n){var o=this;return new Promise(function(i,r){if(!o.props.useAnchor)return void r(Error("Anchor is disabled"));var s=my.createSelectorQuery().select((o._in?o._in.selector:"._root")+(t?"".concat(" ","#").concat(t):"")).boundingClientRect();o._in?s.select(o._in.selector).scrollOffset().select(o._in.selector).boundingClientRect():s.selectViewport().scrollOffset(),s.exec(function(t){if(!t[0])return void r(Error("Label not found"));var s=t[1].scrollTop+t[0].top-(t[2]?t[2].top:0)+(n||parseInt(o.props.useAnchor)||0);o._in?o._in.page.setData(e({},o._in.scrollTop,s)):my.pageScrollTo({scrollTop:s,duration:300}),i()})})},getText:function(e){var t="";return function e(n){for(var o=0;o"0"&&i.name[1]<"7";r&&t&&"\n"!==t[t.length-1]&&(t+="\n"),i.children&&e(i.children),r&&"\n"!==t[t.length-1]?t+="\n":"td"!==i.name&&"th"!==i.name||(t+="\t")}}}(e||this.data.nodes),t},getRect:function(){return new Promise(function(e,t){my.createSelectorQuery().select("._root").boundingClientRect().exec(function(n){return n[0]?e(n[0]):t(Error("Root label not found"))})})},pauseMedia:function(){for(var e=(this._videos||[]).length;e--;)this._videos[e].pause()},setPlaybackRate:function(e){this.playbackRate=e;for(var t=(this._videos||[]).length;t--;)this._videos[t].playbackRate(e)},setContent:function(e,n){var o=this;this.imgList&&n||(this.imgList=[]),this._videos=[];var i={},r=new t(this).parse(e);if(n)for(var s=this.data.nodes.length,a=r.length;a--;)i["nodes[".concat(s+a,"]")]=r[a];else i.nodes=r;if(this.setData(i,function(){o._hook("onLoad"),o.props.onLoad&&o.props.onLoad()}),this.props.lazyLoad||this.imgList._unloadimgs\n