Browse Source

自动展开

李书文 1 year ago
parent
commit
8f8d2fb996
1 changed files with 1 additions and 1 deletions
  1. 1 1
      uview-ui/components/u-collapse-item/u-collapse-item.vue

+ 1 - 1
uview-ui/components/u-collapse-item/u-collapse-item.vue

@@ -118,7 +118,7 @@
 					if (uni.$u.test.array(value)) {
 						return uni.$u.error('手风琴模式下,u-collapse组件的value参数不能为数组')
 					}
-					this.expanded = this.name == value
+					this.expanded =true;
 				} else {
 					if (!uni.$u.test.array(value) && value !== null) {
 						return uni.$u.error('非手风琴模式下,u-collapse组件的value参数必须为数组')