zarm-web
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.4 • Public • Published

Zarm-Web

众安科技桌面端UI组件库,基于React。

Version 版本

  • 历史版本:npm package FOSSA Status
  • 开发版:暂未发布

Install 安装

使用npm安装:

npm install zarm-web --save

或者通过cdn引入umd模块:

<link rel="stylesheet" href="https://unpkg.com/zarm-web@latest/dist/zarm-web.min.css">
<script type="text/javascript" src="https://unpkg.com/zarm-web@latest/dist/zarm-web.min.js"></script>

Usage 使用

全组件引入

import { Button, Cell } from 'zarm-web';
import 'zarm-web/dist/zarm-web.min.css';

按需加载

  • 方法一(推荐)

使用 babel-plugin-import 自动加载Sass文件

  // .babelrc or babel-loader option
  {
    "plugins": [
      ['import', {
        libraryName: 'zarm-web',
        style: true,
      }],
    ]
  }
import { Button, Cell } from 'zarm-web';
  • 方法二:
import Button from 'zarm-web/lib/button';
import 'zarm-web/lib/button/style';

定制主题

通过修改css变量定义达到定制主题的效果

document.documentElement.style.setProperty('--theme-primary', '#108ee9');

变量名可参考 variable.scss

Changelog 更新日志

CHANGELOG.md

License

MIT

FOSSA Status

Package Sidebar

Install

npm i zarm-web

Weekly Downloads

121

Version

0.0.1-alpha.4

License

MIT

Unpacked Size

8.76 MB

Total Files

1081

Last publish

Collaborators

  • linji