Skip to content

Commit 05a33ce

Browse files
committed
uview update to 2022-06-22
1 parent 4c9d9ff commit 05a33ce

File tree

15 files changed

+101
-91
lines changed

15 files changed

+101
-91
lines changed

uni_modules/uview-ui/README.md

Lines changed: 36 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,73 +1,56 @@
11
<p align="center">
22
<img alt="logo" src="https://uviewui.com/common/logo.png" width="120" height="120" style="margin-bottom: 10px;">
33
</p>
4-
<h3 align="center" style="margin: 30px 0 30px;font-weight: bold;font-size:40px;">uView</h3>
4+
<h3 align="center" style="margin: 30px 0 30px;font-weight: bold;font-size:40px;">uView 2.0</h3>
55
<h3 align="center">多平台快速开发的UI框架</h3>
66

7+
[![stars](https://img.shields.io/github/stars/umicro/uView2.0?style=flat-square&logo=GitHub)](https://github.com/umicro/uView2.0)
8+
[![forks](https://img.shields.io/github/forks/umicro/uView2.0?style=flat-square&logo=GitHub)](https://github.com/umicro/uView2.0)
9+
[![issues](https://img.shields.io/github/issues/umicro/uView2.0?style=flat-square&logo=GitHub)](https://github.com/umicro/uView2.0/issues)
10+
[![Website](https://img.shields.io/badge/uView-up-blue?style=flat-square)](https://uviewui.com)
11+
[![release](https://img.shields.io/github/v/release/umicro/uView2.0?style=flat-square)](https://gitee.com/umicro/uView2.0/releases)
12+
[![license](https://img.shields.io/github/license/umicro/uView2.0?style=flat-square)](https://en.wikipedia.org/wiki/MIT_License)
13+
714
## 说明
815

9-
uView UI,是[uni-app](https://uniapp.dcloud.io/)生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水
16+
uView UI,是[uni-app](https://uniapp.dcloud.io/)全面兼容nvue的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水
1017

11-
## 特性
18+
## [官方文档:https://uviewui.com](https://uviewui.com)
1219

13-
- 兼容安卓,iOS,微信小程序,H5,QQ小程序,百度小程序,支付宝小程序,头条小程序
14-
- 60+精选组件,功能丰富,多端兼容,让您快速集成,开箱即用
15-
- 众多贴心的JS利器,让您飞镖在手,召之即来,百步穿杨
16-
- 众多的常用页面和布局,让您专注逻辑,事半功倍
17-
- 详尽的文档支持,现代化的演示效果
18-
- 按需引入,精简打包体积
1920

21+
## 预览
2022

21-
## 安装
23+
您可以通过**微信**扫码,查看最佳的演示效果。
24+
<br>
25+
<br>
26+
<img src="https://uviewui.com/common/weixin_mini_qrcode.png" width="220" height="220" >
2227

23-
```bash
24-
# npm方式安装,插件市场导入无需执行此命令
25-
npm i uview-ui
26-
```
2728

28-
## 快速上手
29+
## 链接
2930

30-
1. `main.js`引入uView库
31-
```js
32-
// main.js
33-
import uView from 'uview-ui';
34-
Vue.use(uView);
35-
```
31+
- [官方文档](https://www.uviewui.com/)
32+
- [更新日志](https://www.uviewui.com/components/changelog.html)
33+
- [升级指南](https://www.uviewui.com/components/changeGuide.html)
34+
- [关于我们](https://www.uviewui.com/cooperation/about.html)
3635

37-
2. `App.vue`引入基础样式(注意style标签需声明scss属性支持)
38-
```css
39-
/* App.vue */
40-
<style lang="scss">
41-
@import "uview-ui/index.scss";
42-
</style>
43-
```
36+
## 交流反馈
4437

45-
3. `uni.scss`引入全局scss变量文件
46-
```css
47-
/* uni.scss */
48-
@import "uview-ui/theme.scss";
49-
```
38+
欢迎加入我们的QQ群交流反馈:[点此跳转](https://www.uviewui.com/components/addQQGroup.html)
5039

51-
4. `pages.json`配置easycom规则(按需引入)
52-
53-
```js
54-
// pages.json
55-
{
56-
"easycom": {
57-
// npm安装的方式不需要前面的"@/",下载安装的方式需要"@/"
58-
// npm安装方式
59-
"^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
60-
// 下载安装方式
61-
// "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
62-
},
63-
// 此为本身已有的内容
64-
"pages": [
65-
// ......
66-
]
67-
}
68-
```
40+
## 关于PR
41+
42+
> 我们非常乐意接受各位的优质PR,但在此之前我希望您了解uView2.0是一个需要兼容多个平台的(小程序、h5、ios app、android app)包括nvue页面、vue页面。
43+
> 所以希望在您修复bug并提交之前尽可能的去这些平台测试一下兼容性。最好能携带测试截图以方便审核。非常感谢!
44+
45+
## 安装
46+
47+
#### **uni-app插件市场链接** —— [https://ext.dcloud.net.cn/plugin?id=1593](https://ext.dcloud.net.cn/plugin?id=1593)
6948

70-
请通过[快速上手](https://www.uviewui.com/components/quickstart.html)了解更详细的内容
49+
请通过[官网安装文档](https://www.uviewui.com/components/install.html)了解更详细的内容
50+
51+
## 快速上手
52+
53+
请通过[快速上手](https://uviewui.com/components/quickstart.html)了解更详细的内容
7154

7255
## 使用方法
7356
配置easycom规则后,自动按需引入,无需`import`组件,直接引用即可。
@@ -78,27 +61,6 @@ Vue.use(uView);
7861
</template>
7962
```
8063

81-
请通过[快速上手](https://www.uviewui.com/components/quickstart.html)了解更详细的内容
82-
83-
## 链接
84-
85-
- [官方文档](https://www.uviewui.com/)
86-
- [更新日志](https://www.www.uviewui.com/components/changelog.html)
87-
- [升级指南](https://www.uviewui.com/components/changelog.html)
88-
- [关于我们](https://www.uviewui.com/cooperation/about.html)
89-
90-
## 预览
91-
92-
您可以通过**微信**扫码,查看最佳的演示效果。
93-
<br>
94-
<br>
95-
<img src="https://uviewui.com/common/weixin_mini_qrcode.png" width="220" height="220" >
96-
97-
## 捐赠uView的研发
98-
99-
uView文档和源码全部开源免费,如果您认为uView帮到了您的开发工作,您可以捐赠uView的研发工作,捐赠无门槛,哪怕是一杯可乐也好(相信这比打赏主播更有意义)。
100-
101-
<img src="https://uviewui.com/common/alipay.png" width="220" ><img style="margin-left: 100px;" src="https://uviewui.com/common/wechat.png" width="220" >
102-
10364
## 版权信息
10465
uView遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,意味着您无需支付任何费用,也无需授权,即可将uView应用到您的产品中。
66+

uni_modules/uview-ui/changelog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
## 2.0.33(2022-06-17)
2+
# uView2.0重磅发布,利剑出鞘,一统江湖
3+
4+
1. 修复`loadmore`组件`lineColor`类型错误问题
5+
2. 修复`u-parse`组件`imgtap``linktap`不生效问题
6+
## 2.0.32(2022-06-16)
7+
# uView2.0重磅发布,利剑出鞘,一统江湖
8+
1. `u-loadmore`新增自定义颜色、虚/实线
9+
2. 修复`u-swiper-action`组件部分平台不能上下滑动的问题
10+
3. 修复`u-list`回弹问题
11+
4. 修复`notice-bar`组件动画在低端安卓机可能会抖动的问题
12+
5. `u-loading-page`添加控制图标大小的属性`iconSize`
13+
6. 修复`u-tooltip`组件`color`参数不生效的问题
14+
7. 修复`u--input`组件使用`blur`事件输出为`undefined`的bug
15+
8. `u-code-input`组件新增键盘弹起时,是否自动上推页面参数`adjustPosition`
16+
9. 修复`image`组件`load`事件无回调对象问题
17+
10. 修复`button`组件`loadingSize`设置无效问题
18+
10. 其他修复
119
## 2.0.31(2022-04-19)
220
# uView2.0重磅发布,利剑出鞘,一统江湖
321

uni_modules/uview-ui/components/u--input/u--input.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
:shape="shape"
3636
:customStyle="customStyle"
3737
:formatter="formatter"
38+
:ignoreCompositionEvent="ignoreCompositionEvent"
3839
@focus="$emit('focus')"
3940
@blur="e => $emit('blur', e)"
4041
@keyboardheightchange="$emit('keyboardheightchange')"

uni_modules/uview-ui/components/u--textarea/u--textarea.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
:border="border"
2222
:customStyle="customStyle"
2323
:formatter="formatter"
24+
:ignoreCompositionEvent="ignoreCompositionEvent"
2425
@focus="e => $emit('focus')"
2526
@blur="e => $emit('blur')"
2627
@linechange="e => $emit('linechange', e)"

uni_modules/uview-ui/components/u-input/props.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,11 @@ export default {
177177
formatter: {
178178
type: [Function, null],
179179
default: uni.$u.props.input.formatter
180+
},
181+
// 是否忽略组件内对文本合成系统事件的处理
182+
ignoreCompositionEvent: {
183+
type: Boolean,
184+
default: true
180185
}
181186
}
182187
}

uni_modules/uview-ui/components/u-input/u-input.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
:selection-end="selectionEnd"
3939
:selection-start="selectionStart"
4040
:password="password || type === 'password' || undefined"
41+
:ignoreCompositionEvent="ignoreCompositionEvent"
4142
@input="onInput"
4243
@blur="onBlur"
4344
@focus="onFocus"
@@ -114,7 +115,7 @@ import props from "./props.js";
114115
* @property {Boolean} readonly 是否只读,与disabled不同之处在于disabled会置灰组件,而readonly则不会 ( 默认 false )
115116
* @property {String} shape 输入框形状,circle-圆形,square-方形 ( 默认 'square' )
116117
* @property {Object} customStyle 定义需要用到的外部样式
117-
*
118+
* @property {Boolean} ignoreCompositionEvent 是否忽略组件内对文本合成系统事件的处理。
118119
* @example <u-input v-model="value" :password="true" suffix-icon="lock-fill" />
119120
*/
120121
export default {

uni_modules/uview-ui/components/u-line/props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default {
2424
type: [String, Number],
2525
default: uni.$u.props.line.margin
2626
},
27-
// 是否虚线,true-实线,false-虚线
27+
// 是否虚线,true-虚线,false-实线
2828
dashed: {
2929
type: Boolean,
3030
default: uni.$u.props.line.dashed

uni_modules/uview-ui/components/u-loadmore/props.js

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,16 @@ export default {
2020
type: [String, Number],
2121
default: uni.$u.props.loadmore.fontSize
2222
},
23-
// 图标大小
24-
iconSize: {
25-
type: [String, Number],
26-
default: uni.$u.props.loadmore.iconSize
27-
},
23+
// 图标大小
24+
iconSize: {
25+
type: [String, Number],
26+
default: uni.$u.props.loadmore.iconSize
27+
},
2828
// 字体颜色
2929
color: {
3030
type: String,
3131
default: uni.$u.props.loadmore.color
3232
},
33-
3433
// 加载中状态的图标,spinner-花朵状图标,circle-圆圈状,semicircle-半圆
3534
loadingIcon: {
3635
type: String,
@@ -80,6 +79,16 @@ export default {
8079
line: {
8180
type: Boolean,
8281
default: uni.$u.props.loadmore.line
82+
},
83+
// 线条颜色
84+
lineColor: {
85+
type: String,
86+
default: uni.$u.props.loadmore.lineColor
87+
},
88+
// 是否虚线,true-虚线,false-实线
89+
dashed: {
90+
type: Boolean,
91+
default: uni.$u.props.loadmore.dashed
8392
}
8493
}
8594
}

uni_modules/uview-ui/components/u-loadmore/u-loadmore.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
>
1414
<u-line
1515
length="140rpx"
16-
color="#E6E8EB"
16+
:color="lineColor"
1717
:hairline="false"
18+
:dashed="dashed"
1819
v-if="line"
1920
></u-line>
2021
<!-- 加载中和没有更多的状态才显示两边的横线 -->
@@ -42,8 +43,9 @@
4243
</view>
4344
<u-line
4445
length="140rpx"
45-
color="#E6E8EB"
46+
:color="lineColor"
4647
:hairline="false"
48+
:dashed="dashed"
4749
v-if="line"
4850
></u-line>
4951
</view>
@@ -68,10 +70,12 @@
6870
* @property {String} nomoreText 没有更多的提示语(默认 '没有更多了' )
6971
* @property {Boolean} isDot 到上一个相邻元素的距离 (默认 false )
7072
* @property {String} iconColor 加载中图标的颜色 (默认 '#b7b7b7' )
73+
* @property {String} lineColor 线条颜色(默认 #E6E8EB )
7174
* @property {String | Number} marginTop 上边距 (默认 10 )
7275
* @property {String | Number} marginBottom 下边距 (默认 10 )
7376
* @property {String | Number} height 高度,单位px (默认 'auto' )
7477
* @property {Boolean} line 是否显示左边分割线 (默认 false )
78+
* @property {Boolean} dashed // 是否虚线,true-虚线,false-实线 (默认 false )
7579
* @event {Function} loadmore status为loadmore时,点击组件会发出此事件
7680
* @example <u-loadmore :status="status" icon-type="iconType" load-text="loadText" />
7781
*/

uni_modules/uview-ui/components/u-parse/node/node.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default {
201201
// #ifdef H5 || APP-PLUS
202202
node.attrs.src = node.attrs.src || node.attrs['data-src']
203203
// #endif
204-
this.root.$emit('imgtap', node.attrs)
204+
this.root.$emit('imgTap', node.attrs)
205205
// 自动预览图片
206206
if (this.root.previewImg)
207207
uni.previewImage({
@@ -262,7 +262,7 @@ export default {
262262
linkTap(e) {
263263
var attrs = e.currentTarget ? this.childs[e.currentTarget.dataset.i].attrs : e,
264264
href = attrs.href
265-
this.root.$emit('linktap', attrs)
265+
this.root.$emit('linkTap', attrs)
266266
if (href) {
267267
// 跳转锚点
268268
if (href[0] == '#')
@@ -496,4 +496,4 @@ export default {
496496
height: 225px;
497497
}
498498
/* #endif */
499-
</style>
499+
</style>

uni_modules/uview-ui/components/u-textarea/props.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ export default {
109109
formatter: {
110110
type: [Function, null],
111111
default: uni.$u.props.textarea.formatter
112+
},
113+
// 是否忽略组件内对文本合成系统事件的处理
114+
ignoreCompositionEvent: {
115+
type: Boolean,
116+
default: true
112117
}
113118
}
114119
}

uni_modules/uview-ui/components/u-textarea/u-textarea.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
:holdKeyboard="holdKeyboard"
2222
:maxlength="maxlength"
2323
:confirmType="confirmType"
24+
:ignoreCompositionEvent="ignoreCompositionEvent"
2425
@focus="onFocus"
2526
@blur="onBlur"
2627
@linechange="onLinechange"
@@ -68,6 +69,7 @@ import props from "./props.js";
6869
* @property {Boolean} holdKeyboard focus时,点击页面的时候不收起键盘,只微信小程序有效(默认 false )
6970
* @property {String | Number} maxlength 最大输入长度,设置为 -1 的时候不限制最大长度(默认 140 )
7071
* @property {String} border 边框类型,surround-四周边框,none-无边框,bottom-底部边框(默认 'surround' )
72+
* @property {Boolean} ignoreCompositionEvent 是否忽略组件内对文本合成系统事件的处理
7173
*
7274
* @event {Function(e)} focus 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
7375
* @event {Function(e)} blur 输入框失去焦点时触发,event.detail = {value, cursor}

uni_modules/uview-ui/libs/config/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// 此版本发布于2022-04-19
2-
const version = '2.0.31'
1+
// 此版本发布于2022-06-17
2+
const version = '2.0.33'
33

44
// 开发环境才提示,生产环境不会提示
55
if (process.env.NODE_ENV === 'development') {

uni_modules/uview-ui/libs/config/props/loadmore.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export default {
2525
marginTop: 10,
2626
marginBottom: 10,
2727
height: 'auto',
28-
line: false
28+
line: false,
29+
lineColor: '#E6E8EB',
30+
dashed: false,
2931
}
3032
}

uni_modules/uview-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "uview-ui",
33
"name": "uview-ui",
44
"displayName": "uView2.0重磅发布,利剑出鞘,一统江湖",
5-
"version": "2.0.31",
5+
"version": "2.0.33",
66
"description": "uView UI已完美兼容nvue,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
77
"keywords": [
88
"uview",

0 commit comments

Comments
 (0)