weax
v0.2.2
Published
![npm](https://img.shields.io/npm/v/weax.svg) [![jsdelivr](https://data.jsdelivr.com/v1/package/npm/weax/badge)](https://www.jsdelivr.com/package/npm/weax) [![Netlify Storybook](https://cdn.jsdelivr.net/gh/storybookjs/brand@master/badge/badge-storybook.sv
Downloads
8
Readme
Weax
一款基于 React v16 打造的海量业务元素库,适应更多业务门户板块场景 :)
📦 安装依赖
使用 npm 包管理:
npm install weax
或者使用 yarn 安装:
yarn add weax
🚀 开箱即用
全局导入组件库样式:
import 'weax/dist/weax.css';
也可以在页面直接引入 cdn 静态资源:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/weax@latest/dist/weax.min.css">
在组件中直接引入:
import React from 'react';
import { Statistic } from 'weax';
class WeaHelloPage extends React.Component {
render() {
return (
<>
{/* 直接使用 */}
<Statistic templete="temp1"/>
</>
)
}
}
export default WeaHelloPage;
🐫 技术堆栈
| Name | Version | Org Site | | :----- | :----: | ------: | | React | v16.8.6 | https://reactjs.org/ | | Ant Design | v3.19.7 | https://ant.design/ | | Docz | v1.2.0 | https://www.docz.site/ | | Storybook | v5.1.3 | https://storybook.js.org/ |