0.2.0 • Published 5 years ago

xy-empty v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago
IEChromeFirefoxOperaSafari
IE 10+ ✔Chrome 31.0+ ✔Firefox 31.0+ ✔Opera 30.0+ ✔Safari 7.0+ ✔

NPM version node version npm download

xy-empty

xy-empty

暂时为空的状态, 样式组件。

安装

# yarn
yarn add xy-empty classnames

使用例子

import React from "react";
import ReactDOM from "react-dom";
import Empty from "xy-empty";
ReactDOM.render(<Empty />, container);

何时使用

  • 当目前没有数据时,用于显式的用户提示。
  • 初始化场景时的引导创建流程。

API

属性说明类型默认值
image自定义图片地址string
imageStyle图片样式React.CSSProperties
description描述内容React.ReactNode"暂无数据"
children底部操作内容React.ReactNode

开发

yarn run start

例子

http://localhost:6006

测试

yarn run test

开源许可

xy-empty is released under the MIT license.

0.2.0

5 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago