Skip to content

Commit 79dcd5d

Browse files
committed
初始化:cli项目
1 parent 39c756c commit 79dcd5d

File tree

170 files changed

+17368
-278
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

170 files changed

+17368
-278
lines changed

src/.editorconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[*]
2+
#缩进风格:空格
3+
indent_style = tab
4+
#缩进大小2
5+
indent_size = 4
6+
#换行符lf
7+
end_of_line = lf
8+
#字符集utf-8
9+
charset = utf-8
10+
11+

src/.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
unpackage
2+
node_modules
3+
uview-ui

src/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/unpackage/dist/*
2+
/node_modules/*
3+
/.idea/*
4+
deploy.sh

src/App.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
<script>
22
export default {
3-
onLaunch: function() {
4-
console.log('App Launch')
3+
// 此处globalData为了演示其作用,不是uView框架的一部分
4+
globalData: {
5+
username: '白居易'
56
},
6-
onShow: function() {
7-
console.log('App Show')
7+
onLaunch() {
8+
// 1.1.0版本之前关于http拦截器代码,已平滑移动到/common/http.interceptor.js中
9+
// 注意,需要在/main.js中实例化Vue之后引入如下(详见文档说明):
10+
// import httpInterceptor from '@/common/http.interceptor.js'
11+
// Vue.use(httpInterceptor, app)
812
},
9-
onHide: function() {
10-
console.log('App Hide')
11-
}
1213
}
1314
</script>
1415

1516
<style lang="scss">
1617
@import "uview-ui/index.scss";
18+
@import "common/demo.scss";
1719
/*每个页面公共css */
18-
</style>
20+
</style>

src/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 www.uviewui.com
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

src/README.md

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
<p align="center">
2+
<img alt="logo" src="https://uviewui.com/common/logo.png" width="120" height="120" style="margin-bottom: 10px;">
3+
</p>
4+
<h3 align="center" style="margin: 30px 0 30px;font-weight: bold;font-size:40px;">uView</h3>
5+
<h3 align="center">多平台快速开发的UI框架</h3>
6+
7+
8+
## 说明
9+
10+
uView UI,是[uni-app](https://uniapp.dcloud.io/)生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水
11+
12+
### **欢迎加群交流反馈:1129077272**
13+
14+
## 特性
15+
16+
- 兼容安卓,iOS,微信小程序,H5,QQ小程序,百度小程序,支付宝小程序,头条小程序
17+
- 60+精选组件,功能丰富,多端兼容,让您快速集成,开箱即用
18+
- 众多贴心的JS利器,让您飞镖在手,召之即来,百步穿杨
19+
- 众多的常用页面和布局,让您专注逻辑,事半功倍
20+
- 详尽的文档支持,现代化的演示效果
21+
- 按需引入,精简打包体积
22+
23+
24+
## 预览
25+
26+
您可以通过**微信**扫码,查看最佳的演示效果。
27+
<br>
28+
<br>
29+
<img src="https://uviewui.com/common/weixin_mini_qrcode.png" width="220" height="220" >
30+
31+
32+
## 友情链接
33+
34+
<br>
35+
36+
#### **vue-admin-beautiful** —— [企业级、通用型中后台前端解决方案(基于vue/cli 4 最新版,同时支持电脑,手机,平板)](https://github.com/chuzhixin/vue-admin-beautiful)
37+
38+
#### **vue-admin-beautiful** —— [在线演示](http://beautiful.panm.cn/vue-admin-beautiful/#/index)
39+
40+
#### **pl-table** —— [ 完美解决 element 万级表格数据渲染卡顿问题](https://github.com/livelyPeng/pl-table)
41+
42+
#### **luch-request** —— [基于 Promise 开发的 uni-app 跨平台、项目级别的请求库,它有更小的体积,易用的 api,方便简单的自定义能力](https://www.quanzhan.co/luch-request/)
43+
<br>
44+
45+
## 链接
46+
47+
- [官方文档](https://uviewui.com/)
48+
- [更新日志](https://uviewui.com/components/changelog.html)
49+
- [升级指南](https://uviewui.com/components/changelog.html)
50+
- [关于我们](https://uviewui.com/cooperation/about.html)
51+
52+
## 交流反馈
53+
54+
欢迎加入我们的QQ群交流反馈:[点此跳转](https://www.uviewui.com/components/addQQGroup.html)
55+
56+
## 安装
57+
58+
#### **下载地址** —— [https://ext.dcloud.net.cn/plugin?id=1593](https://ext.dcloud.net.cn/plugin?id=1593)
59+
60+
## 快速上手
61+
62+
1. `main.js`引入uView库
63+
```js
64+
// main.js
65+
import uView from 'uview-ui';
66+
Vue.use(uView);
67+
```
68+
69+
2. `App.vue`引入基础样式(注意style标签需声明scss属性支持)
70+
```css
71+
/* App.vue */
72+
<style lang="scss">
73+
@import "uview-ui/index.scss";
74+
</style>
75+
```
76+
77+
3. `uni.scss`引入全局scss变量文件
78+
```css
79+
/* uni.scss */
80+
@import "uview-ui/theme.scss";
81+
```
82+
83+
4. `pages.json`配置easycom规则(按需引入)
84+
85+
```js
86+
// pages.json
87+
{
88+
"easycom": {
89+
"^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
90+
},
91+
// 此为本身已有的内容
92+
"pages": [
93+
// ......
94+
]
95+
}
96+
```
97+
98+
请通过[快速上手](https://uviewui.com/components/quickstart.html)了解更详细的内容
99+
100+
## 使用方法
101+
配置easycom规则后,自动按需引入,无需`import`组件,直接引用即可。
102+
103+
```html
104+
<template>
105+
<u-button>按钮</u-button>
106+
</template>
107+
```
108+
109+
请通过[快速上手](https://uviewui.com/components/quickstart.html)了解更详细的内容
110+
111+
112+
## 捐赠uView的研发
113+
114+
uView文档和源码全部开源免费,如果您认为uView帮到了您的开发工作,您可以捐赠uView的研发工作,捐赠无门槛,哪怕是一杯可乐也好(相信这比打赏主播更有意义)。
115+
116+
<img src="https://uviewui.com/common/wechat.png" width="220" >
117+
<img style="margin-left: 100px;" src="https://uviewui.com/common/alipay.png" width="220" >
118+
119+
## 版权信息
120+
uView遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,意味着您无需支付任何费用,也无需授权,即可将uView应用到您的产品中。

0 commit comments

Comments
 (0)