This commit is contained in:
许彦峰
2019-03-15 10:08:39 +08:00
commit e7adf25ccf
75 changed files with 25883 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import Vue from 'vue'
import root from './root.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.config.productionTip = false
Vue.use(ElementUI)
/* eslint-disable no-new */
new Vue({
el: '#root',
render: h => h(root)
})

View File

@@ -0,0 +1,23 @@
<template lang="pug">
div
el-button(type="primary" @click="tab") New tab
</template>
<script>
export default {
data: () => ({
}),
computed: { },
created () { },
mounted () { },
methods: {
tab () {
chrome.tabs.create({ url: 'pages/app.html' })
}
}
}
</script>
<style lang="scss">
div {
color: blue
}
</style>