hxkuc / electron-vue-windows Goto Github PK
View Code? Open in Web Editor NEWelectron-vue的多窗口插件
electron-vue的多窗口插件
打包后显示空白,我看初始时设置了端口。生产环境应该是本地虚拟路径,,,这个插件还是非常好用得,只是这个问题不解决,没法正式用了
"electron-vue-windows": "^1.0.41",
窗口之间的 vuex 不能公用吗
minWidth, minHeight,属性无法使用,是否有替代的解决方案?
传入参数modal和parent好像不支持,可以创建模态窗口吗
您好,我在本地用yarn dev 启动项目后,点击“打开新窗口无name属性可重复打开”按钮,为什么最多只能打开5个新窗口
run dev能正常使用
打包后主窗口空白,并且没有菜单栏
在win7环境下 会多创建一个窗口,win10却不会
大佬能否改造成 不依赖electron-vue!
我在主窗口中打开一个子窗口传入了数据,然后子窗口显示了相关的结果,当子窗口没有关闭时,我又想看其他的数据,于是点击了主窗口的相关按钮,这时候参数已经传到子窗口,但是子窗口并不更新数据。子窗口是这样获取数据的:
export default {
name: 'craft-table',
data () {
return {
craftTable: craftTable,
classicItems: this.$Win.getParameter().classicItems,
currentItem: this.$Win.getParameter().currentItem
}
},
methods: {
}
}
请问怎么解决数据同步的问题
E:\LQDESKTOP\node_modules\electron-vue-windows\Win.js:139 Uncaught TypeError: Cannot read property 'init' of undefined
1.问题(ask a question):
window7系统(Windows 7 system) 在创建窗口 this.$Win.openWin时候: 2.报错日志。
(Do not know why?)不知道为什么(The author solved the problem for me) 麻烦作者给我解决一下问题。
2.报错日志(Error information):
Uncaught Error: Could not call remote function 'getFreeWindow'. Check that the function signature is correct. Underlying error: Error processing argument at index 0, conversion failure from 1024.5
Error: Could not call remote function 'getFreeWindow'. Check that the function signature is correct. Underlying error: Error processing argument at index 0, conversion failure from 1024.5
我现在的多窗口不同菜单是这样绑定的,
mainWindow.on('focus', function () { Menu.setApplicationMenu(mainMenu) })
看到你的库,传参很方便.
你的库能支持不同窗口绑定不同的菜单吗,该如何实现呢?
现在是没有办法传数据了,你的例子里面
你好 在最新版本的electron中 使用插件中的creatWin会创建出窗口 但是创建的窗口是透明的,但是在打包exe之后 打开的窗口又是有内容的。希望能够更新框架 在体验ui那个程序中 感觉这个框架非常好用。
rt
另外子窗口的关闭事件还会继续往上报,触发父窗口的close事件
这样就导致父窗口的close事件多次触发(自身一次,子窗口一次)
很困惑,试了很多方法,
帮忙解答一下呗,项目太紧,希望看到后帮帮忙
E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\renderer\api\remote.js:209 Uncaught Error: Cannot find module 'node_modules\electron-vue-windows\WindowsBox.js'
Error: Cannot find module 'node_modules\electron-vue-windows\WindowsBox.js'
at Module._resolveFilename (module.js:485:15)
at Function.Module._resolveFilename (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at EventEmitter. (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\browser\rpc-server.js:263:70)
at emitTwo (events.js:125:13)
at EventEmitter.emit (events.js:213:7)
at WebContents. (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\browser\api\web-contents.js:275:13)
at emitTwo (events.js:125:13)
at WebContents.emit (events.js:213:7)
at Module._resolveFilename (module.js:485:15)
at Function.Module._resolveFilename (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at EventEmitter. (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\browser\rpc-server.js:263:70)
at emitTwo (events.js:125:13)
at EventEmitter.emit (events.js:213:7)
at WebContents. (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\browser\api\web-contents.js:275:13)
at emitTwo (events.js:125:13)
at WebContents.emit (events.js:213:7)
at Object.exception (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\renderer\api\remote.js:209:30)
at metaToValue (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\renderer\api\remote.js:213:28)
at Object.exports.require (E:\DMS\dms\node_modules\electron\dist\resources\electron.asar\renderer\api\remote.js:277:10)
at Object.eval (webpack-internal:///384:3:51)
at eval (webpack-internal:///384:222:30)
at Object. (http://localhost:9080/renderer.js:3218:1)
at webpack_require (http://localhost:9080/renderer.js:680:30)
at fn (http://localhost:9080/renderer.js:90:20)
at eval (webpack-internal:///167:16:80)
at Object. (http://localhost:9080/renderer.js:1802:1)
主窗口用openwin打开一个modal对话框后,有没有方便的方法在两个窗口间通信,还是必须用ipcMain来中转一下,就像https://github.com/balena-io-modules/electron-modal这个插件提供的功能
那框架几年没动了,好多依赖太麻烦了
碰到一个bug 因为要适应小屏幕,所以高是计算出来的。当计算出来的高为奇数时并且开启动画,打开窗体会报错,
因为业务需要,须在本地跑带有证书的https的地址。使用electron-vue-windows打开页面是透明,去掉https的devserver是没有问题的,请问,我需要如何设置才能正常打开页面呢?谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.