WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/uview-plus/components/u-cate-tab/u-cate-tab.vue
@@ -83,14 +83,18 @@
            deep: true,
            handler(newVal, oldVal) {
               // this.observer();
               sleep(30);
               sleep(30).then(() => {
               this.getMenuItemTop();
               this.leftMenuStatus(this.innerCurrent);
               })
            }
         },
         current(nval) {
            this.innerCurrent = nval;
            this.leftMenuStatus(this.innerCurrent);
            sleep(30).then(() => {
               this.swichMenu(this.innerCurrent)
            })
         },
         height() {
            // console.log('height change');
@@ -120,6 +124,10 @@
         this.innerCurrent = this.current;
         this.leftMenuStatus(this.innerCurrent);
         this.getMenuItemTop()
         // 设置默认index
         sleep(50).then(() => {
            this.swichMenu(this.innerCurrent)
         })
      },
      methods: {
         addUnit,
@@ -129,8 +137,10 @@
               if(this.arr.length == 0) {
                  await this.getMenuItemTop();
               }
               if (this.scrollIntoView != 'item' + index) {
               this.scrollIntoView = 'item' + index;
            }
            }
            if (index == this.innerCurrent) return;
            this.$nextTick(function(){