61,129
社区成员




[zcm@ele 2]$node -v
v12.6.0
[zcm@ele 3]$npm -v
6.9.0
[zcm@ele 4]$cnpm -v
cnpm@6.1.0 (/usr/local/lib/node_modules/cnpm/lib/parse_argv.js)
npm@6.10.2 (/usr/local/lib/node_modules/cnpm/node_modules/npm/lib/npm.js)
node@12.6.0 (/usr/local/Cellar/node/12.6.0/bin/node)
npminstall@3.22.1 (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/index.js)
prefix=/usr/local
darwin x64 16.7.0
registry=https://r.npm.taobao.org
[zcm@ele 6]$vue -V
3.9.2
<template>
<div class="hello">
<h1>{{ msg }}</h1>
<div>
<img width=100 src=".././assets/logo.png" alt="he.logo">
</div>
<div class="div_el">
<el-image src="../assets/logo.png" alt="sorry"></el-image>
</div>
</div>
</template>
<script>
export default {
name: 'HelloWorld',
props: {
msg: String
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
margin: 40px 0 0;
}
a {
color: #42b983;
}
.hello {
margin: auto;
}
.hello img {
border: 1px dashed red;
}
.div_el {
border: 1px solid green;
width: 200px;
height: 100px;
}
</style>
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
createApp(App)
.use(store)
.use(router)
.mount("#app");
<template>
<div class="hello">
<h1><el-image :src="imgurl" alt="sorry"></h1>
<div class="div_el" style="width: 300px;height: 300px;">
<el-image :src="imgurl" alt="sorry"></el-image>
</div>
</div>
</template>
data() {
return {
caption: "接口审核",
imgurl:require('../../assets/images/login/login-back-img.jpg')
}
},