8.28 修改事件详情相关概念模块样式,增加股票详情信息来源展示
This commit is contained in:
1
unpackage/dist/build/mp-weixin/components/ua-markdown/lib/highlight/uni-highlight.min.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/ua-markdown/lib/highlight/uni-highlight.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/components/ua-markdown/lib/html-parser.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/ua-markdown/lib/html-parser.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";function e(e){for(var t={},a=e.split(","),r=0;r<a.length;r++)t[a[r]]=!0;return t}e("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),e("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),e("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),e("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),e("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),e("script,style");
|
||||
2
unpackage/dist/build/mp-weixin/components/ua-markdown/lib/markdown-it.min.js
vendored
Normal file
2
unpackage/dist/build/mp-weixin/components/ua-markdown/lib/markdown-it.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/components/ua-markdown/ua-markdown.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/ua-markdown/ua-markdown.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("./lib/markdown-it.min.js"),l=require("./lib/highlight/uni-highlight.min.js");require("./lib/html-parser.js");const s={__name:"ua-markdown",props:{source:String,showLine:{type:[Boolean,String],default:!0}},setup(s){const r=s;let a=[];const n=t.mt({html:!0,highlight:function(e,t){let s="";try{s=l.$e.highlightAuto(e).value}catch(c){s=n.utils.escapeHtml(e)}let i=s.split(/\n/).slice(0,-1).map(((e,t)=>""==e?"":'<li><span class="line-num" data-line="'+(t+1)+'"></span>'+e+"</li>")).join("");i=r.showLine?'<ol style="padding: 0px 30px;">'+i+"</ol>":'<ol style="padding: 0px 7px;list-style:none;">'+i+"</ol>",a.push(e);let o='<div class="markdown-wrap">';return o+=`<pre class="hljs" style="padding:10px 8px 0;margin-bottom:5px;overflow: auto;display: block;border-radius: 5px;"><code>${i}</code></pre>`,o+="</div>",o}}),i=e=>{if(!e)return;let t="";if((e=(e=e.replace(/<br>|<br\/>|<br \/>/g,"\n")).replace(/ /g," ")).split("```").length%2){let l=e;"\n"!=l[l.length-1]&&(l+="\n"),t=n.render(l)}else t=n.render(e);return t=t.replace(/<table/g,'<table class="table"'),t=t.replace(/<tr/g,'<tr class="tr"'),t=t.replace(/<th>/g,'<th class="th">'),t=t.replace(/<td/g,'<td class="td"'),t=t.replace(/<hr>|<hr\/>|<hr \/>/g,'<hr class="hr">'),t},o=t=>{let{attrs:l}=t.detail.node,{"code-data-index":s,class:r}=l;"copy-btn"==r&&e.index.setClipboardData({data:a[s],showToast:!1,success(){e.index.showToast({title:"复制成功",icon:"none"})}})};return(t,l)=>({a:i(s.source),b:e.o(o)})}},r=e._export_sfc(s,[["__scopeId","data-v-68886d85"]]);wx.createComponent(r);
|
||||
4
unpackage/dist/build/mp-weixin/components/ua-markdown/ua-markdown.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/components/ua-markdown/ua-markdown.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/components/ua-markdown/ua-markdown.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/ua-markdown/ua-markdown.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="ua__markdown data-v-68886d85"><rich-text class="data-v-68886d85" space="nbsp" nodes="{{a}}" binditemclick="{{b}}"></rich-text></view>
|
||||
1
unpackage/dist/build/mp-weixin/components/ua-markdown/ua-markdown.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/ua-markdown/ua-markdown.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user