GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — zarm/README.md at master · ago008/zarm

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
84 lines (60 loc) · 2.57 KB
/

README.md

Copy path

File metadata and controls

84 lines (60 loc) · 2.57 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Zarm UI

Build Status Coverage Status npm package NPM downloads JS gzip size CSS gzip size

众安科技移动端UI组件库,基于React。(Vue版本传送门:zarm-vue)

Example 案例

Online example

Install 安装

npm install zarm --save

Import 引入

  • 全组件引入
import { Button, Cell } from 'zarm';
import 'zarm/styles/index.scss';
  • 单独引入
import Button from 'zarm/lib/Button';
import 'zarm/styles/core/index.scss';
import 'zarm/styles/variables.scss';
import 'zarm/styles/components/Button.scss';
  • 也可以通过cdn引入umd模块
<link rel="stylesheet" href="https://unpkg.com/zarm@latest/dist/zarm.min.css">

<script src="https://unpkg.com/[email protected]/umd/react.production.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js" type="text/javascript"></script>
<script type="text/javascript" src="https://unpkg.com/zarm@latest/dist/zarm.min.js"></script>

Usage 使用

import React from 'react';
import ReactDOM from 'react-dom';

ReactDOM.render(<Button theme="primary">按钮</Button>, document.getElementById('app'));

注:使用以上方法需要支持jsx语法或者经过编译

Custom Theme 自定义主题

import { Button, Cell } from 'zarm';
import './styles/index.scss';

./style/index.scss 文件内容如下:

@import "node_modules/zarm/styles/core/index";
@import "node_modules/zarm/styles/variables";
@import "./variables";
@import "node_modules/zarm/styles/components";

通过自己的variables.scss文件重写sass变量。

Document 文档

中文

Changelog 更新日志

CHANGELOG.md

License

MIT

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.