1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

前端小调整

This commit is contained in:
程序员小墨 2022-10-21 16:22:31 +08:00
parent 7997691f77
commit 1e62457bc5
2 changed files with 10 additions and 14 deletions

View File

@ -1,26 +1,19 @@
<template> <template>
<img src="./assets/logo.png"> <img src="./assets/logo.png">
<div> <nav>
<p> <router-link to="/">Home</router-link> |
If Element Plus is successfully added to this project, you'll see an <router-link to="/about">About</router-link>
<code v-text="'<el-button>'"></code> </nav>
below <router-view/>
</p>
<el-button type="primary">el-button</el-button>
<el-badge value="99" type="primary"></el-badge>
</div>
<HelloWorld msg="Welcome to Your Vue.js App" />
</template> </template>
<script> <script>
import HelloWorld from './components/HelloWorld.vue'
// import { ElConfigProvider } from 'element-plus' // import { ElConfigProvider } from 'element-plus'
// import { zhCn } from 'element-plus/es/locale'; // import { zhCn } from 'element-plus/es/locale';
export default { export default {
name: 'App', name: 'App',
components: { components: {
HelloWorld
// ElConfigProvider, // ElConfigProvider,
} }
// setup() { // setup() {

View File

@ -1,7 +1,10 @@
<template> <template>
<div class="home"> <div class="home">
<img alt="Vue logo" src="../assets/logo.png"> <div>
<HelloWorld msg="Welcome to Your Vue.js App"/> <el-button type="primary">el-button</el-button>
<el-badge value="99" type="primary"></el-badge>
</div>
<HelloWorld msg="Welcome to Your Vue.js App" />
</div> </div>
</template> </template>