English
fs-rich-text
About 93 wordsLess than 1 minute
2025-04-28
Used to display rich text content described by a node array.
Parameters
| Property | Type | Default | Optional Values | Description |
|---|---|---|---|---|
| nodes | Array | [] | -- | Nodes |
| cStyle | String | '' | -- | Style |
Example Code
<fs-rich-text nodes="{{dNodes}}" />import imgholderconfig from '../../../package/fxui/Imageholder/config'
Page({
data: {
dNodes: [
{
context:"Test",
color:"red",
width:'20',
height:'20',
onClick:function(){
wx.showToast({
title: 'Test Text',
})
},
fontWeight:'bold',
textDecoration:'',
fontSize:'20',
type:'string'
},
{
context:imgholderconfig.nodata.image,
placeholder:"https://a9.fspage.com/FSR/weex/avatar/object_list/images/list_default_icon.png",
width:'50',
height:'50',
onClick:function(){
wx.showToast({
title: 'Test Image',
})
},
type:'image'
}
]
}
}){
"usingComponents": {
"fs-rich-text": "../../../package/fxui/rich_text/index"
}
}