@kaiyinchem/ky-uniui 1.0.38 → 1.0.39
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 +7 -0
- package/package.json +1 -1
package/components/ky-tab.vue
CHANGED
|
@@ -89,6 +89,10 @@
|
|
|
89
89
|
type: Boolean,
|
|
90
90
|
default: false,
|
|
91
91
|
},
|
|
92
|
+
disabled: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false,
|
|
95
|
+
}
|
|
92
96
|
},
|
|
93
97
|
data() {
|
|
94
98
|
return {
|
|
@@ -119,6 +123,9 @@
|
|
|
119
123
|
},
|
|
120
124
|
methods: {
|
|
121
125
|
onTabClick(item, index) {
|
|
126
|
+
if (this.disabled) {
|
|
127
|
+
return
|
|
128
|
+
}
|
|
122
129
|
if (this.hasIcon) {
|
|
123
130
|
this.tabIndex = index
|
|
124
131
|
this.$emit('change', index)
|