@kaiyinchem/ky-uniui 1.0.36 → 1.0.38
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/components/ky-tab.vue +10 -3
- package/package.json +1 -1
package/components/ky-tab.vue
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
iphonex: $safeBottom > 0 && position === 'fixed',
|
|
8
8
|
icon: hasIcon,
|
|
9
9
|
scroll: scrollX,
|
|
10
|
-
card: type === 'card'
|
|
10
|
+
card: type === 'card',
|
|
11
|
+
'white-bg': !noBg
|
|
11
12
|
}"
|
|
12
13
|
class="ky-tab-wrap"
|
|
13
14
|
>
|
|
@@ -83,7 +84,11 @@
|
|
|
83
84
|
type: {
|
|
84
85
|
type: String,
|
|
85
86
|
default: 'line',
|
|
86
|
-
}
|
|
87
|
+
},
|
|
88
|
+
noBg: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: false,
|
|
91
|
+
},
|
|
87
92
|
},
|
|
88
93
|
data() {
|
|
89
94
|
return {
|
|
@@ -141,8 +146,10 @@
|
|
|
141
146
|
|
|
142
147
|
<style scoped lang="scss">
|
|
143
148
|
.ky-tab-wrap {
|
|
144
|
-
background: var(--bg-white);
|
|
145
149
|
width: auto;
|
|
150
|
+
&.white-bg {
|
|
151
|
+
background: var(--bg-white);
|
|
152
|
+
}
|
|
146
153
|
&.scroll {
|
|
147
154
|
padding: 0 24rpx;
|
|
148
155
|
.ky-tab-components {
|