@kaiyinchem/ky-uniui 1.0.37 → 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.
@@ -7,7 +7,7 @@
7
7
  iphonex: $safeBottom > 0 && position === 'fixed',
8
8
  icon: hasIcon,
9
9
  scroll: scrollX,
10
- card: type === 'card'
10
+ card: type === 'card',
11
11
  'white-bg': !noBg
12
12
  }"
13
13
  class="ky-tab-wrap"
@@ -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)
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "style"
8
8
  ],
9
9
  "description": "an uniapp ui",
10
- "version": "1.0.37",
10
+ "version": "1.0.39",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/yezipi/ky-uniui.git"