weapp版本升级到1.11.7
"version": "1.11.7"
This commit is contained in:
1 parent
a3c886146a
commit
66ba21dd7b
67 files changed
+566
-365
No files matched your search
+3
-2
@@ -26,6 +26,7 @@ var animate_1 = require("./animate");
|
||||
},
|
||||
data: {
|
||||
expanded: false,
|
||||
parentBorder: true,
|
||||
},
|
||||
mounted: function () {
|
||||
this.updateExpanded();
|
||||
@@ -36,7 +37,7 @@ var animate_1 = require("./animate");
|
||||
if (!this.parent) {
|
||||
return;
|
||||
}
|
||||
var _a = this.parent.data, value = _a.value, accordion = _a.accordion;
|
||||
var _a = this.parent.data, value = _a.value, accordion = _a.accordion, border = _a.border;
|
||||
var _b = this.parent.children, children = _b === void 0 ? [] : _b;
|
||||
var name = this.data.name;
|
||||
var index = children.indexOf(this);
|
||||
@@ -47,7 +48,7 @@ var animate_1 = require("./animate");
|
||||
if (expanded !== this.data.expanded) {
|
||||
(0, animate_1.setContentAnimate)(this, expanded, this.mounted);
|
||||
}
|
||||
this.setData({ index: index, expanded: expanded });
|
||||
this.setData({ index: index, expanded: expanded, parentBorder: border });
|
||||
},
|
||||
onClick: function () {
|
||||
if (this.data.disabled) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<wxs src="../wxs/utils.wxs" module="utils" />
|
||||
|
||||
<view class="van-collapse-item custom-class {{ index !== 0 ? 'van-hairline--top' : '' }}">
|
||||
<view class="van-collapse-item custom-class {{ index !== 0 && parentBorder ? 'van-hairline--top' : '' }}">
|
||||
<van-cell
|
||||
size="{{ size }}"
|
||||
title="{{ title }}"
|
||||
|
||||
Reference in new issue
Block a user