weax
v0.2.2
Published
 [](https://www.jsdelivr.com/package/npm/weax) [
📦 安装依赖
使用 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/ |
