riku
2022-09-15 bd3a9d7086f5a428b385599ba2cb08299b22c0df
component/switchtab/switchtab.js
@@ -8,6 +8,14 @@
   * 组件的属性列表
   */
  properties: {
    extClass: {
      type: String,
      value: ''
    },
    extClassOn: {
      type: String,
      value: ''
    },
    tabList: {
      type: Array,
      value: []
@@ -29,6 +37,17 @@
    // pageheight: '600px',
  },
  pageLifetimes: {
    // 组件所在页面的生命周期函数
    show: function () {
      // this.refreshHeight(true)
    },
    hide: function () { },
    resize: function () {
    },
  },
  /**
   * 组件的方法列表
   */
@@ -38,6 +57,7 @@
      if (e) {
        setTimeout(() => {
          const p = `.page${this.data.currentTab}`
          console.log(p);
          this.tabsHeight(p);
        }, 50);
      }