@tuya-miniapp/smart-ui 2.6.4-beta-2 → 2.6.4-beta-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/swipe-cell/index.js +2 -2
- package/dist/tabs/index.wxs +2 -2
- package/lib/swipe-cell/index.js +2 -2
- package/lib/tabs/index.wxs +2 -2
- package/package.json +1 -1
package/dist/swipe-cell/index.js
CHANGED
@@ -49,7 +49,7 @@ SmartComponent({
|
|
49
49
|
const offset = position === 'left' ? leftWidth : -rightWidth;
|
50
50
|
this.swipeMove(offset);
|
51
51
|
if (position !== this.data.position && this.data.position !== 'close') {
|
52
|
-
this.$emit('
|
52
|
+
this.$emit('tab-close', this.data.position);
|
53
53
|
}
|
54
54
|
this.setData({ position });
|
55
55
|
this.$emit('open', {
|
@@ -59,7 +59,7 @@ SmartComponent({
|
|
59
59
|
},
|
60
60
|
close() {
|
61
61
|
if (this.data.position !== 'close') {
|
62
|
-
this.$emit('
|
62
|
+
this.$emit('tab-close', this.data.position);
|
63
63
|
}
|
64
64
|
this.swipeMove(0);
|
65
65
|
this.setData({ position: 'close' });
|
package/dist/tabs/index.wxs
CHANGED
@@ -27,8 +27,8 @@ function tabStyle(data) {
|
|
27
27
|
if (data.type === 'card') {
|
28
28
|
return style({
|
29
29
|
'border-color': data.color,
|
30
|
-
'background-color': !data.disabled && data.active ? data.color : null,
|
31
|
-
color: titleColor || (!data.disabled && !data.active ? data.color : null),
|
30
|
+
'background-color': !data.disabled && data.active && data.type !== 'card' ? data.color : null,
|
31
|
+
color: titleColor || (!data.disabled && !data.active && data.type !== 'card' ? data.color : null),
|
32
32
|
'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
|
33
33
|
});
|
34
34
|
}
|
package/lib/swipe-cell/index.js
CHANGED
@@ -54,7 +54,7 @@ var ARRAY = [];
|
|
54
54
|
var offset = position === 'left' ? leftWidth : -rightWidth;
|
55
55
|
this.swipeMove(offset);
|
56
56
|
if (position !== this.data.position && this.data.position !== 'close') {
|
57
|
-
this.$emit('
|
57
|
+
this.$emit('tab-close', this.data.position);
|
58
58
|
}
|
59
59
|
this.setData({ position: position });
|
60
60
|
this.$emit('open', {
|
@@ -64,7 +64,7 @@ var ARRAY = [];
|
|
64
64
|
},
|
65
65
|
close: function () {
|
66
66
|
if (this.data.position !== 'close') {
|
67
|
-
this.$emit('
|
67
|
+
this.$emit('tab-close', this.data.position);
|
68
68
|
}
|
69
69
|
this.swipeMove(0);
|
70
70
|
this.setData({ position: 'close' });
|
package/lib/tabs/index.wxs
CHANGED
@@ -27,8 +27,8 @@ function tabStyle(data) {
|
|
27
27
|
if (data.type === 'card') {
|
28
28
|
return style({
|
29
29
|
'border-color': data.color,
|
30
|
-
'background-color': !data.disabled && data.active ? data.color : null,
|
31
|
-
color: titleColor || (!data.disabled && !data.active ? data.color : null),
|
30
|
+
'background-color': !data.disabled && data.active && data.type !== 'card' ? data.color : null,
|
31
|
+
color: titleColor || (!data.disabled && !data.active && data.type !== 'card' ? data.color : null),
|
32
32
|
'flex-basis': ellipsis ? 88 / data.swipeThreshold + '%' : null,
|
33
33
|
});
|
34
34
|
}
|