English
fs-image
About 81 wordsLess than 1 minute
2025-04-28
A component that supports directly displaying images in formats such as NPath, TN_Path, and https.
Parameters
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| src | NPath / TN_Path / https image | string | — | — |
| imgStyle | Image style | string | — | — |
| placeholder | Default placeholder image (optional) | string | — | — |
Code Example
The component can be used as follows:
<fs-image
src="{{ nPath || tnPath}}"
imgStyle="width: 112rpx;height: 112rpx;border-radius: 8rpx;"
placeholder="{{placeholderImage}}"/>{
"component": true,
"usingComponents": {
"fs-image":"ava-ui/fxui/FsImage/FsImage"
}
}