Skip to content

Commit

Permalink
修复radio组件可能会出现允许多选的问题,优化radio-group的value参数,可以动态响应
Browse files Browse the repository at this point in the history
  • Loading branch information
wlxuqu committed Sep 17, 2020
1 parent 9a1ca05 commit 9561247
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name" : "uView",
"appid" : "__UNI__60F4B81",
"description" : "多平台快速开发的UI框架",
"versionName" : "1.7.0",
"versionName" : "1.7.1",
"versionCode" : "100",
"transformPx" : false,
"app-plus" : {
Expand Down
2 changes: 1 addition & 1 deletion uview-ui/components/u-radio-group/u-radio-group.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
// 所以需要手动通知子组件,这里返回一个parentData变量,供watch监听,在其中去通知每一个子组件重新从父组件(u-radio-group)
// 拉取父组件新的变化后的参数
parentData() {
return [this.disabled, this.activeColor, this.size, this.labelDisabled, this.shape, this.iconSize, this.width, this.wrap];
return [this.value, this.disabled, this.activeColor, this.size, this.labelDisabled, this.shape, this.iconSize, this.width, this.wrap];
}
},
methods: {
Expand Down
1 change: 1 addition & 0 deletions uview-ui/components/u-radio/u-radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
this.parent = false;
// 支付宝小程序不支持provide/inject,所以使用这个方法获取整个父组件,在created定义,避免循环引用
this.updateParentData();
this.parent.children.push(this);
},
computed: {
// 是否禁用,如果父组件u-raios-group禁用的话,将会忽略子组件的配置
Expand Down
4 changes: 2 additions & 2 deletions uview-ui/libs/config/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 此版本发布于2020-09-16
let version = '1.7.0';
// 此版本发布于2020-09-17
let version = '1.7.1';

export default {
v: version,
Expand Down
2 changes: 1 addition & 1 deletion uview-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uview-ui",
"version": "1.7.0",
"version": "1.7.1",
"description": "uView UI,是uni-app生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
"main": "index.js",
"keywords": ["uview", "uView", "uni-app", "uni-app ui", "uniapp", "uviewui", "uview ui", "uviewUI", "uViewui", "uViewUI", "uView UI", "uni ui", "uni UI", "uniapp ui", "ui", "UI框架", "uniapp ui框架", "uniapp UI"],
Expand Down

0 comments on commit 9561247

Please sign in to comment.