Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in gogocode-plugin-vue 没有转化Vue.extend #48

Closed
masx200 opened this issue Jul 22, 2021 · 0 comments
Closed

bug in gogocode-plugin-vue 没有转化Vue.extend #48

masx200 opened this issue Jul 22, 2021 · 0 comments

Comments

@masx200
Copy link

masx200 commented Jul 22, 2021

bug in gogocode-plugin-vue
没有转化Vue.extend
转化前后没有任何区别?

gogocode -s ./src/vue-app-home.js -t gogocode-plugin-vue -o ./src-out/vue-app-home.js
import { hashchangehandler } from './vue-index-render'
import { 调整导航栏和主体的距离 } from './调整导航栏和主体的距离'
import $ from 'jquery'
import * as Vue from 'vue'
let App = Vue.extend({
  name: 'App',
  data() {
    return {
      isActive1: window.location.hash == '#/' ? true : false,
      isActive2: window.location.hash == '#/huami' ? true : false,
      isActive3: window.location.hash == '#/about' ? true : false,
    }
  },
  methods: {
    togglecollapsenavbar() {
      $('#example-navbar-collapse').toggle()
    },
    myfreshdata() {
      ;(this.isActive1 = window.location.hash === '#/'),
        (this.isActive2 = window.location.hash === '#/huami'),
        (this.isActive3 = window.location.hash === '#/about')
    },
  },
  mounted() {
    var initloadele = document.getElementById(initloadingid)
    initloadele && (initloadele.style.display = 'none')
    this.myfreshdata()
    hashchangehandler()
    $('#mynavul').on('click', hashchangehandler)
    // $("#my主体").css("padding-top", $("#my导航栏").height());
    // requestAnimationFrame(() => {
    //     $("#my主体").css("padding-top", $("#my导航栏").height());
    // });
    // let timer = setInterval(() => {
    //     $("#my主体").css("padding-top", $("#my导航栏").height());
    //     //console.log($("#my导航栏").height());
    // }, 0);
    // setTimeout(() => {
    //     $("#my主体").css("padding-top", $("#my导航栏").height());
    //     //console.log($("#my导航栏").height());
    //     clearInterval(timer);
    // }, 1000);
    调整导航栏和主体的距离()
  },
})
export default App
import { initloadingid } from './initloadingid.ts'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants