1234567891011121314151617181920212223242526272829 |
- // 富文本插件
- import wxParse from '../../../wxParse/wxParse.js';
- Component({
- options: {
- addGlobalClass: true,
- },
- /**
- * 组件的属性列表
- * 用于组件自定义设置
- */
- properties: {
- itemIndex: String,
- itemStyle: Object,
- params: Object
- },
- ready: function() {
- let content = this.data.params.content;
- // 富文本转码
- if (content.length > 0) {
- wxParse.wxParse('content', 'html', content, this, 0);
- }
- },
- })
|