Taro-ParserRichText icon indicating copy to clipboard operation
Taro-ParserRichText copied to clipboard

渲染啥也没出来 [email protected]

Open peijunlei opened this issue 3 years ago • 2 comments

peijunlei avatar Feb 14 '22 06:02 peijunlei

这玩意还维护吗

peijunlei avatar Feb 14 '22 06:02 peijunlei

Taro3 的组件是没有配置文件的,因此 usingComponents 必须配置在“页面”的配置文件中。

注掉parserRichText.tsx 中的 101-105 // public config: Taro.Config = { // usingComponents: { // parser: './Parser/index' // } // };

在 app.config.ts 中 添加 export default { usingComponents: { parser: 'components/common/ParserRichText/Parser/index' } }

lightShowers avatar Nov 10 '22 08:11 lightShowers