Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Tencent/weui.js

A lightweight javascript library for WeUI.
https://github.com/Tencent/weui.js

weui

Last synced: 4 days ago
JSON representation

A lightweight javascript library for WeUI.

Awesome Lists containing this project

README

        

weui.js
=====

[![npm version](https://img.shields.io/npm/v/weui.js.svg)](https://www.npmjs.org/package/weui.js/)

### 概述

[WeUI](https://github.com/Tencent/weui.git) 的轻量级 js 封装。

注意:由于微信小程序不支持dom操作,所以weui.js并不适用于小程序。不过WeUI也为小程序开发了另外的版本,详情请看:https://github.com/Tencent/weui-wxss/

### 手机预览

![https://weui.io](https://cloud.githubusercontent.com/assets/2395166/20742697/96705822-b70c-11e6-9486-c03a5939a1d6.png)

[https://weui.io/weui.js/](https://weui.io/weui.js/)

### 开发

安装

```shell
git clone https://github.com/Tencent/weui.js.git
cd weui.js
npm install
npm start
```

编译

```shell
npm run build
```

### 使用

#### global

```html

weui.alert('alert');

```

#### import as module

```javascript
import 'weui';
import weui from 'weui.js';

weui.alert('alert');
```

### 文档

[Documents](https://github.com/Tencent/weui.js/tree/master/docs/README.md)

### 贡献

如果你有好的意见或建议,欢迎给我们提issue或pull request。

### License
The MIT License(http://opensource.org/licenses/MIT)

请自由地享受和参与开源