App.vue 1.37 KB
<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png" />
    <HelloWorld msg="Welcome to Your Vue.js App" />
    <GLExternal url="//localhost:8080/html/employee/index.html" :subscribe="subscribe"></GLExternal>
    <GLButton @click="click" id="1-1-1-1" mode="button">232321321</GLButton>
    <el-button type="primary">aaa</el-button>
    <el-button type="primary" size="small">aaa</el-button>
    <el-button type="primary" size="mini">aaa</el-button>
    <GLDialog :visible.sync="visible" title="aaaaaaaaa">
      <div slot="footer">
        <el-button size="small" @click="visible = false">取消</el-button>
        <el-button type="primary" size="small">aaa</el-button>
      </div>
    </GLDialog>
    <GLTable></GLTable>
  </div>
</template>

<script>
import HelloWorld from './components/HelloWorld.vue'
export default {
  name: 'App',
  components: {
    HelloWorld
  },
  data() {
    return {
      visible: false
    }
  },
  methods: {
    subscribe(child) {
      child.call('push', { src: this.src })
      child.on('route-to', params => {
        this.$history.push(params)
      })
    },
    click() {
      this.visible = true
    }
  }
}
</script> 

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>