您的位置:首页 > 健康 > 美食 > h5制作步骤_洛可可设计公司贾伟_百度权重查询爱站网_网络广告策划的内容

h5制作步骤_洛可可设计公司贾伟_百度权重查询爱站网_网络广告策划的内容

2025/2/23 22:41:39 来源:https://blog.csdn.net/qq_63432403/article/details/142731416  浏览:    关键词:h5制作步骤_洛可可设计公司贾伟_百度权重查询爱站网_网络广告策划的内容
h5制作步骤_洛可可设计公司贾伟_百度权重查询爱站网_网络广告策划的内容

Vue组件库Element-ui

Element是一套为开发者、设计师和产品经理准备的基于Vue2.0的桌面端组件库。Element - 网站快速成型工具

安装element-ui

npm install element-ui # element-ui@版本(可以指定版本号

引入ElementUI组件库,在main.js中添加内容得到:

import Vue from 'vue'
import App from './App.vue'
import router from './router'
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';Vue.config.productionTip = false// 使用element-ui
Vue.use(ElementUI);
new Vue({router,render: h => h(App)
}).$mount('#app')

在App.vue中进行修改如下:

<template><div><ElementView></ElementView></div>
</template><script>
import ElementView from './views/ElementView.vue';export default {components: {ElementView},data() {return {msg: 'Welcome to Your Vue.js App'}},mounted() {console.log('App.vue mounted');}
}
</script>
<style>
#app {font-family: Avenir, Helvetica, Arial, sans-serif;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale;text-align: center;color: #2c3e50;
}nav {padding: 30px;
}nav a {font-weight: bold;color: #2c3e50;
}nav a.router-link-exact-active {color: #42b983;
}
</style>

在这里插入图片描述

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com