@ygyg/rc-channel
v1.0.2
Published
channel-desk ui component for react
Downloads
13
Maintainers
Readme
rc-channel
React component for portal-channel(channel-desk).
[![build status][travis-image]][travis-url]
install
Development
npm install
npm start
Example
npm install @ygyg/rc-channel
Usage
import ProductIntro from 'rc-channel';
import SunCointImg from '../assets/img/suncoint.png';
import YouXuanImg from '../assets/img/[email protected]';
const data = {
retCode: '0000000',
retDesc: '操作成功!',
timestamp: '2020-06-19 10:06:09.282',
rspBody: {
...
},
};
const ImgConfig = {
SunCointImg,
YouXuanImg,
};
React.render(<ProductIntro data={data.rspBody} {...ImgConfig} />, mountNode);
API
Properties
License
rc-channel is released under the MIT license.