https://mkgrow.github.io/szdt-admin-components/#/
npm install szdt-admin-components
yarn add szdt-admin-components
import React from 'react';
import { IconFont, IconText, Skeleton, TooltipText } from 'szdt-admin-components';
const App = () => (
<>
<IconFont type="icon-define" size="16px" />
<IconText icon={TeamOutlined} text="测试" />
<Skeleton loading row={2} count={3} height={120}>
content
</Skeleton>
<div style={{ width: '40px' }}>
<TooltipText rowNumber={1} text="测试文本" />
</div>
</>
);
clone locally:
$ git clone [email protected]:mkgrow/szdt-admin-components.git
$ cd szdt-admin-components
$ npm install
$ npm start
Open your browser and visit http://localhost:8000
Name | Description | Remarks |
---|---|---|
npm install |
Install dependencies | - |
npm start |
Project begining | Document usage dumi, component development and documentation development together |
npm test |
Component test | - |
npm run test:coverage |
Code coverage review | - |
npm run prettier |
Code prettier | - |
npm run build |
Component packaging | Use father |
npm run docs:build |
Document packaging | - |
npm run docs:deploy |
Document release | The default is to use GitHub Pages |
npm run deploy |
Document package release | - |