Module: Nothing

空白显示,用于占位提示等
Properties:
Name Type Description
props Object 组件属性,内容如下
Properties
Name Type Description
show Boolean 是否显示
img String | Object 占位图片SRC
imgClassName Object 占位图片样式类
imgStyle Object 占位图片样式
message String 提示消息

Examples

组件引入

// 全局模块引入
import { Nothing } from '@ccreator/smart-ui';
// 最小化模块引入
import Nothing from '@ccreator/smart-ui/dist/Nothing';

使用示例

<Nothing img={imgEmpty} show={list.length === 0} />