Image Component
# Functional Description
A component that directly displays images in NPath/TN_Path/https formats.
# 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
This method returns a Promise object. Example:
{
"component": true,
"usingComponents": {
"fs-image":"ava-ui/fxui/FsImage/FsImage"
}
}
<fs-image
src="{{ nPath || tnPath}}"
imgStyle="width: 112rpx;height: 112rpx;border-radius: 8rpx;"
placeholder="{{placeholderImage}}"/>