Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0ff845f2
authored
Mar 09, 2026
by
Lin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(empty): 空占位符
1 parent
c9ceff6e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
apps/uniappX/uniapp-x-tape/components/CustomEmpty/index.uvue
apps/uniappX/uniapp-x-tape/static/empty/icon-common-empty.png
apps/uniappX/uniapp-x-tape/components/CustomEmpty/index.uvue
View file @
0ff845f
...
@@ -49,6 +49,10 @@
...
@@ -49,6 +49,10 @@
icon: 'icon-home-empty.png',
icon: 'icon-home-empty.png',
title: '暂无数据'
title: '暂无数据'
},
},
common: {
icon: 'icon-common-empty.png',
title: '暂无数据'
},
contract: {
contract: {
icon: 'icon-contract-empty.png',
icon: 'icon-contract-empty.png',
title: '请先选择合同,签约个人信息自动带出'
title: '请先选择合同,签约个人信息自动带出'
...
@@ -61,7 +65,7 @@
...
@@ -61,7 +65,7 @@
interface CustomEmptyProps {
interface CustomEmptyProps {
/**
/**
* 预设类型:base | home | contract | function,展示对应图标与默认文案;扩展时在 PRESET_TYPES 中增加配置即可
* 预设类型:base | home | co
mmon | co
ntract | function,展示对应图标与默认文案;扩展时在 PRESET_TYPES 中增加配置即可
*/
*/
type: string
type: string
/**
/**
...
@@ -93,6 +97,7 @@
...
@@ -93,6 +97,7 @@
const getPreset = (type: string): EmptyTypeConfig | null => {
const getPreset = (type: string): EmptyTypeConfig | null => {
if (type == 'base') return PRESET_TYPES.base
if (type == 'base') return PRESET_TYPES.base
if (type == 'home') return PRESET_TYPES.home
if (type == 'home') return PRESET_TYPES.home
if (type == 'common') return PRESET_TYPES.common
if (type == 'contract') return PRESET_TYPES.contract
if (type == 'contract') return PRESET_TYPES.contract
if (type == 'function') return PRESET_TYPES.function
if (type == 'function') return PRESET_TYPES.function
return null
return null
...
...
apps/uniappX/uniapp-x-tape/static/empty/icon-common-empty.png
0 → 100644
View file @
0ff845f
20.6 KB
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment