umaim / taro-parserrichtext Goto Github PK
View Code? Open in Web Editor NEW适用于 Taro 的小程序富文本组件
Home Page: https://taro-ext.jd.com/plugin/view/5d35903e9b6a1d4027780154
License: MIT License
适用于 Taro 的小程序富文本组件
Home Page: https://taro-ext.jd.com/plugin/view/5d35903e9b6a1d4027780154
License: MIT License
编译到这里就报错了
功能缺失
如果使用时发现功能与 原仓库 文档描述的功能不符,一般是由于这里的版本较老,后续添加的功能不支持,可以用 parser 文件夹中的内容替换 /PaserRichText/Parser
中的内容(一些新属性可能还要添加到 parserRichText.tsx)或参考 文档 直接引入
文件缺失
编译时报警告 emoji.js
和 document.js
不存在的问题,这两个文件是 扩展包,非必要的,在源代码中也是通过 try
引入的,因此忽略即可,不影响使用;介意的话可以在源代码中直接删去引入的代码
wxs 缺失
编译时报 wxs
文件不存在的问题,原因和方法见 用法 第 4
条;不过原仓库最新版中已经没有独立的 wxs
文件了
类型“JSX.IntrinsicElements”上不存在属性“parser”
<View className='txt'>A{index+2}</View> // A2
<View className='txt'>B{item[index+2].data}</View>//B +无法打印
<View className='txt'>-----------------------</View>
<View className='txt'>C{tabList[index+2].data}</View> // C 获取的数组
{/* <ParserRichText html={tabList[index+2].data}></ParserRichText> */} // 红色报错
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.