Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
wisdom-components
Commits
568aaefd
Commit
568aaefd
authored
Mar 05, 2021
by
涂茜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改props
parent
b1248288
Pipeline
#24070
failed with stages
in 1 minute 30 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 deletions
+11
-11
.umirc.js
.umirc.js
+3
-3
Empty.md
packages/Empty/src/Empty.md
+1
-1
errorDark.png
packages/Empty/src/assets/errorDark.png
+0
-0
errorLight.png
packages/Empty/src/assets/errorLight.png
+0
-0
noDataDark.svg
packages/Empty/src/assets/noDataDark.svg
+0
-0
noDataLight.svg
packages/Empty/src/assets/noDataLight.svg
+0
-0
index.js
packages/Empty/src/index.js
+6
-6
index.less
packages/Empty/src/index.less
+1
-1
No files found.
.umirc.js
View file @
568aaefd
...
...
@@ -95,15 +95,15 @@ export default {
'/components'
:
[
{
title
:
'布局'
,
children
:
[
'
card
'
],
children
:
[
'
Empty
'
],
},
{
title
:
'通用'
,
children
:
[
'
card
'
],
children
:
[
'
Empty
'
],
},
{
title
:
'数据录入'
,
children
:
[
'
card
'
],
children
:
[
'
Empty
'
],
},
{
title
:
'数据展示'
,
...
...
packages/Empty/src/Empty.md
View file @
568aaefd
...
...
@@ -27,6 +27,6 @@ group:
| description | 自定义描述内容 | ReactNode | - |
| image | 设置显示图片,为 string 时表示自定义图片地址 | ReactNode | - |
| theme | 设置主题 | string | 可选值:light/dark, 默认 light |
| size | 设置图片尺寸 | string | 可选值:small/
normal/large, 默认 normal
|
| size | 设置图片尺寸 | string | 可选值:small/
middle/large, 默认 middle
|
| statusCode | 状态码 | string | 可选值:0/-1/-2, 默认 0 |
| imageStyle | 图片样式 | CSSProperties | - |
packages/Empty/src/errorDark.png
→
packages/Empty/src/
assets/
errorDark.png
View file @
568aaefd
File moved
packages/Empty/src/errorLight.png
→
packages/Empty/src/
assets/
errorLight.png
View file @
568aaefd
File moved
packages/Empty/src/noDataDark.svg
→
packages/Empty/src/
assets/
noDataDark.svg
View file @
568aaefd
File moved
packages/Empty/src/noDataLight.svg
→
packages/Empty/src/
assets/
noDataLight.svg
View file @
568aaefd
File moved
packages/Empty/src/index.js
View file @
568aaefd
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
noDataLight
from
'./noDataLight.svg'
;
import
noDataDark
from
'./noDataDark.svg'
;
import
errorLight
from
'./errorLight.png'
;
import
errorDark
from
'./errorDark.png'
;
import
noDataLight
from
'./
assets/
noDataLight.svg'
;
import
noDataDark
from
'./
assets/
noDataDark.svg'
;
import
errorLight
from
'./
assets/
errorLight.png'
;
import
errorDark
from
'./
assets/
errorDark.png'
;
import
'./index.less'
;
...
...
@@ -35,7 +35,7 @@ Empty.defaultProps = {
description
:
''
,
image
:
''
,
theme
:
'light'
,
size
:
'
normal
'
,
size
:
'
middle
'
,
statusCode
:
'0'
,
imageStyle
:
{},
};
...
...
@@ -44,7 +44,7 @@ Empty.propTypes = {
description
:
PropTypes
.
node
,
// 自定义描述内容
image
:
PropTypes
.
node
,
// 设置显示图片,为 string 时表示自定义图片地址
theme
:
PropTypes
.
string
,
// 设置主题 light dark
size
:
PropTypes
.
string
,
// 设置图片尺寸 small
normal
large
size
:
PropTypes
.
string
,
// 设置图片尺寸 small
middle
large
statusCode
:
PropTypes
.
string
,
// 状态码
imageStyle
:
PropTypes
.
object
,
// 图片样式
};
...
...
packages/Empty/src/index.less
View file @
568aaefd
...
...
@@ -27,7 +27,7 @@
}
}
&.
normal
{
&.
middle
{
margin: 32px 0;
.image {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment