图片组件
# 功能描述
支持NPath/TN_Path/https等格式直接展示图片的组件。
# 参数
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| src | NPath/TN_Path/https图片 | string | — | — |
| imgStyle | 图片样式 | string | — | — |
| placeholder | 默认站位图片(非必填) | string | — | — |
# 代码示例
该方法返回一个 Promise对象,示例如下:
{
"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}}"/>