Skip to content

Commit 7d463c8

Browse files
committed
1. 【新增】新增$u.sys用于获取设备的信息,相当于uni.getSystemInfoSync()的效果
2. 【新增】新增$u.os用于返回平台名称,结果为小写的"ios"或者"android" 3. 【新增】popup和mask新增hover-stop-propagation属性,阻止父节点出现点击状态 4. 【新增】layout组件的col新增text-align属性,用于控制内部的水平对齐方式 5. 【新增】upload新增limit-type参数,用于控制允许选择的图片后缀 6. 【新增】input组件新增selection-start和selection-end参数 7. 【新增】number-box组件新增只能属于正整数的positive-integer参数 8. 【新增】picker、select和keyboard组件新增cancel-text和confirm-text参数 9. 【新增】tabs组件新增item-width参数,用于控制标签的宽度,超出用过省略号表示,默认auto 10. 【新增】avatar头像新增性别和等级展示角标 11. 【新增】sticky新增unfixed取消吸顶事件 12. 【新增】action-sheet组件新增disabled属性,用于禁止某些条目的可选性 13. 【新增】最新版hx2.8.2中,waterfall组件支持支付宝小程序 14. 【新增】button组件返回的click事件中新增返回事件源参数 15. 【新增】icon组件新增用于控制图标的width和height参数,以及控制垂直方向偏移的top参数 16. 【优化】调整navbar的返回图标为nav-back,大小调整为44 17. 【优化】重构section组件,类名使用BEM规范,左侧竖线使用字体图标,新增控制竖线颜色的line-color参数 18. 【修复】改正radio和checkbox组件的label-disabled判断不严格的问题 19. 【修复】修复popup组件关闭时触发两次close事件的问题 20. 【修复】修复slider滑块组件block-color参数无效的问题 21. 【修复】修复http请求中拦截器中返回false报错的问题,优化响应拦截器返回false报找不到catch()的问题 22. 【修复】修复layout的col子组件text-align参数无效的问题 23. 【修复】修复image组件的error-icon和loadingicon参数传图片地址时无效的问题 24. 【修复】修复number-box动态设置输入值不生效的问题
1 parent 788462b commit 7d463c8

File tree

15 files changed

+371
-279
lines changed

15 files changed

+371
-279
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name" : "uView",
33
"appid" : "__UNI__60F4B81",
44
"description" : "多平台快速开发的UI框架",
5-
"versionName" : "1.5.5",
5+
"versionName" : "1.5.6",
66
"versionCode" : "100",
77
"transformPx" : false,
88
"app-plus" : {

pages.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -828,22 +828,22 @@
828828
"backgroundColor": "#FFFFFF",
829829
"borderStyle": "black",
830830
"list": [{
831-
"pagePath": "pages/example/components",
832-
"iconPath": "static/uview/example/component.png",
833-
"selectedIconPath": "static/uview/example/component_select.png",
834-
"text": "组件"
831+
"pagePath": "pages/example/components"
832+
// "iconPath": "static/uview/example/component.png",
833+
// "selectedIconPath": "static/uview/example/component_select.png",
834+
// "text": "组件"
835835
},
836836
{
837-
"pagePath": "pages/example/js",
838-
"iconPath": "static/uview/example/js.png",
839-
"selectedIconPath": "static/uview/example/js_select.png",
840-
"text": "工具"
837+
"pagePath": "pages/example/js"
838+
// "iconPath": "static/uview/example/js.png",
839+
// "selectedIconPath": "static/uview/example/js_select.png",
840+
// "text": "工具"
841841
},
842842
{
843-
"pagePath": "pages/example/template",
844-
"iconPath": "static/uview/example/template.png",
845-
"selectedIconPath": "static/uview/example/template_select.png",
846-
"text": "模板"
843+
"pagePath": "pages/example/template"
844+
// "iconPath": "static/uview/example/template.png",
845+
// "selectedIconPath": "static/uview/example/template_select.png",
846+
// "text": "模板"
847847
}
848848
]
849849
}

pages/example/components.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</u-cell-group>
1010
</view>
1111
<u-gap height="70"></u-gap>
12+
<u-tabbar :list="vuex_tabbar" :mid-button="true"></u-tabbar>
1213
</view>
1314
</template>
1415

pages/example/js.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</u-cell-group>
1010
</view>
1111
<u-gap height="70"></u-gap>
12+
<u-tabbar :list="vuex_tabbar" :mid-button="true"></u-tabbar>
1213
</view>
1314
</template>
1415

pages/example/template.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
</u-cell-group>
1010
</view>
1111
<u-gap height="70"></u-gap>
12+
<u-tabbar :list="vuex_tabbar" :mid-button="true"></u-tabbar>
1213
</view>
1314
</template>
1415

static/uview/example/js.png

1 KB
Loading

static/uview/example/js_bak.png

3.14 KB
Loading

static/uview/example/js_select.png

1.98 KB
Loading
2.2 KB
Loading

store/index.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,27 @@ const store = new Vuex.Store({
3636
// 如果vuex_version无需保存到本地永久存储,无需lifeData.vuex_version方式
3737
vuex_version: '1.0.1',
3838
vuex_demo: '绛紫',
39+
// 自定义tabbar数据
40+
vuex_tabbar: [{
41+
iconPath: "/static/uview/example/component.png",
42+
selectedIconPath: "/static/uview/example/component_select.png",
43+
text: '组件',
44+
pagePath: '/pages/example/components'
45+
},
46+
{
47+
iconPath: "/static/uview/example/js.png",
48+
selectedIconPath: "/static/uview/example/js_select.png",
49+
text: '工具',
50+
midButton: true,
51+
pagePath: '/pages/example/js'
52+
},
53+
{
54+
iconPath: "/static/uview/example/template.png",
55+
selectedIconPath: "/static/uview/example/template_select.png",
56+
text: '模板',
57+
pagePath: '/pages/example/template'
58+
}
59+
]
3960
},
4061
mutations: {
4162
$uStore(state, payload) {

uview-ui/components/u-keyboard/u-keyboard.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<slot />
55
<view class="u-tooltip" v-if="tooltip">
66
<view class="u-tooltip-item u-tooltip-cancel" hover-class="u-tooltip-cancel-hover" @tap="onCancel">
7-
{{cancelBtn ? '取消' : ''}}
7+
{{cancelBtn ? cancelText : ''}}
88
</view>
99
<view v-if="showTips" class="u-tooltip-item u-tooltip-tips">
1010
{{tips ? tips : mode == 'number' ? '数字键盘' : mode == 'card' ? '身份证键盘' : '车牌号键盘'}}
1111
</view>
1212
<view v-if="confirmBtn" @tap="onConfirm" class="u-tooltip-item u-tooltips-submit" hover-class="u-tooltips-submit-hover">
13-
{{confirmBtn ? '完成' : ''}}
13+
{{confirmBtn ? confirmText : ''}}
1414
</view>
1515
</view>
1616
<block v-if="mode == 'number' || mode == 'card'">
@@ -34,6 +34,8 @@
3434
* @property {Boolean} cancel-btn 是否显示工具条左边的"取消"按钮(默认true)
3535
* @property {Boolean} confirm-btn 是否显示工具条右边的"完成"按钮(默认true)
3636
* @property {Boolean} mask 是否显示遮罩(默认true)
37+
* @property {String} confirm-text 确认按钮的文字
38+
* @property {String} cancel-text 取消按钮的文字
3739
* @property {Number String} z-index 弹出键盘的z-index值(默认1075)
3840
* @property {Boolean} random 是否打乱键盘按键的顺序(默认false)
3941
* @property {Boolean} safe-area-inset-bottom 是否开启底部安全区适配(默认false)
@@ -111,6 +113,16 @@
111113
zIndex: {
112114
type: [Number, String],
113115
default: ''
116+
},
117+
// 取消按钮的文字
118+
cancelText: {
119+
type: String,
120+
default: '取消'
121+
},
122+
// 确认按钮的文字
123+
confirmText: {
124+
type: String,
125+
default: '确认'
114126
}
115127
},
116128
data() {

0 commit comments

Comments
 (0)