跳到主要内容

NoContent 占位符

无数据占位符条形版​

无数据占位符条形版

import { NoContent } from "@finalx/components";

interface IProps {}
export const Index: FC<IProps> = () => {
return <NoContent model={model} />;
};

属性​

属性名类型默认值必填描述
modelany-是配合 finalx/common 的分页 HOOK 使用的 model
textstirng-否展示文案
colorstirng-否展示颜色
textColorstirng-否文案的文字颜色
styleCSSProperties-否样式

无数据占位符矩形版​

无数据占位符矩形版

import { NoContentRect } from "@finalx/components";

interface IProps {}
export const Index: FC<IProps> = () => {
return <NoContentRect model={model} />;
};

属性​

属性名类型默认值必填描述
modelany-是配合 finalx/common 的分页 HOOK 使用的 model
textstirng-否展示文案
srcstirng-否展示图片
textStyleCSSProperties-否文字样式
imgStyleCSSProperties-否图片样式
styleCSSProperties-否容器样式