1.0.0 • Published 3 years ago

lbr-react-mobile v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

lbr-react-mobile

本组件库依赖 react 17 以上,中文文档 DEMO

组件库使用方法

$ npm i lbr-react-mobile -S

按需加载

import Skeleton from 'lbr-react-mobile/es/Components/Skeleton';
import 'lbr-react-mobile/es/Components/Skeleton/index.css';
<Skeleton />;

全部引入

import { Skeleton } from 'lbr-react-mobile';
import 'lbr-react-mobile/es/index-all.min.css';
<Skeleton />;

更多组件请点击访问

项目说明

安装依赖

$ npm i

启动文档

$ npm start

打包文档

$ npm run docs:build

打包组件库

$ npm run build

打包使用 babel 模式:

babel 模式下一些文件不会被编译到 es 和 lib 下,包含:

test 目录
fixtures 目录
demos 目录
mdx 文件
md 文件
测试文件,比如 test.js、spec.js、e2e.js,后缀还支持 jsx、ts 和 tsx