Commit 0ff845f2 by Lin

feat(empty): 空占位符

1 parent c9ceff6e
......@@ -49,6 +49,10 @@
icon: 'icon-home-empty.png',
title: '暂无数据'
},
common: {
icon: 'icon-common-empty.png',
title: '暂无数据'
},
contract: {
icon: 'icon-contract-empty.png',
title: '请先选择合同,签约个人信息自动带出'
......@@ -61,7 +65,7 @@
interface CustomEmptyProps {
/**
* 预设类型:base | home | contract | function,展示对应图标与默认文案;扩展时在 PRESET_TYPES 中增加配置即可
* 预设类型:base | home | common | contract | function,展示对应图标与默认文案;扩展时在 PRESET_TYPES 中增加配置即可
*/
type: string
/**
......@@ -93,6 +97,7 @@
const getPreset = (type: string): EmptyTypeConfig | null => {
if (type == 'base') return PRESET_TYPES.base
if (type == 'home') return PRESET_TYPES.home
if (type == 'common') return PRESET_TYPES.common
if (type == 'contract') return PRESET_TYPES.contract
if (type == 'function') return PRESET_TYPES.function
return null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!