electron+elementui
- 下载electron-vue
vue init simulatedgreg/electron-vue admin
- 进入建好的项目目录
npm installnpm run dev
此时的目录结构如下:
- 安装elementui
cnpm install --save element-ui
cnpm install --save-dev node-sass
cnpm install --save-dev sass-loader
cnpm install --save font-awesome
- 在main.js中引用element-ui
import Vue from 'vue'import App from './App'import 'font-awesome/css/font-awesome.min.css'import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css';
//原始风格
// import 'element-ui/lib/theme-chalk/index.css'
//自定义风格
// import './assets/theme/element-#09345f/index.css'
Vue.use(ElementUI)Vue.config.productionTip = false/* eslint-disable no-new */
new Vue({components: { App },template: '<App/>'
}).$mount('#app')
- 在LandingPage.vue里测试elementui组件
<template><div id="wrapper"><img id="logo" src="~@/assets/logo.png" alt="electron-vue"><main><div class="left-side"><span class="title">Welcome to your new project!</span><system-information></system-information></div><div class="right-side"><div class="doc"><div class="title">Getting Started</div><p>electron-vue comes packed with detailed documentation that covers everything frominternal configurations, using the project structure, building your application,and so much more.</p><button @click="open('https://simulatedgreg.gitbooks.io/electron-vue/content/')">Read the Docs</button><br><br></div><div class="doc"><div class="title alt">Other Documentation</div><el-button type=danger plain>测试</el-button><button class="alt" @click="open('https://electron.atom.io/docs/')">Electron</button><button class="alt" @click="open('https://vuejs.org/v2/guide/')">Vue.js</button></div></div></main></div>
</template><script>import SystemInformation from './LandingPage/SystemInformation'export default {name: 'landing-page',components: { SystemInformation },methods: {open (link) {require('electron').shell.openExternal(link)}}}
</script>
页面成功
electron+elementui相关推荐
- spring boot + vue + element-ui全栈开发入门——基于Electron桌面应用开发
前言 Electron是由Github开发,用HTML,CSS和JavaScript来构建跨平台桌面应用程序的一个开源库. Electron通过将Chromium和Node.js合并到同一个运行时环 ...
- electron+vue+elementui实现类似QQ窗口靠边自动边缘隐藏,electron+vue桌面应用项目框架搭建
1.与普通vue项目一样安装node.淘宝源等,然后再 electron官网:https://www.electronjs.org/ 安装electron: npm install electron ...
- Vue 全家桶 + Electron 开发的一个跨三端的应用
GitHub Repo:vue-objccn Follow: halfrost · GitHub 项目地址:https://github.com/halfrost/vue-objccn 利用 Vue. ...
- pyqt 获取 UI 中组件_一起学Vue:UI框架(elementui)
目标 使用Vue+ElementUI构建一个非常简单CRUD应用程序,以便您更好地了解它的工作方式. 效果页面 比如我们要实现这样列表.新增.编辑三个页面: 列表页面 新增页面 编辑页面 安装elem ...
- editor修改样式 vue_手摸手Electron + Vue实战教程(三)
系列文章: 手摸手Electron + Vue实战教程(一) 手摸手Electron + Vue实战教程(二) ❝ 上一篇我们已经完成了左侧菜单栏的基本样式功能,这一篇我们就主要来开发右侧的Markd ...
- spring boot + vue + element-ui全栈开发入门
今天想弄弄element-ui 然后就在网上找了个例子 感觉还是可以用的 第一步是完成了 果断 拿过来 放到我这里这 下面直接是连接 点进去 就可以用啊 本想着不用vue 直接导入连接 ...
- app头像上传vue_Vue+Electron开发跨平台桌面应用实践
总篇43篇 2019年第17篇 背景 公司去年对 CDN 资源服务器进行了迁移,由原来的通过 FTP 方式的文件存储改为了使用 S3 协议上传的对象存储,部门内 @柴俊堃 同学开发了一个命令行脚本工具 ...
- Vue 全家桶 + Electron 开发的一个跨三端的应用 1
代码地址如下: http://www.demodashi.com/demo/11738.html GitHub Repo:vue-objccn Follow: halfrost · GitHub 利用 ...
- 使用electron和vue,以ipc通信的方式构建客户端版本的掘金首页
1. 使用electron-vue新建基于vue的electron环境,更多配置请访问源项目 npm i -g vue-cli vue init simulatedgreg/electron-vue ...
最新文章
- 无门槛领取80本圣经级技术书籍!技术改变世界!
- [luoguP1168]中位数(主席树+离散化)
- 操作系统原理:死锁的特征,预防,避免,恢复
- bash环境(变量与bash配置文件)
- CPU,寄存器,内存三者的关系
- 前端学习(3303):函数组件组件子组件useRef聚焦
- 如何请教问题且以后都会回答你的方法
- linux黑板模式,敲黑板!怎样使用 Linux stat 命令创建灵活文件列表?
- VScode设置中文界面
- 打标工具labelme或者labelimg遇到图片闪退的完美解决方案
- docker 安装svnserver
- 【Unity】添加 Device Simulator功能
- 计算机网络信息安全风险评估准则,计算机网络信息安全风险评估准则及方法研究.pdf...
- c++_设计一个 Studnet(学生)类
- 基于GIS+AI、GIS+AR、GIS+三维的智慧城管综合应用平台
- sql server嵌套查询
- 数据挖掘实战:个人信贷违约预测
- outlook邮箱邮件内容乱码_邮件标题乱码问题解决一例
- AT_abc210_d [ABC210D] National Railway 的题解
- UG6.0与UG12.0共存