Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/Tencent/weui.js
- Owner: Tencent
- License: other
- Created: 2016-11-14T09:58:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-29T08:56:30.000Z (9 months ago)
- Last Synced: 2024-04-14T13:07:55.055Z (7 months ago)
- Topics: weui
- Language: JavaScript
- Homepage:
- Size: 1.3 MB
- Stars: 3,154
- Watchers: 113
- Forks: 931
- Open Issues: 89
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
- favorite-link - WeUI 的轻量级 JavaScript 库。
- awesome-made-by-chinese - weui.js
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)请自由地享受和参与开源