@kaiyinchem/ky-uniui 1.1.19 → 1.1.20

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.
@@ -114,7 +114,10 @@
114
114
  watch: {
115
115
  value(v) {
116
116
  this.onTabClick(v)
117
- }
117
+ },
118
+ index(v) {
119
+ this.tabIndex = v
120
+ }
118
121
  },
119
122
  computed: {
120
123
  hasIcon() {
@@ -122,7 +125,7 @@
122
125
  },
123
126
  },
124
127
  mounted() {
125
- this.onTabClick(typeof this.value !== 'undefined' ? this.value : this.index)
128
+ this.tabIndex = this.index
126
129
  },
127
130
  methods: {
128
131
  onTabClick(index) {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "locale"
10
10
  ],
11
11
  "description": "an uniapp ui",
12
- "version": "1.1.19",
12
+ "version": "1.1.20",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git+https://github.com/yezipi/ky-uniui.git"